diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-22 16:48:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-22 16:48:54 +0000 |
commit | ce163dcd0944d81d8406c9532b457535efca7a6d (patch) | |
tree | f7deea170544ce69e03c037101b7b5c1277966b4 /dev-gap/guava | |
parent | 05ee8049e2326946a2cd1720f98384c864f0a804 (diff) |
gentoo auto-resync : 22:01:2024 - 16:48:54
Diffstat (limited to 'dev-gap/guava')
-rw-r--r-- | dev-gap/guava/Manifest | 4 | ||||
-rw-r--r-- | dev-gap/guava/files/guava-3.15-makefile.patch | 13 | ||||
-rw-r--r-- | dev-gap/guava/guava-3.18.ebuild | 48 | ||||
-rw-r--r-- | dev-gap/guava/metadata.xml | 22 |
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-gap/guava/Manifest b/dev-gap/guava/Manifest new file mode 100644 index 000000000000..05f78601f7a2 --- /dev/null +++ b/dev-gap/guava/Manifest @@ -0,0 +1,4 @@ +AUX guava-3.15-makefile.patch 736 BLAKE2B 5d2e4a307350bbe097a89745f7026f8c1438234b8c871f6b396c42a722e4b7b255f1dd5aa82b05597b6376235a411d273f6564096fb7e3cb91322dbc79c9433d SHA512 a88f7fed40c70859c226994361b71ea0e99657e63aa5ee212e1bfb66ce418262ec8f95e50414f5f90e47b61aae1a1d316bc29a782107b268ebfd5af348f74f2f +DIST guava-3.18.tar.gz 2635260 BLAKE2B f2b81d6418204564afeede7901f9d9a54e93a165913ffd6152a641590452455d07607e511ecde220a0d9f44182d793ce25bde51c5103324033f9b0470b2bb234 SHA512 350240ffff584877fa3981e4acdda94419bdeb982de26a308af056dd3130b38eeccaf6157afef7ffbdab359b0fddf5a213ccb6d27d2f4e8955ae45e0607d6b97 +EBUILD guava-3.18.ebuild 1079 BLAKE2B 863925d5548e5b7ab0fad28a6df3015d51ab2a52f9f2d9ff259ff4e0453a25a54a8aeb4d779a5111b57467bb5fd7d9033d2248446a1a3f5284ae1fecec2bccfa SHA512 0d714fd674f08e5f0a8c0040b7fe3cfb408d4456eea0ecbe52e81ace70fcc413a897bdc0750c32b47aea4105e0b4e45b90521948f6cbe1cdda9e5f903a9b93c8 +MISC metadata.xml 700 BLAKE2B deb667761cc1a33ac94450018e71060ad2fb89cf433e0294ea4288d7c9aec985834c388529659a446afe1547f7e13c58edfdfdd901fc5594ace6189445448c5b SHA512 960c2af8aec86ee8d4d7a2f9c44cb1b1e0581b6aeb78965d91501db0eaf7295b35eff33173365aaaf4274d9ac72bc798540496a2a67f3cc1df1d387b8e30625b diff --git a/dev-gap/guava/files/guava-3.15-makefile.patch b/dev-gap/guava/files/guava-3.15-makefile.patch new file mode 100644 index 000000000000..9d82fdfa81f2 --- /dev/null +++ b/dev-gap/guava/files/guava-3.15-makefile.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.in b/Makefile.in +index 573f2bd..aa565f4 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -21,7 +21,7 @@ leonconv: desauto + cd ./src; $(MAKE) CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"; + + desauto: +- cd $(SRCDIR); autoreconf --install --force ; ./configure; $(MAKE) CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"; ++ cd $(SRCDIR); $(MAKE) CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"; + + minimum-weight.o: $(CJSRCDIR)/minimum-weight.c $(CJSRCDIR)/minimum-weight-gf2.h $(CJSRCDIR)/minimum-weight-gf3.h $(CJSRCDIR)/popcount.h $(CJSRCDIR)/config.h $(CJSRCDIR)/types.h + $(CC) -c -O3 -Wall -I $(CJSRCDIR) $(CJSRCDIR)/minimum-weight.c diff --git a/dev-gap/guava/guava-3.18.ebuild b/dev-gap/guava/guava-3.18.ebuild new file mode 100644 index 000000000000..396abe423ca9 --- /dev/null +++ b/dev-gap/guava/guava-3.18.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic gap-pkg toolchain-funcs + +DESCRIPTION="GAP package for computing with error-correcting codes" +SLOT="0" +SRC_URI="https://github.com/gap-packages/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="|| ( GPL-2 GPL-3 )" +KEYWORDS="~amd64" + +DEPEND="sci-mathematics/gap" + +PATCHES=( "${FILESDIR}/${PN}-3.15-makefile.patch" ) + +GAP_PKG_EXTRA_INSTALL=( tbl ) +gap-pkg_enable_tests + +src_prepare() { + # remove temporary files in src/leon + rm src/leon/src/stamp-h1 || die + default +} + +src_configure() { + # https://github.com/gap-packages/guava/issues/90 + append-cflags -Wno-error=strict-prototypes + + # This will run the top-level fake ./configure... + gap-pkg_src_configure + + # Now run the real one in src/leon + cd src/leon || die + econf +} + +src_compile() { + # COMPILE, COMPOPT, LINKOPT are needed to compile the code in src/leon. + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + COMPILE="$(tc-getCC)" \ + COMPOPT="${CFLAGS} -c" \ + LINKOPT="${LDFLAGS}" +} diff --git a/dev-gap/guava/metadata.xml b/dev-gap/guava/metadata.xml new file mode 100644 index 000000000000..e44219b9d5cb --- /dev/null +++ b/dev-gap/guava/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mjo@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>frp.bissey@gmail.com</email> + <name>François Bissey</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <upstream> + <remote-id type="github">gap-packages/guava</remote-id> + </upstream> +</pkgmetadata> |