commit:     0e6e82f828461e5b520f6faddb7d8fb54a9f26f1
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Fri Sep 26 22:50:14 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 00:46:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e6e82f8

dev-libs/libowfat: add 0.34

Closes: https://bugs.gentoo.org/944990
Closes: https://bugs.gentoo.org/944157
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/43954
Closes: https://github.com/gentoo/gentoo/pull/43954
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libowfat/Manifest             |  2 ++
 dev-libs/libowfat/libowfat-0.34.ebuild | 65 ++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-libs/libowfat/Manifest b/dev-libs/libowfat/Manifest
index 829ac2cdc3c6..ed578c86b570 100644
--- a/dev-libs/libowfat/Manifest
+++ b/dev-libs/libowfat/Manifest
@@ -1,2 +1,4 @@
 DIST libowfat-0.32.tar.xz 195820 BLAKE2B 
6dc19b947867a9b08eece785378be2493fb7185d1cc334de080ab1c288884fe0b670ece6f3785f051c707cc98afc4d843a262b9761fc9cc68fdf1f1ac8df1eb8
 SHA512 
c762a1aa27dfb30e2f6da67d1ad16da03d301b2e3cce33c83b69103183a6689a494c8cf8d7d4e26ad5b22130e4e0560d5f3ef6f44b14d706f10e2300ce11ff3b
 DIST libowfat-0.33.tar.xz 213920 BLAKE2B 
f902279ae2be96a24ff8760e082a16058db06d20f8e9b55ee54731035f142eb1d9058633be31bc975a3916a44d8d1d4372c2b594e317f5957bff32150aa60785
 SHA512 
03a56bcbc1a58e340c473d260877218a35841a6915a8369381d74463244cd754fc736006344814855c4d33598ad811d51b7fff4ba41c5e6d38d56297903dcaf5
+DIST libowfat-0.34.tar.xz 223960 BLAKE2B 
c3a2db51b259906c711d9b71fddb22e748bf9331ae8e44c27aed1010fb2fad966b9ec4ff550726f68ec441ebe6db25b5729ae9a08987a64bb848becad99ab2ec
 SHA512 
5be668f78d86c8591c8f2b8067f8ce41a38891b977ab239ee64602c37232aa85c396e07fedd378be12c6730080ca2ada08964cebd6e844191fce0c8cff57bb47
+DIST libowfat-0.34.tar.xz.sig 566 BLAKE2B 
03c6656c776bbd1c83da8a82e2f16ebd1c2cbedcda6b11d7979c981327680dbd1774c8594deb439e122a48f9d22f61adc22401e428c2898430e7e32b6b829acf
 SHA512 
36d721704b21c6071822199a8c24679a71cf281a74d66809172f30157c0b84bc9bfb1f0c9e36844d4f1d016920dab25a020ed12c5dd648056f25365e05fb0dcd

diff --git a/dev-libs/libowfat/libowfat-0.34.ebuild 
b/dev-libs/libowfat/libowfat-0.34.ebuild
new file mode 100644
index 000000000000..e7b4779a4d6a
--- /dev/null
+++ b/dev-libs/libowfat/libowfat-0.34.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs verify-sig
+
+DESCRIPTION="reimplement libdjb - excellent libraries from Dan Bernstein"
+SRC_URI="
+       http://www.fefe.de/${PN}/${P}.tar.xz
+       verify-sig? ( http://www.fefe.de/${PN}/${P}.tar.xz.sig )
+"
+HOMEPAGE="https://www.fefe.de/libowfat/";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~sparc ~x86"
+IUSE="diet"
+
+RDEPEND="diet? ( >=dev-libs/dietlibc-0.33_pre20090721 )"
+DEPEND="${RDEPEND}"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-fefe )"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/fefe.asc
+
+pkg_setup() {
+       # Required for mult/umult64.c to be usable
+       append-flags -fomit-frame-pointer
+}
+
+src_compile() {
+       # Primary use case is for code by the same author. Which then fails with
+       # LTO errors.  It builds a static library only, anyway. Result: LTO can 
be
+       # used if you don't upgrade the compiler. If you do, the compiler 
errors,
+       # or if you are unlucky, ICEs. Just don't use LTO, there is no point...
+       filter-lto
+
+       # https://bugs.gentoo.org/944157
+       # https://bugs.gentoo.org/944990
+       append-cflags -std=gnu17
+
+       # workaround for broken dependencies
+       emake headers
+
+       emake \
+               CC="$(tc-getCC)" \
+               AR="$(tc-getAR)" \
+               RANLIB="$(tc-getRANLIB)" \
+               CFLAGS="-I. ${CFLAGS}" \
+               DIET="${EPREFIX}/usr/bin/diet -Os" \
+               prefix="${EPREFIX}/usr" \
+               INCLUDEDIR="${EPREFIX}/usr/include" \
+               $( use diet || echo 'DIET=' )
+}
+
+src_install() {
+       emake \
+               DESTDIR="${D}" \
+               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+               MAN3DIR="${EPREFIX}/usr/share/man/man3" \
+               INCLUDEDIR="${EPREFIX}/usr/include" \
+               install
+
+       mv "${ED}"/usr/share/man/man3/{buffer.3,owfat-buffer.3} || die
+}

Reply via email to