aboutsummaryrefslogtreecommitdiffstats
path: root/lang/sisc/Makefile
blob: 82c4236acf366a349c035ceb8ff0299bb46a6051 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    SISC
# Date created:             18 March 2003
# Whom:                 Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#

PORTNAME=   sisc
PORTVERSION=    1.16.6
PORTREVISION=   1
CATEGORIES= lang scheme java
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= araujo@FreeBSD.org
COMMENT=    An extensible Java-based Scheme interpreter

USE_JAVA=   yes
JAVA_VERSION=   1.3+

NO_BUILD=   yes
PORTDOCS=   COPYING README

post-patch:
    ${REINPLACE_CMD} -e 's|\(SISC_HOME=\).*$$|\1${DATADIR}|' \
        -e 's|\(JAVA=\)java|\1"${LOCALBASE}/bin/java" ; export JAVA_VERSION="${JAVA_VERSION}"|' \
        ${WRKSRC}/sisc
    ${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' \
        ${WRKSRC}/scheme-src/srfi-22/srfi-22.sh

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/sisc ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/*.jar ${WRKSRC}/*.shp ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/scheme-src/*.scm ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/scheme-src/srfi-22/srfi-22.sh ${PREFIX}/bin
.for i in r4rs r5rs srfi-0 srfi-7 ieee-1178-1900
    ${LN} -sf ${PREFIX}/bin/srfi-22.sh ${PREFIX}/bin/scheme-${i}
.endfor

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}; ${INSTALL_DATA} COPYING README ${DOCSDIR}
.endif

.include <bsd.port.mk>