[115964] trunk/dports/x11/lablgtk2/Portfile

devans at macports.org devans at macports.org
Wed Jan 15 07:44:52 PST 2014


Revision: 115964
          https://trac.macports.org/changeset/115964
Author:   devans at macports.org
Date:     2014-01-15 07:44:52 -0800 (Wed, 15 Jan 2014)
Log Message:
-----------
lablgtk2: update to version 2.18.0, add variants +gl +gtksourceview2 +quartz +x11, default +x11 (#37559).

Modified Paths:
--------------
    trunk/dports/x11/lablgtk2/Portfile

Modified: trunk/dports/x11/lablgtk2/Portfile
===================================================================
--- trunk/dports/x11/lablgtk2/Portfile	2014-01-15 15:29:00 UTC (rev 115963)
+++ trunk/dports/x11/lablgtk2/Portfile	2014-01-15 15:44:52 UTC (rev 115964)
@@ -3,10 +3,10 @@
 
 PortSystem          1.0
 PortGroup           ocaml 1.0
+PortGroup           active_variants 1.1
 
 name                lablgtk2
-version             2.16.0
-revision            5
+version             2.18.0
 categories          x11 ml
 platforms           darwin
 maintainers         nomaintainer
@@ -16,17 +16,17 @@
 description         Objective Caml interface to gtk+ 2.x
 
 long_description    LablGTK2 is is an Objective Caml interface to gtk+ 2.x. \
-                    It uses the rich type system of Objective Caml 3 to provide a \
+                    It uses the rich type system of Objective Caml to provide a \
                     strongly typed, yet very comfortable, object-oriented interface to \
                     gtk+. This is not that easy if you know the dynamic typing approach \
                     taken by gtk+.
 
 homepage            http://lablgtk.forge.ocamlcore.org/
-master_sites        https://forge.ocamlcore.org/frs/download.php/979/
+master_sites        https://forge.ocamlcore.org/frs/download.php/1261/
 distname            lablgtk-${version}
 
-checksums           rmd160  47d89ce62e02dc4143f340e92adfdde6bbdef89a \
-                    sha256  a0ea9752eb257dadcfc2914408fff339d4c34357802f02c63329dd41b777de2f
+checksums           rmd160  af5d64cbcaa0bee3ad58954a74cd99096fe57152 \
+                    sha256  c76a7ae9454e89365666cf19728dbb51edb6810e2e57032b3bebd53ccec5946e
 
 depends_build       port:pkgconfig
 depends_lib         port:ocaml \
@@ -38,13 +38,14 @@
 
 configure.args      --with-libdir=${ocamlfind_dir} \
                     --without-gl \
-                    --without-rsvg \
                     --with-glade \
                     --with-gnomecanvas \
                     --with-gnomeui \
                     --without-panel \
+                    --without-rsvg \
                     --without-gtkspell \
-                    --without-gtksourceview
+                    --without-gtksourceview \
+                    --without-gtksourceview2
 
 build.target        world doc
 use_parallel_build  no
@@ -56,10 +57,15 @@
 post-destroot {
     xinstall -m 755 -d ${ocamlfind_destdir}/lablgtk2 \
         ${destroot}${prefix}/share/doc/${name}
-    file copy ${worksrcpath}/META ${ocamlfind_destdir}/lablgtk2
     file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}/
 }
 
+variant gl description "enable gtkglarea support" {
+    configure.args-delete   --without-gl
+    configure.args-append   --with-gl
+    depends_lib-append      port:lablgl port:gtkglarea2
+}
+
 variant rsvg description "enable rsvg support" {
     configure.args-delete   --without-rsvg
     configure.args-append   --with-rsvg
@@ -72,5 +78,26 @@
     depends_lib-append      port:gtksourceview
 }
 
+variant gtksourceview2 description "enable gtksourceview2 support" {
+    configure.args-delete   --without-gtksourceview2
+    configure.args-append   --with-gtksourceview2
+    depends_lib-append      port:gtksourceview2
+}
+
+variant x11 conflicts quartz {
+    configure.args-append   --without-quartz
+}
+
+variant quartz conflicts x11 {
+    configure.args-append   --with-quartz
+}
+
+if {![variant_isset quartz]} {
+    default_variants +x11
+    require_active_variants gtk2 x11 quartz
+} else {
+    require_active_variants gtk2 quartz x11
+}
+
 livecheck.type      regex
 livecheck.regex     {lablgtk-([0-9]+(\.[0-9]+)+)\.}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140115/598f514c/attachment.html>


More information about the macports-changes mailing list