Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/org-mode/
Date: Sun, 25 Oct 2015 10:34:07
Message-Id: 1445714388.696eea2903c71c0b58aec2bff2faeb06b45fdeaa.mgorny@gentoo
1 commit: 696eea2903c71c0b58aec2bff2faeb06b45fdeaa
2 Author: Marc Joliet <marcec <AT> gmx <DOT> de>
3 AuthorDate: Sat Oct 24 17:57:53 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 24 19:19:48 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=696eea29
7
8 app-emacs/org-mode: inform users of run-time deps
9
10 Org mode has a long list of optional run-time dependencies. Expend a
11 reasonable amount of effort to inform users of these with the help of the
12 readme.gentoo eclass.
13
14 Gentoo-bug: 563486
15 Signed-off-by: Marc Joliet <marcec <AT> gmx.de>
16
17 app-emacs/org-mode/org-mode-8.3.2-r1.ebuild | 61 +++++++++++++++++++++++++++++
18 1 file changed, 61 insertions(+)
19
20 diff --git a/app-emacs/org-mode/org-mode-8.3.2-r1.ebuild b/app-emacs/org-mode/org-mode-8.3.2-r1.ebuild
21 new file mode 100644
22 index 0000000..71afd50
23 --- /dev/null
24 +++ b/app-emacs/org-mode/org-mode-8.3.2-r1.ebuild
25 @@ -0,0 +1,61 @@
26 +# Copyright 1999-2015 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI=5
31 +
32 +inherit readme.gentoo elisp
33 +
34 +DESCRIPTION="An Emacs mode for notes and project planning"
35 +HOMEPAGE="http://www.orgmode.org/"
36 +SRC_URI="http://orgmode.org/org-${PV}.tar.gz"
37 +
38 +LICENSE="GPL-3+ FDL-1.3+ contrib? ( GPL-2+ MIT ) odt-schema? ( OASIS-Open )"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~x86-macos"
41 +IUSE="contrib doc odt-schema"
42 +RESTRICT="test"
43 +
44 +DEPEND="doc? ( virtual/texi2dvi )"
45 +
46 +S="${WORKDIR}/org-${PV}"
47 +SITEFILE="50${PN}-gentoo.el"
48 +
49 +DOC_CONTENTS="
50 +Org mode has a large variety of run-time dependencies, so you may have to
51 +install one or more additional packages. A non-exhaustive list of these
52 +dependencies may be found at <http://orgmode.org/worg/org-dependencies.html>.
53 +"
54 +
55 +src_compile() {
56 + emake datadir="${EPREFIX}${SITEETC}/${PN}"
57 + use doc && emake pdf card
58 +}
59 +
60 +src_install() {
61 + emake \
62 + DESTDIR="${D}" \
63 + ETCDIRS="styles $(use odt-schema && echo schema)" \
64 + lispdir="${EPREFIX}${SITELISP}/${PN}" \
65 + datadir="${EPREFIX}${SITEETC}/${PN}" \
66 + infodir="${EPREFIX}/usr/share/info" \
67 + install
68 +
69 + cp "${FILESDIR}/${SITEFILE}" "${T}/${SITEFILE}" || die
70 +
71 + if use contrib; then
72 + elisp-install ${PN}/contrib contrib/lisp/{org,ob,ox}*.el
73 + insinto /usr/share/doc/${PF}/contrib
74 + doins -r contrib/README contrib/scripts
75 + find "${ED}/usr/share/doc/${PF}/contrib" -type f -name '.*' \
76 + -exec rm -f '{}' '+'
77 + # add the contrib subdirectory to load-path
78 + sed -i -e 's:\(.*@SITELISP@\)\(.*\):&\n\1/contrib\2:' \
79 + "${T}/${SITEFILE}" || die
80 + fi
81 +
82 + elisp-site-file-install "${T}/${SITEFILE}"
83 + readme.gentoo_create_doc
84 + dodoc README doc/library-of-babel.org doc/orgcard.txt etc/ORG-NEWS
85 + use doc && dodoc doc/org.pdf doc/orgcard.pdf doc/orgguide.pdf
86 +}