summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorYifan Zhu <ifanzhu@foxmail.com>2018-05-12 18:38:22 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2018-05-12 18:38:22 -0500
commit8270344042d89f4c0b789dfeead991d30c701787 (patch)
tree9237e12237db342eb10df3d797c76d3371952faf /var
parent8dd5ac357cc2f62770effc377c640c76f0acf0df (diff)
downloadspack-8270344042d89f4c0b789dfeead991d30c701787.tar.gz
spack-8270344042d89f4c0b789dfeead991d30c701787.tar.bz2
spack-8270344042d89f4c0b789dfeead991d30c701787.tar.xz
spack-8270344042d89f4c0b789dfeead991d30c701787.zip
plink: new source version 1.9-beta5 (#8076)
* plink: new source version 1.9-beta5 * plink: replace version 1.9 with 1.07
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/plink/package.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/plink/package.py b/var/spack/repos/builtin/packages/plink/package.py
index 2ebc7a0242..7a6c47d47c 100644
--- a/var/spack/repos/builtin/packages/plink/package.py
+++ b/var/spack/repos/builtin/packages/plink/package.py
@@ -32,10 +32,22 @@ class Plink(Package):
homepage = "https://www.cog-genomics.org/plink/1.9/"
- version('1.9', 'a2325881594856c0f1b7523290d1e04f',
- url='https://www.cog-genomics.org/static/bin/plink170815/plink_linux_x86_64.zip')
+ version('1.9-beta5', '737545504ae19348a44a05fa69b75c28',
+ url='https://github.com/chrchang/plink-ng/archive/b15c19f.tar.gz')
+ version('1.07', 'fd0bafeda42151b20534e4f97b0d97df',
+ url='http://zzz.bwh.harvard.edu/plink/dist/plink-1.07-x86_64.zip',
+ preferred=True)
+
+ depends_on('atlas', when='@1.9-beta5')
+ depends_on('netlib-lapack', when='@1.9-beta5')
def install(self, spec, prefix):
mkdirp(prefix.bin)
- install('plink', prefix.bin)
- install('prettify', prefix.bin)
+ if spec.version == Version('1.07'):
+ install('plink', prefix.bin)
+ install('gPLINK.jar', prefix.bin)
+ if spec.version == Version('1.9-beta5'):
+ with working_dir('1.9'):
+ first_compile = Executable('./plink_first_compile')
+ first_compile()
+ install('plink', prefix.bin)