summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-06-19 20:04:29 +0200
committerDavid Seifert <soap@gentoo.org>2022-06-19 20:04:29 +0200
commit1595eaf8eae9af8ac6e8af04e9925ae303b3b61f (patch)
treeb26214bf7b8e2adf6e28a49121f24093851abaf9 /sci-biology/prosite/prosite-2017.02-r1.ebuild
parentsci-biology/mafft: add 7.490 (diff)
downloadgentoo-1595eaf8eae9af8ac6e8af04e9925ae303b3b61f.tar.gz
gentoo-1595eaf8eae9af8ac6e8af04e9925ae303b3b61f.tar.bz2
gentoo-1595eaf8eae9af8ac6e8af04e9925ae303b3b61f.zip
sci-biology/prosite: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-biology/prosite/prosite-2017.02-r1.ebuild')
-rw-r--r--sci-biology/prosite/prosite-2017.02-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/sci-biology/prosite/prosite-2017.02-r1.ebuild b/sci-biology/prosite/prosite-2017.02-r1.ebuild
new file mode 100644
index 000000000000..a5efbed1626b
--- /dev/null
+++ b/sci-biology/prosite/prosite-2017.02-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A protein families and domains database"
+HOMEPAGE="https://prosite.expasy.org/"
+SRC_URI="ftp://ftp.expasy.org/databases/prosite/old_releases/prosite${PV//./_}.tar.bz2"
+S="${WORKDIR}"
+
+LICENSE="swiss-prot"
+SLOT="0"
+# Minimal build keeps only the indexed files (if applicable).
+# The non-indexed database is not installed.
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="emboss minimal"
+
+BDEPEND="emboss? ( sci-biology/emboss )"
+RDEPEND="${BDEPEND}"
+
+src_compile() {
+ if use emboss; then
+ mkdir PROSITE || die
+ einfo
+ einfo "Indexing PROSITE for usage with EMBOSS"
+ EMBOSS_DATA="." prosextract -auto -prositedir "${S}" || die "Indexing PROSITE failed"
+ einfo
+ fi
+}
+
+src_install() {
+ if ! use minimal; then
+ insinto /usr/share/${PN}
+ doins *.{doc,dat}
+ fi
+
+ if use emboss; then
+ insinto /usr/share/EMBOSS/data/PROSITE
+ doins -r PROSITE/.
+ fi
+}