commit:     9bf8fa214188de701ecab444a08baa360e3c1f34
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 21 07:54:20 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 21 08:02:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bf8fa21

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 <AT> gentoo.org>

 dev-util/colm/Manifest           |  1 +
 dev-util/colm/colm-0.14.7.ebuild | 58 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/dev-util/colm/Manifest b/dev-util/colm/Manifest
index 54fc8a2c206..f64fc201bd3 100644
--- a/dev-util/colm/Manifest
+++ b/dev-util/colm/Manifest
@@ -1,2 +1,3 @@
 DIST colm-0.13.0.7.tar.gz 746841 BLAKE2B 
7f816bafc0d1a7ea826b6cc2f5bd5fa2bffcd0eca88d5eaab757201481804dc5fa6c80fa19a550ebd9ee50a00a621690c4eed1788e0d0d3dd600db95ed8240d3
 SHA512 
d15cc6afeeacc4f34171261e75a7daa285529b98940272566ca6d6661d0778b18930ca72e0bce8d0a56c36c3482adfe4375c32ec66d6e77ee32544bddf35024d
 DIST colm-0.14.6.tar.gz 3110298 BLAKE2B 
430c508ff9db27821baca12a458024cb2caecf2879ac3780fa6ebbc37bed30d3faf68515f21c9b31bd5f1504ab03b5ea63a24812f7117515c63261b8d1683e27
 SHA512 
a783817f9d348a79e93cac54c042e8366a73df287c14221b9e4a7b963385c1e32eb54d6918d0822b271dc2a0420abce84a3e1a3c9ada84968d1c20178d0310ad
+DIST colm-0.14.7.tar.gz 3110831 BLAKE2B 
c8be14001e8dc3340f5c55fbf8140b86237ec9462699e417f618cf44c759307eda0ede9f7a9ef897f5b8bc51d1fdf8b7360872a30b4cf07ba8191e405940030c
 SHA512 
a5702cb8202599c75f4f4c1975d02e398f1394826f01b86039bd53a34f3ca250a7250d043a430ce6a383e6ca854fe4c72305891ab98c5f3d0ce54192423b7627

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 00000000000..827e3f051e7
--- /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?)
+}

Reply via email to