1 |
commit: b2a004ccadfd522ac7ad085a20099c701ed7348d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 14 12:54:13 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 14 13:34:49 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2a004cc |
7 |
|
8 |
dev-libs/keybinder: Fix gtk-doc install location |
9 |
|
10 |
Closes: https://bugs.gentoo.org/570972 |
11 |
|
12 |
dev-libs/keybinder/keybinder-0.3.2-r300.ebuild | 12 +++++++++--- |
13 |
1 file changed, 9 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild b/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild |
16 |
index a62c8c1c0c7..d12fc21e838 100644 |
17 |
--- a/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild |
18 |
+++ b/dev-libs/keybinder/keybinder-0.3.2-r300.ebuild |
19 |
@@ -29,12 +29,18 @@ S=${WORKDIR}/${MY_P} |
20 |
|
21 |
src_configure() { |
22 |
econf \ |
23 |
- $(use_enable introspection) \ |
24 |
- --with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" |
25 |
+ $(use_enable introspection) |
26 |
} |
27 |
|
28 |
src_install() { |
29 |
default |
30 |
prune_libtool_files --all |
31 |
- dosym /usr/share/doc/${PF}/html/${PN}-3.0 /usr/share/gtk-doc/html/${PN}-3.0 |
32 |
+} |
33 |
+ |
34 |
+pkg_preinst() { |
35 |
+ # remove old symlink as otherwise the files will be installed |
36 |
+ # in the wrong directory |
37 |
+ if [[ -h ${EROOT%/}/usr/share/gtk-doc/html/keybinder-3.0 ]]; then |
38 |
+ rm "${EROOT%/}/usr/share/gtk-doc/html/keybinder-3.0" || die |
39 |
+ fi |
40 |
} |