1 |
commit: 00480b83c45ae282dc5a3509f02910e6779c975e |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 29 16:31:40 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 29 16:31:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00480b83 |
7 |
|
8 |
dev-libs/iniparser: Port SLOT=4 to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
dev-libs/iniparser/iniparser-4.1.ebuild | 31 +++++++++++++------------------ |
14 |
1 file changed, 13 insertions(+), 18 deletions(-) |
15 |
|
16 |
diff --git a/dev-libs/iniparser/iniparser-4.1.ebuild b/dev-libs/iniparser/iniparser-4.1.ebuild |
17 |
index 02c8405c8e5..56571da75ab 100644 |
18 |
--- a/dev-libs/iniparser/iniparser-4.1.ebuild |
19 |
+++ b/dev-libs/iniparser/iniparser-4.1.ebuild |
20 |
@@ -1,9 +1,9 @@ |
21 |
# Copyright 1999-2020 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
+EAPI=7 |
26 |
|
27 |
-inherit multilib toolchain-funcs flag-o-matic |
28 |
+inherit toolchain-funcs flag-o-matic |
29 |
|
30 |
DESCRIPTION="A free stand-alone ini file parsing library" |
31 |
HOMEPAGE="https://github.com/ndevilla/iniparser" |
32 |
@@ -12,26 +12,23 @@ SRC_URI="https://github.com/ndevilla/iniparser/archive/v${PV}.tar.gz -> ${P}.tar |
33 |
LICENSE="MIT" |
34 |
SLOT="4" |
35 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
-IUSE="doc examples static-libs" |
37 |
+IUSE="doc examples" |
38 |
|
39 |
-DEPEND="doc? ( app-doc/doxygen )" |
40 |
-RDEPEND="" |
41 |
- |
42 |
-DOCS=( AUTHORS README.md ) |
43 |
+BDEPEND="doc? ( app-doc/doxygen )" |
44 |
|
45 |
_newlib_so_with_symlinks() { |
46 |
local source="${1}" base="${2}" current="${3}" revision="${4}" age="${5}" |
47 |
- local libdir="$(get_libdir)" |
48 |
|
49 |
newlib.so ${source} ${base}.so.${current}.${revision}.${age} |
50 |
+ local i |
51 |
for i in ".${current}" '' ; do |
52 |
- dosym ${base}.so.${current}.${revision}.${age} /usr/${libdir}/${base}.so${i} |
53 |
+ dosym ${base}.so.${current}.${revision}.${age} /usr/$(get_libdir)/${base}.so${i} |
54 |
done |
55 |
} |
56 |
|
57 |
src_prepare() { |
58 |
- rm -R html || die |
59 |
- eapply_user |
60 |
+ default |
61 |
+ rm -r html || die |
62 |
} |
63 |
|
64 |
src_configure() { |
65 |
@@ -54,7 +51,6 @@ src_test() { |
66 |
} |
67 |
|
68 |
src_install() { |
69 |
- use static-libs && newlib.a lib${PN}.a lib${PN}${SLOT}.a |
70 |
_newlib_so_with_symlinks lib${PN}${SLOT}.so.1 lib${PN}${SLOT} 1 0 0 |
71 |
|
72 |
insinto /usr/include/${PN}${SLOT} |
73 |
@@ -62,14 +58,13 @@ src_install() { |
74 |
|
75 |
if use doc; then |
76 |
emake -C doc |
77 |
- HTML_DOCS=html/ |
78 |
+ HTML_DOCS=( html/. ) |
79 |
fi |
80 |
|
81 |
- if use examples ; then |
82 |
- local examplesdir="/usr/share/doc/${PF}/examples" |
83 |
- insinto "${examplesdir}" |
84 |
- doins example/* |
85 |
- docompress -x "${examplesdir}" |
86 |
+ if use examples; then |
87 |
+ docinto examples |
88 |
+ dodoc -r example/. |
89 |
+ docompress -x /usr/share/doc/${PF}/examples |
90 |
fi |
91 |
|
92 |
einstalldocs |