source: trunk/dports/lang/sisc/Portfile

Last change on this file was 133546, checked in by mf2k@…, 3 years ago

gqview neverball nice sisc: Ports abandoned. (#45275)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 133546 2015-03-04 22:22:18Z ryandesign@macports.org $
2
3PortSystem      1.0
4name            sisc
5version         1.16.6
6categories      lang java scheme
7platforms       darwin
8maintainers     nomaintainer
9description     Second Interpreter of Scheme Code
10long_description        SISC is a Java based interpreter of Scheme.
11homepage        http://sisc.sourceforge.net/
12master_sites    sourceforge
13distfiles       ${name}-${version}.jar
14checksums       md5 dda7b8bc5d998f1c37ef221c15ed0836 \
15                sha1 3301ede761cbb8841f457c50ea5ffccf02014777
16worksrcdir      ${name}
17use_zip         yes
18use_configure   no
19depends_build   bin:ant:apache-ant path:${prefix}/share/xsl:docbook-xsl
20pre-build       {
21        reinplace "s|/usr/share/xml/docbook/stylesheet/nwalsh/html|${prefix}/share/xsl/docbook-xsl/html|" ${worksrcpath}/build.xml
22}
23build.cmd       ant
24build.target    full-dist
25destroot        {
26        set siscdir ${worksrcpath}/dist/full/sisc-${version}
27        xinstall -m 755 ${siscdir}/sisc ${destroot}${prefix}/bin/sisc
28        reinplace "s|/usr/lib/sisc|\"${prefix}/share/java/sisc\"|" \
29                ${destroot}${prefix}/bin/sisc
30
31        xinstall -m 755 ${siscdir}/install-srfi22.sh \
32                ${destroot}${prefix}/bin/install-srfi22.sh
33        reinplace "s|/usr/local/bin|${prefix}/bin|" \
34                ${destroot}${prefix}/bin/install-srfi22.sh
35        reinplace "s|scheme-src|${prefix}/share/java/sisc/scheme-src|" \
36                ${destroot}${prefix}/bin/install-srfi22.sh
37
38        set javadir ${destroot}${prefix}/share/java/sisc
39        xinstall -d ${javadir}
40        file copy ${siscdir}/scheme-src ${javadir}
41        file copy ${siscdir}/sisc-lib.jar ${javadir}
42        file copy ${siscdir}/sisc-opt.jar ${javadir}
43        file copy ${siscdir}/sisc.jar ${javadir}
44        file copy ${siscdir}/sisc.shp ${javadir}
45
46        set docdir ${destroot}${prefix}/share/doc/sisc
47        xinstall -d ${docdir}
48        file copy ${siscdir}/ChangeLog ${docdir}
49        file copy ${siscdir}/COPYING ${docdir}
50        file copy ${siscdir}/GOALS ${docdir}
51        file copy ${siscdir}/README ${docdir}
52        file copy ${siscdir}/TODO ${docdir}
53        file copy ${siscdir}/doc ${docdir}
54
55        #put man page into place
56        file rename ${destroot}${prefix}/share/doc/sisc/doc/man/sisc.1 \
57                ${destroot}${prefix}/share/man/man1/sisc.1
58}
Note: See TracBrowser for help on using the repository browser.