[130273] trunk/dports/python/py-bsddb/Portfile

larryv at macports.org larryv at macports.org
Mon Dec 29 16:08:27 PST 2014


Revision: 130273
          https://trac.macports.org/changeset/130273
Author:   larryv at macports.org
Date:     2014-12-29 16:08:27 -0800 (Mon, 29 Dec 2014)
Log Message:
-----------
py24-bsddb: Replace with python27

The bsddb module is part of the 2.7 standard library.

Modified Paths:
--------------
    trunk/dports/python/py-bsddb/Portfile

Modified: trunk/dports/python/py-bsddb/Portfile
===================================================================
--- trunk/dports/python/py-bsddb/Portfile	2014-12-29 23:26:51 UTC (rev 130272)
+++ trunk/dports/python/py-bsddb/Portfile	2014-12-30 00:08:27 UTC (rev 130273)
@@ -5,6 +5,7 @@
 
 name			py-bsddb
 version			2.5.2
+revision		1
 categories-append	databases
 license			PSF
 platforms		darwin
@@ -22,24 +23,9 @@
 python.versions	24
 
 if {${name} ne ${subport}} {
-    worksrcdir		${worksrcdir}/Modules
-    
-    extract.post_args	"| tar -xf - ${distname}/Modules/bsddbmodule.c \
-                    ${distname}/Modules/_bsddb.c"
-    post-extract {
-        file copy	${filespath}/setup.py ${worksrcpath}
-    }
-    
-    set libdir ${prefix}/lib/db46
-    set incdir ${prefix}/include/db46
-    depends_lib-append	port:db46
-    
-    post-patch	{
-        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
-        reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py
-        reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py
-    }
-    livecheck.type	none
+    depends_lib
+    replaced_by	python27
+    PortGroup	obsolete 1.0
 } else {
     livecheck.type	regex
     livecheck.url	http://www.python.org/download/releases/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141229/c0d7dc4b/attachment.html>


More information about the macports-changes mailing list