summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2019-03-06 19:13:32 +0100
committerPatrice Clement <monsieurp@gentoo.org>2019-04-10 00:21:29 +0200
commitd245362a69206d1c6efeca303200138e45326482 (patch)
tree33a4d3671e44e4e48b914da33a8d084df42f265c
parentdev-util/treecc: fix LICENSE, use https. (diff)
downloadgentoo-d245362a69206d1c6efeca303200138e45326482.tar.gz
gentoo-d245362a69206d1c6efeca303200138e45326482.tar.bz2
gentoo-d245362a69206d1c6efeca303200138e45326482.zip
dev-util/treecc: EAPI7 bump && improve ebuild.
Closes: https://bugs.gentoo.org/679624 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
-rw-r--r--dev-util/treecc/treecc-0.3.10-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-util/treecc/treecc-0.3.10-r1.ebuild b/dev-util/treecc/treecc-0.3.10-r1.ebuild
new file mode 100644
index 000000000000..10b7e4a3fb6c
--- /dev/null
+++ b/dev-util/treecc/treecc-0.3.10-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Compiler-compiler tool for aspect-oriented programming"
+HOMEPAGE="https://www.gnu.org/software/dotgnu"
+SRC_URI="https://download.savannah.gnu.org/releases/dotgnu-pnet/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~amd64-linux ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~sparc-solaris ~x86 ~x86-linux"
+IUSE="doc examples"
+
+DEPEND="doc? ( app-text/texi2html )"
+
+src_compile() {
+ default
+
+ if use doc; then
+ [[ -f "${S}"/doc/treecc.texi ]] || die "treecc.texi was not generated"
+ cd "${S}"/doc || die
+ texi2html -split_chapter "${S}"/doc/treecc.texi \
+ || die "texi2html failed"
+ cd "${S}" || die
+ fi
+}
+
+src_install() {
+ default
+
+ if use examples; then
+ docinto examples
+ dodoc examples/README
+ dodoc examples/{expr_c.tc,gram_c.y,scan_c.l}
+ fi
+
+ if use doc; then
+ dodoc doc/*.{txt,html}
+ docinto html
+ dodoc -r doc/treecc/*.html
+ fi
+}