Skip to content

Commit 407920e

Browse files
committed
Merge pull request spack#904 from robertdfrench/bbcp
BBCP
2 parents 13e5296 + 18d2b28 commit 407920e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from spack import *
2+
3+
class Bbcp(Package):
4+
"""Securely and quickly copy data from source to target"""
5+
homepage = "http://www.slac.stanford.edu/~abh/bbcp/"
6+
7+
version('git', git='http://www.slac.stanford.edu/~abh/bbcp/bbcp.git', branch="master")
8+
9+
def install(self, spec, prefix):
10+
cd("src")
11+
make()
12+
# BBCP wants to build the executable in a directory whose name depends on the system type
13+
makesname = Executable("../MakeSname")
14+
bbcp_executable_path = "../bin/%s/bbcp" % makesname(output=str).rstrip("\n")
15+
destination_path = "%s/bin/" % prefix
16+
mkdirp(destination_path)
17+
install(bbcp_executable_path, destination_path)

0 commit comments

Comments
 (0)