Skip to content

Commit

Permalink
new port lang/sketchy
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15068 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann committed Nov 18, 2005
1 parent c2b5c5b commit 15aa3d6
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
32 changes: 32 additions & 0 deletions 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 }

24 changes: 24 additions & 0 deletions 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
11 changes: 11 additions & 0 deletions 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

0 comments on commit 15aa3d6

Please sign in to comment.