Modified: trunk/dports/devel/poedit/Portfile (38820 => 38821)
--- trunk/dports/devel/poedit/Portfile 2008-08-01 01:10:13 UTC (rev 38820)
+++ trunk/dports/devel/poedit/Portfile 2008-08-01 01:18:12 UTC (rev 38821)
@@ -45,6 +45,15 @@
configure.args-append --enable-spellchecking
}
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+ set applications_dir /Applications/MacPorts
+}
+
+pre-destroot {
+ xinstall -d ${destroot}${applications_dir}
+}
+
destroot {
# the gettext binaries are copied into poedit.app during build,
# but we rather delete and symlink them to get updates to gettext automatically {
@@ -55,8 +64,6 @@
file delete ${worksrcpath}/src/poedit.app/Contents/MacOS/gnu_gettext.COPYING
# }
- set appPath "/Applications/MacPorts/"
- xinstall -d -m 755 ${destroot}${appPath}
- file copy ${worksrcpath}/src/poedit.app ${destroot}${appPath}poEdit.app
+ file copy ${worksrcpath}/src/poedit.app ${destroot}${applications_dir}/poEdit.app
}