Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/magit/
Date: Mon, 26 Oct 2015 18:23:30
Message-Id: 1445883764.724aa5e88c07e279e7cd76639145810c0ba9e914.ulm@gentoo
1 commit: 724aa5e88c07e279e7cd76639145810c0ba9e914
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 26 18:20:59 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 26 18:22:44 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=724aa5e8
7
8 app-emacs/magit: Fix build failure.
9
10 Fix documentation build failure by avoiding the horrible upstream
11 build system altogether. Drop the "contrib" USE flag since there is
12 no contrib directory any more. Install some additional doc files.
13
14 Bug: 564152
15
16 Package-Manager: portage-2.2.23
17
18 .../{magit-2.2.2.ebuild => magit-2.2.2-r1.ebuild} | 28 +++++-----------------
19 1 file changed, 6 insertions(+), 22 deletions(-)
20
21 diff --git a/app-emacs/magit/magit-2.2.2.ebuild b/app-emacs/magit/magit-2.2.2-r1.ebuild
22 similarity index 59%
23 rename from app-emacs/magit/magit-2.2.2.ebuild
24 rename to app-emacs/magit/magit-2.2.2-r1.ebuild
25 index 8a803af..bb0b51a 100644
26 --- a/app-emacs/magit/magit-2.2.2.ebuild
27 +++ b/app-emacs/magit/magit-2.2.2-r1.ebuild
28 @@ -13,40 +13,24 @@ SRC_URI="https://github.com/magit/magit/releases/download/${PV}/${P}.tar.gz"
29 LICENSE="GPL-3+ FDL-1.2+"
30 SLOT="0"
31 KEYWORDS="~amd64"
32 -IUSE="contrib"
33 RESTRICT="test"
34
35 SITEFILE="50${PN}-gentoo.el"
36
37 -CDEPEND=">=app-emacs/dash-2.12.0"
38 -
39 -DEPEND="${CDEPEND}"
40 -RDEPEND="${CDEPEND} >=dev-vcs/git-1.9.4"
41 -
42 -src_prepare() {
43 - # Makefile expects this to be present at the current directory
44 - ln -s lisp/magit-version.el magit-version.el || die
45 -}
46 +DEPEND=">=app-emacs/dash-2.12.0"
47 +RDEPEND="${DEPEND} >=dev-vcs/git-1.9.4"
48
49 src_compile() {
50 # The upstream build system ignores errors during byte-compilation
51 # and happily installs broken files, causing errors at runtime.
52 # Call elisp-compile, in order to catch them here already.
53 - pushd lisp || die
54 - elisp-compile *.el
55 - popd || die
56 - emake docs
57 - use contrib && emake contrib
58 + elisp-compile lisp/*.el
59 + makeinfo Documentation/*.texi || die
60 }
61
62 src_install() {
63 elisp-install ${PN} lisp/*.{el,elc}
64 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
65 - doinfo Documentation/*.info
66 - dodoc README.md
67 -
68 - if use contrib; then
69 - elisp-install ${PN} contrib/*.{el,elc}
70 - dobin contrib/magit
71 - fi
72 + doinfo *.info
73 + dodoc README.md Documentation/AUTHORS.md Documentation/${PV}.txt
74 }