From 15aa3d6cb75581fd4a6aab46909b94124b1f39b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20W=2E=20Wei=C3=9Fmann?= Date: Fri, 18 Nov 2005 23:23:35 +0000 Subject: [PATCH] new port lang/sketchy git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15068 d073be05-634f-4543-b044-5fe20cf6d1d6 --- lang/sketchy/Portfile | 32 +++++++++++++++++++++++++++++ lang/sketchy/files/patch-Makefile | 24 ++++++++++++++++++++++ lang/sketchy/files/patch-util-sk.sh | 11 ++++++++++ 3 files changed, 67 insertions(+) create mode 100644 lang/sketchy/Portfile create mode 100644 lang/sketchy/files/patch-Makefile create mode 100644 lang/sketchy/files/patch-util-sk.sh diff --git a/lang/sketchy/Portfile b/lang/sketchy/Portfile new file mode 100644 index 0000000000000..dacc4dd512791 --- /dev/null +++ b/lang/sketchy/Portfile @@ -0,0 +1,32 @@ +# $Id: Portfile,v 1.1 2005/11/18 23:23:35 mww Exp $ + +PortSystem 1.0 + +name sketchy +version 20051118 +categories lang scheme +platforms darwin +maintainers mww@opendarwin.org +description interpreter for a purely applicative dialect of Scheme +long_description Sketchy is an interpreter for a purely applicative dialect \ + of Scheme. It may be considered an implementation of pure LISP \ + plus global definitions, first-class continuations, and \ + input/output functions. + +homepage http://www.t3x.org/sketchy/ +master_sites http://www.t3x.org/sketchy/ +checksums md5 c3408a2ac6d9f4af7d24d724ff75aa95 +patchfiles patch-util-sk.sh patch-Makefile + +post-patch { + reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/util/sk.sh +} + +use_configure no + +build.args PREFIX=${prefix} + +destroot.destdir PREFIX=${destroot}${prefix} BINOWN=`id -u` BINGRP=`id -g` + +platform darwin 8 { build.args-append CC=/usr/bin/gcc-4.0 } + diff --git a/lang/sketchy/files/patch-Makefile b/lang/sketchy/files/patch-Makefile new file mode 100644 index 0000000000000..6e22f33c24aa4 --- /dev/null +++ b/lang/sketchy/files/patch-Makefile @@ -0,0 +1,24 @@ +--- Makefile 2005-11-18 09:13:05.000000000 +0100 ++++ Makefile 2005-11-19 00:14:03.000000000 +0100 +@@ -10,7 +10,7 @@ + + BINDIR= $(PREFIX)/bin + SHRDIR= $(PREFIX)/share/sketchy +-MANDIR= $(PREFIX)/man/man7 ++MANDIR= $(PREFIX)/share/man/man7 + DOCDIR= $(PREFIX)/share/doc/sketchy + + CFLAGS= -O -DSIGNAL +@@ -19,10 +19,10 @@ + all: sketchy sketchy.image doc/library + + sketchy: sketchy.c +- cc $(CFLAGS) -o sketchy sketchy.c ++ $(CC) $(CFLAGS) -o sketchy sketchy.c + + lint: +- cc $(LINTFLAGS) -o sketchy sketchy.c ++ $(CC) $(LINTFLAGS) -o sketchy sketchy.c + + sketchy.image: + echo ':l lib/sketchy.l' >mkimage diff --git a/lang/sketchy/files/patch-util-sk.sh b/lang/sketchy/files/patch-util-sk.sh new file mode 100644 index 0000000000000..c80b3108bcd18 --- /dev/null +++ b/lang/sketchy/files/patch-util-sk.sh @@ -0,0 +1,11 @@ +--- util/sk.sh 2005-07-26 10:11:57.000000000 +0200 ++++ util/sk.sh 2005-11-19 00:11:19.000000000 +0100 +@@ -1,7 +1,7 @@ + #!/bin/sh + + B="" +-image="/usr/local/share/sketchy/sketchy.image" ++image="__PREFIX__/share/sketchy/sketchy.image" + + while [ "$1" != "" ]; do + case $1 in