[27598] trunk/dports/graphics/gimp-user-manual/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 10 07:02:32 PDT 2007


Revision: 27598
          http://trac.macosforge.org/projects/macports/changeset/27598
Author:   yves at macports.org
Date:     2007-08-10 07:02:32 -0700 (Fri, 10 Aug 2007)

Log Message:
-----------
Version 0.13.  
The default is now to fetch pre-built html files, since the build is really very long
It is still possible to build the thing
But it is now also possible to build only one language to "optimize disk space" WOW !

Modified Paths:
--------------
    trunk/dports/graphics/gimp-user-manual/Portfile

Modified: trunk/dports/graphics/gimp-user-manual/Portfile
===================================================================
--- trunk/dports/graphics/gimp-user-manual/Portfile	2007-08-10 11:39:38 UTC (rev 27597)
+++ trunk/dports/graphics/gimp-user-manual/Portfile	2007-08-10 14:02:32 UTC (rev 27598)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name            gimp-user-manual
-version         0.12
+version         0.13
 categories      graphics
 maintainers     nomaintainer at macports.org
 description     A multilingual user manual for the Gimp (broken).
@@ -13,21 +13,101 @@
 homepage        http://docs.gimp.org/
 platforms       darwin
 
-distname        gimp-help-2-${version}
-master_sites    ftp://ftp.gimp.org/pub/gimp/help/
-checksums       md5 fc1e2153eafa04fa701b23818029c3e1
+# FIXME : build is done in destroot phase because
+# everything was getting rebuilt during destroot anyway
 
-depends_build   port:pkgconfig \
-                port:docbook-xsl \
-                port:docbook-xml-4.3 \
-                port:libxslt \
-                bin:${prefix}/bin/gimp:gimp2
+build {}
 
-configure.args  --enable-build
+default_variants    +fetch
 
-build.env       XML_CATALOG_FILES=${prefix}/etc/xml/catalog
+variant fetch {
+    distname        gimp-help-html-${version}
+    master_sites    macports:yves
+    use_bzip2       yes
+    checksums       md5 ad1e532a9a912951162a439097907ed8
+    
+    extract         {}
+    use_configure   no
+    destroot {
+        cd ${destroot}${prefix}/share
+        system "tar jvxf ${distpath}/${distfiles}"
+    }
+}
 
-variant without_gimp {
+variant build conflicts fetch {
+    distname        gimp-help-2-${version}
+    master_sites    ftp://ftp.gimp.org/pub/gimp/help/
+    checksums       md5 a0d3ab0e503cacaaaa031958bfad43e5
+
+    depends_build \
+        port:coreutils \
+        port:docbook-xsl \
+        port:docbook-xml-4.3 \
+        port:libxslt \
+        port:pkgconfig \
+        path:${prefix}/lib/pkgconfig/gimp-2.0.pc:gimp2
+
+    post-patch {
+        reinplace "s|cp|gcp|g" ${worksrcpath}/Makefile.in
+    }
+
+    configure.args  --enable-build
+    destroot.env    XML_CATALOG_FILES=${prefix}/etc/xml/catalog
+}
+
+variant without_gimp requires build {
     configure.args-append   --without-gimp
-    depends_build-delete    bin:${prefix}/bin/gimp:gimp2
+    depends_build-delete    path:${prefix}/lib/pkgconfig/gimp-2.0.pc:gimp2
 }
+
+variant cs requires build {
+    configure.env-append ALL_LINGUAS=cs
+}
+
+variant de requires build {
+    configure.env-append ALL_LINGUAS=de
+}
+
+variant en requires build {
+    configure.env-append ALL_LINGUAS=en
+}
+
+variant es requires build {
+    configure.env-append ALL_LINGUAS=es
+}
+
+variant fr requires build {
+    configure.env-append ALL_LINGUAS=fr
+}
+
+variant hr requires build {
+    configure.env-append ALL_LINGUAS=hr
+}
+
+variant it requires build {
+    configure.env-append ALL_LINGUAS=it
+}
+
+variant ko requires build {
+    configure.env-append ALL_LINGUAS=ko
+}
+
+variant nl requires build {
+    configure.env-append ALL_LINGUAS=nl
+}
+
+variant no requires build {
+    configure.env-append ALL_LINGUAS=no
+}
+
+variant ru requires build {
+    configure.env-append ALL_LINGUAS=ru
+}
+
+variant sv requires build {
+    configure.env-append ALL_LINGUAS=sv
+}
+
+variant zh_CN requires build {
+    configure.env-append ALL_LINGUAS=zh_CN
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070810/3d64a239/attachment.html


More information about the macports-changes mailing list