summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2023-12-21 12:29:11 -0500
committerMichael Orlitzky <mjo@gentoo.org>2024-01-22 06:29:08 -0500
commit0a28bb2d039678b3fee61eba17e33d4b922f9be5 (patch)
tree098bf9838ff5cb7f045606bc1cdfc7072787b245 /dev-gap
parentdev-gap/grape: new package, add 4.9.0 (diff)
downloadgentoo-0a28bb2d039678b3fee61eba17e33d4b922f9be5.tar.gz
gentoo-0a28bb2d039678b3fee61eba17e33d4b922f9be5.tar.bz2
gentoo-0a28bb2d039678b3fee61eba17e33d4b922f9be5.zip
dev-gap/guava: new package, add 3.18
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-gap')
-rw-r--r--dev-gap/guava/Manifest1
-rw-r--r--dev-gap/guava/files/guava-3.15-makefile.patch13
-rw-r--r--dev-gap/guava/guava-3.18.ebuild48
-rw-r--r--dev-gap/guava/metadata.xml22
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-gap/guava/Manifest b/dev-gap/guava/Manifest
new file mode 100644
index 000000000000..c1032e3e73ef
--- /dev/null
+++ b/dev-gap/guava/Manifest
@@ -0,0 +1 @@
+DIST guava-3.18.tar.gz 2635260 BLAKE2B f2b81d6418204564afeede7901f9d9a54e93a165913ffd6152a641590452455d07607e511ecde220a0d9f44182d793ce25bde51c5103324033f9b0470b2bb234 SHA512 350240ffff584877fa3981e4acdda94419bdeb982de26a308af056dd3130b38eeccaf6157afef7ffbdab359b0fddf5a213ccb6d27d2f4e8955ae45e0607d6b97
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>