[46365] trunk/dports/python
snc at macports.org
snc at macports.org
Tue Feb 3 09:42:41 PST 2009
Revision: 46365
http://trac.macports.org/changeset/46365
Author: snc at macports.org
Date: 2009-02-03 09:42:41 -0800 (Tue, 03 Feb 2009)
Log Message:
-----------
created py25-igraph, ticket #16819
Added Paths:
-----------
trunk/dports/python/py25-igraph/
trunk/dports/python/py25-igraph/Portfile
trunk/dports/python/py25-igraph/files/
trunk/dports/python/py25-igraph/files/patch-setup.py.diff
Added: trunk/dports/python/py25-igraph/Portfile
===================================================================
--- trunk/dports/python/py25-igraph/Portfile (rev 0)
+++ trunk/dports/python/py25-igraph/Portfile 2009-02-03 17:42:41 UTC (rev 46365)
@@ -0,0 +1,33 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+name py25-igraph
+version 0.5.1
+categories-append math
+maintainers nomaintainer
+description Python interface to the igraph library
+
+long_description Python interface to the igraph high performance \
+ graph library
+
+homepage http://pypi.python.org/pypi/python-igraph/
+master_sites http://pypi.python.org/packages/source/p/python-igraph/
+
+distname python-igraph-${version}
+
+checksums md5 9cc4364d656db67add07dd474c8b0f11 \
+ sha1 406c70c4dc09176782c8234d1161b62625a3acd7 \
+ rmd160 356964caa38c312bbd01c0c528a815d0ec7ee62b
+
+platforms darwin
+
+depends_lib port:igraph \
+ port:py25-setuptools
+
+patchfiles patch-setup.py.diff
+
+post-patch {
+ reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.py
+}
Added: trunk/dports/python/py25-igraph/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py25-igraph/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py25-igraph/files/patch-setup.py.diff 2009-02-03 17:42:41 UTC (rev 46365)
@@ -0,0 +1,26 @@
+--- setup.py.orig 2008-10-11 01:19:58.000000000 +0400
++++ setup.py 2008-10-11 01:20:55.000000000 +0400
+@@ -12,7 +12,7 @@
+ from os import popen3, mkdir
+ from shutil import copy2
+
+-LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['/usr/include/igraph', '/usr/local/include/igraph']
++LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['@PREFIX@/include/igraph']
+ LIBIGRAPH_FALLBACK_LIBRARIES = ['igraph']
+ LIBIGRAPH_FALLBACK_LIBRARY_DIRS = []
+
+@@ -94,10 +94,10 @@
+
+ plat = get_platform()
+ data_files = []
+-if "macosx" in plat:
+- data_files = [('/usr/lib', ['/usr/local/lib/libigraph.dylib', \
+- '/usr/local/lib/libigraph.0.dylib', \
+- '/usr/local/lib/libigraph.0.0.0.dylib'])]
++#if "macosx" in plat:
++# data_files = [('/opt/local/lib', ['/opt/local/lib/libigraph.dylib', \
++# '/opt/local/lib/libigraph.0.dylib', \
++# '/opt/local/lib/libigraph.0.0.0.dylib'])]
+
+ setup(name = 'python-igraph',
+ version = '0.5.1',
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090203/696d1608/attachment.html>
More information about the macports-changes
mailing list