[51546] trunk/dports/python/py26-midgard2/files/setup.py.diff

jwa at macports.org jwa at macports.org
Wed May 27 12:03:03 PDT 2009


Revision: 51546
          http://trac.macports.org/changeset/51546
Author:   jwa at macports.org
Date:     2009-05-27 12:02:56 -0700 (Wed, 27 May 2009)
Log Message:
-----------
make this system independent

Modified Paths:
--------------
    trunk/dports/python/py26-midgard2/files/setup.py.diff

Modified: trunk/dports/python/py26-midgard2/files/setup.py.diff
===================================================================
--- trunk/dports/python/py26-midgard2/files/setup.py.diff	2009-05-27 18:21:55 UTC (rev 51545)
+++ trunk/dports/python/py26-midgard2/files/setup.py.diff	2009-05-27 19:02:56 UTC (rev 51546)
@@ -1,6 +1,6 @@
 --- setup.py	2009-05-16 17:56:46.000000000 +0300
 +++ setup.py	2009-05-16 18:01:54.000000000 +0300
-@@ -0,0 +1,121 @@
+@@ -0,0 +1,112 @@
 +#!/usr/bin/env python
 +#ident "@(#) $Id: setup.py,v 1.28 2006/06/07 17:21:28 jwa Exp $"
 +# vi:set sw=4 ts=8 showmode ai:
@@ -70,18 +70,9 @@
 +               "py_midgard_object.c"]
 +
 +    define_macros = [('MGD_HAVE_DBUS', None)]
-+    include_dirs = os.popen("pkg-config --cflags-only-I midgard-2.0 | sed 's;-I;;g'").read().strip().split()
-+    include_dirs.append("/opt/local/include/pygtk-2.0/")
-+#    include_dirs = [os.popen("pkg-config --cflags-only-I midgard-2.0").read().strip().split(), "/opt/local/include/pygtk-2.0/", "/opt/local/include/midgard-2.0/", "/opt/local/include/glib-2.0/", "/opt/local/lib/glib-2.0/include/", "/opt/local/include"]
++    include_dirs = os.popen("pkg-config --cflags-only-I pygobject-2.0 midgard-2.0 | sed 's;-I;;g'").read().strip().split()
 +    library_dirs = [os.popen("pkg-config --libs midgard-2.0").read().strip()]
 +
-+    if sys.platform == "darwin": # Mac OS X
-+	optional_libs += ["ssl", "crypto"]
-+#    elif sys.platform == "win32":
-+#        libraries[0] = libraries[0] + "/ms"
-+#	optional_libs = ["libpq", "wsock32", "advapi32"]
-+#	modname="pyPgSQL.libpq.libpq"
-+
 +    # patch distutils if it can't cope with the "classifiers" keyword
 +    if sys.version < '2.2.3':
 +	from distutils.dist import DistributionMetadata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090527/675c59b4/attachment.html>


More information about the macports-changes mailing list