diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/algol68g | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/algol68g')
-rw-r--r-- | community/algol68g/PKGBUILD | 41 | ||||
-rw-r--r-- | community/algol68g/plotutils.patch | 20 |
2 files changed, 61 insertions, 0 deletions
diff --git a/community/algol68g/PKGBUILD b/community/algol68g/PKGBUILD new file mode 100644 index 000000000..00b2e8305 --- /dev/null +++ b/community/algol68g/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 94260 2013-07-18 11:12:21Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: karolina.lindqvist@kramnet.se + +pkgname=algol68g +pkgver=2.7 +pkgrel=1 +pkgdesc='Algol 68 Genie, an Algol 68 compiler-interpreter' +arch=('x86_64' 'i686') +url='http://www.xs4all.nl/~jmvdveer/algol.html' +license=('GPL') +depends=('gsl' 'plotutils') +optdepends=('postgresql-libs: for postgresql support') +source=("http://jmvdveer.home.xs4all.nl/algol68g-$pkgver.tar.gz" + 'plotutils.patch' + 'http://www.xs4all.nl/~jmvdveer/a68gdoc.pdf') +sha256sums=('ebcf029ae65ceafca87090cc470dd37f86ac0bdb1529cd4dd7a92454d224d325' + '50afcc7812d117e5f0a2f5240c9cd58f8bfcc04b3da0634b9aa0ab06183ed0aa' + '8cbfb480cb5dfb20f79c2391d7111fc8b727c3e9e02008ab4c0cde9acb62e7d3') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + patch -p1 -i ../plotutils.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" docdir="/usr/share/doc/$pkgname" install + install "$srcdir/a68gdoc.pdf" "$pkgdir/usr/share/doc/$pkgname" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/algol68g/plotutils.patch b/community/algol68g/plotutils.patch new file mode 100644 index 000000000..17c750075 --- /dev/null +++ b/community/algol68g/plotutils.patch @@ -0,0 +1,20 @@ +--- ./source/plotutils.c.orig 2012-04-05 00:44:52.000000000 +0200 ++++ ./source/plotutils.c 2012-04-28 05:27:04.000000000 +0200 +@@ -1018,7 +1018,7 @@ + X_COORD (&DEVICE (f)) = 0; + Y_COORD (&DEVICE (f)) = 0; + return (PLOTTER (&DEVICE (f))); +- } else if (!strcmp (device_type, "gif")) { ++ } else if (!strcmp (device_type, "gif") || !strcmp (device_type, "png")) { + /*------------------------------------+ + | Supported plotter type - pseudo GIF | + +------------------------------------*/ +@@ -1059,7 +1059,7 @@ + (void) pl_setplparam (PLOTTER_PARAMS (&DEVICE (f)), "BITMAPSIZE", size); + (void) pl_setplparam (PLOTTER_PARAMS (&DEVICE (f)), "BG_COLOR", (void *) "black"); + (void) pl_setplparam (PLOTTER_PARAMS (&DEVICE (f)), "GIF_ANIMATION", (void *) "no"); +- PLOTTER (&DEVICE (f)) = pl_newpl_r ("gif", NULL, STREAM (&DEVICE (f)), stderr, PLOTTER_PARAMS (&DEVICE (f))); ++ PLOTTER (&DEVICE (f)) = pl_newpl_r (device_type, NULL, STREAM (&DEVICE (f)), stderr, PLOTTER_PARAMS (&DEVICE (f))); + if (PLOTTER (&DEVICE (f)) == NULL) { + diagnostic_node (A68_RUNTIME_ERROR, p, ERROR_DEVICE_CANNOT_OPEN); + exit_genie (p, A68_RUNTIME_ERROR); |