From e3cf2c86fca1750343c1885311f857f185ee4f2d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 8 Sep 2019 01:07:24 +0100 Subject: gentoo resync : 08.09.2019 --- dev-libs/libf2c/Manifest | 10 ++-- .../libf2c/files/20051004-add-ofiles-dep.patch | 5 +- .../20090407-link-shared-libf2c-correctly.patch | 4 +- .../libf2c/files/libf2c-20110801-64bit-long.patch | 4 +- .../files/libf2c-20110801-format-security.patch | 4 +- .../files/libf2c-20130927-fix-buildsystem.patch | 65 ++++++++++++++++++++++ dev-libs/libf2c/libf2c-20130927-r1.ebuild | 55 ++++++++++++++++++ 7 files changed, 134 insertions(+), 13 deletions(-) create mode 100644 dev-libs/libf2c/files/libf2c-20130927-fix-buildsystem.patch create mode 100644 dev-libs/libf2c/libf2c-20130927-r1.ebuild (limited to 'dev-libs/libf2c') diff --git a/dev-libs/libf2c/Manifest b/dev-libs/libf2c/Manifest index 7287dcebaf82..fca065469379 100644 --- a/dev-libs/libf2c/Manifest +++ b/dev-libs/libf2c/Manifest @@ -1,10 +1,12 @@ -AUX 20051004-add-ofiles-dep.patch 439 BLAKE2B f7dc9a424f9502c26325bcd0281618ce10f6ca643a81ba1252ee476f4a21972b67684b625666df88cff923d6c4424852fe6d587d052d1adca4bec1a9b2f62e59 SHA512 f1453a782b593744cceaff2cabcd0aae605324ebfd0e66505d55c4483374e3845710d4c1a6b71c4939adf588466f55d6a5856cd97a8e1c52a751151e9c2ee409 -AUX 20090407-link-shared-libf2c-correctly.patch 358 BLAKE2B 3ce42e0fa356542ef761feaeba9f9170e80ba733616c4fad93f48a6d378f755efd92bace6c3a69887ad1d529d6e8bad479425545b86bb65a8cad6066b1f0454b SHA512 6edc5e0d418b4d87597c696623aacf1b15a526b2f2739726220b6302f3ad444bf01ebcd672f7ae40698f0e524d3019decad751490f38c1b2f32d2fd943df8a72 -AUX libf2c-20110801-64bit-long.patch 1784 BLAKE2B 279043ebe08450ce165d3f1c6a9bc87acd9ffdcde434f807a05adc87bff12f097bd26ea990aff85ea8c6917e15bbc2c964fe109b7d095a1308fc7216bde2b640 SHA512 69f2553473b940ab78e185dc17b94513bca2cde4f9a32d60b09183d853096fbe6de2dfc8354d44cdaf04bf5852674d4f31b4a11c8c761c0c802694537156edb1 -AUX libf2c-20110801-format-security.patch 341 BLAKE2B 7260d732672fa774f9b8669d0e58abaa4949d54459f1e38e92df5ad39d0f9cdab845fed74ec81c1697c2bf1ba350d75a486221f462c9ab5f1b0fad914fd943f7 SHA512 f630296167fffed0cf707430af2f546bcfd77d6443bcec15b24a1c8bdf923f92411b86a37079bd6a73b36baf9caf7d51312b32ff5a669097f3c41fc0bb525f5a +AUX 20051004-add-ofiles-dep.patch 301 BLAKE2B 0596180004493d5cff90ed1c8b41ed9038b1dc5f67c6ad8db9099dc0f7fb91edcceea86577525a6d6ab16c80df941afb241cb33224b57b277e7a5c89ba3ab7e7 SHA512 18111ad5123aa49fa09495634a3c1bf4893bc80955d7837fce6748903112a97b393eda09295a0a3fc638a795fe09e95d9396f6e075a37e9cbb3ca3816f726dce +AUX 20090407-link-shared-libf2c-correctly.patch 285 BLAKE2B 298edca5b76b10beb8d33fe01e94c187ee24f98f32987bec3f002908045c715c7d6b7e425761a826fbdeb5a546902a2bea22dabbff5445e54cec52551905e706 SHA512 a1d7564f50db1325288be2617dc4b2906eb1a15a5fc09c3a9dc8ec7197f09fd7549a5145be0336572a5b20e803c8fc1cc8962ed85dd4a612ea0acf65d123281c +AUX libf2c-20110801-64bit-long.patch 1749 BLAKE2B 3df6f21610863361588417697d77a78d467c404caca86613859381361064e4eb0a6b94afb799644ec66910f1685820467237271e453ecd61e7fc96ce13f3a50e SHA512 fbb3d2e642fc6d7fc8c9b3a96a497bb3010b7ad3e0ae34ea7b567ac85ef73be6f00a495680c140d2cbdc578c1400bbe6c108e958850c80a38559bbaa8e419d58 +AUX libf2c-20110801-format-security.patch 345 BLAKE2B 723f79e2fa5015c49bd763473ba62b81d7cccae1c3a68dd4da81f560b06ff23e2884fdf7e276079dd99f3241822b6d23ac830062b3ea88177945aacee34e4682 SHA512 758d7d4c1154193b3a5adf3983009cc258844dc1681edda3ba6a761580353f082ee682fc625275976a34ce5e0d4893c304063105986deec066c82afdb3c6cf5e AUX libf2c-20110801-main.patch 1708 BLAKE2B becf5fd72a0d9bad9a6fef4d6013b2e1dbedd2b2d1cb9764a3a04772648f24f2875d6257595c95c09b17159baf47c217d4fbdc3cd4d6dfa37980adb306552e3e SHA512 f2c8574f45580d2bf99e5506266668c615f19a985ffa27eefe38d373f083da61dbe486d5c27e034bd38029b46a4a77285e175a7285b1acb37e7a1ecfea6a2bbc +AUX libf2c-20130927-fix-buildsystem.patch 1632 BLAKE2B 381a2e03ee75f0553325c4b5bbc1191d7262d0fec6d315791684a761f1be6e0749782a679fce805b1d4eb466d0f219d78bec6ef03968addaa47c3a0d1c212c59 SHA512 40191835f7b5d6a9865c68e0fb8a7168715b2f79cad069192427cc657b9664ac9f242c7b746aa821b81c33ae2c08c6d936f838b2f5228acde35d8aeb7c102b93 DIST libf2c-20110801.zip 128845 BLAKE2B f948693c0aace5725f3a4ab3406396a9f16fbb3c08681fe200ba2ba0b48dadb3c051a510cf9b4714d9fbfebc43e52ba13d6fdbff3590c19a164acc710ebe2958 SHA512 7a7b7b02ca2b11456aa0deba5094aebc1e9f7070d1742ad76450ec79de7eed967fbd7446524b66c52295ed911471d2dc396d171569b5d37079bdca8220fd2fb6 DIST libf2c-20130927.zip 129082 BLAKE2B 09f818bde8888b569858784c39e93a6a11b3103039f44c3f6a1246b29efb5f8ae6e45f787ed0c2216bea383a79b9554aff30e1fbb00668bbc872b4bc30d87ba8 SHA512 1a12093dec3c250f4775eebd06f1a9144fdb956ea3162202fb67569fdd956ac5591bc563a0726ca65ea10d465efaac1c1d8024d63bc4a4b5c88bf46242607c8a EBUILD libf2c-20110801-r4.ebuild 1256 BLAKE2B 1e22881db8cf4e49fd711c556b169156689dcd5b24bbd7fe6ead5c25d206a022aa9b947abc54af6dcd3d1af18f5867b927b677a7123b70e6be3abdb649a9a16d SHA512 d367309ff9a645e412a5ad2af05bacc2a82df6392e36af6176b950f640337b8b68219e339afe41b147824160e47ef1fcbc85c6a906d13801e4d0a7f202528b69 +EBUILD libf2c-20130927-r1.ebuild 1220 BLAKE2B 5e93fce0762ccd432d9adb51d609a8acdd74e4664e809310fe164f089a64c80ff71601dc2150610f18c0a00791bc62715646155a3b1e333bcfe70ef6e64a17f7 SHA512 9802d19550d4cae2c5b45c8e37489bf92aa3c95936e70b24ba93136281ee65ee798841c5e4eddb7580f87084a6f07227166a0483eb9241571f10d75a728d9a0b EBUILD libf2c-20130927.ebuild 1290 BLAKE2B a3468ddd537fa482c38e3d633d47f609c09bbed62f92e4b3a021054ce4957f8a0b6113e27028a1c1ba860349e928833df5a1a0efe75160062a354e40f55c7d84 SHA512 a8e33d4a42adc4559828a2c6c8c2746dff6c76d609bd4a0c63c3be8c8b094c3d44afaa89dcb9395f37ac2c2923c473651def6ebcbbdd8e788bcba05ea4836a49 MISC metadata.xml 363 BLAKE2B 854c5e9e83fb984b31f4def65cb25720bacbff0522fe93e3488211611e15896e562ab86a101ea0f661ffa6de9bb15331dce1e39ca614b1987ed35184029a0d18 SHA512 3c5efbb36dba02cfa31cb0b95c78194bfecfcc128b60eb5c11983da6ac26fb0d75bc02e004443fc6365d3cf53b6d9bffc3a0342c185e61ffdc404cb8b4a3f95e diff --git a/dev-libs/libf2c/files/20051004-add-ofiles-dep.patch b/dev-libs/libf2c/files/20051004-add-ofiles-dep.patch index 509726820ae5..909fc19033db 100644 --- a/dev-libs/libf2c/files/20051004-add-ofiles-dep.patch +++ b/dev-libs/libf2c/files/20051004-add-ofiles-dep.patch @@ -1,6 +1,5 @@ -diff -urN libf2c.orig/makefile.u libf2c/makefile.u ---- libf2c.orig/makefile.u 2006-05-13 15:41:29.000000000 -0700 -+++ libf2c/makefile.u 2006-05-13 15:42:04.000000000 -0700 +--- a/makefile.u ++++ b/makefile.u @@ -69,7 +69,9 @@ OFILES = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ $(HALF) $(CMP) $(EFL) $(CHAR) $(I77) $(TIME) diff --git a/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch b/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch index d35e60bed0ff..e22f0cf0bfb0 100644 --- a/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch +++ b/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch @@ -1,5 +1,5 @@ ---- makefile.u.orig 2008-07-07 23:27:41.000000000 -0700 -+++ makefile.u 2008-07-07 23:28:39.000000000 -0700 +--- a/makefile.u ++++ b/makefile.u @@ -82,7 +82,7 @@ ## of "cc -shared". diff --git a/dev-libs/libf2c/files/libf2c-20110801-64bit-long.patch b/dev-libs/libf2c/files/libf2c-20110801-64bit-long.patch index 85687c5a4208..cc42465bb7ce 100644 --- a/dev-libs/libf2c/files/libf2c-20110801-64bit-long.patch +++ b/dev-libs/libf2c/files/libf2c-20110801-64bit-long.patch @@ -1,5 +1,5 @@ ---- libf2c2-20090411.orig/f2c.h0 -+++ libf2c2-20090411/f2c.h0 +--- a/f2c.h0 ++++ b/f2c.h0 @@ -7,21 +7,35 @@ #ifndef F2C_INCLUDE #define F2C_INCLUDE diff --git a/dev-libs/libf2c/files/libf2c-20110801-format-security.patch b/dev-libs/libf2c/files/libf2c-20110801-format-security.patch index 669da2d694b4..3caa80f787c4 100644 --- a/dev-libs/libf2c/files/libf2c-20110801-format-security.patch +++ b/dev-libs/libf2c/files/libf2c-20110801-format-security.patch @@ -1,5 +1,5 @@ ---- arithchk.c -+++ arithchk.c +--- a/arithchk.c ++++ b/arithchk.c @@ -122,7 +122,7 @@ long Cray1; diff --git a/dev-libs/libf2c/files/libf2c-20130927-fix-buildsystem.patch b/dev-libs/libf2c/files/libf2c-20130927-fix-buildsystem.patch new file mode 100644 index 000000000000..d3de94b38380 --- /dev/null +++ b/dev-libs/libf2c/files/libf2c-20130927-fix-buildsystem.patch @@ -0,0 +1,65 @@ +--- a/makefile.u ++++ b/makefile.u +@@ -12,16 +12,12 @@ + # -fPIC + # to the CFLAGS = line below. + +-.SUFFIXES: .c .o +-CC = cc + SHELL = /bin/sh +-CFLAGS = -O + + # compile, then strip unnecessary symbols + .c.o: +- $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c +- ld -r -x -o $*.xxx $*.o +- mv $*.xxx $*.o ++ $(CC) -c $(CPPFLAGS) $(CFLAGS) -DSkip_f2c_Undefs $< -o $@ ++ + ## Under Solaris (and other systems that do not understand ld -x), + ## omit -x in the ld line above. + ## If your system does not have the ld command, comment out +@@ -74,8 +70,8 @@ + $(OFILES): f2c.h signal1.h sysdep1.h + + libf2c.a: $(OFILES) +- ar r libf2c.a $? +- -ranlib libf2c.a ++ $(AR) r libf2c.a $? ++ $(RANLIB) libf2c.a + + ## Shared-library variant: the following rule works on Linux + ## systems. Details are system-dependent. Under Linux, -fPIC +@@ -92,12 +88,6 @@ + + ### If your system lacks ranlib, you don't need it; see README. + +-f77vers.o: f77vers.c +- $(CC) -c f77vers.c +- +-i77vers.o: i77vers.c +- $(CC) -c i77vers.c +- + # To get an "f2c.h" for use with "f2c -C++", first "make hadd" + hadd: f2c.h0 f2ch.add + cat f2c.h0 f2ch.add >f2c.h +@@ -125,7 +115,7 @@ + + install: libf2c.a + cp libf2c.a $(LIBDIR) +- -ranlib $(LIBDIR)/libf2c.a ++ $(RANLIB) $(LIBDIR)/libf2c.a + + clean: + rm -f libf2c.a *.o arith.h signal1.h sysdep1.h +@@ -185,8 +175,8 @@ + xwsne.o: fmt.h + + arith.h: arithchk.c +- $(CC) $(CFLAGS) -DNO_FPINIT arithchk.c -lm ||\ +- $(CC) -DNO_LONG_LONG $(CFLAGS) -DNO_FPINIT arithchk.c -lm ++ $(CC) $(CPPFLAGS) $(CFLAGS) -DNO_FPINIT arithchk.c -lm ||\ ++ $(CC) -DNO_LONG_LONG $(CPPFLAGS) $(CFLAGS) -DNO_FPINIT arithchk.c -lm + ./a.out >arith.h + rm -f a.out arithchk.o + diff --git a/dev-libs/libf2c/libf2c-20130927-r1.ebuild b/dev-libs/libf2c/libf2c-20130927-r1.ebuild new file mode 100644 index 000000000000..52fc3a771992 --- /dev/null +++ b/dev-libs/libf2c/libf2c-20130927-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Library that converts FORTRAN to C source" +HOMEPAGE="http://www.netlib.org/f2c/" +SRC_URI="http://www.netlib.org/f2c/${PN}.zip -> ${P}.zip" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="static-libs" + +BDEPEND="app-arch/unzip" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}"/20051004-add-ofiles-dep.patch + "${FILESDIR}"/20090407-link-shared-libf2c-correctly.patch + "${FILESDIR}"/${PN}-20110801-main.patch + "${FILESDIR}"/${PN}-20110801-64bit-long.patch + "${FILESDIR}"/${PN}-20110801-format-security.patch + "${FILESDIR}"/${PN}-20130927-fix-buildsystem.patch +) + +src_configure() { + tc-export AR CC RANLIB +} + +src_compile() { + if use static-libs; then + emake -f makefile.u all + # Clean up files so we can recompile + # with -fPIC for the shared lib + rm -v *.o || die "clean failed" + fi + + append-cflags -fPIC + emake -f makefile.u libf2c.so +} + +src_install () { + doheader f2c.h + + dolib.so libf2c.so.2 + dosym libf2c.so.2 /usr/$(get_libdir)/libf2c.so + use static-libs && dolib.a libf2c.a + + einstalldocs + dodoc Notice +} -- cgit v1.2.3