[112684] trunk/dports/math/mallet
hum at macports.org
hum at macports.org
Tue Oct 29 07:10:44 PDT 2013
Revision: 112684
https://trac.macports.org/changeset/112684
Author: hum at macports.org
Date: 2013-10-29 07:10:44 -0700 (Tue, 29 Oct 2013)
Log Message:
-----------
mallet: install doc and examples according to the standard file hierarchy; install jar files in ${prefix}/share/java/${name} and fix pathes in mallet script.
Modified Paths:
--------------
trunk/dports/math/mallet/Portfile
trunk/dports/math/mallet/files/patch-mallet.diff
Modified: trunk/dports/math/mallet/Portfile
===================================================================
--- trunk/dports/math/mallet/Portfile 2013-10-29 13:56:28 UTC (rev 112683)
+++ trunk/dports/math/mallet/Portfile 2013-10-29 14:10:44 UTC (rev 112684)
@@ -5,6 +5,7 @@
name mallet
version 2.0.7
+revision 1
categories math java
maintainers hum openmaintainer
@@ -30,16 +31,23 @@
build {}
destroot {
- set malletdir ${prefix}/share/java/${distname}
- set mallet_dest ${destroot}${malletdir}
- xinstall -m 755 ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
- reinplace "s|@malletdir@|${malletdir}|" ${destroot}${prefix}/bin/mallet
- xinstall -m 755 -d ${mallet_dest}
- xinstall -m 644 ${worksrcpath}/LICENSE ${mallet_dest}
- foreach d {dist sample-data} {
- copy ${worksrcpath}/${d} ${mallet_dest}
- system "chmod -R a+rx ${mallet_dest}/${d}"
- }
+ # install jar files.
+ xinstall -d ${destroot}${prefix}/share/java
+ set malletdir ${prefix}/share/java/${distname}
+ copy ${worksrcpath}/dist ${destroot}${malletdir}
+ system "chmod -R a+rx ${destroot}${malletdir}"
+ # install a command utility.
+ xinstall -m 755 ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
+ reinplace "s|@malletdir@|${malletdir}|" ${destroot}${prefix}/bin/mallet
+ # install additional documents.
+ set dest_doc ${destroot}${prefix}/share/doc/${name}
+ xinstall -d ${dest_doc}
+ xinstall -m 644 ${worksrcpath}/LICENSE ${dest_doc}
+ # install examples.
+ xinstall -d ${destroot}${prefix}/share/examples
+ set dest_ex ${destroot}${prefix}/share/examples/${name}
+ copy ${worksrcpath}/sample-data ${dest_ex}
+ system "chmod -R a+rx ${dest_ex}"
}
livecheck.type regex
Modified: trunk/dports/math/mallet/files/patch-mallet.diff
===================================================================
--- trunk/dports/math/mallet/files/patch-mallet.diff 2013-10-29 13:56:28 UTC (rev 112683)
+++ trunk/dports/math/mallet/files/patch-mallet.diff 2013-10-29 14:10:44 UTC (rev 112684)
@@ -9,7 +9,7 @@
+malletdir=@malletdir@
-cp=$malletdir/class:$malletdir/lib/mallet-deps.jar:$CLASSPATH
-+cp=$malletdir/dist/mallet.jar:$malletdir/dist/mallet-deps.jar:$CLASSPATH
++cp=$malletdir/mallet.jar:$malletdir/mallet-deps.jar:$CLASSPATH
#echo $cp
MEMORY=1g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131029/d066653b/attachment.html>
More information about the macports-changes
mailing list