[110204] trunk/dports/gnome

devans at macports.org devans at macports.org
Wed Aug 28 05:17:19 PDT 2013


Revision: 110204
          https://trac.macports.org/changeset/110204
Author:   devans at macports.org
Date:     2013-08-28 05:17:19 -0700 (Wed, 28 Aug 2013)
Log Message:
-----------
libpeas: new port, a GObject-based plugins engine.

Added Paths:
-----------
    trunk/dports/gnome/libpeas/
    trunk/dports/gnome/libpeas/Portfile
    trunk/dports/gnome/libpeas/files/
    trunk/dports/gnome/libpeas/files/patch-configure.diff
    trunk/dports/gnome/libpeas/files/patch-loaders-python-peas-plugin-loader-python.c.diff

Added: trunk/dports/gnome/libpeas/Portfile
===================================================================
--- trunk/dports/gnome/libpeas/Portfile	                        (rev 0)
+++ trunk/dports/gnome/libpeas/Portfile	2013-08-28 12:17:19 UTC (rev 110204)
@@ -0,0 +1,91 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                libpeas
+version             1.8.1
+license             LGPL-2
+set branch          [join [lrange [split ${version} .] 0 1] .]
+description         libpeas is a GObject-based plugins engine
+long_description    ${description}
+maintainers         devans openmaintainer
+categories          gnome
+platforms           darwin
+homepage            https://wiki.gnome.org/Libpeas
+master_sites        gnome:sources/${name}/${branch}/
+
+use_xz              yes
+
+checksums           rmd160  5ae13b20221a4c61904933664bbaf19fe830524e \
+                    sha256  ff0e7cd1f0da5dc1289efdd4662a06188f8f0fb088eac67abe05ffa66ba7751d
+
+depends_build       port:pkgconfig \
+                    port:intltool
+
+depends_lib         port:gtk3 \
+                    port:gobject-introspection \
+                    port:glade \
+                    port:seed
+
+patchfiles          patch-configure.diff \
+                    patch-loaders-python-peas-plugin-loader-python.c.diff
+
+configure.args      --enable-gtk \
+                    --enable-glade-catalog \
+                    --enable-seed \
+                    --disable-gjs \
+                    --disable-python2 \
+                    --disable-python3 \
+                    --disable-silent-rules
+
+variant gjs description {Enable Javascript support using gjs} {
+    depends_lib-append      port:gjs
+    configure.args-replace  --disable-gjs --enable-gjs
+}
+
+# port gjs is not universal
+
+if {[variant_isset gjs]} {
+    universal_variant no
+}
+
+variant python27 conflicts python32 python33 description {Use python 2.7} {
+    depends_lib-append          port:py27-gobject3
+    configure.python            ${prefix}/bin/python2.7
+    set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.7
+    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
+    configure.args-replace      --disable-python2 --enable-python2
+}
+
+# python3 minimum version is 3.2.0
+
+variant python32 conflicts python27 python33 description {Use python 3.2} {
+    depends_lib-append          port:py32-gobject3
+    configure.python            ${prefix}/bin/python3.2
+    set python_prefix           ${frameworks_dir}/Python.framework/Versions/3.2
+    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
+    configure.env-append        PYTHON3_CONFIG=${prefix}/bin/python3.2-config
+    configure.cflags-append     -L${python_prefix}/lib
+    configure.args-replace      --disable-python3 --enable-python3
+}
+
+variant python33 conflicts python27 python32 description {Use python 3.3} {
+    depends_lib-append          port:py33-gobject3
+    configure.python            ${prefix}/bin/python3.3
+    set python_prefix           ${frameworks_dir}/Python.framework/Versions/3.3
+    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
+    configure.env-append        PYTHON3_CONFIG=${prefix}/bin/python3.3-config
+    configure.cflags-append     -L${python_prefix}/lib
+    configure.args-replace      --disable-python3 --enable-python3
+}
+
+if {![variant_isset python32] && ![variant_isset python33]} {
+    default_variants +python27
+}
+
+post-activate {
+    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
+}
+
+livecheck.type  gnome


Property changes on: trunk/dports/gnome/libpeas/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/gnome/libpeas/files/patch-configure.diff
===================================================================
--- trunk/dports/gnome/libpeas/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/gnome/libpeas/files/patch-configure.diff	2013-08-28 12:17:19 UTC (rev 110204)
@@ -0,0 +1,14 @@
+--- configure.orig	2013-08-19 12:33:52.000000000 -0700
++++ configure	2013-08-19 12:38:28.000000000 -0700
+@@ -15543,9 +15543,9 @@
+ 
+ 
+ 
+-  PYTHON_PREFIX='${prefix}'
++  PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"`
+ 
+-  PYTHON_EXEC_PREFIX='${exec_prefix}'
++  PYTHON_EXEC_PREFIX=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
+ 
+ 
+ 

Added: trunk/dports/gnome/libpeas/files/patch-loaders-python-peas-plugin-loader-python.c.diff
===================================================================
--- trunk/dports/gnome/libpeas/files/patch-loaders-python-peas-plugin-loader-python.c.diff	                        (rev 0)
+++ trunk/dports/gnome/libpeas/files/patch-loaders-python-peas-plugin-loader-python.c.diff	2013-08-28 12:17:19 UTC (rev 110204)
@@ -0,0 +1,11 @@
+--- loaders/python/peas-plugin-loader-python.c.orig	2013-08-18 10:52:06.000000000 -0700
++++ loaders/python/peas-plugin-loader-python.c	2013-08-18 10:53:08.000000000 -0700
+@@ -24,6 +24,8 @@
+ #include <config.h>
+ #endif
+ 
++#define NO_IMPORT_PYGOBJECT
++
+ #include "peas-extension-python.h"
+ #include "peas-plugin-loader-python.h"
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130828/556f8afc/attachment.html>


More information about the macports-changes mailing list