From 0597352793f67d74c1682d5c8c88a309f83801b1 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Sat, 3 Oct 2015 23:03:16 +0200 Subject: [PATCH] New package: txr-118 --- srcpkgs/txr/patches/musl-configure.patch | 11 +++++++++++ srcpkgs/txr/template | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/txr/patches/musl-configure.patch create mode 100644 srcpkgs/txr/template diff --git a/srcpkgs/txr/patches/musl-configure.patch b/srcpkgs/txr/patches/musl-configure.patch new file mode 100644 index 00000000000..c143523591f --- /dev/null +++ b/srcpkgs/txr/patches/musl-configure.patch @@ -0,0 +1,11 @@ +--- configure- 2015-10-03 23:20:36.976105846 +0200 ++++ configure 2015-10-03 23:21:38.708814989 +0200 +@@ -2176,7 +2176,7 @@ + if conftest ; then + printf "yes\n" + printf "#define HAVE_ALLOCA 1\n" >> $config_h +- printf "#define ALLOCA_H <%s>\n" $try_header >> $config_h ++ printf '#define ALLOCA_H "%s"\n' $try_header >> $config_h + have_alloca=y + break; + fi diff --git a/srcpkgs/txr/template b/srcpkgs/txr/template new file mode 100644 index 00000000000..3af32edea34 --- /dev/null +++ b/srcpkgs/txr/template @@ -0,0 +1,20 @@ +# Template file for 'txr' +pkgname=txr +version=118 +revision=1 +build_style=configure +hostmakedepends="bison flex" +short_desc="Programming language for convenient data munging" +maintainer="Oliver Kiddle " +license="BSD" +homepage="http://www.nongnu.org/txr/" +distfiles="http://www.kylheku.com/cgit/txr/snapshot/${pkgname}-${version}.tar.bz2" +checksum=6f9a10b8437bffcbe6aecb06322c94f33256aa107245763f76f212750bddfa8e + +do_configure() { + ./configure --prefix=/usr "--ccname=${CC}" "--platform-cflags=${CFLAGS}" "--platform-ldflags=${LDFLAGS}" +} + +post_install() { + vlicense LICENSE +}