Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/rpmatch-standalone/
Date: Thu, 29 Mar 2018 11:29:38
Message-Id: 1522322892.1ffea40c4a42bba612604c22f56cafc46f5fb4da.blueness@gentoo
1 commit: 1ffea40c4a42bba612604c22f56cafc46f5fb4da
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 29 11:28:12 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 29 11:28:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ffea40c
7
8 sys-libs/rpmatch-standalone: initial commit
9
10 This is a breakout library for rpmatch() which is not provided
11 by the musl libc. See `man 3 rpmatch'.
12
13 Package-Manager: Portage-2.3.24, Repoman-2.3.6
14
15 sys-libs/rpmatch-standalone/Manifest | 1 +
16 sys-libs/rpmatch-standalone/metadata.xml | 11 ++++++
17 .../rpmatch-standalone-1.0.ebuild | 39 ++++++++++++++++++++++
18 3 files changed, 51 insertions(+)
19
20 diff --git a/sys-libs/rpmatch-standalone/Manifest b/sys-libs/rpmatch-standalone/Manifest
21 new file mode 100644
22 index 00000000000..0f7f82cf3b0
23 --- /dev/null
24 +++ b/sys-libs/rpmatch-standalone/Manifest
25 @@ -0,0 +1 @@
26 +DIST rpmatch-standalone-1.0.tar.gz 3151 BLAKE2B e396d18bfb092aa59c70e81028ba889c1095c97b5f13bffbb4ae7b97a1ce63a6c536663304e4fdefaa06a22854dd5b986ff7238f0091b23bcd336cc6db0fca75 SHA512 9d8fc3be66f23b57793eccf62998d1c0ff8df24d8781d37ee99faf618cdceeda778132df2c75ace2ecd8aa6392bcdf15eaa9ce0acd657401af049ccf61fd5b14
27
28 diff --git a/sys-libs/rpmatch-standalone/metadata.xml b/sys-libs/rpmatch-standalone/metadata.xml
29 new file mode 100644
30 index 00000000000..4aa32e43cbe
31 --- /dev/null
32 +++ b/sys-libs/rpmatch-standalone/metadata.xml
33 @@ -0,0 +1,11 @@
34 +<?xml version='1.0' encoding='UTF-8'?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>blueness@g.o</email>
39 + <name>Anthony G. Basile</name>
40 + </maintainer>
41 + <upstream>
42 + <remote-id type="github">pullmoll/musl-rpmatch</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/sys-libs/rpmatch-standalone/rpmatch-standalone-1.0.ebuild b/sys-libs/rpmatch-standalone/rpmatch-standalone-1.0.ebuild
47 new file mode 100644
48 index 00000000000..4881a46decc
49 --- /dev/null
50 +++ b/sys-libs/rpmatch-standalone/rpmatch-standalone-1.0.ebuild
51 @@ -0,0 +1,39 @@
52 +# Copyright 1999-2018 Gentoo Foundation
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=6
56 +
57 +inherit autotools
58 +
59 +DESCRIPTION="Standalone rpmatch library for use with musl"
60 +HOMEPAGE="https://github.com/pullmoll/musl-rpmatch"
61 +SRC_URI="https://github.com/pullmoll/musl-rpmatch/archive/v${PV}.tar.gz -> ${P}.tar.gz"
62 +
63 +LICENSE="BSD"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
66 +IUSE="static-libs"
67 +
68 +DEPEND="
69 + !sys-libs/glibc
70 + !sys-libs/uclibc"
71 +
72 +S="${WORKDIR}/musl-rpmatch-${PV}"
73 +
74 +src_prepare() {
75 + default
76 + eautoreconf
77 +}
78 +
79 +src_configure() {
80 + econf \
81 + $(use_enable static-libs static)
82 +}
83 +
84 +src_install() {
85 + default
86 + find "${D}" -name '*.la' -delete || die
87 +
88 + mkdir "${ED%/}"/usr/$(get_libdir)/pkgconfig/
89 + cp "${S}"/musl-rpmatch.pc "${ED%/}"/usr/$(get_libdir)/pkgconfig/rpmatch-standalone.pc
90 +}