public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/orage/
Date: Sun,  9 Jul 2017 21:41:33 +0000 (UTC)	[thread overview]
Message-ID: <1499636478.92073a16cab4eb4a1c5a8525e85a946bbf2474f8.mgorny@gentoo> (raw)

commit:     92073a16cab4eb4a1c5a8525e85a946bbf2474f8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  1 07:37:10 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 21:41:18 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92073a16

app-office/orage: Stop hacking docdir over

 app-office/orage/orage-4.12.1-r1.ebuild | 20 ++++++++------------
 1 file 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 85e10a53d98..85276d99385 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


             reply	other threads:[~2017-07-09 21:41 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-09 21:41 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-07-09 21:41 [gentoo-commits] repo/gentoo:master commit in: app-office/orage/ Michał Górny
2017-07-09 21:41 Michał Górny
2018-01-05 10:27 Mikle Kolyada
2018-01-06  5:05 Thomas Deutschmann
2018-01-07 13:17 Sergei Trofimovich
2018-01-07 20:32 Sergei Trofimovich
2018-01-10 21:22 Sergei Trofimovich
2018-02-12 20:48 Andreas Sturmlechner
2020-07-15 14:32 Michał Górny
2023-02-09 12:53 Michał Górny
2023-10-23  1:44 Sam James
2024-01-05 13:21 Jakov Smolić
2024-01-07  5:57 WANG Xuerui
2024-01-23  5:07 Ionen Wolkens
2024-01-24  4:57 Ionen Wolkens
2024-01-25  9:21 Sam James
2024-01-25  9:21 Sam James
2024-02-10  6:58 Ionen Wolkens
2024-02-10  6:58 Ionen Wolkens
2024-06-21  4:23 Arthur Zamarin
2025-01-07 15:03 Michał Górny
2025-01-25  8:54 Sam James
2025-01-25 10:52 Sam James
2025-01-25 11:00 Sam James
2025-03-31  7:10 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499636478.92073a16cab4eb4a1c5a8525e85a946bbf2474f8.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox