From 357c6f3bde0394510cbedcc08a1795208c720aaa Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Sat, 11 Feb 2017 21:59:29 -0500 Subject: [PATCH] New package: gsl-ucg-4.1.3 --- .../gsl-ucg/patches/detect_gcc_better.patch | 11 +++++++++ srcpkgs/gsl-ucg/template | 23 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/gsl-ucg/patches/detect_gcc_better.patch create mode 100644 srcpkgs/gsl-ucg/template diff --git a/srcpkgs/gsl-ucg/patches/detect_gcc_better.patch b/srcpkgs/gsl-ucg/patches/detect_gcc_better.patch new file mode 100644 index 00000000000..e482c0e59ca --- /dev/null +++ b/srcpkgs/gsl-ucg/patches/detect_gcc_better.patch @@ -0,0 +1,11 @@ +--- src/c.fix 2017-02-10 21:50:13.882583271 -0500 ++++ src/c 2017-02-10 21:55:55.064681445 -0500 +@@ -154,7 +154,7 @@ + # + # Generic modern GCC system + # +-if [ "$CCNAME" = "gcc" ]; then ++if [ "$(${CCNAME} --version | grep -c \(GCC\))" -gt 0 ]; then + [ -z "$BOOM_MODEL_NOOPT" ] && CCDEBUG="-O2" + [ -z "$BOOM_MODEL_NOOPT" ] && CCNODEBUG="$CCNODEBUG -O2" + CCOPTS="-D_REENTRANT -D_GNU_SOURCE -Wall -Wno-unused -fno-strict-aliasing" diff --git a/srcpkgs/gsl-ucg/template b/srcpkgs/gsl-ucg/template new file mode 100644 index 00000000000..2646e84a89a --- /dev/null +++ b/srcpkgs/gsl-ucg/template @@ -0,0 +1,23 @@ +# Template file for 'gsl-ucg' +pkgname=gsl-ucg +version=4.1.3 +revision=1 +wrksrc="gsl-${version}" +build_wrksrc="src" +build_style=gnu-makefile +makedepends="pcre-devel" +short_desc="Generator Scripting Language - Universal Code Generator" +maintainer="Toyam Cox " +license="GPL-3" +homepage="https://github.com/imatix/gsl" +distfiles="https://github.com/imatix/gsl/archive/v${version}.tar.gz" +checksum=7e6e503997d576751e7c06dd3dd2b31b7e1d0ee5929512c997746ef70c6ed111 +nocross="Tries to execute built binary to confirm it works" + +pre_build() { + export CC="CCNAME='$CC' ./c -q" +} + +pre_install() { + export DESTDIR="${DESTDIR}/usr" +}