1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/spack/spack
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
from shutil import copytree, copyfile
class Pindel(MakefilePackage):
"""Pindel can detect breakpoints from next-gen sequence data."""
homepage = "http://gmt.genome.wustl.edu/packages/pindel/"
url = "https://github.com/genome/pindel/archive/v0.2.5.tar.gz"
version('0.2.5b8', 'e6de2ffb38ba1cb89351cdccabe78cde')
version('0.2.5b6', 'dc2febb18c203f0ef1ba02b7b882e94b')
version('0.2.5b5', '73e964bc19de9ab9e6e8a316353e3184')
version('0.2.5b4', 'b4aefd538d9f62578f46440c4bce497e')
version('0.2.5b1', 'a8e53e8919aa29093db13fad5ede93a5')
version('0.2.5a7', '5fb2bac6108547b5d60c38fc66abdfc4')
version('0.2.5', 'd4568cbb83ec25ef9f9f6f058b30053e')
depends_on('htslib@1.7:')
#
# This Makefile2 stuff is due to the original installer,
# The author wants to run make twice, the first
# time generates a Makefile.local then returns "false"
# User is then suppose to run make again and the
# package will compile. This is an attempt to
# stay as close to the original installer as possible
#
def edit(self, spec, prefix):
makefile2 = join_path(self.build_directory, 'Makefile2')
copyfile(join_path(self.build_directory, 'Makefile'), makefile2)
myedit = FileFilter(makefile2)
myedit.filter('-include Makefile.local', '#removed include')
myedit.filter('@false', '#removed autofailure')
def build(self, spec, prefix):
make("Makefile.local", "-f",
"Makefile2",
"HTSLIB=%s" % spec['htslib'].prefix)
make("HTSLIB=%s" % spec['htslib'].prefix)
def install(self, spec, prefix):
mkdirp(prefix.bin)
install('src/pindel', prefix.bin)
install('src/pindel2vcf', prefix.bin)
install('src/sam2pindel', prefix.bin)
install('src/pindel2vcf4tcga', prefix.bin)
copytree(join_path(self.build_directory, 'demo'),
prefix.doc,
symlinks=True)
|