Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/vcftools/, sci-biology/vcftools/files/
Date: Fri, 26 Aug 2016 16:21:07
Message-Id: 1472228438.120da1074b01f60b3b7b98776c8cae7d38ac451e.mmokrejs@gentoo
1 commit: 120da1074b01f60b3b7b98776c8cae7d38ac451e
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Fri Aug 26 16:20:38 2016 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Fri Aug 26 16:20:38 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=120da107
7
8 sci-biology/vcftool: version bump; adjust to new build system
9
10 Package-Manager: portage-2.3.0
11
12 .../files/vcftools-0.1.13-buildsystem.patch | 53 ---------------------
13 sci-biology/vcftools/vcftools-0.1.13.ebuild | 45 ------------------
14 sci-biology/vcftools/vcftools-0.1.14.ebuild | 55 ++++++++++++++++++++++
15 3 files changed, 55 insertions(+), 98 deletions(-)
16
17 diff --git a/sci-biology/vcftools/files/vcftools-0.1.13-buildsystem.patch b/sci-biology/vcftools/files/vcftools-0.1.13-buildsystem.patch
18 deleted file mode 100644
19 index 8519766..0000000
20 --- a/sci-biology/vcftools/files/vcftools-0.1.13-buildsystem.patch
21 +++ /dev/null
22 @@ -1,53 +0,0 @@
23 -diff -ur vcftools_0.1.12b.orig/cpp/Makefile vcftools_0.1.12b/cpp/Makefile
24 ---- vcftools_0.1.12b.orig/cpp/Makefile 2014-08-01 21:11:22.000000000 +0200
25 -+++ vcftools_0.1.12b/cpp/Makefile 2015-04-03 17:24:38.830781049 +0200
26 -@@ -3,8 +3,8 @@
27 - # ($Revision: 1.1 $)
28 -
29 - # Compiler
30 --CC = gcc
31 --CPP = g++
32 -+CC ?= gcc
33 -+CPP ?= g++
34 - # Output executable
35 - EXECUTABLE = vcftools
36 - # Flag used to turn on compilation of PCA routines
37 -@@ -12,9 +12,9 @@
38 - VCFTOOLS_PCA = 0
39 - endif
40 - # Compiler flags
41 --CFLAGS = -O2 -m64
42 -+CFLAGS ?= -O2 -m64
43 - #CFLAGS = -Wall -O2 -pg -m64
44 --CPPFLAGS = -O2 -D_FILE_OFFSET_BITS=64
45 -+CPPFLAGS ?= -O2 -D_FILE_OFFSET_BITS=64
46 - #CPPFLAGS = -O2 -Wall -pg -D_FILE_OFFSET_BITS=64
47 - # Included libraries (zlib)
48 - LIB = -lz
49 -@@ -29,13 +29,13 @@
50 - # Define flag for PCA routine compilation
51 - CPPFLAGS += -DVCFTOOLS_PCA
52 - # Add LAPACK library
53 -- LIB += -llapack
54 -+ LIB += `$(PKG_CONFIG) --libs lapack`
55 - # Add PCA source code
56 - OBJS+= dgeev.o
57 - endif
58 -
59 - vcftools: $(OBJS)
60 -- $(CPP) $(CPPFLAGS) $(OBJS) -o vcftools $(LIB)
61 -+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o vcftools $(LIB)
62 - ifdef BINDIR
63 - cp $(CURDIR)/$@ $(BINDIR)/$@
64 - endif
65 -@@ -47,8 +47,8 @@
66 - -include $(OBJS:.o=.d)
67 -
68 - %.o: %.cpp
69 -- $(CPP) -c $(CPPFLAGS) $*.cpp -o $*.o
70 -- $(CPP) -MM $(CPPFLAGS) $*.cpp > $*.d
71 -+ $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $*.cpp -o $*.o
72 -+ $(CXX) -MM $(CXXFLAGS) $(CPPFLAGS) $*.cpp > $*.d
73 -
74 - # remove compilation products
75 - clean:
76
77 diff --git a/sci-biology/vcftools/vcftools-0.1.13.ebuild b/sci-biology/vcftools/vcftools-0.1.13.ebuild
78 deleted file mode 100644
79 index ae83847..0000000
80 --- a/sci-biology/vcftools/vcftools-0.1.13.ebuild
81 +++ /dev/null
82 @@ -1,45 +0,0 @@
83 -# Copyright 1999-2016 Gentoo Foundation
84 -# Distributed under the terms of the GNU General Public License v2
85 -# $Id$
86 -
87 -EAPI=5
88 -
89 -PERL_EXPORT_PHASE_FUNCTIONS=no
90 -inherit perl-module eutils toolchain-funcs
91 -
92 -MY_P="${PN}_${PV}"
93 -
94 -DESCRIPTION="Tools for working with VCF (Variant Call Format) files"
95 -HOMEPAGE="http://vcftools.sourceforge.net/"
96 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
97 -
98 -LICENSE="LGPL-3"
99 -SLOT="0"
100 -KEYWORDS="~x86 ~amd64"
101 -IUSE="lapack"
102 -
103 -RDEPEND="lapack? ( virtual/lapack )"
104 -DEPEND="${RDEPEND}
105 - virtual/pkgconfig"
106 -
107 -S="${WORKDIR}/${MY_P}"
108 -
109 -src_prepare() {
110 - epatch "${FILESDIR}"/${P}-buildsystem.patch
111 - tc-export CXX PKG_CONFIG
112 -}
113 -
114 -src_compile() {
115 - local myconf
116 - use lapack && myconf="VCFTOOLS_PCA=1"
117 - emake -C cpp ${myconf}
118 -}
119 -
120 -src_install(){
121 - perl_set_version
122 - dobin cpp/${PN}
123 - insinto ${VENDOR_LIB}
124 - doins perl/*.pm
125 - dobin perl/{fill,vcf}-*
126 - dodoc README.txt
127 -}
128
129 diff --git a/sci-biology/vcftools/vcftools-0.1.14.ebuild b/sci-biology/vcftools/vcftools-0.1.14.ebuild
130 new file mode 100644
131 index 0000000..0e792f8
132 --- /dev/null
133 +++ b/sci-biology/vcftools/vcftools-0.1.14.ebuild
134 @@ -0,0 +1,55 @@
135 +# Copyright 1999-2016 Gentoo Foundation
136 +# Distributed under the terms of the GNU General Public License v2
137 +# $Id$
138 +
139 +EAPI=5
140 +
141 +PERL_EXPORT_PHASE_FUNCTIONS=no
142 +inherit perl-module eutils toolchain-funcs autotools
143 +
144 +MY_P="${PN}_${PV}"
145 +
146 +DESCRIPTION="Tools for working with VCF (Variant Call Format) files"
147 +HOMEPAGE="https://vcftools.github.io
148 + http://vcftools.sourceforge.net"
149 +SRC_URI="https://github.com/vcftools/vcftools/archive/vcftools-vcftools-v0.1.14-14-g2543f81.tar.gz"
150 +#SRC_URI="https://codeload.github.com/vcftools/vcftools/legacy.tar.gz/master -> ${P}.tar.gz"
151 +#SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
152 +
153 +LICENSE="LGPL-3"
154 +SLOT="0"
155 +KEYWORDS="~x86 ~amd64"
156 +IUSE="lapack"
157 +
158 +RDEPEND="lapack? ( virtual/lapack )"
159 +DEPEND="${RDEPEND}
160 + virtual/pkgconfig"
161 +
162 +S="${WORKDIR}"/vcftools-vcftools-2543f81
163 +#S="${WORKDIR}/${MY_P}"
164 +
165 +src_prepare() {
166 + # epatch "${FILESDIR}"/${P}-buildsystem.patch
167 + tc-export CXX PKG_CONFIG
168 + eautoreconf
169 +}
170 +
171 +src_configure(){
172 + econf --enable-pca # --with-pmdir=DIR install Perl modules in DIR
173 +}
174 +
175 +#src_compile() {
176 +# local myconf
177 +# use lapack && myconf="VCFTOOLS_PCA=1"
178 +# emake -C cpp ${myconf}
179 +#}
180 +
181 +src_install(){
182 + perl_set_version
183 + dobin src/cpp/"${PN}"
184 + doman src/cpp/"${PN}".1
185 + insinto "${VENDOR_LIB}"
186 + doins src/perl/*.pm
187 + dobin src/perl/{fill,vcf}-*
188 + dodoc README.md
189 +}