From 72d7e048ae88be323a380e2eae52dfda0b2dc1c0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 11 Mar 2024 18:45:56 +0000 Subject: gentoo auto-resync : 11:03:2024 - 18:45:56 --- dev-libs/libf2c/Manifest | 4 ++ .../20240130-link-shared-libf2c-correctly.patch | 13 +++++ .../files/libf2c-20240130-fix-buildsystem.patch | 66 ++++++++++++++++++++++ dev-libs/libf2c/libf2c-20240130.ebuild | 54 ++++++++++++++++++ 4 files changed, 137 insertions(+) create mode 100644 dev-libs/libf2c/files/20240130-link-shared-libf2c-correctly.patch create mode 100644 dev-libs/libf2c/files/libf2c-20240130-fix-buildsystem.patch create mode 100644 dev-libs/libf2c/libf2c-20240130.ebuild (limited to 'dev-libs/libf2c') diff --git a/dev-libs/libf2c/Manifest b/dev-libs/libf2c/Manifest index c2fffe76c0eb..6b8ea3dafec3 100644 --- a/dev-libs/libf2c/Manifest +++ b/dev-libs/libf2c/Manifest @@ -1,9 +1,13 @@ AUX 20051004-add-ofiles-dep.patch 301 BLAKE2B 0596180004493d5cff90ed1c8b41ed9038b1dc5f67c6ad8db9099dc0f7fb91edcceea86577525a6d6ab16c80df941afb241cb33224b57b277e7a5c89ba3ab7e7 SHA512 18111ad5123aa49fa09495634a3c1bf4893bc80955d7837fce6748903112a97b393eda09295a0a3fc638a795fe09e95d9396f6e075a37e9cbb3ca3816f726dce AUX 20090407-link-shared-libf2c-correctly.patch 285 BLAKE2B 298edca5b76b10beb8d33fe01e94c187ee24f98f32987bec3f002908045c715c7d6b7e425761a826fbdeb5a546902a2bea22dabbff5445e54cec52551905e706 SHA512 a1d7564f50db1325288be2617dc4b2906eb1a15a5fc09c3a9dc8ec7197f09fd7549a5145be0336572a5b20e803c8fc1cc8962ed85dd4a612ea0acf65d123281c +AUX 20240130-link-shared-libf2c-correctly.patch 444 BLAKE2B 64ce8278c36f71f5a943fc4f735bdb1b85b8080d363af482e380488af8e17ee48df7002cdbb3b104d1efd55be826345ac5b07e5d6ceecaa1ac34265e36ca9e69 SHA512 eda772daae72acf037d117023b453a4d64bfe3facc0c2093b7620023915588994e28c11ea51d4300974d14de25c8ff55d0dd3902d55ad1ccc3af50a410de3294 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 +AUX libf2c-20240130-fix-buildsystem.patch 1837 BLAKE2B fabcb8f7d857277bc2f9d5f064c261727547819b11d2ba336f77281aaea865405cb3fbbabb368ab29ceefff5a750d7e38f28332b37e0b04ccaac19fb8228def4 SHA512 a67d703990de24d106417f7cc10e712ad65d5788e93a7b3e8d2d3b62c6b2d4fe1e014e2c24e555cc68fc27760b860f93c8a4c78a7e08f1c6d4863984a1f1046f DIST libf2c-20130927.zip 129082 BLAKE2B 09f818bde8888b569858784c39e93a6a11b3103039f44c3f6a1246b29efb5f8ae6e45f787ed0c2216bea383a79b9554aff30e1fbb00668bbc872b4bc30d87ba8 SHA512 1a12093dec3c250f4775eebd06f1a9144fdb956ea3162202fb67569fdd956ac5591bc563a0726ca65ea10d465efaac1c1d8024d63bc4a4b5c88bf46242607c8a +DIST libf2c-20240130.zip 130671 BLAKE2B 3e8b989064e677d9725a703870b14531ea045b8ef167b11218687def75068c2b59997726acf4c3e5c0b20e024754f9207ffc9354b6feeb46414b59d99e7ec896 SHA512 596bd0017e0c4b61191200a0bc788777585049eb939c528625349404cc8d9bbd0957efecd79077c487fdff5fc7e435189574b2c495cafaa6006dd2585b13960a EBUILD libf2c-20130927-r1.ebuild 1205 BLAKE2B cff5e1b623ff71ca2b39e034dba3efd11f01b99dde6f913f8f86d49d7cb223d15b13839eefacd13cd62667b32b35fac54823d685ceb7b9a478a7884de8cd5431 SHA512 cfec1b64ef22c178cd7ea30653314ecde95cee384b6580030d555c861f0215aaf6027ffedf33f547d4d9adc6274b652445f84562e81080384e9d2521feba30a1 +EBUILD libf2c-20240130.ebuild 1157 BLAKE2B 0641b472300fe2db954d62b9d2b5d963c2756b4fc7cf1ef1d553f9b49ab73b4f02ccbe6e978a931685059485aee864389b578160c2ac1d4ef2c30350e971b8bc SHA512 c31380ca0aa75006116d5440c18426fb207f149c60fe408fae85f9a6fd58d58211f5e0807026de832eef3960cfb574912541c3f3344eee9035437fbb24c4b238 MISC metadata.xml 260 BLAKE2B 14d3d7872b9a3cb341301daf85c6b037c567163317516100d5af08e7ae02970252f210e90118d5df9e0cf6e0b3560add3a7894d379609b864e60dfdda3036423 SHA512 973385fccdcb0ccc36e00a09dc85204cf15081b8b61bc20e02d7d1311cb05af4927f01aac36ec93275158f5b990874ca03ab7d381cf6ee6f5e30bc4926d2f045 diff --git a/dev-libs/libf2c/files/20240130-link-shared-libf2c-correctly.patch b/dev-libs/libf2c/files/20240130-link-shared-libf2c-correctly.patch new file mode 100644 index 000000000000..9b58139b91a9 --- /dev/null +++ b/dev-libs/libf2c/files/20240130-link-shared-libf2c-correctly.patch @@ -0,0 +1,13 @@ +diff --git a/makefile.u b/makefile.u +index a1cb700..6d5fb78 100644 +--- a/makefile.u ++++ b/makefile.u +@@ -88,7 +88,7 @@ libf2c.a: $(OFILES) + ## arrange for $DYLD_LIBRARY_PATH to include the directory containing libf2c.so. + + libf2c.so: $(OFILES) +- $(CC) $(LDFLAGS) -shared -o libf2c.so $(OFILES) ++ $(CC) $(LDFLAGS) -shared -Wl,-soname,libf2c.so.2 -o libf2c.so.2 -lm $(OFILES) + + ### If your system lacks ranlib, you don't need it; see README. + diff --git a/dev-libs/libf2c/files/libf2c-20240130-fix-buildsystem.patch b/dev-libs/libf2c/files/libf2c-20240130-fix-buildsystem.patch new file mode 100644 index 000000000000..1398c843507b --- /dev/null +++ b/dev-libs/libf2c/files/libf2c-20240130-fix-buildsystem.patch @@ -0,0 +1,66 @@ +From c398f9cc0504c33de034e68a8d402a5ad301c19f Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Sun, 10 Mar 2024 17:54:11 -0400 +Subject: [PATCH] import libf2c-20130927-fix-buildsystem.patch and fix up + +--- + makefile.u | 18 +++++++----------- + 1 file changed, 7 insertions(+), 11 deletions(-) + +diff --git a/makefile.u b/makefile.u +index a271e5c..e8c8485 100644 +--- 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 +@@ -72,8 +68,8 @@ OFILES = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ + all: f2c.h signal1.h sysdep1.h libf2c.a + + 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 +@@ -126,7 +122,7 @@ fio.h: fio.h0 sysdep1.h + + 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 +@@ -186,8 +182,8 @@ xwsne.o: lio.h + 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 + +-- +2.43.2 + diff --git a/dev-libs/libf2c/libf2c-20240130.ebuild b/dev-libs/libf2c/libf2c-20240130.ebuild new file mode 100644 index 000000000000..1d9da1eeca59 --- /dev/null +++ b/dev-libs/libf2c/libf2c-20240130.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 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 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +BDEPEND="app-arch/unzip" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}"/20051004-add-ofiles-dep.patch + "${FILESDIR}"/20240130-link-shared-libf2c-correctly.patch + "${FILESDIR}"/${PN}-20110801-main.patch + "${FILESDIR}"/${PN}-20110801-64bit-long.patch + "${FILESDIR}"/${PN}-20240130-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