[arch-commits] Commit in algol68g/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat Aug 24 21:48:05 UTC 2019


    Date: Saturday, August 24, 2019 @ 21:48:04
  Author: felixonmars
Revision: 501582

archrelease: copy trunk to community-staging-x86_64

Added:
  algol68g/repos/community-staging-x86_64/
  algol68g/repos/community-staging-x86_64/PKGBUILD
    (from rev 501581, algol68g/trunk/PKGBUILD)
  algol68g/repos/community-staging-x86_64/plotutils.patch
    (from rev 501581, algol68g/trunk/plotutils.patch)

-----------------+
 PKGBUILD        |   43 +++++++++++++++++++++++++++++++++++++++++++
 plotutils.patch |   20 ++++++++++++++++++++
 2 files changed, 63 insertions(+)

Copied: algol68g/repos/community-staging-x86_64/PKGBUILD (from rev 501581, algol68g/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-08-24 21:48:04 UTC (rev 501582)
@@ -0,0 +1,43 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: <karolina.lindqvist at kramnet.se>
+
+pkgname=('algol68g' 'algol68g-doc')
+pkgver=2.8.5
+pkgrel=3
+pkgdesc='Algol 68 compiler and interpreter'
+arch=('x86_64')
+url='https://jmvdveer.home.xs4all.nl/algol.html'
+license=('GPL')
+depends=('gsl' 'plotutils')
+optdepends=('postgresql-libs: for postgresql support')
+source=("https://jmvdveer.home.xs4all.nl/algol68g-$pkgver.tar.gz"
+        'plotutils.patch'
+        'https://ftp.tw.freebsd.org/distfiles/a68g-doc.pdf')
+sha256sums=('0f757c64a8342fe38ec501bde68b61d26d051dffd45742ca58b7288a99c7e2d8'
+            '50afcc7812d117e5f0a2f5240c9cd58f8bfcc04b3da0634b9aa0ab06183ed0aa'
+            '064b6761207d937aa704d245fc871a072f5a33ea23a346cb136ec8b2078ea321')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  patch -p1 -i ../plotutils.patch
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  ./configure --prefix=/usr
+  make
+}
+
+package_algol68g() {
+  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" \
+    docdir="/usr/share/doc/$pkgname" install
+}
+
+package_algol68g-doc() {
+  install -Dm644 a68g-doc.pdf \
+    "$pkgdir/usr/share/doc/algol68g/learning_algol.pdf"
+}
+
+# vim: ts=2 sw=2 et:

Copied: algol68g/repos/community-staging-x86_64/plotutils.patch (from rev 501581, algol68g/trunk/plotutils.patch)
===================================================================
--- community-staging-x86_64/plotutils.patch	                        (rev 0)
+++ community-staging-x86_64/plotutils.patch	2019-08-24 21:48:04 UTC (rev 501582)
@@ -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);



More information about the arch-commits mailing list