guile: fix build

This commit is contained in:
philm 2011-04-17 01:14:09 +02:00
parent 33e5deb9d4
commit 089ecef108
4 changed files with 62 additions and 22 deletions

22
bdw-gc/PKGBUILD Normal file
View File

@ -0,0 +1,22 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
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
}

View File

@ -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')

View File

@ -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)))

39
libunistring/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
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
}