commit: 668d616aed66a78485aa7850fe23fdb9c23c6071
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 27 21:40:01 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Oct 27 21:40:01 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=668d616a
sci-biology/unafold: Port to EAPI 7
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>
.../unafold/files/unafold-3.8-doc-version.patch | 11 +++++++++++
sci-biology/unafold/unafold-3.8-r1.ebuild | 19 +++++++++++--------
2 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/sci-biology/unafold/files/unafold-3.8-doc-version.patch
b/sci-biology/unafold/files/unafold-3.8-doc-version.patch
new file mode 100644
index 00000000000..b15858fd69e
--- /dev/null
+++ b/sci-biology/unafold/files/unafold-3.8-doc-version.patch
@@ -0,0 +1,11 @@
+--- a/tests/hybrid.tml
++++ b/tests/hybrid.tml
+@@ -10,7 +10,7 @@
+ </test>
+ <test command="hybrid --version" return="0">
+ <stdin></stdin>
+- <stdout>hybrid (UNAFold) 3.7
++ <stdout>hybrid (UNAFold) 3.8
+ By Nicholas R. Markham and Michael Zuker
+ Copyright (C) 2006
+ Rensselaer Polytechnic Institute
diff --git a/sci-biology/unafold/unafold-3.8-r1.ebuild
b/sci-biology/unafold/unafold-3.8-r1.ebuild
index e4fff4e8cab..6aec75f0336 100644
--- a/sci-biology/unafold/unafold-3.8-r1.ebuild
+++ b/sci-biology/unafold/unafold-3.8-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
inherit flag-o-matic
@@ -14,14 +14,17 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="custom-cflags"
-DEPEND=""
-RDEPEND="${DEPEND}"
+RDEPEND="
+ media-libs/freeglut
+ media-libs/gd
+ virtual/opengl"
+DEPEND="${RDEPEND}"
-src_prepare() {
+PATCHES=( "${FILESDIR}"/${P}-doc-version.patch )
+
+src_configure() {
# recommended in README
use custom-cflags || append-flags -O3
- sed \
- -e 's:hybrid (UNAFold) 3.7:hybrid (UNAFold) 3.8:g' \
- -i tests/hybrid.tml || die
+ default
}