commit:     2cb3812bddfabc0e528de7f4fc7f30125be56a02
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sun Dec 31 17:05:31 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Jan  7 00:19:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cb3812b

app-arch/lzlib: fix calling AR directly, bug #721916

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>

Closes: https://bugs.gentoo.org/721916
Closes: https://github.com/gentoo/gentoo/pull/34585
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-arch/lzlib/lzlib-1.13-r2.ebuild | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/app-arch/lzlib/lzlib-1.13-r2.ebuild 
b/app-arch/lzlib/lzlib-1.13-r2.ebuild
new file mode 100644
index 000000000000..26df52f0fcc0
--- /dev/null
+++ b/app-arch/lzlib/lzlib-1.13-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/antoniodiazdiaz.asc
+inherit toolchain-funcs verify-sig
+
+DESCRIPTION="Library for lzip compression"
+HOMEPAGE="https://www.nongnu.org/lzip/lzlib.html";
+SRC_URI="https://download.savannah.gnu.org/releases/lzip/${PN}/${P}.tar.gz";
+SRC_URI+=" verify-sig? ( 
https://download.savannah.gnu.org/releases/lzip/${PN}/${P/_/-}.tar.gz.sig )"
+
+LICENSE="libstdc++" # fancy form of GPL-2+ with library exception
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-antoniodiazdiaz )"
+
+src_configure() {
+       local myconf=(
+               --enable-shared
+               --disable-static
+               --disable-ldconfig
+               --prefix="${EPREFIX}"/usr
+               --libdir='$(prefix)'/$(get_libdir)
+               AR="$(tc-getAR)"
+               CC="$(tc-getCC)"
+               CFLAGS="${CFLAGS}"
+               CPPFLAGS="${CPPFLAGS}"
+               LDFLAGS="${LDFLAGS}"
+       )
+
+       # not autotools-based
+       ./configure "${myconf[@]}" || die
+}
+
+src_install() {
+       emake DESTDIR="${D}" install install-man
+       einstalldocs
+}

Reply via email to