1 # Copyright 2012-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib-minimal
8 if [[ ${PV} == "9999" ]] ; then
9 inherit autotools git-r3
10 EGIT_REPO_URI="https://git.sr.ht/~kaniini/pkgconf"
12 SRC_URI="http://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
13 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
16 DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
17 HOMEPAGE="https://git.sr.ht/~kaniini/pkgconf"
21 IUSE="+pkg-config test"
23 # tests require 'kyua'
24 RESTRICT="!test? ( test )"
35 !dev-util/pkg-config-lite
36 !dev-util/pkgconfig-openbsd[pkg-config]
40 MULTILIB_CHOST_TOOLS=(
47 [[ ${PV} == "9999" ]] && eautoreconf
48 if use pkg-config; then
49 MULTILIB_CHOST_TOOLS+=(
55 multilib_src_configure() {
56 local ECONF_SOURCE="${S}"
57 econf --disable-static
61 unset PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
65 multilib_src_install() {
68 if use pkg-config; then
69 dosym pkgconf /usr/bin/pkg-config
70 dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
72 rm "${ED}"/usr/share/aclocal/pkg.m4 || die
73 rmdir "${ED}"/usr/share/aclocal || die
74 rm "${ED}"/usr/share/man/man7/pkg.m4.7 || die
75 rmdir "${ED}"/usr/share/man/man7 || die
79 multilib_src_install_all() {
81 find "${ED}" -type f -name '*.la' -delete || die