[102142] trunk/dports/python/py-ctypes/Portfile
jmr at macports.org
jmr at macports.org
Mon Jan 28 03:36:37 PST 2013
Revision: 102142
https://trac.macports.org/changeset/102142
Author: jmr at macports.org
Date: 2013-01-28 03:36:37 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
py-ctypes: use unified portgroup
Modified Paths:
--------------
trunk/dports/python/py-ctypes/Portfile
Modified: trunk/dports/python/py-ctypes/Portfile
===================================================================
--- trunk/dports/python/py-ctypes/Portfile 2013-01-28 11:22:02 UTC (rev 102141)
+++ trunk/dports/python/py-ctypes/Portfile 2013-01-28 11:36:37 UTC (rev 102142)
@@ -1,12 +1,11 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-ctypes
version 1.0.2
revision 2
-categories python
platforms darwin
maintainers nomaintainer
license MIT
@@ -26,23 +25,27 @@
distname ctypes-${version}
-depends_build-append port:pkgconfig
+python.versions 24
-depends_lib-append port:libffi
+if {$subport != $name} {
+ depends_build-append port:pkgconfig
-patchfiles patch-setup.py.diff
+ depends_lib-append port:libffi
-build.env CC=${configure.cc} CPP=${configure.cpp} CFLAGS="-D_DARWIN_C_SOURCE"
+ patchfiles patch-setup.py.diff
-pre-build {
- build.env-append CPPFLAGS="[exec ${prefix}/bin/pkg-config libffi --cflags]"
-}
+ python.add_archflags no
+ pre-build {
+ build.env-append CFLAGS="[get_canonical_archflags cc] -D_DARWIN_C_SOURCE" \
+ CPPFLAGS="[exec ${prefix}/bin/pkg-config libffi --cflags]"
+ }
-test.run yes
-test.cmd ${build.cmd}
-test.target test
+ test.run yes
+ test.cmd ${build.cmd}
+ test.target test
-post-destroot {
- xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.CVS \
- README.txt ${destroot}${prefix}/share/doc/${name}
+ post-destroot {
+ xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.CVS \
+ README.txt ${destroot}${prefix}/share/doc/${subport}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/1674baec/attachment.html>
More information about the macports-changes
mailing list