commit:     4cac9a6d53d85038c7ca75fd95bcea2a6bdb6795
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 22 05:29:50 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 22 05:29:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cac9a6d

dev-util/pkgconf: add 1.9.4

Bug: https://bugs.gentoo.org/891647
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/pkgconf/Manifest             |  1 +
 dev-util/pkgconf/pkgconf-1.9.4.ebuild | 70 +++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/dev-util/pkgconf/Manifest b/dev-util/pkgconf/Manifest
index 866cfc71e48a..f5ba5240e212 100644
--- a/dev-util/pkgconf/Manifest
+++ b/dev-util/pkgconf/Manifest
@@ -1,2 +1,3 @@
 DIST pkgconf-1.8.0.tar.xz 296304 BLAKE2B 
6585a855a313406f77d26fba3cc3cef798b27c4b7ece81738bdba12f36ee93fbcaf838e1065406c28adc20852e34e2de14bc5f4837982f9cc35360d9a3ac83a5
 SHA512 
58204006408ad5ce91222ed3c93c2e0b61c04fa83c0a8ad337b747b583744578dbebd4ad5ccbc577689637caa1c5dc246b7795ac46e39c6666b1aa78199b7c28
 DIST pkgconf-1.9.3.tar.xz 308612 BLAKE2B 
90d48171e24235906c41e97f7a2fa53825724c7500e90e502e5e2e4d668d3be863119e39b83a8e02adcef83a7def42e1c5e3641e77f6194bd81f653776bc95b4
 SHA512 
f65583f78571e4da161201d6387091562b38893adc31df421b0e6d560a060deb306a0b7ad8b28266253244c935d0a8169f35e04825a7857f21a09527d36f921e
+DIST pkgconf-1.9.4.tar.xz 309164 BLAKE2B 
f0a99f9c7aaf571b14aa24b6dae441fb041d794294e560601232c03254e521a49a5724e41c5ada537f7933bb4831b63482896c8569a9502c8c5d841190e1d091
 SHA512 
079436244f3942161f91c961c96d382a85082079c9843fec5ddd7fb245ba7500a9f7a201b5ef2c70a7a079fe1aacf3a52b73de5402a6f061df87bcdcf0a90755

diff --git a/dev-util/pkgconf/pkgconf-1.9.4.ebuild 
b/dev-util/pkgconf/pkgconf-1.9.4.ebuild
new file mode 100644
index 000000000000..9417bbe7cb65
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-1.9.4.ebuild
@@ -0,0 +1,70 @@
+# Copyright 2012-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib multilib-minimal
+
+if [[ ${PV} == 9999 ]] ; then
+       inherit autotools git-r3
+       EGIT_REPO_URI="https://gitea.treehouse.systems/ariadne/pkgconf.git";
+else
+       SRC_URI="https://distfiles.dereferenced.org/${PN}/${P}.tar.xz";
+       # Per release notes, 1.9.x is a testing/development release.
+       #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips 
~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+fi
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than 
ANSI C89"
+HOMEPAGE="https://gitea.treehouse.systems/ariadne/pkgconf";
+
+LICENSE="ISC"
+SLOT="0/4"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       test? (
+               dev-libs/atf
+               dev-util/kyua
+       )
+"
+RDEPEND="!dev-util/pkgconfig"
+
+src_prepare() {
+       default
+
+       [[ ${PV} == 9999 ]] && eautoreconf
+
+       MULTILIB_CHOST_TOOLS=(
+               /usr/bin/pkgconf
+               /usr/bin/pkg-config$(get_exeext)
+       )
+}
+
+multilib_src_configure() {
+       local myeconfargs=(
+               --with-system-includedir="${EPREFIX}/usr/include"
+               
--with-system-libdir="${EPREFIX}/$(get_libdir):${EPREFIX}/usr/$(get_libdir)"
+       )
+
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+       unset PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
+       default
+}
+
+multilib_src_install() {
+       default
+
+       dosym pkgconf$(get_exeext) /usr/bin/pkg-config$(get_exeext)
+       dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
+}
+
+multilib_src_install_all() {
+       einstalldocs
+
+       find "${ED}" -type f -name '*.la' -delete || die
+}

Reply via email to