From 3c6c3fe93ac72b544e52f614a0e078d3bda8136b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 4 Jan 2015 10:05:17 +0100 Subject: [PATCH] elinks: unbreak cross; enable some useful options/features. --- srcpkgs/elinks/patches/cross.patch | 20 ++++++++++++++++++++ srcpkgs/elinks/template | 10 +++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/elinks/patches/cross.patch diff --git a/srcpkgs/elinks/patches/cross.patch b/srcpkgs/elinks/patches/cross.patch new file mode 100644 index 00000000000..e8c87fd4188 --- /dev/null +++ b/srcpkgs/elinks/patches/cross.patch @@ -0,0 +1,20 @@ +Remove this nonsense to allow cross compilation... + +--- configure.in.orig 2015-01-04 09:56:34.986063527 +0100 ++++ configure.in 2015-01-04 09:56:43.842149084 +0100 +@@ -44,15 +44,6 @@ if test -e Makefile.config; then + fi + + # =================================================================== +-# Load feature configuration file and start logging features. +-# =================================================================== +- +-features="features.conf" +-AC_CHECK_FILE("$srcdir/$features", [ . $srcdir/$features ]) +-AC_CHECK_FILE("$builddir/$features", [ . $builddir/$features ]) +-echo "Feature summary:" > features.log +- +-# =================================================================== + # Checks for programs. + # =================================================================== + diff --git a/srcpkgs/elinks/template b/srcpkgs/elinks/template index e8ece380fe2..55b962ab643 100644 --- a/srcpkgs/elinks/template +++ b/srcpkgs/elinks/template @@ -1,10 +1,11 @@ # Template file for 'elinks' pkgname=elinks version=0.12pre6 -revision=6 -nocross=yes +revision=7 build_style=gnu-configure -makedepends="zlib-devel ncurses-devel libressl-devel>=2.1.2" +configure_args="--enable-true-color --enable-fastmem" +hostmakedepends="automake libtool pkg-config" +makedepends="gpm-devel zlib-devel bzip2-devel libidn-devel tre-devel ncurses-devel libressl-devel>=2.1.2" short_desc="Full-Featured Text WWW Browser" maintainer="Juan RP " homepage="http://elinks.or.cz" @@ -12,6 +13,9 @@ license="GPL-3" distfiles="http://elinks.or.cz/download/$pkgname-$version.tar.bz2" checksum=383646375b8a325bef5a132c8300caab90eb0b842c5f8eff68febc00e29acada +pre_configure() { + autoreconf -fi +} post_install() { rm -f ${DESTDIR}/usr/share/locale/locale.alias }