summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2017-06-26 15:13:31 -0700
committerZac Medico <zmedico@gentoo.org>2017-06-26 15:17:48 -0700
commita16a17a3b8e8c9b137d093bdba652aea1e8fe77d (patch)
treebaacb6d6ba3b5c80311ca5f5dccf444a966b5eb9 /app-text/calibre
parentapp-office/libreoffice: Drop USE=quickstarter, USE=telepathy (diff)
downloadgentoo-a16a17a3b8e8c9b137d093bdba652aea1e8fe77d.tar.gz
gentoo-a16a17a3b8e8c9b137d093bdba652aea1e8fe77d.tar.bz2
gentoo-a16a17a3b8e8c9b137d093bdba652aea1e8fe77d.zip
app-text/calibre: revbump to 3.1.1-r2 with fix for bug 622728
Indentify and purge stray directories from upstream's "Binary install" method. Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'app-text/calibre')
-rw-r--r--app-text/calibre/calibre-3.1.1-r2.ebuild (renamed from app-text/calibre/calibre-3.1.1-r1.ebuild)16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-text/calibre/calibre-3.1.1-r1.ebuild b/app-text/calibre/calibre-3.1.1-r2.ebuild
index 4e9fbac4f7fd..46710a8a8454 100644
--- a/app-text/calibre/calibre-3.1.1-r1.ebuild
+++ b/app-text/calibre/calibre-3.1.1-r2.ebuild
@@ -249,7 +249,23 @@ src_install() {
}
+pkg_preinst() {
+ # Indentify stray directories from upstream's "Binary install"
+ # method (see bug 622728).
+ CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre
+ CALIBRE_LIB_CONTENT=$(for x in "${ED%/}${CALIBRE_LIB_DIR}"/*; do
+ printf -- "${x##*/} "; done) || die "Failed to list ${ED%/}${CALIBRE_LIB_DIR}"
+}
+
pkg_postinst() {
+ [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
+ local x
+ for x in "${EROOT%/}${CALIBRE_LIB_DIR}"/*; do
+ if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
+ elog "Purging '${x}'"
+ rm -rf "${x}"
+ fi
+ done
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}