public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-biology/dialign2/files/, sci-biology/dialign2/
@ 2017-12-24 21:23 David Seifert
  0 siblings, 0 replies; only message in thread
From: David Seifert @ 2017-12-24 21:23 UTC (permalink / raw
  To: gentoo-commits

commit:     94b001b50c3cdcf0a1b083e0916f8d381f9522ac
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 24 21:22:37 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Dec 24 21:23:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94b001b5

sci-biology/dialign2: Port to EAPI 6

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sci-biology/dialign2/dialign2-2.2.1.ebuild         | 29 ++++++++------
 .../files/dialign2-2.2.1-fix-build-system.patch    | 46 ++++++++++++++++++++++
 2 files changed, 62 insertions(+), 13 deletions(-)

diff --git a/sci-biology/dialign2/dialign2-2.2.1.ebuild b/sci-biology/dialign2/dialign2-2.2.1.ebuild
index 13ce733d8a7..db310e3fe8d 100644
--- a/sci-biology/dialign2/dialign2-2.2.1.ebuild
+++ b/sci-biology/dialign2/dialign2-2.2.1.ebuild
@@ -1,34 +1,37 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Multiple sequence alignment"
 HOMEPAGE="http://bibiserv.techfak.uni-bielefeld.de/dialign"
-SRC_URI="http://bibiserv.techfak.uni-bielefeld.de/applications/dialign/resources/downloads/dialign-2.2.1-src.tar.gz"
+SRC_URI="http://bibiserv.techfak.uni-bielefeld.de/applications/dialign/resources/downloads/dialign-${PV}-src.tar.gz"
 
-SLOT="0"
 LICENSE="LGPL-2.1"
+SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
 
-S="${WORKDIR}"/dialign_package
+S=${WORKDIR}/dialign_package
+PATCHES=( "${FILESDIR}"/${PN}-2.2.1-fix-build-system.patch )
+
+src_configure() {
+	tc-export CC
+	append-cppflags -I. -DCONS
+}
 
 src_compile() {
-	emake -C src \
-		CC="$(tc-getCC)" \
-		CFLAGS="${CFLAGS} -I. -DCONS -c"
+	emake -C src
 }
 
 src_install() {
 	dobin src/${PN}-2
 	insinto /usr/share/${PN}
-	doins dialign2_dir/*
+	doins -r dialign2_dir/.
 
-	cat >> "${T}"/80${PN} <<- EOF
-	DIALIGN2_DIR="${EPREFIX}/usr/share/${PN}"
+	cat >> "${T}"/80${PN} <<- EOF || die
+		DIALIGN2_DIR="${EPREFIX}/usr/share/${PN}"
 	EOF
 	doenvd "${T}"/80${PN}
 }

diff --git a/sci-biology/dialign2/files/dialign2-2.2.1-fix-build-system.patch b/sci-biology/dialign2/files/dialign2-2.2.1-fix-build-system.patch
new file mode 100644
index 00000000000..45365c56e3a
--- /dev/null
+++ b/sci-biology/dialign2/files/dialign2-2.2.1-fix-build-system.patch
@@ -0,0 +1,46 @@
+--- a/src/makefile
++++ b/src/makefile
+@@ -10,8 +10,6 @@
+     ###############################
+ 
+ 
+-CC = gcc
+-CFLAGS =  -c -O -I$ -DCONS
+ #CFLAGS =  -g -c -I$ -DCONS
+ LIBS = -lm
+ #
+@@ -23,33 +21,4 @@
+ 
+ #
+ dialign2-2: $(OBJS)  
+-	$(CC) $(OBJS) $(LIBS) -o dialign2-2
+-#	$(CC) -g $(OBJS) $(LIBS) -o dialign2-2_db
+-#
+-#
+-# Subroutines
+-#
+-
+-dialign.o: dialign.c
+-	$(CC) $(CFLAGS) dialign.c
+-functions.o: functions.c 
+-	$(CC) $(CFLAGS) functions.c
+-input.o: input.c
+-	$(CC) $(CFLAGS) input.c
+-frag_chain.o: frag_chain.c
+-	$(CC) $(CFLAGS) frag_chain.c
+-para.o: para.c
+-	$(CC) $(CFLAGS) para.c
+-output.o: output.c
+-	$(CC) $(CFLAGS) output.c
+-wgt.o: wgt.c
+-	$(CC) $(CFLAGS) wgt.c
+-regex.o: regex.c
+-	$(CC) $(CFLAGS) regex.c
+-anchor.o: anchor.c
+-	$(CC) $(CFLAGS) anchor.c
+-
+-#
+-
+-
+-
++	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)


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

only message in thread, other threads:[~2017-12-25  0:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-24 21:23 [gentoo-commits] repo/gentoo:master commit in: sci-biology/dialign2/files/, sci-biology/dialign2/ David Seifert

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