From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-util/kelbt/Manifest | 6 + dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch | 178 +++++++++++++++++++++++++++ dev-util/kelbt/kelbt-0.15.ebuild | 44 +++++++ dev-util/kelbt/metadata.xml | 7 ++ 4 files changed, 235 insertions(+) create mode 100644 dev-util/kelbt/Manifest create mode 100644 dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch create mode 100644 dev-util/kelbt/kelbt-0.15.ebuild create mode 100644 dev-util/kelbt/metadata.xml (limited to 'dev-util/kelbt') diff --git a/dev-util/kelbt/Manifest b/dev-util/kelbt/Manifest new file mode 100644 index 000000000000..d9b5fd640544 --- /dev/null +++ b/dev-util/kelbt/Manifest @@ -0,0 +1,6 @@ +AUX ragel-6.7+gcc-4.7.patch 5585 SHA256 bcdee795c9a063d4a42f49f2ba642a922aa705769c455b9b375bfab47c7e137c SHA512 160aea4100328accbe423e98f7f5741309b9e293aea992f287cb5d9fab25ae74c76933e924658dd4670d317b01e76d37c3defeeb47ada07370b819a16515ebf4 WHIRLPOOL 332ea976cc95139491b767ce31142a8408fbf79cdd16434c7527c270fe42cc1911581124fde5a33dcefe4d61a78c2ea38f0e484015d0fe3b40611305da45c46b +DIST kelbt-0.15.tar.gz 232537 SHA256 000ae8e0906f34de13c3448f2422065e48407b6d85c61bbe51490ffdab0bc565 SHA512 2f203d3c3a12cc03d96a4d650dde3902d6815a3978af6f78f759b8dfce7971e2799e1325dc043cbc8a5b1fedaf9553a8f1693a159afa4f3601b3bdbc844df647 WHIRLPOOL d0285767d020c8eeae12adf5c9c776703c7ae35095da3ecb7fa10535f67b37ef802824f0955e0db313be6a19c79722f53cc570fc1928506fb3d87270f15f7dfe +EBUILD kelbt-0.15.ebuild 823 SHA256 0585b7599b3d1e4892f070e269187d1b1a46b699e8ede579cc85df261728634d SHA512 7f5b4d2b0c115deee7d925fd7c95a12cdf1efb20776ee79c197d37c35aa8c95c4db0a31d29d9397c9d7b24697e9d0ad85d06b72a07924b1eba7f9e0b9dd585cb WHIRLPOOL 1dc2beddabbf7822cdbf2be8e3b15384d65551266ba78b6f7a6e5a0067f953b44d3f64a25f2e51a1eed5242f0437f65083704077beb95f2645c10dfe935a75a3 +MISC ChangeLog 2320 SHA256 d80adf5d074f23e6b6fdbea18669c35177ba9b2034b35b5311a9bb60848720cf SHA512 00639fff1cdff458ed153e23c1fe3a886369b4e62243bda65ec1dd2fb85e68dd912f5f39dd4972359611b23b7fad8aa56bd4b37ba68dd8f84401a8c5f168a359 WHIRLPOOL 548f382a3796b1c9b0d682a6d4e1d370891e59265caaaa74dbfc69be2074aefa02321c7a49548448822c928b27b825a13598d12a2131eea03639a2f1de79e499 +MISC ChangeLog-2015 1143 SHA256 90b8b08ac5eee2b9e20b7532b5f2ca6d9c2256deacf447e441610301a97f1d43 SHA512 4d7abecfa7c11810d857c1a2d7f8ced474e17dd48aa06c2a5c62c82ba78154964777bb204c9231fc3eaf2b65b7db07359760f00e7a4534546b00f3643b6c1717 WHIRLPOOL ec1606ef537ce40b6ad4e5a0d37038623f688642a0dcdc5169810cf71c14886760923af9143fc270f33971fe15a5817658e4f2d5deca80bf9fed18c44ba657ea +MISC metadata.xml 222 SHA256 6c24a139c34c4a4e9e995ed2cd115a74f67aeafa57d23bcd34cc1f34a23c3cab SHA512 f5b07576edb64cee121aab00dd2a5f0c080fa947e00b6ff6ad6c514a82c132230426ca81e3430d7785c212786f7ead5f6c3f48e58478507df7d96a4e734168ab WHIRLPOOL a90afbba69e90a6040018c2494e46c9d6a416c5c050eab323cbd2e447fb68478d690fc5779764ce7edff97f6fcebc353aab4dc9784a6f159812d62046bfd8e1a diff --git a/dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch b/dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch new file mode 100644 index 000000000000..80eb29a46f05 --- /dev/null +++ b/dev-util/kelbt/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?= +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ò +--- + 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 Element *AvlTree:: + } + + #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 Element *AvlTree:: + 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 Element *AvlTree:: + 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 Element *AvlTree:: + 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 Element *AvlTree:: + 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 bool BstTable:: + } + + 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 bool BstTable:: + + 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 Element *BstTable:: + } + + 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 Element *BstTable:: + } + + 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 Element *BstTable:: + } + + 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 Element *BstTable:: + } + + 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 Element *BstTable:: + } + + 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 void BubbleSort:: + 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:: + } + 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/kelbt/kelbt-0.15.ebuild b/dev-util/kelbt/kelbt-0.15.ebuild new file mode 100644 index 000000000000..b724f138a4cf --- /dev/null +++ b/dev-util/kelbt/kelbt-0.15.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils + +DESCRIPTION="A backtracking LR parser by the author of Ragel" +HOMEPAGE="http://www.complang.org/kelbt/" +SRC_URI="http://www.complang.org/kelbt/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86-fbsd" +IUSE="vim-syntax" + +RDEPEND="" + +src_prepare() { + find "${S}" -iname "Makefile*" -exec sed -i \ + -e '/\$(CXX)/s:CFLAGS:CXXFLAGS:' \ + {} \; + + epatch "${FILESDIR}"/ragel-6.7+gcc-4.7.patch +} + +src_compile() { + emake CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_test() { + cd "${S}"/test + ./runtests || die "tests failed" +} + +src_install() { + dobin kelbt/kelbt + dodoc TODO CREDITS ChangeLog + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins ${PN}.vim + fi +} diff --git a/dev-util/kelbt/metadata.xml b/dev-util/kelbt/metadata.xml new file mode 100644 index 000000000000..71e948fffb95 --- /dev/null +++ b/dev-util/kelbt/metadata.xml @@ -0,0 +1,7 @@ + + + + + lu_zero@gentoo.org + + -- cgit v1.2.3