aboutsummaryrefslogtreecommitdiff
path: root/lang/slib-guile2
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2014-10-05 13:29:40 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2014-10-05 13:29:40 +0000
commitcc5c75bd956c3dbffb0fd3aaba4a353bfd58c9bb (patch)
treee5003b68c00abf0ccce29ce606baaa1f1d8eeecc /lang/slib-guile2
parent42bfb6237efb034c0855bb713cf11b81d1a7db08 (diff)
downloadports-cc5c75bd956c3dbffb0fd3aaba4a353bfd58c9bb.tar.gz
ports-cc5c75bd956c3dbffb0fd3aaba4a353bfd58c9bb.zip
Notes
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))