public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-biology/hmmer/, sci-biology/hmmer/files/
@ 2016-10-09 15:14 David Seifert
  0 siblings, 0 replies; 4+ messages in thread
From: David Seifert @ 2016-10-09 15:14 UTC (permalink / raw
  To: gentoo-commits

commit:     895b3abfbdacf52dbd7a0e817eb7ebf101ce55a7
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  9 14:52:52 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Oct  9 15:14:23 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=895b3abf

sci-biology/hmmer: Properly SLOT=2 hmmer-2.3.2

Gentoo-bug: 328911, 586960
* EAPI=6
* Introduce SLOT=2 and rename binaries and
  static libraries

Package-Manager: portage-2.3.1

 .../hmmer-2.3.2-fix-build-system-destdir.patch     |  22 +++++
 .../files/hmmer-2.3.2-fix-perl-shebangs.patch      | 108 +++++++++++++++++++++
 sci-biology/hmmer/hmmer-2.3.2-r4.ebuild            |  75 ++++++++++++++
 3 files changed, 205 insertions(+)

diff --git a/sci-biology/hmmer/files/hmmer-2.3.2-fix-build-system-destdir.patch b/sci-biology/hmmer/files/hmmer-2.3.2-fix-build-system-destdir.patch
new file mode 100644
index 00000000..110c61f
--- /dev/null
+++ b/sci-biology/hmmer/files/hmmer-2.3.2-fix-build-system-destdir.patch
@@ -0,0 +1,22 @@
+Make the build system respect DESTDIR, in order to allow staged builds.
+
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -109,13 +109,13 @@
+ #          installs man pages in MANDIR/man1/  (e.g. if MANSUFFIX is 1)
+ #          Creates these directories if they don't exist.
+ install: 
+-	mkdir -p ${BINDIR}
+-	-mkdir -p ${MANDIR}/man${MANSUFFIX}
++	mkdir -p ${DESTDIR}${BINDIR}
++	-mkdir -p ${DESTDIR}${MANDIR}/man${MANSUFFIX}
+ 	for file in $(PROGS) $(PVMPROGS); do\
+-	   cp src/$$file $(BINDIR)/;\
++	   cp src/$$file ${DESTDIR}$(BINDIR)/;\
+ 	done
+ 	-for file in hmmer $(PROGS); do\
+-	   $(INSTMAN) documentation/man/$$file.man $(MANDIR)/man$(MANSUFFIX)/$$file.$(MANSUFFIX);\
++	   $(INSTMAN) documentation/man/$$file.man ${DESTDIR}$(MANDIR)/man$(MANSUFFIX)/$$file.$(MANSUFFIX);\
+ 	done
+ 
+ # uninstall: Reverses the steps of "make install".

diff --git a/sci-biology/hmmer/files/hmmer-2.3.2-fix-perl-shebangs.patch b/sci-biology/hmmer/files/hmmer-2.3.2-fix-perl-shebangs.patch
new file mode 100644
index 00000000..783d053
--- /dev/null
+++ b/sci-biology/hmmer/files/hmmer-2.3.2-fix-perl-shebangs.patch
@@ -0,0 +1,108 @@
+* Fix ancient perl 4 modules that are long gone.
+* Fix perl shebangs to be portable and usable on Prefix.
+See also: https://blogs.gentoo.org/mgorny/2016/02/08/a-quick-note-on-portable-shebangs/
+
+--- a/squid/Testsuite/bug-1-sfetch-paths
++++ b/squid/Testsuite/bug-1-sfetch-paths
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ # Test for bug #1: sfetch/SSI path bug.
+ # sfetch can't follow paths out of current directory if it's using
+--- a/squid/Testsuite/x-base-afetch
++++ b/squid/Testsuite/x-base-afetch
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ use testsuite;
+ 
+--- a/squid/Testsuite/x-base-alistat
++++ b/squid/Testsuite/x-base-alistat
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ use testsuite;
+ 
+--- a/squid/Testsuite/x-base-seqstat
++++ b/squid/Testsuite/x-base-seqstat
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ use testsuite;
+ 
+--- a/squid/Testsuite/x-base-sfetch
++++ b/squid/Testsuite/x-base-sfetch
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ use testsuite;
+ 
+--- a/squid/Testsuite/x-base-shuffle
++++ b/squid/Testsuite/x-base-shuffle
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ use testsuite;
+ 
+--- a/squid/Testsuite/x-base-sindex
++++ b/squid/Testsuite/x-base-sindex
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ use testsuite;
+ 
+--- a/squid/Testsuite/x-base-sreformat
++++ b/squid/Testsuite/x-base-sreformat
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ use testsuite;
+ 
+--- a/testsuite/sqc
++++ b/testsuite/sqc
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ # sqc 
+ # quality control script for exercising code, regression testing, 
+@@ -176,12 +176,11 @@
+ # SRE, Tue Aug  6 11:16:39 2002
+ # CVS $Id: sqc,v 1.3 2003/01/05 23:40:57 eddy Exp $
+ 
+-require "getopts.pl";
+-require "importenv.pl";
++use Getopt::Std;
+ 
+ # Parse our command line
+ #
+-&Getopts('mp:r:v');
++getopts('mp:r:v');
+ if ($opt_m) { $do_memtest = 1;    }
+ if ($opt_p) { push @prepdirs, $opt_p; }
+ if ($opt_r) { push @olddirs,  $opt_r; }
+@@ -506,7 +505,7 @@
+ #
+ sub tempname {
+     my ($dir, $name, $suffix);
+-    if ($TMPDIR) { $dir = $TMPDIR."/"; } else {$dir = "";}
++    if ($ENV{TMPDIR}) { $dir = $ENV{TMPDIR}."/"; } else {$dir = "";}
+ 
+     foreach $suffix ("aa".."zz") {
+         $name = "$dir"."sre".$suffix.$$;
+--- a/testsuite/test1-conversion.pl
++++ b/testsuite/test1-conversion.pl
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl
++#!/usr/bin/env perl
+ 
+ # Test hmmconvert.
+ #

diff --git a/sci-biology/hmmer/hmmer-2.3.2-r4.ebuild b/sci-biology/hmmer/hmmer-2.3.2-r4.ebuild
new file mode 100644
index 00000000..7cecfe6
--- /dev/null
+++ b/sci-biology/hmmer/hmmer-2.3.2-r4.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Sequence analysis using profile hidden Markov models"
+LICENSE="GPL-2"
+HOMEPAGE="http://hmmer.org/"
+SRC_URI="http://eddylab.org/software/${PN}/${PV}/${P}.tar.gz"
+
+SLOT="2"
+IUSE="altivec test threads"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="test? ( dev-lang/perl )"
+RDEPEND=""
+
+PATCHES=(
+	"${FILESDIR}/${P}-fix-perl-shebangs.patch"
+	"${FILESDIR}/${P}-fix-build-system-destdir.patch"
+)
+
+src_configure() {
+	# prevent stray environmental variable
+	# from causing issues in the test phase
+	unset TMPDIR
+
+	econf \
+		--enable-lfs \
+		$(use_enable altivec) \
+		$(use_enable threads)
+}
+
+src_install() {
+	default
+
+	newlib.a src/libhmmer.a libhmmer2.a
+	insinto /usr/include/hmmer2
+	doins src/*.h
+
+	dobin squid/{afetch,alistat,compalign,compstruct,revcomp,seqstat,seqsplit,sfetch,shuffle,sreformat,sindex,weight,translate}
+	dolib.a squid/libsquid.a
+	insinto /usr/include/hmmer2
+	doins squid/*.h
+
+	dodoc NOTES Userguide.pdf
+	newdoc 00README README
+
+	# rename files due to collisions with hmmer-3
+	# in order to make SLOTing possible
+	local i
+
+	# first rename man pages...
+	pushd "${ED%/}"/usr/share/man/man1/ >/dev/null || die
+	for i in hmm*.1; do
+		mv ${i%.1}{,2}.1 || die
+	done
+	popd >/dev/null || die
+
+	# ... then rename binaries
+	pushd "${ED%/}"/usr/bin/ >/dev/null || die
+	for i in hmm*; do
+		mv ${i}{,2} || die
+	done
+	popd >/dev/null || die
+}
+
+pkg_postinst() {
+	elog "All ${P} binaries have been renamed, in order"
+	elog "to avoid collisions with hmmer-3. For instance"
+	elog
+	elog "    hmmalign -> hmmalign2"
+	elog
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-biology/hmmer/, sci-biology/hmmer/files/
@ 2017-02-06 21:27 David Seifert
  0 siblings, 0 replies; 4+ messages in thread
From: David Seifert @ 2017-02-06 21:27 UTC (permalink / raw
  To: gentoo-commits

commit:     cbfe0e33651a8811229d663a9469cc97957b994e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  6 20:48:01 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Feb  6 21:25:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbfe0e33

sci-biology/hmmer: Remove old

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3856

 sci-biology/hmmer/Manifest                         |   1 -
 sci-biology/hmmer/files/hmmer-3.0-fix_tests.patch  |  23 ----
 .../hmmer/files/hmmer-3.0-perl-5.16-2.patch        | 132 ---------------------
 sci-biology/hmmer/hmmer-3.0.ebuild                 |  45 -------
 4 files changed, 201 deletions(-)

diff --git a/sci-biology/hmmer/Manifest b/sci-biology/hmmer/Manifest
index dada007..acffd6e 100644
--- a/sci-biology/hmmer/Manifest
+++ b/sci-biology/hmmer/Manifest
@@ -1,3 +1,2 @@
 DIST hmmer-2.3.2.tar.gz 1024933 SHA256 d20e1779fcdff34ab4e986ea74a6c4ac5c5f01da2993b14e92c94d2f076828b4 SHA512 5abf9c304de38b183a5beab7a5cfc75c3774ff6e161b7b8e55a0eae9fd156dbb7ed95d216c16d3c585c494bb69e3a9fdfabfb5dc729b7050a4d1be95c74df7d7 WHIRLPOOL 604cc3f532d6eae3fbca893d991d0714a5a897fbac3059d63fdbebc6221e9321c2b444db2700e7068a11c043c0a7f9f3935617a3aa1878ca06ba18c558d55d40
-DIST hmmer-3.0.tar.gz 3952015 SHA256 6977e6473fcb554b1d5a86dc9edffffa53918c1bd88d7fd20d7499f1ba719e83 SHA512 752f06b0494a87ccd2cf6aa93e622fd02173eaa0df60df0527b3361dcaa2baf2b45a2daf0123217c0029bc9d95e505a92f1e97039eb8b7218b4c4b65ddad1db5 WHIRLPOOL a181ce8ddb016bf1209c83fa754163e9ac653acb51fed13dee8598565d2f058a118fca04229aef7e4e5a79aae86712639b8e43bf7e12c50a8bf22e32be9df658
 DIST hmmer-3.1b2.tar.gz 5965253 SHA256 dd16edf4385c1df072c9e2f58c16ee1872d855a018a2ee6894205277017b5536 SHA512 64c8a840cb62160a1c13a20e64f42d297edb7969425d5047eefd8ee9f992d66612d62843523e8f33a2c38568ce1b0a9df23dd1d3ecf6773007f6db12d4cc4771 WHIRLPOOL 0b6d17b5f5efe31873cde93ff33cc5b01c53de8e1daf1ed473ef92d6585f34abcbb31e35e4d02537fbbc2c808131b70a0f51a3832ee332e23246cbc75edc354a

diff --git a/sci-biology/hmmer/files/hmmer-3.0-fix_tests.patch b/sci-biology/hmmer/files/hmmer-3.0-fix_tests.patch
deleted file mode 100644
index 983827b..00000000
--- a/sci-biology/hmmer/files/hmmer-3.0-fix_tests.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- easel/Makefile.in
-+++ easel/Makefile.in
-@@ -26,8 +26,7 @@
- LDFLAGS  = @LDFLAGS@
- SIMDFLAGS= @SIMD_CFLAGS@
- CPPFLAGS = @CPPFLAGS@
--LIBGSL   = @LIBGSL@
--LIBS     = @LIBS@ @PTHREAD_LIBS@
-+LIBS     = @LIBS@ @LIBGSL@ @PTHREAD_LIBS@
- 
- # Other tools
- #
-@@ -252,8 +251,8 @@
-         else \
-            DFILE=${srcdir}/esl_$${BASENAME}.c ;\
-         fi;\
--	echo ${CC} ${CFLAGS} ${SIMDFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm;\
--	${CC} ${CFLAGS} ${SIMDFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm
-+	echo ${CC} ${CFLAGS} ${SIMDFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS};\
-+	${CC} ${CFLAGS} ${SIMDFLAGS} ${DEFS} ${LDFLAGS} -o $@ -I. -I${srcdir} -L. -D$${DFLAG} $${DFILE} -leasel -lm ${LIBS}
- 
- 
- # install:   installs libeasel.a in ${libdir}/

diff --git a/sci-biology/hmmer/files/hmmer-3.0-perl-5.16-2.patch b/sci-biology/hmmer/files/hmmer-3.0-perl-5.16-2.patch
deleted file mode 100644
index 19d38c8..00000000
--- a/sci-biology/hmmer/files/hmmer-3.0-perl-5.16-2.patch
+++ /dev/null
@@ -1,132 +0,0 @@
- easel/devkit/autodoc               |    4 ++--
- easel/devkit/esl-dependencies      |    4 ++--
- easel/devkit/sqc                   |    7 +++----
- easel/testsuite/coverage_report.pl |    4 ++--
- easel/testsuite/driver_report.pl   |    4 ++--
- easel/testsuite/valgrind_report.pl |    4 ++--
- profmark/rocplot.pl                |    4 ++--
- 7 files changed, 15 insertions(+), 16 deletions(-)
-
-diff --git a/easel/devkit/autodoc b/easel/devkit/autodoc
-index 16bda4d..f5c5efc 100755
---- a/easel/devkit/autodoc
-+++ b/easel/devkit/autodoc
-@@ -49,8 +49,8 @@
- #
- # SRE, Tue Nov 30 19:43:47 2004
- 
--require  "getopts.pl";
--&Getopts('n:t');
-+use Getopt::Std;
-+getopts('n:t');
- $cfile = shift;
- 
- if ($opt_t) { $show_api_table = 1; }
-diff --git a/easel/devkit/esl-dependencies b/easel/devkit/esl-dependencies
-index a4dc126..b61fa7a 100755
---- a/easel/devkit/esl-dependencies
-+++ b/easel/devkit/esl-dependencies
-@@ -13,8 +13,8 @@
- # SRE, Mon Jun 11 11:15:31 2007
- # SVN $Id$
- 
--require "getopts.pl"
--&Getopts('1afr');
-+use Getopt::Std;
-+getopts('1afr');
- 
- if ($opt_1) { $show_summary_table = 1; }
- if ($opt_a) { $list_augfiles      = 1; }
-diff --git a/easel/devkit/sqc b/easel/devkit/sqc
-index af3adf6..0cdb458 100755
---- a/easel/devkit/sqc
-+++ b/easel/devkit/sqc
-@@ -205,12 +205,11 @@
- # SRE, Tue Aug  6 11:16:39 2002
- # SVN $Id: sqc 1796 2007-01-03 22:36:44Z eddys $
- 
--require "getopts.pl";
--require "importenv.pl";
-+use Getopt::Std;
- 
- # Parse our command line
- #
--&Getopts('v');
-+getopts('v');
- if ($opt_v) { $verbose = 1;           }
- 
- 
-@@ -609,7 +608,7 @@ sub check_valgrind_status
- #
- sub tempname {
-     my ($dir, $name, $suffix);
--    if ($TMPDIR) { $dir = $TMPDIR."/"; } else {$dir = "";}
-+    if ($ENV{TMPDIR}) { $dir = $ENV{TMPDIR}."/"; } else {$dir = "";}
- 
-     foreach $suffix ("aa".."zz") {
-         $name = "$dir"."esltmp".$suffix.$$;
-diff --git a/easel/testsuite/coverage_report.pl b/easel/testsuite/coverage_report.pl
-old mode 100755
-new mode 100644
-index 9c77791..024ed34
---- a/easel/testsuite/coverage_report.pl
-+++ b/easel/testsuite/coverage_report.pl
-@@ -16,9 +16,9 @@
- #
- # SRE, Thu Mar  1 19:22:57 2007 (Janelia)
- # SVN $Id: coverage_report.pl 231 2008-03-25 14:43:57Z eddys $
--require  "getopts.pl";
-+use Getopt::Std;
- $have_sloccount = 1;
--&Getopts('cs');
-+getopts('cs');
- if ($opt_c) { $do_recompile     = 1; }
- if ($opt_s) { $have_sloccount   = 0; }
- 
-diff --git a/easel/testsuite/driver_report.pl b/easel/testsuite/driver_report.pl
-index 757854d..a9a8902 100755
---- a/easel/testsuite/driver_report.pl
-+++ b/easel/testsuite/driver_report.pl
-@@ -25,8 +25,8 @@
- # SRE, Fri Mar  2 10:01:44 2007 (Janelia)
- # SVN $Id: driver_report.pl 326 2009-02-28 15:49:07Z eddys $
- 
--require  "getopts.pl";
--&Getopts('c');
-+use Getopt::Std;
-+getopts('c');
- if ($opt_c) { $do_recompile = 1; }
- 
- if ($ENV{'CC'}       ne "") { $CC       = $ENV{'CC'};       } else { $CC        = "gcc"; } 
-diff --git a/easel/testsuite/valgrind_report.pl b/easel/testsuite/valgrind_report.pl
-old mode 100755
-new mode 100644
-index 186a392..07026a0
---- a/easel/testsuite/valgrind_report.pl
-+++ b/easel/testsuite/valgrind_report.pl
-@@ -10,8 +10,8 @@
- #
- # SRE, Fri Mar  2 08:37:48 2007 [Janelia]
- # SVN $Id: valgrind_report.pl 231 2008-03-25 14:43:57Z eddys $
--require  "getopts.pl";
--&Getopts('c');
-+use Getopt::Std;
-+getopts('c');
- if ($opt_c) { $do_recompile = 1; }
- 
- if ($ENV{'CC'}     ne "") { $CC     = $ENV{'CC'};     } else { $CC       = "gcc"; } 
-diff --git a/profmark/rocplot.pl b/profmark/rocplot.pl
-index d4c0f67..4e8175a 100755
---- a/profmark/rocplot.pl
-+++ b/profmark/rocplot.pl
-@@ -2,8 +2,8 @@
- 
- $nsearches = 1567;
- 
--require "getopts.pl";
--&Getopts('n:X:x:');
-+use Getopt::Std
-+getopts('n:X:x:');
- 
- if ($opt_n) { $nsearches = $opt_n; }
- if ($opt_X) { 

diff --git a/sci-biology/hmmer/hmmer-3.0.ebuild b/sci-biology/hmmer/hmmer-3.0.ebuild
deleted file mode 100644
index 86183e7..00000000
--- a/sci-biology/hmmer/hmmer-3.0.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-
-inherit eutils
-
-DESCRIPTION="Sequence analysis using profile hidden Markov models"
-HOMEPAGE="http://hmmer.janelia.org/"
-SRC_URI="ftp://selab.janelia.org/pub/software/hmmer3/${PV}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-IUSE="+cpu_flags_x86_sse mpi +threads gsl static-libs"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
-
-DEPEND="
-	mpi? ( virtual/mpi )
-	gsl? ( >=sci-libs/gsl-1.12 )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	epatch \
-		"${FILESDIR}"/${P}-fix_tests.patch \
-		"${FILESDIR}"/${P}-perl-5.16-2.patch
-}
-
-src_configure() {
-	econf \
-		$(use_enable cpu_flags_x86_sse sse) \
-		$(use_enable mpi) \
-		$(use_enable threads) \
-		$(use_with gsl)
-}
-
-src_install() {
-	default
-
-	use static-libs && dolib.a src/libhmmer.a easel/libeasel.a
-
-	insinto /usr/share/${PN}
-	doins -r tutorial
-	dodoc Userguide.pdf
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-biology/hmmer/, sci-biology/hmmer/files/
@ 2022-07-07 19:58 David Seifert
  0 siblings, 0 replies; 4+ messages in thread
From: David Seifert @ 2022-07-07 19:58 UTC (permalink / raw
  To: gentoo-commits

commit:     d31ff028511de2e2cc29e125cae3a6862aa6e2ec
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  7 19:56:56 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Jul  7 19:56:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d31ff028

sci-biology/hmmer: update EAPI 6 -> 8 (3.1_beta2)

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...l-path.patch => hmmer-3.1_beta2-makefile.patch} | 23 +++++++++++++++-
 ...-3.1_beta2.ebuild => hmmer-3.1_beta2-r1.ebuild} | 32 +++++++++++++---------
 2 files changed, 41 insertions(+), 14 deletions(-)

diff --git a/sci-biology/hmmer/files/hmmer-3.1_beta2-fix-header-install-path.patch b/sci-biology/hmmer/files/hmmer-3.1_beta2-makefile.patch
similarity index 85%
rename from sci-biology/hmmer/files/hmmer-3.1_beta2-fix-header-install-path.patch
rename to sci-biology/hmmer/files/hmmer-3.1_beta2-makefile.patch
index b9ff5b92b8f9..1c08d67e7bdd 100644
--- a/sci-biology/hmmer/files/hmmer-3.1_beta2-fix-header-install-path.patch
+++ b/sci-biology/hmmer/files/hmmer-3.1_beta2-makefile.patch
@@ -1,4 +1,5 @@
-Install headers into 'hmmer3' subdir and not into global includedir.
+* Install headers into 'hmmer3' subdir and not into global includedir
+* Respect AR
 
 --- a/easel/Makefile.in
 +++ b/easel/Makefile.in
@@ -17,6 +18,26 @@ Install headers into 'hmmer3' subdir and not into global includedir.
  	${QUIET_SUBDIR0}miniapps      ${QUIET_SUBDIR1} install
  
  # "make uninstall" reverses the steps of "make install"
+--- a/libdivsufsort/Makefile.in
++++ b/libdivsufsort/Makefile.in
+@@ -16,7 +16,7 @@
+ CFLAGS    = @CFLAGS@ @PTHREAD_CFLAGS@ @PIC_FLAGS@
+ CPPFLAGS  = @CPPFLAGS@
+ MPILIBS   = @MPILIBS@
+-AR        = @AR@ rc
++AR        = @AR@
+ RANLIB    = @RANLIB@
+ INSTALL   = @INSTALL@
+ 
+@@ -43,7 +43,7 @@
+ 
+ 
+ libdivsufsort.a: $(OBJS)
+-	${QUIET_AR}${AR} libdivsufsort.a $(OBJS)
++	${QUIET_AR}${AR} rc libdivsufsort.a $(OBJS)
+ 	@${RANLIB} libdivsufsort.a
+ 	@chmod 644 libdivsufsort.a
+ 
 --- a/Makefile.in
 +++ b/Makefile.in
 @@ -143,6 +143,7 @@

diff --git a/sci-biology/hmmer/hmmer-3.1_beta2.ebuild b/sci-biology/hmmer/hmmer-3.1_beta2-r1.ebuild
similarity index 60%
rename from sci-biology/hmmer/hmmer-3.1_beta2.ebuild
rename to sci-biology/hmmer/hmmer-3.1_beta2-r1.ebuild
index b65fa0824f9b..666d21cd5532 100644
--- a/sci-biology/hmmer/hmmer-3.1_beta2.ebuild
+++ b/sci-biology/hmmer/hmmer-3.1_beta2-r1.ebuild
@@ -1,49 +1,55 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
+
+inherit toolchain-funcs
 
 MY_PV="${PV/_beta/b}"
 
 DESCRIPTION="Sequence analysis using profile hidden Markov models"
 HOMEPAGE="http://hmmer.org/"
 SRC_URI="http://eddylab.org/software/${PN}3/${MY_PV}/hmmer-${MY_PV}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="altivec cpu_flags_x86_sse gsl mpi test +threads"
-RESTRICT="!test? ( test )"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="cpu_flags_ppc_altivec cpu_flags_x86_sse gsl mpi test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
 	mpi? ( virtual/mpi )
 	gsl? ( sci-libs/gsl:= )"
-DEPEND="${RDEPEND}
-	test? ( dev-lang/perl )"
+DEPEND="${RDEPEND}"
+BDEPEND="test? ( dev-lang/perl )"
 
-S="${WORKDIR}/${PN}-${MY_PV}"
 PATCHES=(
-	"${FILESDIR}/${PN}-3.1_beta2-fix-perl-shebangs.patch"
-	"${FILESDIR}/${PN}-3.1_beta2-fix-header-install-path.patch"
+	"${FILESDIR}"/${PN}-3.1_beta2-fix-perl-shebangs.patch
+	"${FILESDIR}"/${PN}-3.1_beta2-makefile.patch
 )
 
 src_configure() {
-	# make build verbose, bug 429308
+	# make build verbose, bug #429308
 	export V=1
 
 	econf \
 		--disable-pic \
-		$(use_enable altivec vmx) \
+		--enable-threads \
+		$(use_enable cpu_flags_ppc_altivec vmx) \
 		$(use_enable cpu_flags_x86_sse sse) \
 		$(use_enable mpi) \
-		$(use_enable threads) \
 		$(use_with gsl)
 }
 
+src_compile() {
+	emake AR="$(tc-getAR)"
+}
+
 src_install() {
 	default
 	dodoc Userguide.pdf
 
-	insinto /usr/share/${PN}
+	insinto /usr/share/hmmer
 	doins -r tutorial
 }


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-biology/hmmer/, sci-biology/hmmer/files/
@ 2024-05-09  1:13 Sam James
  0 siblings, 0 replies; 4+ messages in thread
From: Sam James @ 2024-05-09  1:13 UTC (permalink / raw
  To: gentoo-commits

commit:     4919e107f95d762348df57ca9a8e75307d9222bc
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Wed May  8 09:30:27 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May  9 01:09:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4919e107

sci-biology/hmmer: Add missing include into configure

There are no autotools source files, so we can't just autoreconf the problem out of existence

[sam: Revbump.]

Closes: https://bugs.gentoo.org/900551
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36599
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../hmmer-2.3.2-fix-missing-include-in-configure.patch | 18 ++++++++++++++++++
 .../{hmmer-2.3.2-r5.ebuild => hmmer-2.3.2-r6.ebuild}   |  3 ++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/sci-biology/hmmer/files/hmmer-2.3.2-fix-missing-include-in-configure.patch b/sci-biology/hmmer/files/hmmer-2.3.2-fix-missing-include-in-configure.patch
new file mode 100644
index 000000000000..37683d425edb
--- /dev/null
+++ b/sci-biology/hmmer/files/hmmer-2.3.2-fix-missing-include-in-configure.patch
@@ -0,0 +1,18 @@
+--- a/squid/configure	2024-05-08 09:21:15.751063495 -0000
++++ b/squid/configure	2024-05-08 09:22:50.491502934 -0000
+@@ -2493,6 +2493,7 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
++#include <stdlib.h>
+ int
+ main ()
+ {
+@@ -3500,6 +3501,7 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <ctype.h>
++#include <stdlib.h>
+ #if ((' ' & 0x0FF) == 0x020)
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))

diff --git a/sci-biology/hmmer/hmmer-2.3.2-r5.ebuild b/sci-biology/hmmer/hmmer-2.3.2-r6.ebuild
similarity index 94%
rename from sci-biology/hmmer/hmmer-2.3.2-r5.ebuild
rename to sci-biology/hmmer/hmmer-2.3.2-r6.ebuild
index b305820faff3..74a8a151b0c4 100644
--- a/sci-biology/hmmer/hmmer-2.3.2-r5.ebuild
+++ b/sci-biology/hmmer/hmmer-2.3.2-r6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -20,6 +20,7 @@ BDEPEND="test? ( dev-lang/perl )"
 PATCHES=(
 	"${FILESDIR}/${P}-fix-perl-shebangs.patch"
 	"${FILESDIR}/${P}-fix-build-system-destdir.patch"
+	"${FILESDIR}/${P}-fix-missing-include-in-configure.patch"
 )
 
 src_configure() {


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-09  1:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07 19:58 [gentoo-commits] repo/gentoo:master commit in: sci-biology/hmmer/, sci-biology/hmmer/files/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2024-05-09  1:13 Sam James
2017-02-06 21:27 David Seifert
2016-10-09 15:14 David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox