added mrnet and graphlib
This commit is contained in:
		@@ -70,6 +70,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Curl tool for fetching files.
 | 
					# Curl tool for fetching files.
 | 
				
			||||||
curl = which("curl", required=True)
 | 
					curl = which("curl", required=True)
 | 
				
			||||||
 | 
					curl.add_default_arg("-k") # TODO not good
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Whether to build in tmp space or directly in the stage_path.
 | 
					# Whether to build in tmp space or directly in the stage_path.
 | 
				
			||||||
# If this is true, then spack will make stage directories in
 | 
					# If this is true, then spack will make stage directories in
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										33
									
								
								lib/spack/spack/packages/graphlib.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								lib/spack/spack/packages/graphlib.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					# FIXME:
 | 
				
			||||||
 | 
					# This is a template package file for Spack.  We've conveniently
 | 
				
			||||||
 | 
					# put "FIXME" labels next to all the things you'll want to change.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Once you've edited all the FIXME's, delete this whole message,
 | 
				
			||||||
 | 
					# save this file, and test out your package like this:
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					#     spack install v
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# You can always get back here to change things with:
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					#     spack edit v
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# See the spack documentation for more information on building
 | 
				
			||||||
 | 
					# packages.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					from spack import *
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Graphlib(Package):
 | 
				
			||||||
 | 
					    """Library to create, manipulate, and export graphs Graphlib."""
 | 
				
			||||||
 | 
					    # FIXME: add a proper url for your package's homepage here.
 | 
				
			||||||
 | 
					    homepage = "http://www.example.com"
 | 
				
			||||||
 | 
					    url      = "https://github.com/lee218llnl/graphlib/archive/v2.0.0.tar.gz"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    versions = { '2.0.0' : '43c6df84f1d38ba5a5dce0ae19371a70', }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def install(self, spec, prefix):
 | 
				
			||||||
 | 
					        # FIXME: Modify the configure line to suit your build system here.
 | 
				
			||||||
 | 
					        cmake(".", *std_cmake_args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # FIXME: Add logic to build and install here
 | 
				
			||||||
 | 
					        make()
 | 
				
			||||||
 | 
					        make("install")
 | 
				
			||||||
							
								
								
									
										32
									
								
								lib/spack/spack/packages/mrnet.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								lib/spack/spack/packages/mrnet.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					# FIXME:
 | 
				
			||||||
 | 
					# This is a template package file for Spack.  We've conveniently
 | 
				
			||||||
 | 
					# put "FIXME" labels next to all the things you'll want to change.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Once you've edited all the FIXME's, delete this whole message,
 | 
				
			||||||
 | 
					# save this file, and test out your package like this:
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					#     spack install mrnet
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# You can always get back here to change things with:
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					#     spack edit mrnet
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# See the spack documentation for more information on building
 | 
				
			||||||
 | 
					# packages.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					from spack import *
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Mrnet(Package):
 | 
				
			||||||
 | 
					    """The MRNet Multi-Cast Reduction Network."""
 | 
				
			||||||
 | 
					    homepage = "http://paradyn.org/mrnet"
 | 
				
			||||||
 | 
					    url      = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def install(self, spec, prefix):
 | 
				
			||||||
 | 
					        # FIXME: Modify the configure line to suit your build system here.
 | 
				
			||||||
 | 
					        configure("--prefix=%s" %prefix, "--enable-shared")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # FIXME: Add logic to build and install here
 | 
				
			||||||
 | 
					        make(parallel=False)
 | 
				
			||||||
 | 
					        make("install", parallel=False)
 | 
				
			||||||
		Reference in New Issue
	
	Block a user