Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/profphd/, sci-biology/profphd/files/
Date: Tue, 27 Oct 2020 21:40:41
Message-Id: 1603834810.0a8ba900d4d39a8f4d762fd9c04e470e3272b1d4.soap@gentoo
1 commit: 0a8ba900d4d39a8f4d762fd9c04e470e3272b1d4
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 27 21:40:10 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 27 21:40:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a8ba900
7
8 sci-biology/profphd: Port to EAPI 7
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.2
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 .../profphd/files/profphd-1.0.40-symlink.patch | 11 ++++++++
14 sci-biology/profphd/profphd-1.0.40.ebuild | 30 ++++++++++------------
15 2 files changed, 24 insertions(+), 17 deletions(-)
16
17 diff --git a/sci-biology/profphd/files/profphd-1.0.40-symlink.patch b/sci-biology/profphd/files/profphd-1.0.40-symlink.patch
18 new file mode 100644
19 index 00000000000..7733d55af4a
20 --- /dev/null
21 +++ b/sci-biology/profphd/files/profphd-1.0.40-symlink.patch
22 @@ -0,0 +1,11 @@
23 +--- a/src/prof/Makefile
24 ++++ b/src/prof/Makefile
25 +@@ -40,7 +40,7 @@
26 + ./. $(DESTDIR)$(prefix)/share/profphd/prof/.
27 + find $(DESTDIR)$(prefix)/share/profphd/prof/embl/phd.pl $(DESTDIR)$(prefix)/share/profphd/prof/scr/CONFprof.pl $(DESTDIR)$(prefix)/share/profphd/prof/prof $(DESTDIR)$(prefix)/share/profphd/prof/scr/lib/prof.pm \
28 + -type f -exec sed -i -e 's|__PREFIX__|$(prefix)|g;s|__VERSION__|$(VERSION)|;' {} \;
29 +- rm -rf $(DESTDIR)$(prefix)/bin/prof && mkdir -p $(DESTDIR)$(prefix)/bin && ln -s ../share/profphd/prof/prof $(DESTDIR)$(prefix)/bin/prof
30 ++ rm -rf $(DESTDIR)$(prefix)/bin/prof && mkdir -p $(DESTDIR)$(prefix)/bin && ln -s ../share/profphd/prof/prof $(DESTDIR)$(prefix)/bin/profphd
31 +
32 + install-neuralnet:
33 + mkdir -p $(DESTDIR)$(prefix)/share/profphd/prof/embl/para && rsync -aC \
34
35 diff --git a/sci-biology/profphd/profphd-1.0.40.ebuild b/sci-biology/profphd/profphd-1.0.40.ebuild
36 index 8e24cebeb5f..4f9a16a9fe9 100644
37 --- a/sci-biology/profphd/profphd-1.0.40.ebuild
38 +++ b/sci-biology/profphd/profphd-1.0.40.ebuild
39 @@ -1,37 +1,33 @@
40 -# Copyright 1999-2014 Gentoo Foundation
41 +# Copyright 1999-2020 Gentoo Authors
42 # Distributed under the terms of the GNU General Public License v2
43
44 -EAPI=5
45 -
46 -inherit eutils
47 +EAPI=7
48
49 DESCRIPTION="Secondary structure and solvent accessibility predictor"
50 HOMEPAGE="https://rostlab.org/owiki/index.php/PROFphd_-_Secondary_Structure,_Solvent_Accessibility_and_Transmembrane_Helices_Prediction"
51 SRC_URI="ftp://rostlab.org/profphd/${P}.tar.xz"
52
53 -SLOT="0"
54 LICENSE="GPL-2"
55 +SLOT="0"
56 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
57 -IUSE=""
58
59 DEPEND="dev-lang/perl"
60 -RDEPEND="${DEPEND}
61 +RDEPEND="
62 + ${DEPEND}
63 dev-perl/librg-utils-perl
64 sci-libs/profnet
65 - sci-libs/profphd-utils
66 -"
67 + sci-libs/profphd-utils"
68
69 -src_prepare() {
70 - sed \
71 - -e '/ln -s/s:prof$:profphd:g' \
72 - -i src/prof/Makefile || die
73 - epatch "${FILESDIR}"/${PN}-1.0.39-perl.patch
74 -}
75 +PATCHES=(
76 + "${FILESDIR}"/${PN}-1.0.39-perl.patch
77 + "${FILESDIR}"/${PN}-1.0.40-symlink.patch
78 +)
79
80 src_compile() {
81 - emake prefix="${EPREFIX}/usr"
82 + emake prefix="${EPREFIX}"/usr
83 }
84
85 src_install() {
86 - emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
87 + emake prefix="${EPREFIX}"/usr DESTDIR="${D}" install
88 + einstalldocs
89 }