summaryrefslogtreecommitdiff
path: root/sci-biology/dialign2
diff options
context:
space:
mode:
Diffstat (limited to 'sci-biology/dialign2')
-rw-r--r--sci-biology/dialign2/Manifest3
-rw-r--r--sci-biology/dialign2/dialign2-2.2.1.ebuild29
-rw-r--r--sci-biology/dialign2/files/dialign2-2.2.1-fix-build-system.patch46
3 files changed, 64 insertions, 14 deletions
diff --git a/sci-biology/dialign2/Manifest b/sci-biology/dialign2/Manifest
index ae948999dfa1..4b256f8e8838 100644
--- a/sci-biology/dialign2/Manifest
+++ b/sci-biology/dialign2/Manifest
@@ -1,3 +1,4 @@
+AUX dialign2-2.2.1-fix-build-system.patch 819 BLAKE2B c639532a8bc95744c91f07f0e672255110b31e2964bb8bfbacaa6b401dcee6a10e29199d9a19614f690a610109c2a5f0ab785b66c144373ceb4724112182cab2 SHA512 8a85911d1743c186f3dea402333e502cfd4f7807065277a2657d790ab9cf1c8d535fbb25abf994f83cdab9849d4ec203d8db8198cf10fa91996d61b63d98f807
DIST dialign-2.2.1-src.tar.gz 209015 BLAKE2B daf903b735e164879a8ceb998ca5ea0c5243927d9b88b4041633af06da7d1f608d58933ee098393e99093b7d11587a59277d9d0927214df0341a8a623b0d5608 SHA512 eb51fbc8d81e384ac19e9cc957be233287a1d81a7f020d77ab16ee6943382bd4e81099c0c9028fcff130def62cdf19de59e9a9c08ea4cb67b9d8f1939eb3bc45
-EBUILD dialign2-2.2.1.ebuild 756 BLAKE2B 32e2636c7df60a877c1c1f84f9ec83d41f8a15d293b5a91808790b613ae5b0be4b09c562b4ed4be47cc5839a79259b05af66abc3056fc519d597b29e0e56db95 SHA512 ead9440fc5b4bbbed8ca6b6dd39ac57dfe8da4d2556c864ecddaf2b2f94589c95fd5fe82fc6ce45cab11eb8a197324b5cc89d38b0ca2c4f10741c3639799bbc3
+EBUILD dialign2-2.2.1.ebuild 836 BLAKE2B abb98cbbfcfe09ead711558bb07b41dcd79aa706793d1aadff9eb258daac8bd42ccbef2fbb74602b0e71bc99aa863a749b0239d63c23edc78982116e4febcf0e SHA512 6714a835544683e1b135ee65aa0728e1f2943349358b4d1505c583f1beba3b4210f3fdec01625ef8bf7a92605274f47233e7ce630cd9a2996e77a098d1990e51
MISC metadata.xml 267 BLAKE2B 7cf386952842945148119de3263231db4d1046d5f54811f7e303ed8ec4d27cbc1960b99c92daf6f32e5b981c2fb9f50ec666be6193865d6e18541b7427a152a9 SHA512 91ab266d9ab24401bc0fec759c5b6cfcf44a3c5669fc31c7301d79770839bb5dfa0e155d949392ef06176b4a0b2c32b91b1b54b0027f972db61f0a5e54644403
diff --git a/sci-biology/dialign2/dialign2-2.2.1.ebuild b/sci-biology/dialign2/dialign2-2.2.1.ebuild
index 13ce733d8a79..db310e3fe8d3 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 000000000000..45365c56e3a4
--- /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)