diff options
Diffstat (limited to 'sci-chemistry/suitename')
4 files changed, 77 insertions, 14 deletions
diff --git a/sci-chemistry/suitename/Manifest b/sci-chemistry/suitename/Manifest index b56c5a057c2e..016fd00ac953 100644 --- a/sci-chemistry/suitename/Manifest +++ b/sci-chemistry/suitename/Manifest @@ -1,3 +1,5 @@ +AUX suitename-0.3.070628-Wimplicit-function-declaration.patch 806 BLAKE2B a27bf0a9c1b650c51df72ee8135ddb63c9a2f10626349fd5235696590552b4f11770b8f7c10085bd1c9759029ae3fa67c556dedbfad71efbf33857a0429845f2 SHA512 ceb59844aefa50c2d4f4be605e93e01d6349def97bcb7d69768d38d23b86f1c002412e78f86b5cdf2edd17e2787e50ad05c8e04efa2a3ca84ec239f02011cd28 +AUX suitename-0.3.070628-makefile.patch 718 BLAKE2B 099d1628ca9207f04936a48a89d99303ed948e0778e32e0f89ad462136c5b37d13ed6c9e97bb0ecf91f03ebcd44477b85466872b26117815555f17f52a3acd46 SHA512 c659afd83584a02995559e1452aa7c7e3aa2db439283aa0af10e07451bf44843a5884add46d30076c387d37bd117656d6f6b3dfa1d89c52013ea29676873e1d3 DIST suitename.0.3.070628.src.tgz 29914 BLAKE2B 9633ca34c882dccb285aa98e3d9eee3663b15cffc649ec227ca78758511e5a9d3a3716c77eabf18825e3793af6d115db2ab4b0cd672d8af26eeb294340f525c8 SHA512 27811e2511da760c3c35d0a44aa798a35610a0e80a72d8aa58b78cb780156508f96e1890f558b1aa43bc3469d433352b29e53dca79f3a876ae2b7073f8e73088 -EBUILD suitename-0.3.070628.ebuild 726 BLAKE2B ab5cc3123c164466949a49ae93935e9909329edc592eec3ee824dea0cd1089f86662574cbe303f19ee685a4db5737c57f88b8f354d84b6dda26a630d98289097 SHA512 508b64119cf3c2ae72e5e321d7364401c33939490595bb2febae866df6ce2a00d506d78425d4de644fbe49191dc9163283e60835dd1ccb3bc428c9b9d1f4f079 +EBUILD suitename-0.3.070628.ebuild 710 BLAKE2B dc0e238a485a5b3585d01e5c326bf02ebbd65be71ba9b4c2f4c898d992a5eab3bc4591dfc3dd85d883e884c815d6e1fe7fcec9947ba437046d29794c13317e9d SHA512 b8aa083a08c1230618da91a61de2ae6c1a149d77e4608384558f1a0bf660f182386a164009c3067102189b9e455146707302a2733045ae13a463de6f3723948d MISC metadata.xml 1118 BLAKE2B f10c14e983382b489ea47eec41a17e39df81660cc56ea001ddfc9b6c67f8e96f65f52cb5e8c24d5d5211dfbf5fa17293f3dac1d2924a77e3b517d1b3796f7892 SHA512 7b2b6baa9bbc3e4ff3e2b2c0ba15dce0af04b06133c96872bbbb3626566a025d1b7d5472fc159e879e7be0cf50b5c27ebbcbd8def5cb182fc3654b893d88f2f2 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 new file mode 100644 index 000000000000..762715abdd46 --- /dev/null +++ b/sci-chemistry/suitename/files/suitename-0.3.070628-Wimplicit-function-declaration.patch @@ -0,0 +1,33 @@ +--- a/suitename.c ++++ b/suitename.c +@@ -25,7 +25,7 @@ + /*0.2.070628 triage reports zeta-1, epsilon-1, delta-1,... Ltriage codes */ + + /****main()*******************************************************************/ +-main(int argc, char** argv) ++int main(int argc, char** argv) + { + int LOK=1,ibin=0,jclst=0; + char sour[32]; +--- a/suiteninit.c ++++ b/suiteninit.c +@@ -9,6 +9,8 @@ + #include "suiteninpt.h" + #include "suitenout.h" + ++#include <ctype.h> ++ + /****initializations()********************************************************/ + int initializations(void) + { +--- a/suitenutil.c ++++ b/suitenutil.c +@@ -6,6 +6,8 @@ + + #include "suiteninit.h" + ++#include <ctype.h> ++ + /****vector7ab()**************************************************************/ + void vector7ab(float* atob, float* a, float* b) + { diff --git a/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch b/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch new file mode 100644 index 000000000000..b4766d4238d4 --- /dev/null +++ b/sci-chemistry/suitename/files/suitename-0.3.070628-makefile.patch @@ -0,0 +1,29 @@ +--- a/Makefile.linux ++++ b/Makefile.linux +@@ -1,24 +1,14 @@ + # suitename + +-ifeq ($(MAKECMDGOALS),debug) +-CFLAGS = -g +-else +-CFLAGS = +-endif +- +-LIBS = -lm ++LDLIBS = -lm + + # --------------------------------------------------------------------- + +-OBJS = suitename.o suitenscrt.o suiteninit.o suiteninpt.o suitenout.o suitenutil.o ++OBJS = suitenscrt.o suiteninit.o suiteninpt.o suitenout.o suitenutil.o + + # --------------------------------------------------------------------- + HEADERS = suitename.h suitenscrt.h suitenutil.h suiteninit.h suiteninpt.h suitenout.h + suitename: $(OBJS) +- cc -o suitename $(CFLAGS) $(OBJS) $(LIBS) +- +-debug: $(OBJS) +- cc -o suitename $(CFLAGS) $(OBJS) $(LIBS) + + clean: + rm -f *.o diff --git a/sci-chemistry/suitename/suitename-0.3.070628.ebuild b/sci-chemistry/suitename/suitename-0.3.070628.ebuild index 8441770df5ca..2243ccf61e55 100644 --- a/sci-chemistry/suitename/suitename-0.3.070628.ebuild +++ b/sci-chemistry/suitename/suitename-0.3.070628.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=4 +EAPI=7 inherit toolchain-funcs @@ -11,26 +11,25 @@ DESCRIPTION="The ROC RNA Ontology nomenclature and conformer-list development" HOMEPAGE="http://kinemage.biochem.duke.edu/software/suitename.php" SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/${PN}/${MY_P}.src.tgz" +LICENSE="richardson" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -LICENSE="richardson" -IUSE="" -S="${WORKDIR}"/${MY_P} +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${P}-makefile.patch + "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch +) -src_prepare() { +src_configure() { tc-export CC - cp Makefile.linux Makefile || die - sed \ - -e 's:cc:${CC}:g' \ - -e "s:-o:${LDFLAGS} -o:g" \ - -i Makefile || die } src_compile() { - emake CFLAGS="${CFLAGS}" + emake -f Makefile.linux } src_install() { - dobin ${PN} + dobin suitename } |