mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-util/treecc: EAPI8 bump, fix calling ar directly, bug #724244
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://bugs.gentoo.org/724244 Closes: https://github.com/gentoo/gentoo/pull/34621 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
committed by
Conrad Kostecki
parent
411c225a30
commit
76dc067e8a
45
dev-util/treecc/treecc-0.3.10-r2.ebuild
Normal file
45
dev-util/treecc/treecc-0.3.10-r2.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
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 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="doc examples"
|
||||
|
||||
DEPEND="doc? ( app-text/texi2html )"
|
||||
|
||||
src_compile() {
|
||||
emake AR="$(tc-getAR)"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user