1 |
commit: edf208c731f127baeda79fecafe9834628d81c2c |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 20:16:25 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 20:16:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edf208c7 |
7 |
|
8 |
sci-chemistry/suitename: Port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/742020 |
11 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
...0.3.070628-Wimplicit-function-declaration.patch | 33 ++++++++++++++++++++++ |
15 |
.../files/suitename-0.3.070628-makefile.patch | 29 +++++++++++++++++++ |
16 |
.../suitename/suitename-0.3.070628.ebuild | 25 ++++++++-------- |
17 |
3 files changed, 74 insertions(+), 13 deletions(-) |
18 |
|
19 |
diff --git a/sci-chemistry/suitename/files/suitename-0.3.070628-Wimplicit-function-declaration.patch b/sci-chemistry/suitename/files/suitename-0.3.070628-Wimplicit-function-declaration.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..762715abdd4 |
22 |
--- /dev/null |
23 |
+++ b/sci-chemistry/suitename/files/suitename-0.3.070628-Wimplicit-function-declaration.patch |
24 |
@@ -0,0 +1,33 @@ |
25 |
+--- a/suitename.c |
26 |
++++ b/suitename.c |
27 |
+@@ -25,7 +25,7 @@ |
28 |
+ /*0.2.070628 triage reports zeta-1, epsilon-1, delta-1,... Ltriage codes */ |
29 |
+ |
30 |
+ /****main()*******************************************************************/ |
31 |
+-main(int argc, char** argv) |
32 |
++int main(int argc, char** argv) |
33 |
+ { |
34 |
+ int LOK=1,ibin=0,jclst=0; |
35 |
+ char sour[32]; |
36 |
+--- a/suiteninit.c |
37 |
++++ b/suiteninit.c |
38 |
+@@ -9,6 +9,8 @@ |
39 |
+ #include "suiteninpt.h" |
40 |
+ #include "suitenout.h" |
41 |
+ |
42 |
++#include <ctype.h> |
43 |
++ |
44 |
+ /****initializations()********************************************************/ |
45 |
+ int initializations(void) |
46 |
+ { |
47 |
+--- a/suitenutil.c |
48 |
++++ b/suitenutil.c |
49 |
+@@ -6,6 +6,8 @@ |
50 |
+ |
51 |
+ #include "suiteninit.h" |
52 |
+ |
53 |
++#include <ctype.h> |
54 |
++ |
55 |
+ /****vector7ab()**************************************************************/ |
56 |
+ void vector7ab(float* atob, float* a, float* b) |
57 |
+ { |
58 |
|
59 |
diff --git a/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch b/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch |
60 |
new file mode 100644 |
61 |
index 00000000000..b4766d4238d |
62 |
--- /dev/null |
63 |
+++ b/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch |
64 |
@@ -0,0 +1,29 @@ |
65 |
+--- a/Makefile.linux |
66 |
++++ b/Makefile.linux |
67 |
+@@ -1,24 +1,14 @@ |
68 |
+ # suitename |
69 |
+ |
70 |
+-ifeq ($(MAKECMDGOALS),debug) |
71 |
+-CFLAGS = -g |
72 |
+-else |
73 |
+-CFLAGS = |
74 |
+-endif |
75 |
+- |
76 |
+-LIBS = -lm |
77 |
++LDLIBS = -lm |
78 |
+ |
79 |
+ # --------------------------------------------------------------------- |
80 |
+ |
81 |
+-OBJS = suitename.o suitenscrt.o suiteninit.o suiteninpt.o suitenout.o suitenutil.o |
82 |
++OBJS = suitenscrt.o suiteninit.o suiteninpt.o suitenout.o suitenutil.o |
83 |
+ |
84 |
+ # --------------------------------------------------------------------- |
85 |
+ HEADERS = suitename.h suitenscrt.h suitenutil.h suiteninit.h suiteninpt.h suitenout.h |
86 |
+ suitename: $(OBJS) |
87 |
+- cc -o suitename $(CFLAGS) $(OBJS) $(LIBS) |
88 |
+- |
89 |
+-debug: $(OBJS) |
90 |
+- cc -o suitename $(CFLAGS) $(OBJS) $(LIBS) |
91 |
+ |
92 |
+ clean: |
93 |
+ rm -f *.o |
94 |
|
95 |
diff --git a/sci-chemistry/suitename/suitename-0.3.070628.ebuild b/sci-chemistry/suitename/suitename-0.3.070628.ebuild |
96 |
index 8441770df5c..2243ccf61e5 100644 |
97 |
--- a/sci-chemistry/suitename/suitename-0.3.070628.ebuild |
98 |
+++ b/sci-chemistry/suitename/suitename-0.3.070628.ebuild |
99 |
@@ -1,7 +1,7 @@ |
100 |
-# Copyright 1999-2012 Gentoo Foundation |
101 |
+# Copyright 1999-2020 Gentoo Authors |
102 |
# Distributed under the terms of the GNU General Public License v2 |
103 |
|
104 |
-EAPI=4 |
105 |
+EAPI=7 |
106 |
|
107 |
inherit toolchain-funcs |
108 |
|
109 |
@@ -11,26 +11,25 @@ DESCRIPTION="The ROC RNA Ontology nomenclature and conformer-list development" |
110 |
HOMEPAGE="http://kinemage.biochem.duke.edu/software/suitename.php" |
111 |
SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/${PN}/${MY_P}.src.tgz" |
112 |
|
113 |
+LICENSE="richardson" |
114 |
SLOT="0" |
115 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
116 |
-LICENSE="richardson" |
117 |
-IUSE="" |
118 |
|
119 |
-S="${WORKDIR}"/${MY_P} |
120 |
+S="${WORKDIR}/${MY_P}" |
121 |
+ |
122 |
+PATCHES=( |
123 |
+ "${FILESDIR}"/${P}-makefile.patch |
124 |
+ "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch |
125 |
+) |
126 |
|
127 |
-src_prepare() { |
128 |
+src_configure() { |
129 |
tc-export CC |
130 |
- cp Makefile.linux Makefile || die |
131 |
- sed \ |
132 |
- -e 's:cc:${CC}:g' \ |
133 |
- -e "s:-o:${LDFLAGS} -o:g" \ |
134 |
- -i Makefile || die |
135 |
} |
136 |
|
137 |
src_compile() { |
138 |
- emake CFLAGS="${CFLAGS}" |
139 |
+ emake -f Makefile.linux |
140 |
} |
141 |
|
142 |
src_install() { |
143 |
- dobin ${PN} |
144 |
+ dobin suitename |
145 |
} |