1 |
commit: f261f34b716be67fe47b1c5c31f1743fbdc9048e |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 25 20:30:10 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 25 20:35:14 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f261f34b |
7 |
|
8 |
sci-biology/sim4: Modernise to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
.../files/sim4-20030921-fix-build-system.patch | 21 ++++++++++++++++ |
13 |
sci-biology/sim4/sim4-20030921-r2.ebuild | 29 ++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/sci-biology/sim4/files/sim4-20030921-fix-build-system.patch b/sci-biology/sim4/files/sim4-20030921-fix-build-system.patch |
17 |
new file mode 100644 |
18 |
index 0000000000..8fd50fe9cf |
19 |
--- /dev/null |
20 |
+++ b/sci-biology/sim4/files/sim4-20030921-fix-build-system.patch |
21 |
@@ -0,0 +1,21 @@ |
22 |
+Fix build system to honour user flags. |
23 |
+ |
24 |
+--- a/Makefile |
25 |
++++ b/Makefile |
26 |
+@@ -1,13 +1,11 @@ |
27 |
+- |
28 |
+ # For better performance, replace ``-O'' with whatever |
29 |
+ # the best optimization flag is for your computer. |
30 |
+ # For Sun's compilers under Solaris, ``-fast'' works well. |
31 |
+ # For gcc, ``-O2'' works well. |
32 |
+-CC=cc |
33 |
+-CFLAGS=-O |
34 |
+-LDLIBS=-lm |
35 |
++CC ?= gcc |
36 |
++LDLIBS = -lm |
37 |
+ |
38 |
+ sim4: |
39 |
+- $(CC) -o sim4 -I. $(CFLAGS) *.c $(LDLIBS) |
40 |
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o sim4 -I. *.c $(LDLIBS) |
41 |
+ clean: |
42 |
+ rm -f sim4 *.o |
43 |
|
44 |
diff --git a/sci-biology/sim4/sim4-20030921-r2.ebuild b/sci-biology/sim4/sim4-20030921-r2.ebuild |
45 |
new file mode 100644 |
46 |
index 0000000000..dcfe354d05 |
47 |
--- /dev/null |
48 |
+++ b/sci-biology/sim4/sim4-20030921-r2.ebuild |
49 |
@@ -0,0 +1,29 @@ |
50 |
+# Copyright 1999-2017 Gentoo Foundation |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+# $Id$ |
53 |
+ |
54 |
+EAPI=6 |
55 |
+ |
56 |
+inherit toolchain-funcs |
57 |
+ |
58 |
+DESCRIPTION="A program to align cDNA and genomic DNA" |
59 |
+HOMEPAGE="http://globin.cse.psu.edu/html/docs/sim4.html" |
60 |
+SRC_URI="http://globin.cse.psu.edu/ftp/dist/sim4/sim4.tar.gz" |
61 |
+ |
62 |
+LICENSE="GPL-2" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~ppc ~x86" |
65 |
+IUSE="" |
66 |
+ |
67 |
+S=${WORKDIR}/${PN}.2003-09-21 |
68 |
+ |
69 |
+PATCHES=( "${FILESDIR}"/${PN}-20030921-fix-build-system.patch ) |
70 |
+ |
71 |
+src_configure() { |
72 |
+ tc-export CC |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ dobin ${PN} |
77 |
+ einstalldocs |
78 |
+} |