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

commit:     efcfc0c566bab9663adf112beb9f02051a02c91a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 25 20:00:12 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 20:10:09 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efcfc0c5

sci-biology/phyml: Modernise to EAPI 6

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../phyml/files/phyml-2.4.5-fix-build-system.patch | 67 ++++++++++++++++++++++
 ...phyml-2.4.5-r2.ebuild => phyml-2.4.5-r3.ebuild} | 17 +++---
 2 files changed, 74 insertions(+), 10 deletions(-)

diff --git a/sci-biology/phyml/files/phyml-2.4.5-fix-build-system.patch b/sci-biology/phyml/files/phyml-2.4.5-fix-build-system.patch
new file mode 100644
index 0000000000..9b1d9e03ca
--- /dev/null
+++ b/sci-biology/phyml/files/phyml-2.4.5-fix-build-system.patch
@@ -0,0 +1,67 @@
+Fix build system to honour user flags.
+
+--- a/Makefile
++++ b/Makefile
+@@ -1,10 +1,4 @@
+-hello !!!
+-
+-CC = gcc #cc
+-CFLAGS = -O4 -fomit-frame-pointer -Wall -static
+-# CFLAGS = -Wall
+-# CFLAGS = -g -Wall
+-# CFLAGS = -pg -Wall -fprofile-arcs -static
++CC ?= gcc
+ LIBS = -lm
+ 
+ PROG = PHYML
+@@ -23,39 +17,39 @@
+ 
+ 
+ $(EXEC) : $(OBJS)
+-	$(CC) -o $(EXEC) $(OBJS) $(LIBS) $(CFLAGS)
++	$(CC) $(CFLAGS) $(LDFLAGS) -o $(EXEC) $(OBJS) $(LIBS)
+ 
+ clean :
+ 	@rm *.o
+ ######################################################################################################
+ 
+ eigen.o : eigen.c eigen.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c eigen.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c eigen.c
+ 
+ simu.o : simu.c simu.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c simu.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c simu.c
+ 
+ lk.o : lk.c lk.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c lk.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c lk.c
+ 
+ utilities.o : utilities.c utilities.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c utilities.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c utilities.c
+ 
+ optimiz.o : optimiz.c optimiz.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c optimiz.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c optimiz.c
+ 
+ bionj.o : bionj.c bionj.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c bionj.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c bionj.c
+ 
+ main.o : main.c
+-	$(CC) $(CFLAGS) $(DFLAG) -c main.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c main.c
+ 
+ models.o : models.c models.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c models.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c models.c
+ 
+ free.o : free.c free.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c free.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c free.c
+ 
+ options.o : options.c options.h
+-	$(CC) $(CFLAGS) $(DFLAG) -c options.c
++	$(CC) $(CFLAGS) $(DFLAG) $(CPPFLAGS) -c options.c
+ 

diff --git a/sci-biology/phyml/phyml-2.4.5-r2.ebuild b/sci-biology/phyml/phyml-2.4.5-r3.ebuild
similarity index 65%
rename from sci-biology/phyml/phyml-2.4.5-r2.ebuild
rename to sci-biology/phyml/phyml-2.4.5-r3.ebuild
index 7d9815baa7..37f7aa478e 100644
--- a/sci-biology/phyml/phyml-2.4.5-r2.ebuild
+++ b/sci-biology/phyml/phyml-2.4.5-r3.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=2
+EAPI=6
 
 inherit toolchain-funcs
 
@@ -19,16 +19,13 @@ IUSE=""
 
 S=${WORKDIR}/${MY_P}
 
-src_prepare() {
-	sed -e 's/^hello !!!//' \
-		-e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' \
-		-i Makefile || die
-}
+PATCHES=( "${FILESDIR}"/${PN}-2.4.5-fix-build-system.patch )
 
-src_compile() {
-	emake -e CC="$(tc-getCC)" || die
+src_prepare() {
+	default
+	tc-export CC
 }
 
 src_install() {
-	dobin phyml || die
+	dobin phyml
 }


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

only message in thread, other threads:[~2017-02-25 20:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-25 20:10 [gentoo-commits] repo/gentoo:master commit in: sci-biology/phyml/files/, sci-biology/phyml/ David Seifert

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