mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-gap/guava: new package, add 3.18
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
1
dev-gap/guava/Manifest
Normal file
1
dev-gap/guava/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST guava-3.18.tar.gz 2635260 BLAKE2B f2b81d6418204564afeede7901f9d9a54e93a165913ffd6152a641590452455d07607e511ecde220a0d9f44182d793ce25bde51c5103324033f9b0470b2bb234 SHA512 350240ffff584877fa3981e4acdda94419bdeb982de26a308af056dd3130b38eeccaf6157afef7ffbdab359b0fddf5a213ccb6d27d2f4e8955ae45e0607d6b97
|
||||
13
dev-gap/guava/files/guava-3.15-makefile.patch
Normal file
13
dev-gap/guava/files/guava-3.15-makefile.patch
Normal file
@@ -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
|
||||
48
dev-gap/guava/guava-3.18.ebuild
Normal file
48
dev-gap/guava/guava-3.18.ebuild
Normal file
@@ -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}"
|
||||
}
|
||||
22
dev-gap/guava/metadata.xml
Normal file
22
dev-gap/guava/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user