Ticket #2096: Portfile

File Portfile, 1.6 KB (added by reilles@…, 20 years ago)

The portfile

Line 
1
2PortSystem    1.0
3name          jtom
4version       2.0
5
6description      Tom is a pattern matching compiler developed at INRIA.
7long_description Tom is a pattern matching compiler developed at INRIA.\
8                 It is particularly well-suited for programming various \
9                 transformations on  trees/terms and XML based documents.\
10                 Its design follows our research on rule based languages (R3),\
11                 and our experiences  on the efficient compilation of ELAN\
12                 developed by the Protheo group.\
13                 Don't forget to add `echo \${TOM_HOME}/lib/*.jar | tr ' ' ':'`\
14                 to your CLASSPATH, TOM_HOME being /opt/local/share/java/jtom-2.0
15platforms        darwin freebsd linux
16categories       lang
17maintainers      jtonio@users.sourceforge.net
18homepage         http://tom.loria.fr
19
20fetch.type       cvs
21cvs.root         :pserver:cvs@cvs-sop.inria.fr:/CVS/aircube
22cvs.password     RSUG
23cvs.tag          tom-2_0
24cvs.module       ${name}
25worksrcdir       ${name}
26
27depends_build    bin:ant:apache-ant
28
29use_configure    no
30
31pre-build {
32                 system "echo 'tomdocdir=stable' > ${worksrcpath}/local.properties"
33}
34build.cmd        ./build.sh
35build.target     dist.stable
36
37destroot  {
38  xinstall -m 755 -d ${destroot}${prefix}/share/java
39  file copy ${worksrcpath}/stable/dist/ ${destroot}${prefix}/share/java/${name}-${version}
40  file copy ${worksrcpath}/stable/dist/share/man/man1/tom.1 ${destroot}${prefix}/share/man/man1
41  system "ln -fs ${prefix}/share/java/${name}-${version}/bin/tom \
42    ${destroot}${prefix}/bin/tom"
43}