diff options
author | Sam James <sam@gentoo.org> | 2021-02-21 08:00:50 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-21 08:02:42 +0000 |
commit | 3ad3ad5bc43b210d3bc649c46feb1f828254b6cc (patch) | |
tree | c1f7946b3951765f82560bb9839e557e3378e6b1 /dev-util/ragel/ragel-7.0.4.ebuild | |
parent | dev-util/colm: bump to 0.14.7 (diff) | |
download | gentoo-3ad3ad5bc43b210d3bc649c46feb1f828254b6cc.tar.gz gentoo-3ad3ad5bc43b210d3bc649c46feb1f828254b6cc.tar.bz2 gentoo-3ad3ad5bc43b210d3bc649c46feb1f828254b6cc.zip |
dev-util/ragel: bump to 7.0.4
See: https://github.com/adrian-thurston/ragel/issues/63
Bug: https://bugs.gentoo.org/766327
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/ragel/ragel-7.0.4.ebuild')
-rw-r--r-- | dev-util/ragel/ragel-7.0.4.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-util/ragel/ragel-7.0.4.ebuild b/dev-util/ragel/ragel-7.0.4.ebuild new file mode 100644 index 000000000000..6bc3ca4a6030 --- /dev/null +++ b/dev-util/ragel/ragel-7.0.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Compiles finite state machines from regular languages into executable code" +HOMEPAGE="https://www.colm.net/open-source/ragel/" +SRC_URI="https://www.colm.net/files/ragel/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="doc" + +# Notes from bug #766090 +# dev-libs/libxml2's xmllint ends up being called by asciidoc here +# app-text/dblatex too +# app-text/ghostscript-gpl too +BDEPEND=" + doc? ( + || ( app-text/asciidoc dev-ruby/asciidoctor ) + app-text/dblatex + app-text/ghostscript-gpl + dev-libs/libxml2 + dev-texlive/texlive-latex + dev-python/pygments + media-gfx/transfig + ) +" +DEPEND="~dev-util/colm-0.14.7" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + # Fix hardcoded search dir + sed -i -e "s:\$withval/lib:\$withval/$(get_libdir):" configure.ac || die + + # Allow either asciidoctor or asciidoc + # bug #733426 + sed -i -e 's/(\[ASCIIDOC\], \[asciidoc\], \[asciidoc\]/S([ASCIIDOC], [asciidoc asciidoctor]/' configure.ac || die + + eautoreconf +} + +src_configure() { + econf \ + --with-colm="${EPREFIX}/usr" \ + $(use_enable doc manual) +} + +src_install() { + default + + insinto /usr/share/vim/vimfiles/syntax + doins ragel.vim + + find "${ED}" -name '*.la' -delete || die +} |