[44789] trunk/dports/x11

blb at macports.org blb at macports.org
Fri Jan 2 18:37:04 PST 2009


Revision: 44789
          http://trac.macports.org/changeset/44789
Author:   blb at macports.org
Date:     2009-01-02 18:37:03 -0800 (Fri, 02 Jan 2009)
Log Message:
-----------
New port - x11/font-misc-ethiopic, X.org Ethiopic truetype fonts

Added Paths:
-----------
    trunk/dports/x11/font-misc-ethiopic/
    trunk/dports/x11/font-misc-ethiopic/Portfile

Added: trunk/dports/x11/font-misc-ethiopic/Portfile
===================================================================
--- trunk/dports/x11/font-misc-ethiopic/Portfile	                        (rev 0)
+++ trunk/dports/x11/font-misc-ethiopic/Portfile	2009-01-03 02:37:03 UTC (rev 44789)
@@ -0,0 +1,53 @@
+# $Id$
+
+PortSystem          1.0
+name                font-misc-ethiopic
+version             1.0.0
+categories          x11 x11-font graphics
+maintainers         blb openmaintainer
+description         X.org Ethiopic truetype fonts
+long_description    ${description}
+
+platforms           darwin
+
+homepage            http://www.x.org/
+master_sites        ${homepage}pub/individual/font/
+use_bzip2           yes
+
+checksums           md5     0b271fc617087d77560bdca20c0cdbb0 \
+                    sha1    d598b873ea897574b86167a36b4c151f84d22d68 \
+                    rmd160  53e2176a4073fdceae9b2a5392b252209536372a
+
+depends_build       port:pkgconfig port:bdftopcf port:xorg-font-util \
+                    port:mkfontscale port:mkfontdir bin:gzip:gzip
+
+set myfontbasedir   ${prefix}/share/fonts
+
+configure.args      --with-ttf-fontdir=${myfontbasedir}/TTF \
+                    --with-otf-fontdir=${myfontbasedir}/OTF
+
+post-destroot {
+   foreach fontsFile {fonts.alias fonts.dir fonts.list fonts.scale} {
+      foreach fontType {OTF TTF} {
+         if {[file exists ${destroot}${myfontbasedir}/${fontType}/${fontsFile}]} {
+            delete ${destroot}${myfontbasedir}/${fontType}/${fontsFile}
+         }
+      }
+   }
+}
+
+post-activate {
+   foreach fontType {OTF TTF} {
+      system "mkfontscale ${myfontbasedir}/${fontType}"
+      system "mkfontdir ${myfontbasedir}/${fontType}"
+   }
+}
+
+# This should be done when uninstalling, but deactivate doesn't currently work
+#post-deactivate {
+#   foreach fontType {OTF TTF} {
+#      system "mkfontscale ${myfontbasedir}/${fontType}"
+#      system "mkfontdir ${myfontbasedir}/${fontType}"
+#   }
+#}
+


Property changes on: trunk/dports/x11/font-misc-ethiopic/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090102/e48b8368/attachment.html>


More information about the macports-changes mailing list