Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/treecc/
Date: Tue, 09 Apr 2019 22:21:48
Message-Id: 1554848489.d245362a69206d1c6efeca303200138e45326482.monsieurp@gentoo
1 commit: d245362a69206d1c6efeca303200138e45326482
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Mar 6 18:13:32 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 9 22:21:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d245362a
7
8 dev-util/treecc: EAPI7 bump && improve ebuild.
9
10 Closes: https://bugs.gentoo.org/679624
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 dev-util/treecc/treecc-0.3.10-r1.ebuild | 43 +++++++++++++++++++++++++++++++++
15 1 file changed, 43 insertions(+)
16
17 diff --git a/dev-util/treecc/treecc-0.3.10-r1.ebuild b/dev-util/treecc/treecc-0.3.10-r1.ebuild
18 new file mode 100644
19 index 00000000000..10b7e4a3fb6
20 --- /dev/null
21 +++ b/dev-util/treecc/treecc-0.3.10-r1.ebuild
22 @@ -0,0 +1,43 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +DESCRIPTION="Compiler-compiler tool for aspect-oriented programming"
29 +HOMEPAGE="https://www.gnu.org/software/dotgnu"
30 +SRC_URI="https://download.savannah.gnu.org/releases/dotgnu-pnet/${P}.tar.gz"
31 +
32 +LICENSE="GPL-2+"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~amd64-linux ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~sparc-solaris ~x86 ~x86-linux"
35 +IUSE="doc examples"
36 +
37 +DEPEND="doc? ( app-text/texi2html )"
38 +
39 +src_compile() {
40 + default
41 +
42 + if use doc; then
43 + [[ -f "${S}"/doc/treecc.texi ]] || die "treecc.texi was not generated"
44 + cd "${S}"/doc || die
45 + texi2html -split_chapter "${S}"/doc/treecc.texi \
46 + || die "texi2html failed"
47 + cd "${S}" || die
48 + fi
49 +}
50 +
51 +src_install() {
52 + default
53 +
54 + if use examples; then
55 + docinto examples
56 + dodoc examples/README
57 + dodoc examples/{expr_c.tc,gram_c.y,scan_c.l}
58 + fi
59 +
60 + if use doc; then
61 + dodoc doc/*.{txt,html}
62 + docinto html
63 + dodoc -r doc/treecc/*.html
64 + fi
65 +}