Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/stacks/, sci-biology/stacks/files/
Date: Thu, 04 Feb 2021 07:07:51
Message-Id: 1612422440.b542f8b8e105b98240945504b7f73ff9abf7a1a3.andrewammerlaan@gentoo
1 commit: b542f8b8e105b98240945504b7f73ff9abf7a1a3
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Thu Feb 4 07:07:20 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Thu Feb 4 07:07:20 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b542f8b8
7
8 sci-biology/stacks: version bump, EAPI bump
9
10 does not install yet: access denied
11 so no keywords for now
12
13 Package-Manager: Portage-3.0.14, Repoman-3.0.2
14 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
15
16 sci-biology/stacks/files/stacks-make-install.patch | 83 ++++++++++++++++++++++
17 .../{stacks-1.44.ebuild => stacks-2.55.ebuild} | 31 ++++----
18 2 files changed, 98 insertions(+), 16 deletions(-)
19
20 diff --git a/sci-biology/stacks/files/stacks-make-install.patch b/sci-biology/stacks/files/stacks-make-install.patch
21 new file mode 100644
22 index 000000000..e5011dfcf
23 --- /dev/null
24 +++ b/sci-biology/stacks/files/stacks-make-install.patch
25 @@ -0,0 +1,83 @@
26 +diff --git a/Makefile.am b/Makefile.am
27 +index 7ff8a2b..e6e4682 100644
28 +--- a/Makefile.am
29 ++++ b/Makefile.am
30 +@@ -104,19 +104,20 @@ debug:
31 + $(MAKE) all "CXXFLAGS=-g -Wall -DDEBUG -Og"
32 +
33 + install-data-hook:
34 +- sed -e 's,_VERSION_,$(VERSION),' -e 's,_BINDIR_,$(bindir)/,g' -e 's,_PKGDATADIR_,$(pkgdatadir)/,g' $(DESTDIR)$(bindir)/denovo_map.pl > $(DESTDIR)$(bindir)/denovo_map.pl.subst
35 +- mv $(DESTDIR)$(bindir)/denovo_map.pl.subst $(DESTDIR)$(bindir)/denovo_map.pl
36 +- chmod +x $(DESTDIR)$(bindir)/denovo_map.pl
37 +- sed -e 's,_VERSION_,$(VERSION),' -e 's,_BINDIR_,$(bindir)/,g' -e 's,_PKGDATADIR_,$(pkgdatadir)/,g' $(DESTDIR)$(bindir)/ref_map.pl > $(DESTDIR)$(bindir)/ref_map.pl.subst
38 +- mv $(DESTDIR)$(bindir)/ref_map.pl.subst $(DESTDIR)$(bindir)/ref_map.pl
39 +- chmod +x $(DESTDIR)$(bindir)/ref_map.pl
40 +- sed -i.bkp -e 's,_VERSION_,$(VERSION),' $(DESTDIR)$(bindir)/stacks-integrate-alignments
41 +- sed -i.bkp -e 's,_VERSION_,$(VERSION),' $(DESTDIR)$(bindir)/stacks-samtools-tview
42 +- rm -f $(DESTDIR)$(bindir)/stacks-integrate-alignments.bkp
43 +- rm -f $(DESTDIR)$(bindir)/stacks-samtools-tview.bkp
44 +- chmod +x $(DESTDIR)$(bindir)/stacks-integrate-alignments
45 +- chmod +x $(DESTDIR)$(bindir)/stacks-dist-extract
46 +- chmod +x $(DESTDIR)$(bindir)/stacks-gdb
47 ++ echo "Skipped"
48 ++ ##sed -e 's,_VERSION_,$(VERSION),' -e 's,_BINDIR_,$(bindir)/,g' -e 's,_PKGDATADIR_,$(pkgdatadir)/,g' $(DESTDIR)$(bindir)/denovo_map.pl > $(DESTDIR)$(bindir)/denovo_map.pl.subst
49 ++ ##mv $(DESTDIR)$(bindir)/denovo_map.pl.subst $(DESTDIR)$(bindir)/denovo_map.pl
50 ++ ##chmod +x $(DESTDIR)$(bindir)/denovo_map.pl
51 ++ ##sed -e 's,_VERSION_,$(VERSION),' -e 's,_BINDIR_,$(bindir)/,g' -e 's,_PKGDATADIR_,$(pkgdatadir)/,g' $(DESTDIR)$(bindir)/ref_map.pl > $(DESTDIR)$(bindir)/ref_map.pl.subst
52 ++ ##mv $(DESTDIR)$(bindir)/ref_map.pl.subst $(DESTDIR)$(bindir)/ref_map.pl
53 ++ ##chmod +x $(DESTDIR)$(bindir)/ref_map.pl
54 ++ ##sed -i.bkp -e 's,_VERSION_,$(VERSION),' $(DESTDIR)$(bindir)/stacks-integrate-alignments
55 ++ ##sed -i.bkp -e 's,_VERSION_,$(VERSION),' $(DESTDIR)$(bindir)/stacks-samtools-tview
56 ++ ##rm -f $(DESTDIR)$(bindir)/stacks-integrate-alignments.bkp
57 ++ ##rm -f $(DESTDIR)$(bindir)/stacks-samtools-tview.bkp
58 ++ ##chmod +x $(DESTDIR)$(bindir)/stacks-integrate-alignments
59 ++ ##chmod +x $(DESTDIR)$(bindir)/stacks-dist-extract
60 ++ ##chmod +x $(DESTDIR)$(bindir)/stacks-gdb
61 + ##sed -e 's,_VERSION_,$(VERSION),' -e 's,_BINDIR_,$(DESTDIR)$(bindir)/,g' -e 's,_PKGDATADIR_,$(pkgdatadir)/,g' $(DESTDIR)$(bindir)/denovo_map.py > $(DESTDIR)$(bindir)/denovo_map.py.subst
62 + ##mv $(DESTDIR)$(bindir)/denovo_map.py.subst $(DESTDIR)$(bindir)/denovo_map.py
63 + ##chmod +x $(DESTDIR)$(bindir)/denovo_map.py
64 +diff --git a/Makefile.in b/Makefile.in
65 +index ca1c64f..2c85268 100644
66 +--- a/Makefile.in
67 ++++ b/Makefile.in
68 +@@ -819,10 +819,7 @@ install-binPROGRAMS: $(bin_PROGRAMS)
69 + END { for (d in files) print "f", d, files[d] }' | \
70 + while read type dir files; do \
71 + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
72 +- test -z "$$files" || { \
73 +- echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
74 +- $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
75 +- } \
76 ++ test -z "$$files" || { echo "Skipped" } \
77 + ; done
78 +
79 + uninstall-binPROGRAMS:
80 +@@ -1006,10 +1003,7 @@ install-dist_binSCRIPTS: $(dist_bin_SCRIPTS)
81 + END { for (d in files) print "f", d, files[d] }' | \
82 + while read type dir files; do \
83 + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
84 +- test -z "$$files" || { \
85 +- echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
86 +- $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
87 +- } \
88 ++ test -z "$$files" || { echo "Skipped" } \
89 + ; done
90 +
91 + uninstall-dist_binSCRIPTS:
92 +@@ -1600,15 +1594,7 @@ install-am: all-am
93 +
94 + installcheck: installcheck-recursive
95 + install-strip:
96 +- if test -z '$(STRIP)'; then \
97 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
98 +- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
99 +- install; \
100 +- else \
101 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
102 +- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
103 +- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
104 +- fi
105 ++ echo "Skipped"
106 + mostlyclean-generic:
107 + -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
108 + -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
109
110 diff --git a/sci-biology/stacks/stacks-1.44.ebuild b/sci-biology/stacks/stacks-2.55.ebuild
111 similarity index 69%
112 rename from sci-biology/stacks/stacks-1.44.ebuild
113 rename to sci-biology/stacks/stacks-2.55.ebuild
114 index 3106657e9..4d7095d4f 100644
115 --- a/sci-biology/stacks/stacks-1.44.ebuild
116 +++ b/sci-biology/stacks/stacks-2.55.ebuild
117 @@ -1,11 +1,9 @@
118 -# Copyright 1999-2017 Gentoo Foundation
119 +# Copyright 1999-2021 Gentoo Authors
120 # Distributed under the terms of the GNU General Public License v2
121
122 -EAPI=5
123 +EAPI=7
124
125 -AUTOTOOLS_AUTORECONF=yes
126 -
127 -inherit flag-o-matic eutils perl-module webapp autotools
128 +inherit flag-o-matic perl-module webapp autotools
129
130 DESCRIPTION="Analyze restriction enzyme data, draw gen. maps, population genomics"
131 HOMEPAGE="http://creskolab.uoregon.edu/stacks"
132 @@ -14,7 +12,9 @@ SRC_URI="http://creskolab.uoregon.edu/stacks/source/${P}.tar.gz"
133 LICENSE="GPL-3"
134 # SLOT="0" # webapp ebuilds do not set SLOT
135 KEYWORDS=""
136 -IUSE=""
137 +
138 +# No rule to make target test
139 +RESTRICT="test"
140
141 DEPEND="
142 >=sci-libs/htslib-1.3.1:0
143 @@ -27,8 +27,12 @@ RDEPEND="${DEPEND}
144 >=dev-lang/php-5
145 dev-perl/DBD-mysql"
146
147 +PATCHES=(
148 + "${FILESDIR}/${PN}-make-install.patch"
149 +)
150 +
151 src_prepare(){
152 - sed -e 's/SUBDIRS = htslib/SUBDIRS = /' -i Makefile.am || die
153 + default
154 #mycppflags=`pkg-config --cflags htslib` # is blocked by bug #601366
155 if [ -z "$mycppflags" ]; then mycppflags="."; fi
156 sed -e "s#-I./htslib/htslib#-I/usr/include/bam -I${mycppflags}#" -i configure.ac || die
157 @@ -36,20 +40,15 @@ src_prepare(){
158 }
159
160 src_configure() {
161 - econf --enable-bam --enable-sparsehash
162 + econf
163 webapp_src_preinst
164 - sed -i 's#/usr/lib/libbam.a#-lbam#;#./htslib/libhts.a#-lhts#' Makefile || die
165 -}
166 -
167 -src_compile(){
168 - rm -rf htslib # zap bundled htslib-1.3.1
169 - emake DESTDIR="${D}"
170 + sed -e 's#/usr/lib/libbam.a#-lbam#;#./htslib/libhts.a#-lhts#' -i Makefile || die
171 }
172
173 src_install() {
174 - emake install DESTDIR="${D}"
175 + emake install DESTDIR="${ED}"
176 mydoc="Changes README TODO INSTALL"
177 - perl-module_src_install DESTDIR="${D}"
178 + perl-module_src_install DESTDIR="${ED}"
179 webapp_src_install || die "Failed running webapp_src_install"
180 }