1 |
commit: 4681f9906d2cc57a862076c074020288f60d133e |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 2 09:54:57 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 09:55:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4681f990 |
7 |
|
8 |
Revert "dev-libs/argtable: drop 2.13-r1" |
9 |
|
10 |
This reverts commit a20aceab3b5f2fb399c0acdb5fc765ba023a6176. |
11 |
|
12 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
13 |
|
14 |
dev-libs/argtable/argtable-2.13-r1.ebuild | 48 +++++++++++++++++++++++++++++++ |
15 |
1 file changed, 48 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/argtable/argtable-2.13-r1.ebuild b/dev-libs/argtable/argtable-2.13-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..e8053275362f |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/argtable/argtable-2.13-r1.ebuild |
22 |
@@ -0,0 +1,48 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+inherit versionator |
28 |
+ |
29 |
+DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss" |
30 |
+HOMEPAGE="http://argtable.sourceforge.net/" |
31 |
+ |
32 |
+MY_PV="$(replace_version_separator 1 '-')" |
33 |
+MY_P=${PN}${MY_PV} |
34 |
+ |
35 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="LGPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha amd64 ~arm64 ~ia64 ppc ppc64 ~riscv sparc x86" |
40 |
+IUSE="doc debug examples static-libs" |
41 |
+ |
42 |
+S="${WORKDIR}/${MY_P}" |
43 |
+ |
44 |
+src_configure() { |
45 |
+ econf \ |
46 |
+ $(use_enable debug) \ |
47 |
+ $(use_enable static-libs static) |
48 |
+} |
49 |
+ |
50 |
+src_install() { |
51 |
+ emake DESTDIR="${D}" install |
52 |
+ rm -rf "${D}"/usr/share/doc/${PF}/ |
53 |
+ |
54 |
+ dodoc AUTHORS ChangeLog NEWS README |
55 |
+ |
56 |
+ if use doc ; then |
57 |
+ cd "${S}/doc" |
58 |
+ dodoc *.pdf *.ps |
59 |
+ docinto html |
60 |
+ dodoc *.html *.gif |
61 |
+ fi |
62 |
+ |
63 |
+ if use examples ; then |
64 |
+ cd "${S}/example" |
65 |
+ docinto examples |
66 |
+ dodoc Makefile *.[ch] README.txt |
67 |
+ fi |
68 |
+ |
69 |
+ find "${ED}" -name "*.la" -delete || die "failed to delete .la files" |
70 |
+} |