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