From 089ecef108ff110a3fd52ded20a7c92dafba598c Mon Sep 17 00:00:00 2001 From: philm Date: Sun, 17 Apr 2011 01:14:09 +0200 Subject: [PATCH] guile: fix build --- bdw-gc/PKGBUILD | 22 ++++++++++++++++++++ guile/PKGBUILD | 2 +- guile/doc-snarfing-fix.patch | 21 ------------------- libunistring/PKGBUILD | 39 ++++++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 22 deletions(-) create mode 100644 bdw-gc/PKGBUILD delete mode 100644 guile/doc-snarfing-fix.patch create mode 100644 libunistring/PKGBUILD diff --git a/bdw-gc/PKGBUILD b/bdw-gc/PKGBUILD new file mode 100644 index 000000000..973686df1 --- /dev/null +++ b/bdw-gc/PKGBUILD @@ -0,0 +1,22 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# contributor (x86_64): Giuseppe CalĂ  + +pkgname=bdw-gc +pkgver=7.1 +pkgrel=1 +pkgdesc="BDW-GC is a garbage collection library." +url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/" +arch=(i686 x86_64) +license=('Unknown') +depends=() +source=(http://hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-${pkgver}.tar.gz) +md5sums=('2ff9924c7249ef7f736ecfe6f08f3f9b') + +build() { + cd "${srcdir}/gc-${pkgver}" + ./configure --prefix=/usr + make LDFLAGS+="-lpthread" + make DESTDIR="${pkgdir}" install +} diff --git a/guile/PKGBUILD b/guile/PKGBUILD index 6a55e0e17..d0fc32fa6 100644 --- a/guile/PKGBUILD +++ b/guile/PKGBUILD @@ -10,7 +10,7 @@ pkgdesc="Guile is a portable, embeddable Scheme implementation written in C" url="http://www.gnu.org/software/guile/" arch=(i686 x86_64) license=('GPL') -depends=('gmp' 'libtool' 'ncurses>=5.7' 'texinfo') +depends=('gmp' 'libtool' 'ncurses>=5.7' 'texinfo' 'libunistring' 'libffi' 'bdw-gc') install=guile.install source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) options=('!libtool' '!makeflags') diff --git a/guile/doc-snarfing-fix.patch b/guile/doc-snarfing-fix.patch deleted file mode 100644 index 06632d86f..000000000 --- a/guile/doc-snarfing-fix.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -Naur guile-1.8.7-orig/scripts/snarf-check-and-output-texi guile-1.8.7/scripts/snarf-check-and-output-texi ---- guile-1.8.7-orig/scripts/snarf-check-and-output-texi 2009-07-03 22:19:00.000000000 +0000 -+++ guile-1.8.7/scripts/snarf-check-and-output-texi 2010-11-20 17:34:34.283333394 +0000 -@@ -267,6 +267,17 @@ - (set! *file* file) - (set! *line* line)) - -+ ;; newer gccs like to throw around more location markers into the -+ ;; preprocessed source; these (hash . hash) bits are what they translate to -+ ;; in snarfy terms. -+ (('location ('string . file) ('int . line) ('hash . 'hash)) -+ (set! *file* file) -+ (set! *line* line)) -+ -+ (('location ('hash . 'hash) ('string . file) ('int . line) ('hash . 'hash)) -+ (set! *file* file) -+ (set! *line* line)) -+ - (('arglist rest ...) - (set! *args* (do-arglist rest))) - diff --git a/libunistring/PKGBUILD b/libunistring/PKGBUILD new file mode 100644 index 000000000..989d3b535 --- /dev/null +++ b/libunistring/PKGBUILD @@ -0,0 +1,39 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +pkgname=libunistring +pkgver=0.9 +pkgrel=1 +# dash the next line if you want to skip the tests +_test=1 +pkgdesc="Unicode string library for C" +arch=('any') +url="http://www.gnu.org/software/libunistring/" +license=('GPL') +makedepends=('dejagnu') +options=('!libtool' 'log') +source=(http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('3263ae4966e6e58b06d5d6d544bcf1a8') + + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make + + if [ -n "${_test}" ]; then + echo "<<< STARTING TESTS >>>" + make check + echo "<<< ENDING TESTS >>>" + fi +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make -j1 DESTDIR="$pkgdir/" install +}