Initial versions of python and libffi.
This commit is contained in:
		
							
								
								
									
										16
									
								
								var/spack/packages/libffi/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								var/spack/packages/libffi/package.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
from spack import *
 | 
			
		||||
 | 
			
		||||
class Libffi(Package):
 | 
			
		||||
    """The libffi library provides a portable, high level programming
 | 
			
		||||
    interface to various calling conventions. This allows a programmer
 | 
			
		||||
    to call any function specified by a call interface description at
 | 
			
		||||
    run time."""
 | 
			
		||||
    homepage = "https://sourceware.org/libffi/"
 | 
			
		||||
    url      = "ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz"
 | 
			
		||||
 | 
			
		||||
    version('3.1', 'f5898b29bbfd70502831a212d9249d10')
 | 
			
		||||
 | 
			
		||||
    def install(self, spec, prefix):
 | 
			
		||||
        configure("--prefix=%s" % prefix)
 | 
			
		||||
        make()
 | 
			
		||||
        make("install")
 | 
			
		||||
							
								
								
									
										16
									
								
								var/spack/packages/python/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								var/spack/packages/python/package.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
from spack import *
 | 
			
		||||
 | 
			
		||||
class Python(Package):
 | 
			
		||||
    """The Python programming language."""
 | 
			
		||||
    homepage = "http://www.python.org"
 | 
			
		||||
    url      = "http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz"
 | 
			
		||||
 | 
			
		||||
    version('2.7.8', 'd235bdfa75b8396942e360a70487ee00')
 | 
			
		||||
 | 
			
		||||
    depends_on("openssl")
 | 
			
		||||
    depends_on("sqlite")
 | 
			
		||||
 | 
			
		||||
    def install(self, spec, prefix):
 | 
			
		||||
        configure("--prefix=%s" % prefix)
 | 
			
		||||
        make()
 | 
			
		||||
        make("install")
 | 
			
		||||
		Reference in New Issue
	
	Block a user