aboutsummaryrefslogtreecommitdiffstats
path: root/lang/slib-guile2
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2014-10-05 21:29:40 +0800
committermadpilot <madpilot@FreeBSD.org>2014-10-05 21:29:40 +0800
commit0878978fec60f769483735f18cf24a76e071623a (patch)
treee5003b68c00abf0ccce29ce606baaa1f1d8eeecc /lang/slib-guile2
parent56182eb799cd63f2a3a6ba08fc6a752381f727be (diff)
downloadfreebsd-ports-gnome-0878978fec60f769483735f18cf24a76e071623a.tar.gz
freebsd-ports-gnome-0878978fec60f769483735f18cf24a76e071623a.tar.zst
freebsd-ports-gnome-0878978fec60f769483735f18cf24a76e071623a.zip
- Update slib and slib-guile to 3b4
- Fix build for lang/slib with new texinfo [1] - Convert slib-guile @exec/@unexec directives to post install/deinstall scripts - Add new port slib-guile2 based on slib-guile - Remove dirrms MFH: 2014Q4
Diffstat (limited to 'lang/slib-guile2')
-rw-r--r--lang/slib-guile2/Makefile23
-rw-r--r--lang/slib-guile2/files/pkg-deinstall.in8
-rw-r--r--lang/slib-guile2/files/pkg-install.in8
-rw-r--r--lang/slib-guile2/pkg-descr4
4 files changed, 43 insertions, 0 deletions
diff --git a/lang/slib-guile2/Makefile b/lang/slib-guile2/Makefile
new file mode 100644
index 000000000000..6ff66ace19ff
--- /dev/null
+++ b/lang/slib-guile2/Makefile
@@ -0,0 +1,23 @@
+# Created by: Kimura Fuyuki <fuyuki@nigredo.org>
+# $FreeBSD$
+# $MCom: ports/lang/slib-guile/Makefile,v 1.3 2006/10/13 02:32:48 marcus Exp $
+
+PORTNAME= slib
+PORTVERSION= 3b4 # Keep this in sync with lang/slib
+CATEGORIES= lang scheme
+MASTER_SITES= # empty
+PKGNAMESUFFIX= -guile2
+DISTFILES= # empty
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= SLIB installation for Guile
+
+BUILD_DEPENDS= ${LOCALBASE}/share/slib/require.scm:${PORTSDIR}/lang/slib \
+ guile:${PORTSDIR}/lang/guile2
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+SUB_FILES+= pkg-install pkg-deinstall
+NO_BUILD= yes
+NO_INSTALL= yes
+
+.include <bsd.port.mk>
diff --git a/lang/slib-guile2/files/pkg-deinstall.in b/lang/slib-guile2/files/pkg-deinstall.in
new file mode 100644
index 000000000000..ff22896a5de8
--- /dev/null
+++ b/lang/slib-guile2/files/pkg-deinstall.in
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+case "$2" in
+"POST-DEINSTALL")
+ rm -f %%LOCALBASE%%/share/guile/2.0/slib
+ rm -f %%LOCALBASE%%/share/guile/2.0/slibcat
+ ;;
+esac
diff --git a/lang/slib-guile2/files/pkg-install.in b/lang/slib-guile2/files/pkg-install.in
new file mode 100644
index 000000000000..d0dfc870f0c6
--- /dev/null
+++ b/lang/slib-guile2/files/pkg-install.in
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+case "$2" in
+"POST-INSTALL")
+ ln -shf %%LOCALBASE%%/share/slib %%LOCALBASE%%/share/guile/2.0/slib
+ env GUILE_IMPLEMENTATION_PATH=%%LOCALBASE%%/share/guile/2.0 %%LOCALBASE%%/bin/guile -q -l %%LOCALBASE%%/share/slib/guile-2.init -c "(use-modules (ice-9 slib))(require 'new-catalog)"
+ ;;
+esac
diff --git a/lang/slib-guile2/pkg-descr b/lang/slib-guile2/pkg-descr
new file mode 100644
index 000000000000..38f64caad716
--- /dev/null
+++ b/lang/slib-guile2/pkg-descr
@@ -0,0 +1,4 @@
+To use the features offered by the SLIB library, add the following
+construct to your programs:
+
+ (use-modules (ice-9 slib))