Ticket #1707: Portfile

File Portfile, 1.7 KB (added by sleepinghead@…, 20 years ago)

Portfile

Line 
1# $Id$
2PortSystem      1.0
3name            sisc
4version         1.8.7
5categories      lang
6maintainers     sleepinghead@netzero.net
7description     Second Interpreter of Scheme Code
8long_description        SISC is a Java based interpreter of Scheme.
9homepage        http://sisc.sourceforge.net/
10master_sites    sourceforge
11distfiles       ${name}-${version}.jar
12checksums       md5 e52a92a4acb4dce94978ed87a4e6e355
13worksrcdir      ${name}
14use_zip         yes
15use_configure   no
16depends_build   bin:ant:apache-ant path:${prefix}/share/xsl:docbook-xsl
17pre-build       {
18        reinplace "s|/usr/share/sgml/docbook/stylesheet/xsl/nwalsh|${prefix}/share/xsl/docbook-xsl|" ${worksrcpath}/build.xml
19}
20build.cmd       ant
21build.target    full-dist
22destroot        {
23        xinstall -m 755 ${worksrcpath}/dist/full/sisc/sisc \
24                ${destroot}${prefix}/bin/sisc
25        reinplace "s|\"`dirname \$0`\"|\"${prefix}/lib/sisc\"|" \
26                ${destroot}${prefix}/bin/sisc
27
28        xinstall -m 755 ${worksrcpath}/dist/full/sisc/install-srfi22.sh \
29                ${destroot}${prefix}/bin/install-srfi22.sh
30        reinplace "s|/usr/local/bin|${prefix}/bin|" \
31                ${destroot}${prefix}/bin/install-srfi22.sh
32        reinplace "s|scheme-src|${prefix}/lib/sisc/scheme-src|" \
33                ${destroot}${prefix}/bin/install-srfi22.sh
34
35        xinstall -d ${destroot}${prefix}/lib/sisc/scheme-src/srfi-22
36        system "cp -r ${worksrcpath}/dist/full/sisc/scheme-src \
37                ${destroot}${prefix}/lib/sisc"
38        system "cp ${worksrcpath}/dist/full/sisc/*.jar \
39                ${worksrcpath}/dist/full/sisc/*.shp \
40                ${destroot}${prefix}/lib/sisc"
41
42        xinstall -d ${destroot}${prefix}/share/doc/sisc
43        system "cp ${worksrcpath}/dist/full/sisc/ChangeLog \
44                ${worksrcpath}/dist/full/sisc/COPYING \
45                ${worksrcpath}/dist/full/sisc/GOALS \
46                ${worksrcpath}/dist/full/sisc/README \
47                ${worksrcpath}/dist/full/sisc/TODO \
48                ${worksrcpath}/dist/full/sisc/doc/* \
49                ${destroot}${prefix}/share/doc/sisc"
50}