[59187] trunk/dports/devel/ktoblzcheck

blb at macports.org blb at macports.org
Sun Oct 11 02:03:28 PDT 2009


Revision: 59187
          http://trac.macports.org/changeset/59187
Author:   blb at macports.org
Date:     2009-10-11 02:03:27 -0700 (Sun, 11 Oct 2009)
Log Message:
-----------
devel/ktoblzcheck - make it install its python module in the right location and patch to work properly with Mac

Modified Paths:
--------------
    trunk/dports/devel/ktoblzcheck/Portfile

Added Paths:
-----------
    trunk/dports/devel/ktoblzcheck/files/
    trunk/dports/devel/ktoblzcheck/files/patch-src_python_ktoblzcheck.py.diff

Modified: trunk/dports/devel/ktoblzcheck/Portfile
===================================================================
--- trunk/dports/devel/ktoblzcheck/Portfile	2009-10-11 09:02:26 UTC (rev 59186)
+++ trunk/dports/devel/ktoblzcheck/Portfile	2009-10-11 09:03:27 UTC (rev 59187)
@@ -4,7 +4,7 @@
 
 name              ktoblzcheck
 version           1.23
-revision          1
+revision          2
 categories        devel finance
 maintainers       nomaintainer
 description       a library to check bank account numbers and bank codes
@@ -15,6 +15,12 @@
 checksums         md5     a694a8bd2a82c926cccaa24ddf050bb7 \
                   sha1    8c0e21a25a332ebc49ee873ba5cff57b02c6b81f \
                   rmd160  f418e9fac56d98547af257474bf3e2f9c05410f1
+depends_lib       port:python26
+patchfiles        patch-src_python_ktoblzcheck.py.diff
 configure.python  ${prefix}/bin/python2.6
-depends_lib       port:python26
 configure.args    --enable-static
+set python_prefix    ${frameworks_dir}/Python.framework/Versions/2.6
+set python_libsite   ${python_prefix}/lib/python2.6/site-packages
+configure.env     am_cv_python_pythondir=${python_libsite} \
+                  am_cv_python_pyexecdir=${python_libsite}
+

Added: trunk/dports/devel/ktoblzcheck/files/patch-src_python_ktoblzcheck.py.diff
===================================================================
--- trunk/dports/devel/ktoblzcheck/files/patch-src_python_ktoblzcheck.py.diff	                        (rev 0)
+++ trunk/dports/devel/ktoblzcheck/files/patch-src_python_ktoblzcheck.py.diff	2009-10-11 09:03:27 UTC (rev 59187)
@@ -0,0 +1,15 @@
+--- src/python/ktoblzcheck.py.orig	2008-08-12 10:48:54.000000000 -0600
++++ src/python/ktoblzcheck.py	2009-10-11 03:00:05.000000000 -0600
+@@ -42,7 +42,11 @@
+ try:
+     kto = cdll.ktoblzcheck
+ except OSError:
+-    kto = cdll['libktoblzcheck.so.1']
++    try:
++        kto = cdll['libktoblzcheck.so.1']
++    except OSError:
++        from ctypes.util import find_library
++        kto = cdll[find_library('ktoblzcheck')]
+ 
+ 
+ class Record(c_void_p):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091011/e3c31d72/attachment.html>


More information about the macports-changes mailing list