summaryrefslogtreecommitdiff
path: root/dev-util/colm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-20 10:17:50 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-20 10:17:50 +0100
commit399fa07bfac673a8846466b16c76549e329b55b8 (patch)
tree29af17ef91f1bd986b8e615a96b61db7fad5df14 /dev-util/colm
parent388a0747e5972613060d5ca13955b5cd7132533d (diff)
gentoo auto-resync : 20:05:2023 - 10:17:50
Diffstat (limited to 'dev-util/colm')
-rw-r--r--dev-util/colm/Manifest1
-rw-r--r--dev-util/colm/colm-0.14.7-r3.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-util/colm/Manifest b/dev-util/colm/Manifest
index 1c72edbcd47f..63d70e769adf 100644
--- a/dev-util/colm/Manifest
+++ b/dev-util/colm/Manifest
@@ -6,5 +6,6 @@ DIST colm-0.14.7.tar.gz 3110831 BLAKE2B c8be14001e8dc3340f5c55fbf8140b86237ec946
EBUILD colm-0.13.0.7.ebuild 536 BLAKE2B 63e79a820fc90b689337ae2d4bf23c008414f40e2a731322be6585c154bcda1c54ef7445d3df7ef398f92979c6a77bdb144c9e6714bced9799be80b9115baef3 SHA512 a5a414ceb658cf09730b8a2bfb3c5cc99506f998034ee9131c3ee2b7ee29b362a5053f1ff55991336d31685cd65b8f1c2f76f71456ccf51a198596f07782208d
EBUILD colm-0.14.7-r1.ebuild 1548 BLAKE2B cbfd522b33a1444ed0107ce67ed93bdb52d3c08e4759f30a0f29cf0ddb64aaf11e439fc216c0127322e5af2c4d1860019fdb6c38f069c9ffc682815be8deb600 SHA512 5ac04d835b9637569755fe65e4a918820c4d55b08c6eb6a6379aa5eaa1c26cedf8e533cc60090e19b8adc2358a54fec3673d77057b5f65b30be7cdbe99a03cb0
EBUILD colm-0.14.7-r2.ebuild 1626 BLAKE2B 134b719654a28a368da647ec2b46f8b135e466464d1262054eb1ca258ef373dee5d6272dd078416d6183fa09788f1ee6c847d3402ab28d40c9f0e99362c1dbf8 SHA512 fcc30237fb0d7c175509a83ba931613c2e7ac1166ef4f66cdd37140fb060971fdd60bfe6e077ebf03d33e157712afc26f28d3f40106dfde4472454ccc26810b7
+EBUILD colm-0.14.7-r3.ebuild 1757 BLAKE2B 6ad8d70c6e56c21911bd979af3604bbbf1890b7fcbd5ef0c49d2199ac6e9a2a9656187d554da0390858cdf11afaa830089f42674bfac44864d8782f3ffdc0669 SHA512 58584b6129435ff342100cb9e72e81e2a8b57c9141ad3f98d6ec2ff7e7df6b143e9c602fe4211f1b2c513c1c2269795a328dd13cd3c2f5cf37c864addbca1d4b
EBUILD colm-0.14.7.ebuild 1382 BLAKE2B a040745057dc087cca435929c57c7cb09ba76156fddce29a3e8e50bda6e100c550bab847a66a24947bb089566992596d83b69c9f0260287894355a11e9f37284 SHA512 026aa8dcbf7c827840179d3d336bf6ed006732a2b69688df307183ccc6d622eacdf4581510b8499c7cce9904b1028dc6e664af6b71f027dca9dba2f592d1e627
MISC metadata.xml 253 BLAKE2B a2ab0ef0490c566ca6997a4cf9cb3b5e92449a989cfb7c71a653e6f06c8eeb1945cb81155e315051f91369dcb5ed689eb9f31b4cee0afc479ae4c61d95335833 SHA512 ed9c676e9a7622619fc74ff3cdc943e7ea4203f230043200fe3aa1836b776952ffd2c34160c93ed5156b500ffc538ac0582a201322b5577f29df625224a69ed7
diff --git a/dev-util/colm/colm-0.14.7-r3.ebuild b/dev-util/colm/colm-0.14.7-r3.ebuild
new file mode 100644
index 000000000000..19e1284d28ca
--- /dev/null
+++ b/dev-util/colm/colm-0.14.7-r3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+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 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+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"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.14.7-drop-julia-check.patch
+ "${FILESDIR}"/${PN}-0.14.7-disable-static-lib.patch
+ "${FILESDIR}"/${PN}-0.14.7-solaris.patch
+)
+
+src_prepare() {
+ default
+
+ # bug #733426
+ sed -i -e 's/(\[ASCIIDOC\], \[asciidoc\], \[asciidoc\]/S([ASCIIDOC], [asciidoc asciidoctor]/' configure.ac || die
+
+ # Respect CC/CXX (bug #766069), we also omit CFLAGS here because
+ # it seems to crash with some combinations and the software is fragile
+ # (bug #883993).
+ sed -i -e "s|gcc|$(tc-getCC)|" src/main.cc || die
+ 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
+
+ # fix linkage on Darwin from colm itself during build
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ sed -i -e 's/libcolm\.so/libcolm.dylib/' src/main.cc || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable doc manual)
+}
+
+src_test() {
+ # Build tests
+ default
+
+ # Run them
+ cd test || die
+ ./runtests || die
+}
+
+src_install() {
+ default
+ find "${ED}" -type f -name '*.la' -delete || die
+}