[51739] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Mon Jun 1 23:41:09 PDT 2009


Revision: 51739
          http://trac.macports.org/changeset/51739
Author:   ryandesign at macports.org
Date:     2009-06-01 23:41:08 -0700 (Mon, 01 Jun 2009)
Log Message:
-----------
glib2-devel: version 2.21.1; see #18575

Added Paths:
-----------
    trunk/dports/devel/glib2-devel/
    trunk/dports/devel/glib2-devel/Portfile

Removed Paths:
-------------
    trunk/dports/devel/glib2-devel/Portfile

Deleted: trunk/dports/devel/glib2-devel/Portfile
===================================================================
--- trunk/dports/devel/glib2/Portfile	2009-06-02 00:15:40 UTC (rev 51728)
+++ trunk/dports/devel/glib2-devel/Portfile	2009-06-02 06:41:08 UTC (rev 51739)
@@ -1,147 +0,0 @@
-# $Id$
-
-PortSystem              1.0
-PortGroup               muniversal 1.0
-
-name                    glib2
-set my_name             glib
-version                 2.20.2
-set branch              [join [lrange [split ${version} .] 0 1] .]
-categories              devel
-maintainers             ryandesign
-homepage                http://www.gtk.org/
-platforms               darwin
-dist_subdir             glib2
-distname                ${my_name}-${version}
-use_bzip2               yes
-use_parallel_build      yes
-
-description \
-    Library with data structure functions and other constructs
-
-long_description \
-    Glib is a library which includes support routines for \
-    C, such as lists, trees, hashes, memory allocation, and \
-    many other things.
-
-master_sites \
-    gnome:sources/${my_name}/${branch}/ \
-    ftp://ftp.gtk.org/pub/${my_name}/${branch}/
-
-checksums \
-    md5     468054db4e28af3eac541b36c9d07c31 \
-    sha1    2c1f27bc4fb942ba93ccf934635879ffe0524f45 \
-    rmd160  5ab7863c97025bd5c1aa7659442aaee3020176ce
-
-# ${prefix}/include/glib-2.0/glib/gi18n.h requires -I${prefix}/include to find libintl.h
-# See http://trac.macports.org/changeset/27148
-patchfiles \
-    patch-glib-2.0.pc.in.diff \
-    patch-gi18n.h.diff \
-    patch-gio_xdgmime_xdgmime.c.diff \
-    patch-which.diff
-
-depends_build \
-    port:pkgconfig
-
-depends_lib \
-    port:gettext \
-    port:libiconv \
-    path:bin/perl:perl5 \
-    bin:python:python_select
-
-configure.ldflags-append \
-    -bind_at_load
-
-configure.cflags-append \
-    -fstrict-aliasing
-
-configure.args \
-    --enable-static
-
-configure.perl    ${prefix}/bin/perl
-configure.env-append  PERL_PATH=${configure.perl}
-
-post-patch {
-    reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c
-    reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
-    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/gio/xdgmime/xdgmime.c
-}
-
-platform darwin {
-    patchfiles-append \
-        patch-child-test.c.diff
-}
-
-test.run                yes
-test.target             check
-
-post-destroot {
-    file delete ${destroot}${prefix}/lib/charset.alias
-}
-
-platform darwin 6 {
-    depends_lib-append lib:libdl:dlcompat
-    post-configure {
-        reinplace "s|#define HAVE_WCHAR_T 1|#undef HAVE_WCHAR_T|" \
-            ${worksrcpath}/config.h
-    }
-}
-
-if {[variant_isset universal]} {
-    pre-configure {
-        global merger_configure_args merger_configure_env merger_configure_cppflags merger_configure_ldflags
-
-        # See http://trac.macports.org/ticket/19196.
-        if { ${universal_sysroot}=="/Developer/SDKs/MacOSX10.4u.sdk" } {
-            set merger_configure_cppflags(ppc64)   "-D __LP64__"
-            set merger_configure_ldflags(ppc64)    "-framework Carbon"
-            set merger_configure_cppflags(x86_64)  "-D __LP64__"
-            set merger_configure_ldflags(x86_64)   "-framework Carbon"
-        }
-
-        # Find architectures which will not run on build platform.
-        if { ${os.arch}=="i386" } {
-            if { ${os.major} >= 10 } {
-                set cross_archs "ppc ppc64"
-            } else {
-                set cross_archs "ppc64"
-                set host_archs  "ppc ppc64"
-                set big_endian  "yes"
-            }
-        } else {
-            set cross_archs "i386 x86_64"
-            set host_archs  "i386 x86_64"
-            set big_endian  "no"
-        }
-
-        set run_arch [lindex ${universal_archs} 0]
-        if { [lsearch ${cross_archs} ${run_arch}] >= 0 } {
-            ui_msg "When building a universal binary of ${name}, make sure none of {${cross_archs}} is first in universal_archs in ${prefix}/etc/macports/macports.conf"
-            error "incompatible universal_archs value"
-        }
-
-        foreach arch ${cross_archs} {
-            lappend merger_configure_env(${arch}) \
-                GLIB_GENMARSHAL=${worksrcpath}-${run_arch}/gobject/glib-genmarshal \
-                glib_cv_stack_grows=no \
-                glib_cv_uscore=no \
-                ac_cv_func_posix_getpwuid_r=yes \
-                ac_cv_func_posix_getgrgid_r=yes
-        }
-
-        # Correct NM values is not found.
-        # With -arch, ac_cv_c_bigendian is set to universal, which defaults to little endian.
-        foreach arch ${host_archs} {
-             lappend merger_configure_env(${arch}) \
-                NM='/usr/bin/nm -p' \
-                ac_cv_c_bigendian=${big_endian}
-        }
-    }
-
-    set merger_dont_diff ${prefix}/lib/glib-2.0/include/glibconfig.h
-}
-
-livecheck.check         regex
-livecheck.url           http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D
-livecheck.regex         ${my_name}-(\[0-9.\]+)\\.tar

Copied: trunk/dports/devel/glib2-devel/Portfile (from rev 51729, trunk/dports/devel/glib2/Portfile)
===================================================================
--- trunk/dports/devel/glib2-devel/Portfile	                        (rev 0)
+++ trunk/dports/devel/glib2-devel/Portfile	2009-06-02 06:41:08 UTC (rev 51739)
@@ -0,0 +1,147 @@
+# $Id$
+
+PortSystem              1.0
+PortGroup               muniversal 1.0
+
+name                    glib2-devel
+set my_name             glib
+version                 2.21.1
+set branch              [join [lrange [split ${version} .] 0 1] .]
+categories              devel
+maintainers             ryandesign
+homepage                http://www.gtk.org/
+platforms               darwin
+dist_subdir             glib2
+distname                ${my_name}-${version}
+use_bzip2               yes
+use_parallel_build      yes
+
+description \
+    Library with data structure functions and other constructs
+
+long_description \
+    Glib is a library which includes support routines for \
+    C, such as lists, trees, hashes, memory allocation, and \
+    many other things.
+
+master_sites \
+    gnome:sources/${my_name}/${branch}/ \
+    ftp://ftp.gtk.org/pub/${my_name}/${branch}/
+
+checksums \
+    md5     eaf8f40c743effe26dab18c81b10a89e \
+    sha1    135aa72a9f8a5fda077635101003859afc23b9b2 \
+    rmd160  f36808092d4fba00637a1570b8de158f82ff0a78
+
+# ${prefix}/include/glib-2.0/glib/gi18n.h requires -I${prefix}/include to find libintl.h
+# See http://trac.macports.org/changeset/27148
+patchfiles \
+    patch-glib-2.0.pc.in.diff \
+    patch-gi18n.h.diff \
+    patch-gio_xdgmime_xdgmime.c.diff \
+    patch-which.diff
+
+depends_build \
+    port:pkgconfig
+
+depends_lib \
+    port:gettext \
+    port:libiconv \
+    path:bin/perl:perl5 \
+    bin:python:python_select
+
+configure.ldflags-append \
+    -bind_at_load
+
+configure.cflags-append \
+    -fstrict-aliasing
+
+configure.args \
+    --enable-static
+
+configure.perl    ${prefix}/bin/perl
+configure.env-append  PERL_PATH=${configure.perl}
+
+post-patch {
+    reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c
+    reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
+    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/gio/xdgmime/xdgmime.c
+}
+
+platform darwin {
+    patchfiles-append \
+        patch-child-test.c.diff
+}
+
+test.run                yes
+test.target             check
+
+post-destroot {
+    file delete ${destroot}${prefix}/lib/charset.alias
+}
+
+platform darwin 6 {
+    depends_lib-append lib:libdl:dlcompat
+    post-configure {
+        reinplace "s|#define HAVE_WCHAR_T 1|#undef HAVE_WCHAR_T|" \
+            ${worksrcpath}/config.h
+    }
+}
+
+if {[variant_isset universal]} {
+    pre-configure {
+        global merger_configure_args merger_configure_env merger_configure_cppflags merger_configure_ldflags
+
+        # See http://trac.macports.org/ticket/19196.
+        if { ${universal_sysroot}=="/Developer/SDKs/MacOSX10.4u.sdk" } {
+            set merger_configure_cppflags(ppc64)   "-D __LP64__"
+            set merger_configure_ldflags(ppc64)    "-framework Carbon"
+            set merger_configure_cppflags(x86_64)  "-D __LP64__"
+            set merger_configure_ldflags(x86_64)   "-framework Carbon"
+        }
+
+        # Find architectures which will not run on build platform.
+        if { ${os.arch}=="i386" } {
+            if { ${os.major} >= 10 } {
+                set cross_archs "ppc ppc64"
+            } else {
+                set cross_archs "ppc64"
+                set host_archs  "ppc ppc64"
+                set big_endian  "yes"
+            }
+        } else {
+            set cross_archs "i386 x86_64"
+            set host_archs  "i386 x86_64"
+            set big_endian  "no"
+        }
+
+        set run_arch [lindex ${universal_archs} 0]
+        if { [lsearch ${cross_archs} ${run_arch}] >= 0 } {
+            ui_msg "When building a universal binary of ${name}, make sure none of {${cross_archs}} is first in universal_archs in ${prefix}/etc/macports/macports.conf"
+            error "incompatible universal_archs value"
+        }
+
+        foreach arch ${cross_archs} {
+            lappend merger_configure_env(${arch}) \
+                GLIB_GENMARSHAL=${worksrcpath}-${run_arch}/gobject/glib-genmarshal \
+                glib_cv_stack_grows=no \
+                glib_cv_uscore=no \
+                ac_cv_func_posix_getpwuid_r=yes \
+                ac_cv_func_posix_getgrgid_r=yes
+        }
+
+        # Correct NM values is not found.
+        # With -arch, ac_cv_c_bigendian is set to universal, which defaults to little endian.
+        foreach arch ${host_archs} {
+             lappend merger_configure_env(${arch}) \
+                NM='/usr/bin/nm -p' \
+                ac_cv_c_bigendian=${big_endian}
+        }
+    }
+
+    set merger_dont_diff ${prefix}/lib/glib-2.0/include/glibconfig.h
+}
+
+livecheck.check         regex
+livecheck.url           http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D
+livecheck.regex         ${my_name}-(\[0-9.\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090601/09e0c923/attachment.html>


More information about the macports-changes mailing list