summaryrefslogtreecommitdiff
path: root/pcr/bison++/PKGBUILD
diff options
context:
space:
mode:
authoraurelien <aurelien@cwb.io>2012-11-20 17:05:20 +0100
committeraurelien <aurelien@cwb.io>2012-11-20 17:05:20 +0100
commita9ef0f056d0fca5ed39c6e0e8dfec8a218ed8671 (patch)
treebedf53b85b0d0b6784e549786a98e7cb76474697 /pcr/bison++/PKGBUILD
parente39e3bd9c06df33666bad51d7ffee889d44c8eef (diff)
downloadabslibre-a9ef0f056d0fca5ed39c6e0e8dfec8a218ed8671.tar.gz
abslibre-a9ef0f056d0fca5ed39c6e0e8dfec8a218ed8671.tar.bz2
abslibre-a9ef0f056d0fca5ed39c6e0e8dfec8a218ed8671.zip
+ bison++ log4cxx mediatomb perl-file-find-rule perl-num
ber-compare perl-text-glob python2-empy python2-rospkg rosinstall vcstools
Diffstat (limited to 'pcr/bison++/PKGBUILD')
-rw-r--r--pcr/bison++/PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/pcr/bison++/PKGBUILD b/pcr/bison++/PKGBUILD
new file mode 100644
index 000000000..947c41df4
--- /dev/null
+++ b/pcr/bison++/PKGBUILD
@@ -0,0 +1,51 @@
+# Contributor: Antonio Garcia-Dominguez <antonio.garciadominguez@uca.es>
+# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
+
+pkgname=bison++
+pkgver=1.21.11
+pkgrel=1
+pkgdesc="Parser generator in C or C++ from BNF notation"
+arch=('i686' 'x86_64')
+url="http://packages.debian.org/bison++"
+license=('GPL')
+source=('http://ftp.de.debian.org/debian/pool/main/b/bison++/bison++_1.21.11.orig.tar.gz' 'http://ftp.de.debian.org/debian/pool/main/b/bison++/bison++_1.21.11-3.diff.gz')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Apply the Debian patch
+ patch -p1 < ../*.diff
+
+ # Fix the broken Makefile.am script
+ sed -e '
+ s/datadir/DESTDIR\)\$(datadir/
+ s/bindir/DESTDIR\)\$(bindir/
+ /^pkgdata_DATA/s/ Example$//
+ /install\-exec\-hook/i\install-data-hook:\
+\tcp -r $(srcdir)/Example $(DESTDIR)$(pkgdatadir)\
+' -i Makefile.am
+
+ # Bootstrap the autotools and compile
+ aclocal
+ automake --add-missing
+ autoreconf
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ # Remove or rename files that could conflict with regular Bison
+ rm "$pkgdir/usr/bin/bison"
+ mv "$pkgdir/usr/share/info/"{bison,bison++}.info
+ rm "$pkgdir/usr/share/man/man1/bison.1"
+}
+
+# vim:set ts=2 sw=2 et: