public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:fixing commit in: sci-biology/twinscan/
@ 2013-06-16 20:19 Justin Lecher
  0 siblings, 0 replies; only message in thread
From: Justin Lecher @ 2013-06-16 20:19 UTC (permalink / raw
  To: gentoo-commits

commit:     c2ac84939cff29d46ec7657f1f55f9c37c31abfc
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 20:18:33 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 20:18:33 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=c2ac8493

sci-biology/twinscan: Bump to EAPI=5 and fix license

Package-Manager: portage-2.2.0_alpha180

---
 sci-biology/twinscan/ChangeLog             |  6 +++++-
 sci-biology/twinscan/metadata.xml          | 10 +++++-----
 sci-biology/twinscan/twinscan-4.1.2.ebuild | 30 ++++++++++++++++++++----------
 3 files changed, 30 insertions(+), 16 deletions(-)

diff --git a/sci-biology/twinscan/ChangeLog b/sci-biology/twinscan/ChangeLog
index 3914a60..fedf86e 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/metadata.xml b/sci-biology/twinscan/metadata.xml
index 3302123..fc7c769 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 96b1a04..516aec8 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*
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-16 20:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-16 20:19 [gentoo-commits] proj/sci:fixing commit in: sci-biology/twinscan/ Justin Lecher

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