summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-07-07 21:57:12 +0200
committerDavid Seifert <soap@gentoo.org>2022-07-07 21:57:12 +0200
commit13297a735a8c0e36ab552d244f4935d21400d310 (patch)
tree5a3c9fbc37ef8e43fd5627404d44b6108e7ae070 /sci-biology
parentsci-biology/rnaview: update EAPI 6 -> 8 (diff)
downloadgentoo-13297a735a8c0e36ab552d244f4935d21400d310.tar.gz
gentoo-13297a735a8c0e36ab552d244f4935d21400d310.tar.bz2
gentoo-13297a735a8c0e36ab552d244f4935d21400d310.zip
sci-biology/t-coffee: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/t-coffee/files/t-coffee-11.00-makefile.patch19
-rw-r--r--sci-biology/t-coffee/t-coffee-11.00-r3.ebuild (renamed from sci-biology/t-coffee/t-coffee-11.00-r2.ebuild)27
2 files changed, 29 insertions, 17 deletions
diff --git a/sci-biology/t-coffee/files/t-coffee-11.00-makefile.patch b/sci-biology/t-coffee/files/t-coffee-11.00-makefile.patch
new file mode 100644
index 000000000000..b7a6d9e17a5e
--- /dev/null
+++ b/sci-biology/t-coffee/files/t-coffee-11.00-makefile.patch
@@ -0,0 +1,19 @@
+--- a/t_coffee_source/makefile
++++ b/t_coffee_source/makefile
+@@ -1,14 +1,12 @@
+-CC=g++
+-CFLAGS=-O3 -Wno-write-strings
+ SOURCES := $(shell find . -type f -name *.c)
+ OBJECTS := $(SOURCES:.c=.o)
+ DEPS := $(OBJECTS:.o=.deps)
+
+ t_coffee: $(OBJECTS)
+- @echo " Linking..."; $(CC) $^ -o t_coffee -lm
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o t_coffee -lm $(LIBS)
+
+ %.o: %.c
+- @echo " CC $<"; $(CC) $(CFLAGS) -I. -MD -MF $(@:.o=.deps) -c -o $@ $<
++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -I. -MD -MF $(@:.o=.deps) -c -o $@ $<
+
+ -include $(DEPS)
+
diff --git a/sci-biology/t-coffee/t-coffee-11.00-r2.ebuild b/sci-biology/t-coffee/t-coffee-11.00-r3.ebuild
index df1859afb208..0064cc319f47 100644
--- a/sci-biology/t-coffee/t-coffee-11.00-r2.ebuild
+++ b/sci-biology/t-coffee/t-coffee-11.00-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
MY_HASH="4466924"
MY_PV="${PV}.${MY_HASH}"
@@ -12,6 +12,7 @@ MY_P="${PN^^}_distribution_Version_${MY_PV}"
DESCRIPTION="A multiple sequence alignment package"
HOMEPAGE="http://www.tcoffee.org/Projects_home_page/t_coffee_home_page.html"
SRC_URI="http://www.tcoffee.org/Packages/Beta/Latest/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
@@ -20,35 +21,27 @@ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
sci-biology/clustalw
sci-chemistry/tm-align"
-DEPEND=""
-S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${P}-mayhem.patch
"${FILESDIR}"/${P}-set_proper_dir_permissions.patch
"${FILESDIR}"/${P}-cxx11.patch
"${FILESDIR}"/${P}-gcc7.patch
+ "${FILESDIR}"/${P}-makefile.patch
)
-src_prepare() {
- default
- sed \
- -e '/@/s:.*;:\t:g' \
- -e '/Linking/s:$(CC):$(CC) $(CFLAGS) $(LDFLAGS):g' \
- -i t_coffee_source/makefile || die
+src_configure() {
+ tc-export CXX
+ append-cxxflags -Wno-write-strings -Wno-unused-result
}
src_compile() {
- emake \
- V=1 \
- CC="$(tc-getCXX)" \
- CFLAGS="${CXXFLAGS} -Wno-write-strings -Wno-unused-result" \
- -C t_coffee_source t_coffee
+ emake -C t_coffee_source t_coffee
}
src_install() {
dobin t_coffee_source/t_coffee
- insinto /usr/share/${PN}
+ insinto /usr/share/t-coffee
doins -r example
}