summaryrefslogtreecommitdiff
path: root/dev-util/gperf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-05 14:04:26 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-05 14:04:26 +0000
commit8fd9d385e5bc3c01115ec2ddcb2227607eb90861 (patch)
treeaba1e6ef6b95e94172c009394cd1fcbc383e7d6e /dev-util/gperf
parent1ddcee0bd115d2f843f82061cb0d1741bf90151d (diff)
gentoo auto-resync : 05:01:2024 - 14:04:25
Diffstat (limited to 'dev-util/gperf')
-rw-r--r--dev-util/gperf/Manifest1
-rw-r--r--dev-util/gperf/gperf-3.1-r2.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-util/gperf/Manifest b/dev-util/gperf/Manifest
index 36fbc41284a4..e284dad4c627 100644
--- a/dev-util/gperf/Manifest
+++ b/dev-util/gperf/Manifest
@@ -3,4 +3,5 @@ AUX gperf-3.1-parallel-tests.patch 1323 BLAKE2B fcbbd6e26fec78a9325b616e093ff760
AUX gperf-3.1-strncmp-decl-mismatch.patch 819 BLAKE2B 627af81f91b5fdfd1bd3978adeed9a0d00a5d6b3f8aae54fe0ce21cfaf9384734a61a5986723f72f4c55efdccbed90ec651008d6df651a10322c04b4099431bf SHA512 167823f5908951c79e9ec5b77106a1acbc011bc34636a845d50f55689cf9a7a1f4652a628dc786a29d1dd764e94d1055e32eea1f8c3852d9622e14816969c7f4
DIST gperf-3.1.tar.gz 1215925 BLAKE2B bc4c54ade3f7dce484714d77cb5759dcc02b7a607d7b1aff6bdbcd06ee4c83e9449038a7217d5f25bcbef058ba56e1fce9383b9599de005154e5a9b566ac9c69 SHA512 855ebce5ff36753238a44f14c95be7afdc3990b085960345ca2caf1a2db884f7db74d406ce9eec2f4a52abb8a063d4ed000a36b317c9a353ef4e25e2cca9a3f4
EBUILD gperf-3.1-r1.ebuild 751 BLAKE2B d35fe2c21e0d0abe91959e4c6b243e682d3bf2130e1ade012263dd3d0a0fdb86c7711bd7e4f4283c168edb44fa8612f17b14d7f768e50389671fd8ccb84bee47 SHA512 d77340398aec5398d52df3c0b1aaedd4d461b712a8a8bdba7470c419679d872f1f50698e93071770e22291b7d4ed43f959507252a51a3b07162b5fe821f813d1
+EBUILD gperf-3.1-r2.ebuild 865 BLAKE2B b495d6e4bd218df46d3afc69a38dc6d75f6e451131b57ef1e82d7250640f95e0d401848d64361d6932aa44e0158e192a114d827f7069b7d3b39a6cf8978aafbc SHA512 904d76fce20a57534ef2eab8972c2587b08a4037968d45ea986fe6401148eac9c1e5356cf71ee0c777bc42b5244071807c65761991737b0b85610dcd380a0ef6
MISC metadata.xml 340 BLAKE2B 50b364949bb779503aa29072024bb8d13a2195fc05911da90071b08742d63cc6bfcad152fdbd149c90eede93fb01165c95b46359a9b20bb3d32a87a1f19d4333 SHA512 19b11707d3d714c5ee69a1f17eac7cff18ccca9fefccc2d1d68305b3c86f4992db90529365340cb7f6ee07bfc01f3b690360d07f858da916c1136853172155d6
diff --git a/dev-util/gperf/gperf-3.1-r2.ebuild b/dev-util/gperf/gperf-3.1-r2.ebuild
new file mode 100644
index 000000000000..f5fd37924abf
--- /dev/null
+++ b/dev-util/gperf/gperf-3.1-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic
+
+DESCRIPTION="A perfect hash function generator"
+HOMEPAGE="https://www.gnu.org/software/gperf/"
+SRC_URI="mirror://gnu/gperf/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-strncmp-decl-mismatch.patch
+ "${FILESDIR}"/${P}-clang-16-wregister.patch
+ "${FILESDIR}"/${P}-parallel-tests.patch
+)
+
+src_prepare() {
+ sed -i \
+ -e "/^CPPFLAGS /s:=:+=:" \
+ */Makefile.in || die #444078
+
+ default
+}
+
+src_configure() {
+ # Aliasing violation (bug #858377)
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ econf --cache-file="${S}"/config.cache
+}