diff options
author | Sam James <sam@gentoo.org> | 2021-02-21 07:54:20 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-21 08:02:42 +0000 |
commit | 9bf8fa214188de701ecab444a08baa360e3c1f34 (patch) | |
tree | 56f77cf398ba0e674c7a36e219505a8102e53ccc /dev-util/colm/colm-0.14.7.ebuild | |
parent | app-eselect/eselect-rails: add 0.25 for rails 6 versions (diff) | |
download | gentoo-9bf8fa214188de701ecab444a08baa360e3c1f34.tar.gz gentoo-9bf8fa214188de701ecab444a08baa360e3c1f34.tar.bz2 gentoo-9bf8fa214188de701ecab444a08baa360e3c1f34.zip |
dev-util/colm: bump to 0.14.7
See: https://github.com/adrian-thurston/ragel/issues/63
Closes: 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/colm/colm-0.14.7.ebuild')
-rw-r--r-- | dev-util/colm/colm-0.14.7.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-util/colm/colm-0.14.7.ebuild b/dev-util/colm/colm-0.14.7.ebuild new file mode 100644 index 000000000000..827e3f051e77 --- /dev/null +++ b/dev-util/colm/colm-0.14.7.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="COmputer Language Manipulation" +HOMEPAGE="https://www.colm.net/open-source/colm/" +SRC_URI="https://www.colm.net/files/${PN}/${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" + +BDEPEND=" + doc? ( + || ( app-text/asciidoc dev-ruby/asciidoctor ) + dev-python/pygments + ) +" +# libfsm moved from ragel -> colm, bug #766108 +RDEPEND="!<dev-util/ragel-7.0.3" + +src_prepare() { + default + + # bug #733426 + sed -i -e 's/(\[ASCIIDOC\], \[asciidoc\], \[asciidoc\]/S([ASCIIDOC], [asciidoc asciidoctor]/' configure.ac || die + + # bug #766069 + sed -i -e "s:gcc:$(tc-getCC):" test/colm.d/gentests.sh || die + sed -i -e "s:g++:$(tc-getCXX):" test/colm.d/gentests.sh || die + + eautoreconf +} + +src_configure() { + econf $(use_enable doc manual) +} + +src_test() { + # Build tests + default + + # Run them + cd test || die + ./runtests || die +} + +src_install() { + default + + # NOTE: dev-util/ragel needs the static libraries + # and .la files, unfortunately. + # (May have better luck if we use the CMake port?) +} |