[107946] trunk/dports/net

devans at macports.org devans at macports.org
Tue Jul 9 13:40:15 PDT 2013


Revision: 107946
          https://trac.macports.org/changeset/107946
Author:   devans at macports.org
Date:     2013-07-09 13:40:15 -0700 (Tue, 09 Jul 2013)
Log Message:
-----------
gupnp-igd: new port, a library to handle UPnP IGD port mapping.

Added Paths:
-----------
    trunk/dports/net/gupnp-igd/
    trunk/dports/net/gupnp-igd/Portfile
    trunk/dports/net/gupnp-igd/files/
    trunk/dports/net/gupnp-igd/files/patch-configure.diff
    trunk/dports/net/gupnp-igd/files/patch-python-pygupnp-igd-module.c.diff

Added: trunk/dports/net/gupnp-igd/Portfile
===================================================================
--- trunk/dports/net/gupnp-igd/Portfile	                        (rev 0)
+++ trunk/dports/net/gupnp-igd/Portfile	2013-07-09 20:40:15 UTC (rev 107946)
@@ -0,0 +1,59 @@
+# -*- 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            gupnp-igd
+version         0.2.2
+license         LGPL
+set branch      [join [lrange [split ${version} .] 0 1] .]
+description     GUPnP-IGD is a library to handle UPnP IGD port mapping.
+
+long_description \
+                ${description}
+
+maintainers     devans openmaintainer
+categories      net
+platforms       darwin
+homepage        https://live.gnome.org/GUPnP/
+master_sites    gnome:sources/${name}/${branch}/
+
+use_xz          yes
+
+checksums       rmd160  215f21e85dd902c729c3aff9981bff42c4b20d3c \
+                sha256  73b6a98a0f13b29b34c3bfc07f99f78b1319211cb95a8585752873af2b9067d3
+
+depends_build   port:pkgconfig
+
+depends_lib     port:gupnp \
+                port:gobject-introspection
+
+patchfiles      patch-configure.diff \
+                patch-python-pygupnp-igd-module.c.diff
+
+configure.args  --disable-silent-rules \
+                --enable-introspection=yes
+
+if {![variant_isset python26]}  {
+    default_variants +python27
+}
+
+variant python26 conflicts python27  description {Enable Python 2.6 bindings} {
+                configure.args-delete       --disable-python
+                depends_lib-append          port:py26-gobject
+                configure.python            ${prefix}/bin/python2.6
+                set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.6
+                set python_pkg_config_path  ${python_prefix}/lib/pkgconfig
+                configure.pkg_config_path   ${python_pkg_config_path}
+                build.env-append            PATH=${python_prefix}/bin:$env(PATH)
+}
+
+variant python27 conflicts python26  description {Enable Python 2.7 bindings} {
+                configure.args-delete       --disable-python
+                depends_lib-append          port:py27-gobject
+                configure.python            ${prefix}/bin/python2.7
+                set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.7
+                set python_pkg_config_path  ${python_prefix}/lib/pkgconfig
+                configure.pkg_config_path   ${python_pkg_config_path}
+                build.env-append            PATH=${python_prefix}/bin:$env(PATH)
+}


Property changes on: trunk/dports/net/gupnp-igd/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/net/gupnp-igd/files/patch-configure.diff
===================================================================
--- trunk/dports/net/gupnp-igd/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/net/gupnp-igd/files/patch-configure.diff	2013-07-09 20:40:15 UTC (rev 107946)
@@ -0,0 +1,14 @@
+--- configure.orig	2013-04-30 14:42:22.000000000 -0700
++++ configure	2013-04-30 14:43:34.000000000 -0700
+@@ -13061,9 +13061,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/net/gupnp-igd/files/patch-python-pygupnp-igd-module.c.diff
===================================================================
--- trunk/dports/net/gupnp-igd/files/patch-python-pygupnp-igd-module.c.diff	                        (rev 0)
+++ trunk/dports/net/gupnp-igd/files/patch-python-pygupnp-igd-module.c.diff	2013-07-09 20:40:15 UTC (rev 107946)
@@ -0,0 +1,7 @@
+--- python/pygupnp-igd-module.c.orig	2013-04-30 15:08:22.000000000 -0700
++++ python/pygupnp-igd-module.c	2013-04-30 15:09:03.000000000 -0700
+@@ -1,3 +1,4 @@
++#define NO_IMPORT_PYGOBJECT
+ #include <pygobject.h>
+ #include <libgupnp-igd/gupnp-simple-igd.h>
+ #include <libgupnp-igd/gupnp-simple-igd-thread.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130709/0e6f0140/attachment.html>


More information about the macports-changes mailing list