[66683] trunk/dports/python

stromnov at macports.org stromnov at macports.org
Tue Apr 20 03:22:11 PDT 2010


Revision: 66683
          http://trac.macports.org/changeset/66683
Author:   stromnov at macports.org
Date:     2010-04-20 03:22:07 -0700 (Tue, 20 Apr 2010)
Log Message:
-----------
py26-mhash: New port.

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

Added: trunk/dports/python/py26-mhash/Portfile
===================================================================
--- trunk/dports/python/py26-mhash/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-mhash/Portfile	2010-04-20 10:22:07 UTC (rev 66683)
@@ -0,0 +1,38 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python26 1.0
+
+name                py26-mhash
+version             1.4
+maintainers         stromnov openmaintainer
+
+description         A comprehensive Python interface to the mhash library.
+
+long_description    A comprehensive Python interface to the mhash library, \
+                    which provides a uniform interface to access several \
+                    hashing algorithms such as MD4, MD5, SHA1, SHA160, \
+                    and many others.
+
+platforms           darwin
+
+homepage            http://labix.org/python-mhash
+master_sites        http://labix.org/download/python-mhash/
+distname            python-mhash-${version}
+
+checksums           md5     b3536ef3474a6459b5f03dee69ab97b6 \
+                    sha1    08bfb86bb51968e0f941181780570a80f08b4616 \
+                    rmd160  dd3dcf019059d6eb24f3d8b55e29f1c7e690289b
+
+depends_build       port:mhash
+
+patchfiles          patch-setup.py.diff
+
+post-patch {
+    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
+}
+
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     "python-mhash-(\\d+(?:\\.\\d+)*)"


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

Added: trunk/dports/python/py26-mhash/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py26-mhash/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-mhash/files/patch-setup.py.diff	2010-04-20 10:22:07 UTC (rev 66683)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2010-04-20 14:15:25.000000000 +0400
++++ setup.py	2010-04-20 14:16:59.000000000 +0400
+@@ -21,6 +21,8 @@
+ """,
+       ext_modules = [Extension("mhash",
+       			       ["mhash.c"],
++			       include_dirs=['@@PREFIX@@/include'],
++			       library_dirs=['@@PREFIX@@/lib'],
+ 			       libraries=["mhash"],
+ 			       define_macros=[("VERSION", '"%s"'%VERSION)])],
+       )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100420/0428ffc7/attachment-0001.html>


More information about the macports-changes mailing list