[84469] trunk/dports/math/pspp-devel/Portfile
snc at macports.org
snc at macports.org
Mon Sep 26 08:31:09 PDT 2011
Revision: 84469
http://trac.macports.org/changeset/84469
Author: snc at macports.org
Date: 2011-09-26 08:31:09 -0700 (Mon, 26 Sep 2011)
Log Message:
-----------
pspp-devel: avoid icon-theme.cache ownership
Modified Paths:
--------------
trunk/dports/math/pspp-devel/Portfile
Modified: trunk/dports/math/pspp-devel/Portfile
===================================================================
--- trunk/dports/math/pspp-devel/Portfile 2011-09-26 15:19:27 UTC (rev 84468)
+++ trunk/dports/math/pspp-devel/Portfile 2011-09-26 15:31:09 UTC (rev 84469)
@@ -76,12 +76,6 @@
variant doc description {Build documentation} {
depends_lib-append port:texinfo
build.target-append pdf html
- post-destroot {
- xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
- foreach fl [glob -nocomplain -directory ${worksrcpath}/doc *.pdf *.html] {
- copy ${fl} ${destroot}${prefix}/share/doc/${name}
- }
- }
}
variant postgres description {Enables reading of postgresql databases} {
@@ -107,6 +101,26 @@
configure.args-delete --without-gui
}
+post-destroot {
+ if {[variant_isset doc]} {
+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+ foreach fl [glob -nocomplain -directory ${worksrcpath}/doc *.pdf *.html] {
+ copy ${fl} ${destroot}${prefix}/share/doc/${name}
+ }
+ }
+
+ delete ${destroot}${prefix}/share/icons/hicolor/icon-theme.cache
+}
+
+post-activate {
+ system "${prefix}/bin/gtk-update-icon-cache --ignore-theme-index ${prefix}/share/icons/hicolor"
+
+}
+
+post-deactivate {
+ system "${prefix}/bin/gtk-update-icon-cache --ignore-theme-index ${prefix}/share/icons/hicolor"
+}
+
if {![variant_isset gui]} {
app.create no
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110926/1f53b8f8/attachment.html>
More information about the macports-changes
mailing list