diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/ragel |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/ragel')
-rw-r--r-- | dev-util/ragel/Manifest | 17 | ||||
-rw-r--r-- | dev-util/ragel/files/ragel-6.7+gcc-4.7.patch | 178 | ||||
-rw-r--r-- | dev-util/ragel/files/ragel-6.7-cross-compile.patch | 21 | ||||
-rw-r--r-- | dev-util/ragel/metadata.xml | 7 | ||||
-rw-r--r-- | dev-util/ragel/ragel-6.10.ebuild | 37 | ||||
-rw-r--r-- | dev-util/ragel/ragel-6.7-r1.ebuild | 49 | ||||
-rw-r--r-- | dev-util/ragel/ragel-6.8.ebuild | 44 | ||||
-rw-r--r-- | dev-util/ragel/ragel-6.9.ebuild | 37 | ||||
-rw-r--r-- | dev-util/ragel/ragel-7.0.0.10.ebuild | 29 | ||||
-rw-r--r-- | dev-util/ragel/ragel-7.0.0.9.ebuild | 29 |
10 files changed, 448 insertions, 0 deletions
diff --git a/dev-util/ragel/Manifest b/dev-util/ragel/Manifest new file mode 100644 index 000000000000..8c90f7b5e311 --- /dev/null +++ b/dev-util/ragel/Manifest @@ -0,0 +1,17 @@ +AUX ragel-6.7+gcc-4.7.patch 5585 SHA256 bcdee795c9a063d4a42f49f2ba642a922aa705769c455b9b375bfab47c7e137c SHA512 160aea4100328accbe423e98f7f5741309b9e293aea992f287cb5d9fab25ae74c76933e924658dd4670d317b01e76d37c3defeeb47ada07370b819a16515ebf4 WHIRLPOOL 332ea976cc95139491b767ce31142a8408fbf79cdd16434c7527c270fe42cc1911581124fde5a33dcefe4d61a78c2ea38f0e484015d0fe3b40611305da45c46b +AUX ragel-6.7-cross-compile.patch 576 SHA256 b393221908d6524567c2b9a08e51e8b1998313ac457a7a04ac3d00db031b84d5 SHA512 0ab26720537bdb77194159145d5fc2e01ee96f3d197d947693141e0559e18b4da3ac7b058d7de4a9d4d9cf9c4ab63649839da359ed3aabcb5ea7163ec975d5b1 WHIRLPOOL 0b38984463c4178cbeca5c6253eb9da992d0e095df22ecf97a6894e5660a846bc6adbc657ec04de554f4263ad3816afafb939a54047f85e4da00a123d8482059 +DIST ragel-6.10.tar.gz 1232993 SHA256 5f156edb65d20b856d638dd9ee2dfb43285914d9aa2b6ec779dac0270cd56c3f SHA512 6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38 WHIRLPOOL 12f8557fb665dba46d63ddb05d0dab87b990e6743471652bb608dfcb7cb24dafb4105e42cc91897cde4cad2c2fb58f50d5fbed68a468ca9fc33e5b1047d36f74 +DIST ragel-6.7.tar.gz 1182734 SHA256 46df8e3f117a730f8896061c95ea8e8f53e9789cb053c2eea047833724fd7a30 SHA512 a85c1d5d4fd7d903c823c2ddc8b5f1d5dd5f715f11bc04f10fb78ea5632b3aa33c5b4861f89179fa9d6b4944484216ee93bbd25dd0b5958d2419e434b781b78a WHIRLPOOL 52f1614e16390949fe070df46c9929b5871e35923b38e6c277f0d4688e45f610a16a6635240cea0622892c675aebf092e3f6a9c626684ed1a4af8191ff3c6d6f +DIST ragel-6.8.tar.gz 1211146 SHA256 dd7f7d22f3a58147379bda61334d341c2caa0caf9f71897e3e4ec05c8f398764 SHA512 3c7fa4ca0cfcd5d19e0ff8746ca427f5a1eefb0af09db5d2ee55ced9bcc35c588a5db146dcfdec46b83fb63d94ff9ace117b4cfcb07e2c57aec67a6cbe249458 WHIRLPOOL 540ba0c5a712ae0426982e08e7aa7b1fa1ff33e3d9c2095353939ed2c45e04048ebcdf93292ead8e70abbd8fa230dddbfeea8d485955142d0615ddb94c8a0b9a +DIST ragel-6.9.tar.gz 1226871 SHA256 6e07be0fab5ca1d9c2d9e177718a018fc666141f594a5d6e7025658620cf660a SHA512 46886a37fa0b785574c03ba6581d99bbeaa11ca65cf4fdc37ceef42f4869bd695694cd69b4b974a25cf539f004cb106e3debda17fc26e1a9a6a4295992733dbd WHIRLPOOL c802e3020842b28ecfe604ca13c8f205ed98fb4c180c65a88be9001e7b73dc4facc6a716f55623da4f9c7cdc43c79d958c4c26fa89622bdabf9b3989e0c9682e +DIST ragel-7.0.0.10.tar.gz 779503 SHA256 40562bcac66a22dbea8357a35745bbcb1ab596c262d8691145ee11aafa6f8dec SHA512 2d1d4c469d8581239ec21f128e94ab452b398903302f82ef59ce03d6fb89bc89de6441dbe53ea99d7689866f7aec485ab1ec9c537908f21eb1394650b55413ba WHIRLPOOL d99108785163de286d426d805409a23c6ac7d82ea2887e6900ab184758bad3945ccdc1a692c3577ccb084c492c2fe7e8052e45ecc622fe754f08dc8da9f85fc2 +DIST ragel-7.0.0.9.tar.gz 850078 SHA256 b9e6cac5d388398ac05d8ef15a07628f5e6de292e39f5ad92b8176379e8352f0 SHA512 87de7d41af4a08f09d422a0e58820f9b5b1218acc4733c58690feea4f872790813b5f2d7505ce147a2a6e1bcd341926c35fed7c6b55f543bdf864b119868bcde WHIRLPOOL 0ae6c3d589caf967c30d9ccc30a6801cdf55032aa7f2939dc101e6ca3ef5b3e15df4a311164128bca63f9d2e3500d601739b9296a276de3b3b58755e5db0d646 +EBUILD ragel-6.10.ebuild 961 SHA256 41a23dd81825ef78265e00506641857277484f3078a3b47eaba638f93aae6545 SHA512 565f9f5c0da6b27d8147b786b45f27dba1ace9b524dafa8014dcacc5cb26100a191214f3588949156e96e514a12bbfd5a170e295c7bc52f133d28c934194a239 WHIRLPOOL 34f7adfaeeb65338871a07159d25edf35a956a901c898ea6c34fcef6d41b3524b7d6a9ef85b734334ac8f9b3d6261955eed2d6fb7bc4599d36aa0efacaafda4f +EBUILD ragel-6.7-r1.ebuild 1152 SHA256 e99b2083ae13a8d1a7d784b5a9cb4a6e02fa4d91a35dd5184c31d190813acc9e SHA512 46bee68ca0e22ef5f64a827af52f3dc14374920a31e2817a4430726bb2278447b0515acf1e0b77d58e3a6330e580f71c735e2170e4503734dd31186c10907822 WHIRLPOOL 92150dac5227a015f614531a3670e713167233b27067644ad98788d5d8e0fd49ae44a5ed05edfeda66f5ea0ff76f1befd3ab47903e4ca351839d3b894cd5ff31 +EBUILD ragel-6.8.ebuild 1094 SHA256 507b280002f2df0a5a5cde11713ebce68d9d2f07a9936c39efe5e9ed475e6db3 SHA512 f290a2edb43b60b52a563927343cb5f3672dcac30a598b6e95afe66858cfb33f0af5bc1d960e9b8efc05e9eea9a369045fe8dc7dc77abd596813d80f324d03ce WHIRLPOOL 77384425e2ecfbfc453a876e43387533ff7c97773bf42f6348f83f3745d7751a177f38c172ef574ec81195f4d0b1bdf7b876f7341dfc1ba4d2684df900cdfaca +EBUILD ragel-6.9.ebuild 966 SHA256 d96f2cfa1bf988e10b3ff77cb4dfaba1dfc93d59d9351e33d8d859c7d0bd5f95 SHA512 14f09d54403f9eb38ad6a6b2640940475514a819f134102920c57700327886094aa94c723e829076540e9cef02b763c6e2204bc665f9ab80aa60f5d47ccff41a WHIRLPOOL 6ff83b36c3401f88b9d6be1a27f78bae62bf35cbe8306edde993297cd5d550bfebd90688a330087998cc8fa6ee7af059b01748a4a85cae3f626aa450b7e0d90b +EBUILD ragel-7.0.0.10.ebuild 627 SHA256 2f6d1b55711efc362534ec9cda95bbd57b2ebff59996f1dd868a37dc24a8a693 SHA512 023290b91413f0a249aa409de73a22ab622290c81281f699187ea64ceb6393819a9e0e4b9b2eecaf5c25d519d09ba080f7bfbe085dc86c228ab3f7400980d9d5 WHIRLPOOL 2d77548ed757d8649161be1ed31bf4800f601ea5e46fe393dfc6a82e52dba8d8a677232679e054dd28ebdfae3a18fb8be97e1031b69aa23b251effdae6b110b9 +EBUILD ragel-7.0.0.9.ebuild 627 SHA256 d509a44548536bd7cc12b55ac8f52d569122c24ebbfb07695d94b96c2c661030 SHA512 1f88ee8f0bac60c073a2be525ea1dcc9128961d8383f36d992121064746d7c154b1338f4582797145fe782485c8d322119aa7ac8ee903315d056cf17a635a3c6 WHIRLPOOL bee7b21c1a50a04d560356cc78f330311e0fecaca759dc362920707354ebc14d50e4e6ce6a49bdda1b20acc28c39a1c683e1c4221c2271021fbefed8c4f15945 +MISC ChangeLog 2452 SHA256 de1aaa84731ddf8bb9a0f59127336b3572e841557624e6b63716af57e0c1732e SHA512 1ba6a8f3da6816e4bc8a4ef01109880fa81947be416578550323abeb8081e22f9d9386b8059b57cc33ce7e181630b6d113710511d59a7b915988a9dcad070a22 WHIRLPOOL 7e83a1608239a2fec6e67ef79ea847a91c1209458a09ff80dc68b9773dabf53753add3ad404291ba6bcbad164ff830a36be90efb6357167cc7f45681c093f22e +MISC ChangeLog-2015 8753 SHA256 cad31226ac0f9cf7ac2b4c3bcc73f16406134bcec3b637590dbb4ae2a4ccd9eb SHA512 a729de49be76d99ea81b05f583308113b0c37fc32e65e7ba93ab4c74fd579df2c0e087cbdc217669b1354384f4d504a58676d213a08b4e0b3cd7c9682704c573 WHIRLPOOL aa4f81564f7fb23fed6a32caf1457c9b604baa90f3afbf6ae5db48c477618034cf56178a0a21cd1a9653f7b9ed30b9231424c94ff75c36e52cd00d34a86b28e1 +MISC metadata.xml 222 SHA256 6c24a139c34c4a4e9e995ed2cd115a74f67aeafa57d23bcd34cc1f34a23c3cab SHA512 f5b07576edb64cee121aab00dd2a5f0c080fa947e00b6ff6ad6c514a82c132230426ca81e3430d7785c212786f7ead5f6c3f48e58478507df7d96a4e734168ab WHIRLPOOL a90afbba69e90a6040018c2494e46c9d6a416c5c050eab323cbd2e447fb68478d690fc5779764ce7edff97f6fcebc353aab4dc9784a6f159812d62046bfd8e1a diff --git a/dev-util/ragel/files/ragel-6.7+gcc-4.7.patch b/dev-util/ragel/files/ragel-6.7+gcc-4.7.patch new file mode 100644 index 000000000000..80eb29a46f05 --- /dev/null +++ b/dev-util/ragel/files/ragel-6.7+gcc-4.7.patch @@ -0,0 +1,178 @@ +From 27454d1e55b2a5cefc3cc1044d036add9ee9a6d3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu> +Date: Tue, 22 May 2012 16:25:37 -0700 +Subject: [PATCH] aapl: fix building with gcc-4.7.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Starting with GCC 4.7, you have to explicit methods inherited from +base templates, otherwise it will refuse to build. + +--- + +The URL reported in the README is no longer registered, so I couldn't +find a way to report this to an upstream project. + +Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> +--- + aapl/avlcommon.h | 12 ++++++------ + aapl/bstcommon.h | 16 ++++++++-------- + aapl/bubblesort.h | 2 +- + aapl/mergesort.h | 2 +- + 4 files changed, 16 insertions(+), 16 deletions(-) + +diff --git a/aapl/avlcommon.h b/aapl/avlcommon.h +index 06983bc..2e3c190 100644 +--- a/aapl/avlcommon.h ++++ b/aapl/avlcommon.h +@@ -881,9 +881,9 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>:: + } + + #ifdef AVL_BASIC +- keyRelation = compare( *element, *curEl ); ++ keyRelation = this->compare( *element, *curEl ); + #else +- keyRelation = compare( element->BASEKEY(getKey()), ++ keyRelation = this->compare( element->BASEKEY(getKey()), + curEl->BASEKEY(getKey()) ); + #endif + +@@ -920,7 +920,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>:: + long keyRelation; + + while (curEl) { +- keyRelation = compare( *element, *curEl ); ++ keyRelation = this->compare( *element, *curEl ); + + /* Do we go left? */ + if ( keyRelation < 0 ) +@@ -969,7 +969,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>:: + return element; + } + +- keyRelation = compare( key, curEl->BASEKEY(getKey()) ); ++ keyRelation = this->compare( key, curEl->BASEKEY(getKey()) ); + + /* Do we go left? */ + if ( keyRelation < 0 ) { +@@ -1023,7 +1023,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>:: + return element; + } + +- keyRelation = compare(key, curEl->getKey()); ++ keyRelation = this->compare(key, curEl->getKey()); + + /* Do we go left? */ + if ( keyRelation < 0 ) { +@@ -1058,7 +1058,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>:: + long keyRelation; + + while (curEl) { +- keyRelation = compare( key, curEl->BASEKEY(getKey()) ); ++ keyRelation = this->compare( key, curEl->BASEKEY(getKey()) ); + + /* Do we go left? */ + if ( keyRelation < 0 ) +diff --git a/aapl/bstcommon.h b/aapl/bstcommon.h +index 888717f..7c53ff3 100644 +--- a/aapl/bstcommon.h ++++ b/aapl/bstcommon.h +@@ -361,7 +361,7 @@ template <BST_TEMPL_DEF> bool BstTable<BST_TEMPL_USE>:: + } + + mid = lower + ((upper-lower)>>1); +- keyRelation = compare(key, GET_KEY(*mid)); ++ keyRelation = this->compare(key, GET_KEY(*mid)); + + if ( keyRelation < 0 ) + upper = mid - 1; +@@ -373,12 +373,12 @@ template <BST_TEMPL_DEF> bool BstTable<BST_TEMPL_USE>:: + + lower = mid - 1; + while ( lower != lowEnd && +- compare(key, GET_KEY(*lower)) == 0 ) ++ this->compare(key, GET_KEY(*lower)) == 0 ) + lower--; + + upper = mid + 1; + while ( upper != highEnd && +- compare(key, GET_KEY(*upper)) == 0 ) ++ this->compare(key, GET_KEY(*upper)) == 0 ) + upper++; + + low = (Element*)lower + 1; +@@ -419,7 +419,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>:: + } + + mid = lower + ((upper-lower)>>1); +- keyRelation = compare(key, GET_KEY(*mid)); ++ keyRelation = this->compare(key, GET_KEY(*mid)); + + if ( keyRelation < 0 ) + upper = mid - 1; +@@ -457,7 +457,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>:: + } + + mid = lower + ((upper-lower)>>1); +- keyRelation = compare(key, GET_KEY(*mid)); ++ keyRelation = this->compare(key, GET_KEY(*mid)); + + if ( keyRelation < 0 ) + upper = mid - 1; +@@ -508,7 +508,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>:: + } + + mid = lower + ((upper-lower)>>1); +- keyRelation = compare(key, GET_KEY(*mid)); ++ keyRelation = this->compare(key, GET_KEY(*mid)); + + if ( keyRelation < 0 ) + upper = mid - 1; +@@ -603,7 +603,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>:: + } + + mid = lower + ((upper-lower)>>1); +- keyRelation = compare(GET_KEY(el), GET_KEY(*mid)); ++ keyRelation = this->compare(GET_KEY(el), GET_KEY(*mid)); + + if ( keyRelation < 0 ) + upper = mid - 1; +@@ -662,7 +662,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>:: + } + + mid = lower + ((upper-lower)>>1); +- keyRelation = compare(GET_KEY(el), GET_KEY(*mid)); ++ keyRelation = this->compare(GET_KEY(el), GET_KEY(*mid)); + + if ( keyRelation < 0 ) + upper = mid - 1; +diff --git a/aapl/bubblesort.h b/aapl/bubblesort.h +index bcc2fb6..f0f4ce5 100644 +--- a/aapl/bubblesort.h ++++ b/aapl/bubblesort.h +@@ -72,7 +72,7 @@ template <class T, class Compare> void BubbleSort<T,Compare>:: + changed = false; + for ( long i = 0; i < len-pass; i++ ) { + /* Do we swap pos with the next one? */ +- if ( compare( data[i], data[i+1] ) > 0 ) { ++ if ( this->compare( data[i], data[i+1] ) > 0 ) { + char tmp[sizeof(T)]; + + /* Swap the two items. */ +diff --git a/aapl/mergesort.h b/aapl/mergesort.h +index 68b8426..8cefa73 100644 +--- a/aapl/mergesort.h ++++ b/aapl/mergesort.h +@@ -110,7 +110,7 @@ template< class T, class Compare> void MergeSort<T,Compare>:: + } + else { + /* Both upper and lower left. */ +- if ( compare(*lower, *upper) <= 0 ) ++ if ( this->compare(*lower, *upper) <= 0 ) + memcpy( dest++, lower++, sizeof(T) ); + else + memcpy( dest++, upper++, sizeof(T) ); +-- +1.7.8.6 + diff --git a/dev-util/ragel/files/ragel-6.7-cross-compile.patch b/dev-util/ragel/files/ragel-6.7-cross-compile.patch new file mode 100644 index 000000000000..e953a1aeeeef --- /dev/null +++ b/dev-util/ragel/files/ragel-6.7-cross-compile.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/473970 + +already sent upstream + +patch by Jungshik Shin + +--- ragel-6.7/configure.in ++++ ragel-6.7/configure.in +@@ -27,9 +27,9 @@ + + dnl Choose defaults for the build_parsers and build_manual vars. If the dist + dnl file is present in the root then default to no, otherwise go for it. +-AC_CHECK_FILES( $srcdir/DIST, +- [ . $srcdir/DIST; ], +- [ build_parsers=yes; build_manual=yes; ] ) ++ ++AS_IF([test -r $srcdir/DIST], [. $srcdir/DIST], [build_parsers=yes; ++ build_manual=yes]) + + dnl + dnl Enable arg to explicitly control the building of the manual diff --git a/dev-util/ragel/metadata.xml b/dev-util/ragel/metadata.xml new file mode 100644 index 000000000000..71e948fffb95 --- /dev/null +++ b/dev-util/ragel/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>lu_zero@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-util/ragel/ragel-6.10.ebuild b/dev-util/ragel/ragel-6.10.ebuild new file mode 100644 index 000000000000..349702c305f9 --- /dev/null +++ b/dev-util/ragel/ragel-6.10.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools autotools-utils + +DESCRIPTION="Compiles finite state machines from regular languages into executable code" +HOMEPAGE="http://www.colm.net/open-source/ragel/" +SRC_URI="http://www.colm.net/files/ragel/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="vim-syntax" + +DEPEND="" +RDEPEND="" + +# We need to get the txl language in Portage to have the tests :( +RESTRICT=test + +DOCS=( ChangeLog CREDITS README TODO ) + +src_test() { + cd "${S}"/test + ./runtests.in || die +} + +src_install() { + autotools-utils_src_install + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins ragel.vim + fi +} diff --git a/dev-util/ragel/ragel-6.7-r1.ebuild b/dev-util/ragel/ragel-6.7-r1.ebuild new file mode 100644 index 000000000000..5e3e52d25ccf --- /dev/null +++ b/dev-util/ragel/ragel-6.7-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils autotools + +DESCRIPTION="Compiles finite state machines from regular languages into executable code" +HOMEPAGE="http://www.complang.org/ragel/" +SRC_URI="http://www.complang.org/ragel/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="vim-syntax" + +DEPEND="" +RDEPEND="" + +# We need to get the txl language in Portage to have the tests :( +RESTRICT=test + +DOCS=( ChangeLog CREDITS README TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${P}+gcc-4.7.patch + epatch "${FILESDIR}"/${P}-cross-compile.patch #473970 + sed -i -e '/CXXFLAGS/d' configure.in || die + + eautoreconf +} + +src_configure() { + econf --docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_test() { + cd "${S}"/test + ./runtests.in || die +} + +src_install() { + default + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins ragel.vim + fi +} diff --git a/dev-util/ragel/ragel-6.8.ebuild b/dev-util/ragel/ragel-6.8.ebuild new file mode 100644 index 000000000000..e5090066d3e8 --- /dev/null +++ b/dev-util/ragel/ragel-6.8.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools autotools-utils + +DESCRIPTION="Compiles finite state machines from regular languages into executable code" +HOMEPAGE="http://www.complang.org/ragel/" +SRC_URI="http://www.complang.org/ragel/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="vim-syntax" + +DEPEND="" +RDEPEND="" + +# We need to get the txl language in Portage to have the tests :( +RESTRICT=test + +DOCS=( ChangeLog CREDITS README TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-6.7-cross-compile.patch #473970 + sed -i -e '/CXXFLAGS/d' configure.in || die + + eautoreconf +} + +src_test() { + cd "${S}"/test + ./runtests.in || die +} + +src_install() { + autotools-utils_src_install + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins ragel.vim + fi +} diff --git a/dev-util/ragel/ragel-6.9.ebuild b/dev-util/ragel/ragel-6.9.ebuild new file mode 100644 index 000000000000..bfa5a8aa1948 --- /dev/null +++ b/dev-util/ragel/ragel-6.9.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools autotools-utils + +DESCRIPTION="Compiles finite state machines from regular languages into executable code" +HOMEPAGE="http://www.colm.net/open-source/ragel/" +SRC_URI="http://www.colm.net/files/ragel/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="vim-syntax" + +DEPEND="" +RDEPEND="" + +# We need to get the txl language in Portage to have the tests :( +RESTRICT=test + +DOCS=( ChangeLog CREDITS README TODO ) + +src_test() { + cd "${S}"/test + ./runtests.in || die +} + +src_install() { + autotools-utils_src_install + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins ragel.vim + fi +} diff --git a/dev-util/ragel/ragel-7.0.0.10.ebuild b/dev-util/ragel/ragel-7.0.0.10.ebuild new file mode 100644 index 000000000000..e9215b2485be --- /dev/null +++ b/dev-util/ragel/ragel-7.0.0.10.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~x86" +IUSE="vim-syntax" + +DEPEND="~dev-util/colm-0.13.0.5" +RDEPEND="${DEPEND}" + +src_test() { + cd "${S}"/test || die + ./runtests.in || die +} + +src_install() { + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins ragel.vim + fi + default +} diff --git a/dev-util/ragel/ragel-7.0.0.9.ebuild b/dev-util/ragel/ragel-7.0.0.9.ebuild new file mode 100644 index 000000000000..fb260ba41723 --- /dev/null +++ b/dev-util/ragel/ragel-7.0.0.9.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~x86" +IUSE="vim-syntax" + +DEPEND="~dev-util/colm-0.13.0.4" +RDEPEND="${DEPEND}" + +src_test() { + cd "${S}"/test || die + ./runtests.in || die +} + +src_install() { + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins ragel.vim + fi + default +} |