Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgconf/
Date: Mon, 25 May 2020 09:02:24
Message-Id: 1590397336.28d08e68fd9158db794c673346d652eeb42f8f3e.polynomial-c@gentoo
1 commit: 28d08e68fd9158db794c673346d652eeb42f8f3e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 25 09:01:15 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon May 25 09:02:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28d08e68
7
8 dev-util/pkgconf: Bump to version 1.7.0
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-util/pkgconf/Manifest | 1 +
14 dev-util/pkgconf/pkgconf-1.7.0.ebuild | 82 +++++++++++++++++++++++++++++++++++
15 2 files changed, 83 insertions(+)
16
17 diff --git a/dev-util/pkgconf/Manifest b/dev-util/pkgconf/Manifest
18 index d82b487f694..dbb333b701b 100644
19 --- a/dev-util/pkgconf/Manifest
20 +++ b/dev-util/pkgconf/Manifest
21 @@ -1 +1,2 @@
22 DIST pkgconf-1.6.3.tar.xz 291216 BLAKE2B 04bf58590e2f0b37bac7b24b3d595ad08680e85647548cbd642495398d95706f9f738af5c6f9b9ad8801567caa20ade85d4c4d74179f08313420683cb1b34263 SHA512 437c5a5c9866e2047e62e0592639930b2420d4afd41d98cef51f3475165418a39e916477860025314828a6ee0a4eefc10fdf26bda66f80c291f324d9674fa5c1
23 +DIST pkgconf-1.7.0.tar.xz 292420 BLAKE2B 2b709596c0ca8b62913a89fd6d3c4267f4f6f8585565dd66243d876a3b49795a522d3fced913d97cdaeb5cbad95b9655f2c23ef8160a03e68109fb4a21df8d90 SHA512 636741c11c35dbe39bbd38760268deefede2c312cb65ac1c20dbb2ce2c4eca884481e5888f5f6987c084f753684ff8d008713f7638952ea1d67a58ecce2fa05d
24
25 diff --git a/dev-util/pkgconf/pkgconf-1.7.0.ebuild b/dev-util/pkgconf/pkgconf-1.7.0.ebuild
26 new file mode 100644
27 index 00000000000..c5741a92475
28 --- /dev/null
29 +++ b/dev-util/pkgconf/pkgconf-1.7.0.ebuild
30 @@ -0,0 +1,82 @@
31 +# Copyright 2012-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit multilib-minimal
37 +
38 +if [[ ${PV} == "9999" ]] ; then
39 + inherit autotools git-r3
40 + EGIT_REPO_URI="https://git.sr.ht/~kaniini/pkgconf"
41 +else
42 + SRC_URI="http://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
43 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
44 +fi
45 +
46 +DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
47 +HOMEPAGE="https://git.sr.ht/~kaniini/pkgconf"
48 +
49 +LICENSE="ISC"
50 +SLOT="0/3"
51 +IUSE="+pkg-config test"
52 +
53 +# tests require 'kyua'
54 +RESTRICT="!test? ( test )"
55 +
56 +BDEPEND="
57 + test? (
58 + dev-libs/atf
59 + dev-util/kyua
60 + )
61 +"
62 +RDEPEND="
63 + pkg-config? (
64 + !dev-util/pkgconfig
65 + !dev-util/pkg-config-lite
66 + !dev-util/pkgconfig-openbsd[pkg-config]
67 + )
68 +"
69 +
70 +MULTILIB_CHOST_TOOLS=(
71 + /usr/bin/pkgconf
72 +)
73 +
74 +src_prepare() {
75 + default
76 +
77 + [[ ${PV} == "9999" ]] && eautoreconf
78 + if use pkg-config; then
79 + MULTILIB_CHOST_TOOLS+=(
80 + /usr/bin/pkg-config
81 + )
82 + fi
83 +}
84 +
85 +multilib_src_configure() {
86 + local ECONF_SOURCE="${S}"
87 + econf --disable-static
88 +}
89 +
90 +multilib_src_test() {
91 + unset PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
92 + default
93 +}
94 +
95 +multilib_src_install() {
96 + default
97 +
98 + if use pkg-config; then
99 + dosym pkgconf /usr/bin/pkg-config
100 + dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
101 + else
102 + rm "${ED}"/usr/share/aclocal/pkg.m4 || die
103 + rmdir "${ED}"/usr/share/aclocal || die
104 + rm "${ED}"/usr/share/man/man7/pkg.m4.7 || die
105 + rmdir "${ED}"/usr/share/man/man7 || die
106 + fi
107 +}
108 +
109 +multilib_src_install_all() {
110 + einstalldocs
111 + find "${ED}" -type f -name '*.la' -delete || die
112 +}