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

jmr at macports.org jmr at macports.org
Wed Dec 19 16:28:38 PST 2012


Revision: 100672
          https://trac.macports.org/changeset/100672
Author:   jmr at macports.org
Date:     2012-12-19 16:28:38 -0800 (Wed, 19 Dec 2012)
Log Message:
-----------
py-bsddb: switch to unified portgroup, set license

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

Modified: trunk/dports/python/py-bsddb/Portfile
===================================================================
--- trunk/dports/python/py-bsddb/Portfile	2012-12-20 00:20:40 UTC (rev 100671)
+++ trunk/dports/python/py-bsddb/Portfile	2012-12-20 00:28:38 UTC (rev 100672)
@@ -1,11 +1,12 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-bsddb
 version			2.5.2
 categories		python databases
+license			PSF
 platforms		darwin
 maintainers		nomaintainer
 description		Python bindings to the db4 and db3 library
@@ -14,28 +15,33 @@
 homepage		http://www.python.org/doc/current/lib/module-dbm.html
 master_sites	http://www.python.org/ftp/python/${version}/
 distname		Python-${version}
-dist_subdir		python24
+dist_subdir		python25
 checksums		sha1 4755d212f50af704c20224a6966e23acc5aea60f
 use_bzip2		yes
 
-worksrcdir		${worksrcdir}/Modules
+python.versions	24
 
-extract.post_args	"| tar -xf - ${distname}/Modules/bsddbmodule.c \
-				${distname}/Modules/_bsddb.c"
-post-extract {
-	file copy	${filespath}/setup.py ${worksrcpath}
+if {$subport != $name} {
+    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
+} else {
+    livecheck.type	regex
+    livecheck.url	http://www.python.org/download/releases/
+    livecheck.regex	Python (2.4.\[0-9\]+)
 }
-
-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	regex
-livecheck.url	http://www.python.org/download/releases/
-livecheck.regex	Python (2.4.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121219/92583e21/attachment.html>


More information about the macports-changes mailing list