[46749] trunk/dports/devel/mtn-browse/Portfile
tommyd at macports.org
tommyd at macports.org
Wed Feb 11 14:58:18 PST 2009
Revision: 46749
http://trac.macports.org/changeset/46749
Author: tommyd at macports.org
Date: 2009-02-11 14:58:17 -0800 (Wed, 11 Feb 2009)
Log Message:
-----------
* upstream released a new version, with a usable installer!
Modified Paths:
--------------
trunk/dports/devel/mtn-browse/Portfile
Modified: trunk/dports/devel/mtn-browse/Portfile
===================================================================
--- trunk/dports/devel/mtn-browse/Portfile 2009-02-11 22:54:58 UTC (rev 46748)
+++ trunk/dports/devel/mtn-browse/Portfile 2009-02-11 22:58:17 UTC (rev 46749)
@@ -3,7 +3,7 @@
PortSystem 1.0
name mtn-browse
-version 0.60
+version 0.61
categories devel
platforms darwin
maintainers tommyd openmaintainer
@@ -18,9 +18,9 @@
homepage http://www.coosoft.plus.com/software.html
master_sites sourceforge:mtn-browse
-checksums md5 5e3531e32c61096ffa957a4a09d07c5b \
- sha1 d91437c03429f29e2058aff19d791d52fbb67181 \
- rmd160 ce54178c95ec9b83ba99d6ed41a30ac8cab8e49b
+checksums md5 7c568cf786ccc9a17e6b46ba68c29a5d \
+ sha1 1b7791e0f1ecfd7c2399791bc574da4258a83510 \
+ rmd160 718268db868c9adf6ff71d4cb64f1e61d370c4f6
depends_run port:p5-monotone-automatestdio \
port:p5-gnome2 \
@@ -30,34 +30,15 @@
use_configure no
-# this is a bit ugly, but the author has yet to provide a standard way
-# to configure and install his application. There are two perl scripts
-# available which are currently doing this task, but these only act
-# on user input and I didn't want to write an expect script...
build {
reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
- ${worksrcpath}/mtn-browse
- reinplace "s|@INST:PREFIX_DIR@|${prefix}|g" \
- ${worksrcpath}/mtn-browse
- reinplace "s|@INST:LIB_DIR@|${prefix}/share/mtn-browse|g" \
- ${worksrcpath}/mtn-browse
- reinplace "s|@INST:GLOBS_FILE@|${prefix}/share/mime/globs|g" \
- ${worksrcpath}/mtn-browse
+ ${worksrcpath}/mtn-browse \
+ ${worksrcpath}/linux-installer
}
destroot {
- system "mkdir -p ${destroot}${prefix}/share/mtn-browse/perl"
- system "mkdir -p ${destroot}${prefix}/share/mtn-browse/ui"
- system "cd ${worksrcpath} && install mtn-browse ${destroot}${prefix}/bin"
- system "cd ${worksrcpath}/lib/perl && install *.pm ${destroot}${prefix}/share/mtn-browse/perl"
- system "cd ${worksrcpath}/lib/ui && install *.glade ${destroot}${prefix}/share/mtn-browse/ui"
- system "cd ${worksrcpath}/lib/ui/pixmaps && install *.png ${destroot}${prefix}/share/mtn-browse/ui"
- system "\
- cd ${worksrcpath}/translations && \
- for file in \$(ls *.po); do \
- locale=\$(basename -s .po \$file); \
- msgfmt -o '${destroot}${prefix}/share/\$locale/LC_MESSAGES/mtn-browse.mo' \$file; \
- done \
- "
+ system "cd ${worksrcpath} && ./linux-installer \
+ --destdir=${destroot} --prefix=${prefix} --no-use-dists-mas \
+ --globs-file=${prefix}/share/mime/globs"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090211/aa5c10a1/attachment.html>
More information about the macports-changes
mailing list