sci-biology/stride: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sat, 17 Aug 2019 11:19:19 +0000 (13:19 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 17 Aug 2019 11:19:19 +0000 (13:19 +0200)
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
sci-biology/stride/files/stride-20011129-fix-buildsystem.patch [new file with mode: 0644]
sci-biology/stride/files/stride-LDFLAGS.patch [deleted file]
sci-biology/stride/stride-20011129-r1.ebuild

diff --git a/sci-biology/stride/files/stride-20011129-fix-buildsystem.patch b/sci-biology/stride/files/stride-20011129-fix-buildsystem.patch
new file mode 100644 (file)
index 0000000..ec4415e
--- /dev/null
@@ -0,0 +1,21 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,3 @@
+-CC = gcc -g
+ FLAGS = -lm  -o
+ SOURCE = stride.c splitstr.c rdpdb.c initchn.c geometry.c thr2one.c one2thr.c filename.c tolostr.c strutil.c place_h.c hbenergy.c memory.c helix.c sheet.c rdmap.c phipsi.c command.c molscr.c die.c hydrbond.c mergepat.c fillasn.c escape.c p_jrnl.c p_rem.c p_atom.c p_helix.c p_sheet.c p_turn.c p_ssbond.c p_expdta.c p_model.c p_compnd.c report.c nsc.c area.c ssbond.c chk_res.c chk_atom.c turn.c pdbasn.c dssp.c outseq.c chkchain.c elem.c measure.c asngener.c p_endmdl.c stred.c contact_order.c contact_map.c
+@@ -7,12 +6,9 @@
+ BINDIR = .
+-.c.o: 
+-      $(CC) -c $< -o $@
+-
+ stride : $(OBJECT)
+-      $(CC) $(OBJECT) $(FLAGS)  $(BINDIR)/stride
++      $(CC) $(LDFLAGS) $(OBJECT) $(FLAGS) $(BINDIR)/stride
+ $(OBJECT) : stride.h protot.h
diff --git a/sci-biology/stride/files/stride-LDFLAGS.patch b/sci-biology/stride/files/stride-LDFLAGS.patch
deleted file mode 100644 (file)
index 1761b12..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile   2009-10-27 21:18:45.000000000 +0100
-+++ Makefile.new       2009-10-27 21:19:00.000000000 +0100
-@@ -12,7 +12,7 @@
- stride : $(OBJECT)
--      $(CC) $(OBJECT) $(FLAGS)  $(BINDIR)/stride
-+      $(CC) $(LDFLAGS) $(OBJECT) $(FLAGS)  $(BINDIR)/stride
- $(OBJECT) : stride.h protot.h
index 77a19f3ea89826c92da82d8f09d743b6cc04ba71..678887de925e99da35400a7e0f59e9a3fe04f7a9 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="Protein secondary structure assignment from atomic coordinates"
 HOMEPAGE="http://webclu.bio.wzw.tum.de/stride/"
@@ -11,25 +11,21 @@ SRC_URI="
        ftp://ftp.ebi.ac.uk/pub/software/unix/${PN}/src/${PN}.tar.gz -> ${P}.tar.gz
        https://dev.gentoo.org/~jlec/distfiles/${PN}-20060723-update.patch.bz2"
 
-SLOT="0"
 LICENSE="STRIDE"
+SLOT="0"
 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~x86-macos"
-IUSE=""
-
-S="${WORKDIR}"
-
 RESTRICT="mirror bindist"
 
-src_prepare() {
+S="${WORKDIR}"
+PATCHES=(
        # this patch updates the source to the most recent
        # version which was kindly provided by the author
-       epatch \
-               "${DISTDIR}/${PN}-20060723-update.patch.bz2" \
-               "${FILESDIR}"/${PN}-LDFLAGS.patch
+       "${S}"/${PN}-20060723-update.patch
+       "${FILESDIR}"/${PN}-20011129-fix-buildsystem.patch
+)
 
-       # fix makefile
-       sed -e "/^CC/s|gcc -g|$(tc-getCC) ${CFLAGS}|" -i Makefile || \
-               die "Failed to fix Makefile"
+src_configure() {
+       tc-export CC
 }
 
 src_install() {