From 7a3aa87c2ef59fb6dc9ed3238f24b4820ca64222 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 6 Dec 2015 19:01:33 +0100 Subject: [PATCH] re2c: update to 0.15.3. --- srcpkgs/re2c/template | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/srcpkgs/re2c/template b/srcpkgs/re2c/template index 27faf07f462..1c47c5064b7 100644 --- a/srcpkgs/re2c/template +++ b/srcpkgs/re2c/template @@ -1,35 +1,12 @@ # Template file for 're2c' pkgname=re2c -version=0.14.3 +version=0.15.3 revision=1 build_style=gnu-configure hostmakedepends="bison" short_desc="Tool for generating fast C-based recognizers" maintainer="beefcurtains " license="Public Domain" -homepage="http://re2c.sourceforge.net/" -distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz" -checksum=1c6806df599f3aef0804b576cfdf64bdba5ad590626dfca2d44e473460917e84 - -pre_configure() { - if [ -n "$CROSS_BUILD" ]; then - # re2c uses itself to build, but that's not - # possible when cross-compiling. Here it's - # forced to build on the host first, so the - # dependency can be satisfied. - env - PATH=/usr/bin:/usr/sbin ./configure - make ${makejobs} - mv re2c host_re2c - make clean - fi -} - -do_build() { - make ${makejobs} ${make_build_args} ${make_build_target} - if [ ! -e host_re2c ]; then - mv re2c host_re2c - fi - ./host_re2c -b scanner.re >scanner.cc - rm -f re2c scanner.o - make ${make_build_args} ${make_build_target} -} +homepage="http://re2c.org/" +distfiles="https://github.com/skvadrik/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz" +checksum=f9d2a96c60a8c60d9c6c70e10590cbceaf0776d3115e7b3b35c7d7240cc1613b