aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-06-16 22:18:33 +0200
committerJustin Lecher <jlec@gentoo.org>2013-06-16 22:18:33 +0200
commitc2ac84939cff29d46ec7657f1f55f9c37c31abfc (patch)
tree5b7537c5370ae2a47e98c76c0577c588f8ff3106
parentsci-biology/ssaha2-bin: Version Bump; restrict license; add QA_PREBUILT for b... (diff)
downloadsci-c2ac84939cff29d46ec7657f1f55f9c37c31abfc.tar.gz
sci-c2ac84939cff29d46ec7657f1f55f9c37c31abfc.tar.bz2
sci-c2ac84939cff29d46ec7657f1f55f9c37c31abfc.zip
sci-biology/twinscan: Bump to EAPI=5 and fix license
Package-Manager: portage-2.2.0_alpha180
-rw-r--r--sci-biology/twinscan/ChangeLog6
-rw-r--r--sci-biology/twinscan/Manifest2
-rw-r--r--sci-biology/twinscan/metadata.xml10
-rw-r--r--sci-biology/twinscan/twinscan-4.1.2.ebuild30
4 files changed, 31 insertions, 17 deletions
diff --git a/sci-biology/twinscan/ChangeLog b/sci-biology/twinscan/ChangeLog
index 3914a6070..fedf86e90 100644
--- a/sci-biology/twinscan/ChangeLog
+++ b/sci-biology/twinscan/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for sci-biology/twinscan
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 16 Jun 2013; Justin Lecher <jlec@gentoo.org> twinscan-4.1.2.ebuild,
+ metadata.xml:
+ Bump to EAPI=5 and fix license
+
07 Mar 2011; Justin Lecher <jlec@gentoo.org> twinscan-4.1.2.ebuild:
Correct Slots for gtk 3 introduction to tree
diff --git a/sci-biology/twinscan/Manifest b/sci-biology/twinscan/Manifest
index e9fea6590..7e7f3adc1 100644
--- a/sci-biology/twinscan/Manifest
+++ b/sci-biology/twinscan/Manifest
@@ -1 +1 @@
-DIST iscan-4.1.2.tar_.gz 5894833 SHA256 30c7e980b2ccbba22a5e2d7ff0d7c1aaeb610cc1cec81432bb30e87f03f7e56a
+DIST twinscan-4.1.2.tar.gz 5894833 SHA256 30c7e980b2ccbba22a5e2d7ff0d7c1aaeb610cc1cec81432bb30e87f03f7e56a SHA512 d216f790f6d0f35a070575d1aa4b5e1866c00132168b381b9177b076b1b2a16f2ecd7a88aa443d7ba6b8f62c3ec2595ba33c4608a674e09d94e9f7dc6a181327 WHIRLPOOL e95df100f970c6cabf9b21a9a6651dcd249fccbfafc908a8766bf26ad5108c08b5de105c5142492bb7b0c13f39bd65836a92be9161cfbbb303147f925e775d99
diff --git a/sci-biology/twinscan/metadata.xml b/sci-biology/twinscan/metadata.xml
index 3302123e5..fc7c76942 100644
--- a/sci-biology/twinscan/metadata.xml
+++ b/sci-biology/twinscan/metadata.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer>
- <email>weaver@gentoo.org</email>
- <name>Andrey Kislyuk</name>
- </maintainer>
- <herd>sci-biology</herd>
+ <maintainer>
+ <email>weaver@gentoo.org</email>
+ <name>Andrey Kislyuk</name>
+ </maintainer>
+ <herd>sci-biology</herd>
</pkgmetadata>
diff --git a/sci-biology/twinscan/twinscan-4.1.2.ebuild b/sci-biology/twinscan/twinscan-4.1.2.ebuild
index 96b1a049c..516aec88c 100644
--- a/sci-biology/twinscan/twinscan-4.1.2.ebuild
+++ b/sci-biology/twinscan/twinscan-4.1.2.ebuild
@@ -1,14 +1,16 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=2
+EAPI=5
+
+inherit toolchain-funcs
DESCRIPTION="TwinScan, N-SCAN, and Pairagon: A gene structure prediction pipeline"
HOMEPAGE="http://mblab.wustl.edu/software/twinscan"
-SRC_URI="http://mblab.wustl.edu/software/download/iscan-${PV}.tar_.gz"
+SRC_URI="http://mblab.wustl.edu/software/download/iscan-${PV}.tar_.gz -> ${P}.tar.gz"
-LICENSE="as-is"
+LICENSE="all-rights-reserved"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~x86"
@@ -18,14 +20,21 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}/N-SCAN"
-src_unpack() {
- unpack ${A}
- tar -C "${WORKDIR}" -xf iscan-${PV}.tar_
-}
-
src_prepare() {
sed -i "1 a use lib '/usr/share/${PN}/lib/perl5';" "${S}"/bin/*.pl || die
- sed -i '/my $blast_param/ s/#//' "${S}/bin/runTwinscan2.pl"
+ sed -i '/my $blast_param/ s/#//' "${S}/bin/runTwinscan2.pl" || die
+ tc-export CC AR RANLIB
+
+ sed \
+ -e 's:ar :$(AR) :g' \
+ -e 's:ranlib :$(RANLIB) :g' \
+ -e 's: -o : $(LDFLAGS) -o :g' \
+ -i Makefile || die
+
+ sed \
+ -e "/^GLIB_CFLAGS/s:=.*:=$($(tc-getPKG_CONFIG) --cflags glib-2.0) -DHAS_GLIB:g" \
+ -e "/^GLIB_LFLAGS/s:=.*:=$($(tc-getPKG_CONFIG) --libs glib-2.0)-DHAS_GLIB:g" \
+ -i Makefile.include || die
}
src_install() {
@@ -35,5 +44,6 @@ src_install() {
doins -r "${S}/lib" || die
echo "TWINSCAN=/usr" > "${S}"/99${PN}
doenvd "${S}"/99${PN} || die
+ rm -rf examples/tmp
dodoc examples/* README*
}