Submitted by:   reilles@loria.fr
Reviewed by:    mww@

version 2.3

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@17894 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Markus W. Weißmann
2006-05-06 10:44:08 +00:00
parent 959bf8f06f
commit ecfdd542ee
+10 -19
View File
@@ -1,8 +1,8 @@
# $Id: Portfile,v 1.5 2005/10/09 17:31:53 jmpp Exp $
# $Id: Portfile,v 1.6 2006/05/06 10:44:08 mww Exp $
PortSystem 1.0
name tom
version 2.1
version 2.3
description Tom is a pattern matching compiler developed at INRIA.
long_description Tom is a pattern matching compiler developed at INRIA.\
@@ -17,37 +17,28 @@ platforms darwin freebsd linux
categories lang
maintainers reilles@loria.fr
homepage http://tom.loria.fr
fetch.type cvs
cvs.root :pserver:cvs@cvs-sop.inria.fr:/CVS/aircube
cvs.password RSUG
cvs.tag tom-2_1
cvs.module jtom
worksrcdir jtom
master_sites http://gforge.inria.fr/frs/download.php/731/
distname ${name}-src-${version}
checksums md5 52d0191092aa8715b7cf018b20e1ffe2
depends_build bin:ant:apache-ant
use_configure no
pre-build {
system "echo 'tomdocdir=stable' > ${worksrcpath}/local.properties"
}
build.cmd ./build.sh
build.target dist.stable
build.target stable
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/java
file copy ${worksrcpath}/stable/dist/ ${destroot}${prefix}/share/java/${name}-${version}
file delete ${destroot}${prefix}/share/java/${name}-${version}/doc
file copy ${worksrcpath}/stable/dist/share/man/man1/tom.1 ${destroot}${prefix}/share/man/man1/
file copy ${worksrcpath}/stable/dist/share/man/man1/gom.1 ${destroot}${prefix}/share/man/man1/
file delete ${destroot}${prefix}/share/java/${name}-${version}/man/man1/tom.1
file delete ${destroot}${prefix}/share/java/${name}-${version}/man/man1/gom.1
system "ln -fs ${prefix}/share/java/${name}-${version}/bin/tom \
${destroot}${prefix}/bin/tom"
system "ln -fs ${prefix}/share/java/${name}-${version}/bin/adt-to-tom.sh \
${destroot}${prefix}/bin/adt-to-tom"
system "ln -fs ${prefix}/share/java/${name}-${version}/bin/javac-tom \
${destroot}${prefix}/bin/javac-tom"
system "ln -fs ${prefix}/share/java/${name}-${version}/bin/gom \
${destroot}${prefix}/bin/gom"
}