summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-07-01 09:37:10 +0200
committerMichał Górny <mgorny@gentoo.org>2017-07-09 23:41:18 +0200
commit92073a16cab4eb4a1c5a8525e85a946bbf2474f8 (patch)
treece272d51fdd795c259e7424791b4585a5bafed3f /app-office/orage
parentapp-office/orage: Bump to EAPI=6 (diff)
downloadgentoo-92073a16cab4eb4a1c5a8525e85a946bbf2474f8.tar.gz
gentoo-92073a16cab4eb4a1c5a8525e85a946bbf2474f8.tar.bz2
gentoo-92073a16cab4eb4a1c5a8525e85a946bbf2474f8.zip
app-office/orage: Stop hacking docdir over
Diffstat (limited to 'app-office/orage')
-rw-r--r--app-office/orage/orage-4.12.1-r1.ebuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/app-office/orage/orage-4.12.1-r1.ebuild b/app-office/orage/orage-4.12.1-r1.ebuild
index 85e10a53d986..85276d99385f 100644
--- a/app-office/orage/orage-4.12.1-r1.ebuild
+++ b/app-office/orage/orage-4.12.1-r1.ebuild
@@ -27,11 +27,6 @@ DEPEND="${RDEPEND}
>=sys-devel/libtool-2.2.6
virtual/pkgconfig"
-pkg_setup() {
- # PM doesn't let directory to be replaced by a symlink, see src_install()
- rm -rf "${EROOT}"/usr/share/${PN}/doc || die
-}
-
src_configure() {
local myconf=(
--libexecdir="${EPREFIX}/usr/$(get_libdir)"
@@ -46,16 +41,17 @@ src_configure() {
}
src_install() {
- emake DESTDIR="${D}" install \
- docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
- imagesdir="${EPREFIX}"/usr/share/doc/${PF}/html/images
-
- # Create compability symlink for retarded path hardcoding in src/{mainbox,parameters}.c
- dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc/C
-
+ default
find "${D}" -name '*.la' -delete || die
}
+pkg_preinst() {
+ # Replacing directory by symlink is unreliable
+ if [[ -L ${EROOT}/usr/share/orage/doc/C ]]; then
+ rm -f "${EROOT}/usr/share/orage/doc/C" || die
+ fi
+}
+
pkg_postinst() {
gnome2_icon_cache_update
xdg_desktop_database_update