1 |
commit: a16a17a3b8e8c9b137d093bdba652aea1e8fe77d |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 26 22:13:31 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 26 22:17:48 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a16a17a3 |
7 |
|
8 |
app-text/calibre: revbump to 3.1.1-r2 with fix for bug 622728 |
9 |
|
10 |
Indentify and purge stray directories from upstream's "Binary install" |
11 |
method. |
12 |
|
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
14 |
|
15 |
.../{calibre-3.1.1-r1.ebuild => calibre-3.1.1-r2.ebuild} | 16 ++++++++++++++++ |
16 |
1 file changed, 16 insertions(+) |
17 |
|
18 |
diff --git a/app-text/calibre/calibre-3.1.1-r1.ebuild b/app-text/calibre/calibre-3.1.1-r2.ebuild |
19 |
similarity index 93% |
20 |
rename from app-text/calibre/calibre-3.1.1-r1.ebuild |
21 |
rename to app-text/calibre/calibre-3.1.1-r2.ebuild |
22 |
index 4e9fbac4f7f..46710a8a845 100644 |
23 |
--- a/app-text/calibre/calibre-3.1.1-r1.ebuild |
24 |
+++ b/app-text/calibre/calibre-3.1.1-r2.ebuild |
25 |
@@ -249,7 +249,23 @@ src_install() { |
26 |
|
27 |
} |
28 |
|
29 |
+pkg_preinst() { |
30 |
+ # Indentify stray directories from upstream's "Binary install" |
31 |
+ # method (see bug 622728). |
32 |
+ CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre |
33 |
+ CALIBRE_LIB_CONTENT=$(for x in "${ED%/}${CALIBRE_LIB_DIR}"/*; do |
34 |
+ printf -- "${x##*/} "; done) || die "Failed to list ${ED%/}${CALIBRE_LIB_DIR}" |
35 |
+} |
36 |
+ |
37 |
pkg_postinst() { |
38 |
+ [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset" |
39 |
+ local x |
40 |
+ for x in "${EROOT%/}${CALIBRE_LIB_DIR}"/*; do |
41 |
+ if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then |
42 |
+ elog "Purging '${x}'" |
43 |
+ rm -rf "${x}" |
44 |
+ fi |
45 |
+ done |
46 |
fdo-mime_desktop_database_update |
47 |
fdo-mime_mime_database_update |
48 |
} |