[44670] trunk/dports/x11/font-adobe-100dpi/Portfile

blb at macports.org blb at macports.org
Thu Jan 1 17:45:31 PST 2009


Revision: 44670
          http://trac.macports.org/changeset/44670
Author:   blb at macports.org
Date:     2009-01-01 17:45:31 -0800 (Thu, 01 Jan 2009)
Log Message:
-----------
x11/font-adobe-100dpi - fix handling of fonts.* files

Modified Paths:
--------------
    trunk/dports/x11/font-adobe-100dpi/Portfile

Modified: trunk/dports/x11/font-adobe-100dpi/Portfile
===================================================================
--- trunk/dports/x11/font-adobe-100dpi/Portfile	2009-01-02 01:43:48 UTC (rev 44669)
+++ trunk/dports/x11/font-adobe-100dpi/Portfile	2009-01-02 01:45:31 UTC (rev 44670)
@@ -21,5 +21,26 @@
 depends_build       port:pkgconfig port:bdftopcf port:xorg-font-util \
                     port:mkfontscale port:mkfontdir bin:gzip:gzip
 
-configure.args      --with-fontdir=${prefix}/share/fonts/100dpi
+set myfontdir       ${prefix}/share/fonts/100dpi
 
+configure.args      --with-fontdir=${myfontdir}
+
+post-destroot {
+   foreach fontsFile {fonts.alias fonts.dir fonts.list fonts.scale} {
+      if {[file exists ${destroot}${myfontdir}/${fontsFile}]} {
+         delete ${destroot}${myfontdir}/${fontsFile}
+      }
+   }
+}
+
+post-activate {
+   system "mkfontscale ${myfontdir}"
+   system "mkfontdir ${myfontdir}"
+}
+
+# This should be done when uninstalling, but deactivate doesn't currently work
+#post-deactivate {
+#   system "mkfontscale ${myfontdir}"
+#   system "mkfontdir ${myfontdir}"
+#}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090101/cb917a0e/attachment.html>


More information about the macports-changes mailing list