[57405] trunk/dports/python

snc at macports.org snc at macports.org
Thu Sep 10 12:27:31 PDT 2009


Revision: 57405
          http://trac.macports.org/changeset/57405
Author:   snc at macports.org
Date:     2009-09-10 12:27:27 -0700 (Thu, 10 Sep 2009)
Log Message:
-----------
created py26-igraph, ticket #21287

Added Paths:
-----------
    trunk/dports/python/py26-igraph/
    trunk/dports/python/py26-igraph/Portfile
    trunk/dports/python/py26-igraph/files/
    trunk/dports/python/py26-igraph/files/patch-setup.cfg.diff
    trunk/dports/python/py26-igraph/files/patch-setup.py.diff

Added: trunk/dports/python/py26-igraph/Portfile
===================================================================
--- trunk/dports/python/py26-igraph/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-igraph/Portfile	2009-09-10 19:27:27 UTC (rev 57405)
@@ -0,0 +1,40 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python26 1.0
+
+name                py26-igraph
+version             0.5.2
+categories-append   math
+maintainers         snc openmaintainer
+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     d7c94b8823407a95d8113cbf907c5c56 \
+                    sha1    bbd0f40e81f1a52ba12466491c89a225b947b00e \
+                    rmd160  f7fbbe70131c7f38c3a3e6412d83321b5775c800
+
+platforms           darwin
+
+depends_lib         port:igraph \
+                    port:py26-setuptools
+
+patchfiles          patch-setup.cfg.diff \
+                    patch-setup.py.diff
+
+post-patch {
+	reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.cfg
+	reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.py
+}
+
+livecheck.type      regex
+livecheck.url       ${master_sites}
+livecheck.regex     "python-igraph-(\\d+\\.\\d+(\\.\\d+)?)"


Property changes on: trunk/dports/python/py26-igraph/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py26-igraph/files/patch-setup.cfg.diff
===================================================================
--- trunk/dports/python/py26-igraph/files/patch-setup.cfg.diff	                        (rev 0)
+++ trunk/dports/python/py26-igraph/files/patch-setup.cfg.diff	2009-09-10 19:27:27 UTC (rev 57405)
@@ -0,0 +1,11 @@
+--- setup.cfg.orig	2009-06-16 00:59:25.000000000 -0400
++++ setup.cfg	2009-06-16 01:01:02.000000000 -0400
+@@ -4,6 +4,6 @@
+ tag_svn_revision = 0
+ 
+ [build_ext]
+-library_dirs = /usr/local/lib:/usr/lib:../../src/.libs
+-include_dirs = /usr/local/include:/usr/include:../../include
++library_dirs = @PREFIX@/lib
++include_dirs = @PREFIX@/include
+ 

Added: trunk/dports/python/py26-igraph/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py26-igraph/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-igraph/files/patch-setup.py.diff	2009-09-10 19:27:27 UTC (rev 57405)
@@ -0,0 +1,27 @@
+--- setup.py.orig	2009-06-16 01:21:26.000000000 -0400
++++ setup.py	2009-06-16 01:21:50.000000000 -0400
+@@ -13,7 +13,7 @@
+ from shutil import copy2
+ from subprocess import Popen, PIPE
+ 
+-LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['/usr/include', '/usr/local/include']
++LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ['@PREFIX@/include']
+ LIBIGRAPH_FALLBACK_LIBRARIES = ['igraph']
+ LIBIGRAPH_FALLBACK_LIBRARY_DIRS = []
+ 
+@@ -130,10 +130,10 @@
+     ]
+ )
+ 
+-if "macosx" in plat:
+-    # OS X specific stuff to build the .mpkg installer
+-    options["data_files"] = [ \
+-            ('/usr/local/lib', [os.path.expanduser('~/lib/libigraph.0.dylib')])
+-    ]
++#if "macosx" in plat:
++#    # OS X specific stuff to build the .mpkg installer
++#    options["data_files"] = [ \
++#            ('/usr/local/lib', [os.path.expanduser('~/lib/libigraph.0.dylib')])
++#    ]
+ 
+ setup(**options)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090910/861fe25c/attachment-0001.html>


More information about the macports-changes mailing list