[113445] trunk/dports/lang/pypy/Portfile
jmr at macports.org
jmr at macports.org
Sat Nov 16 03:27:55 PST 2013
Revision: 113445
https://trac.macports.org/changeset/113445
Author: jmr at macports.org
Date: 2013-11-16 03:27:54 -0800 (Sat, 16 Nov 2013)
Log Message:
-----------
pypy: update to 2.2, manually compile modules at destroot time where necessary (#40458)
Modified Paths:
--------------
trunk/dports/lang/pypy/Portfile
Modified: trunk/dports/lang/pypy/Portfile
===================================================================
--- trunk/dports/lang/pypy/Portfile 2013-11-16 10:54:44 UTC (rev 113444)
+++ trunk/dports/lang/pypy/Portfile 2013-11-16 11:27:54 UTC (rev 113445)
@@ -4,7 +4,7 @@
PortSystem 1.0
name pypy
-version 2.1
+version 2.2
categories lang python devel
license MIT PSF
maintainers jmr openmaintainer
@@ -21,9 +21,9 @@
use_bzip2 yes
distname ${name}-${version}-src
-checksums md5 7c43cd95aa37a7f0ca2465ed930646c0 \
- sha1 c1b04f027f9c3e93ff3a42c5c19f84b4a419945e \
- rmd160 92f76730801702f53b425c53e812924fce2d283a
+checksums md5 5a5a3822605d7d811066b1b279da3c6e \
+ sha1 668b902590f35a1bb0c2e1005abe7e131280bbca \
+ rmd160 6b283302a480c109f4aa14dbcae5667ac36d95a8
depends_build port:pkgconfig
depends_lib port:libffi \
@@ -49,7 +49,7 @@
# a lot of memory is used before the C compiler even runs, so limit build.jobs
# according to available memory more tightly than the default
if {![catch {sysctl hw.memsize} memsize]} {
- if {$build_arch == "x86_64" || $build_arch == "ppc64"} {
+ if {$build_arch eq "x86_64" || $build_arch eq "ppc64"} {
incr memsize -4000000000
} else {
incr memsize -2000000000
@@ -62,7 +62,7 @@
}
# memory usage bug in gcc 4.2 on x86_64
-if {[lsearch [get_canonical_archs] x86_64] != -1} {
+if {$build_arch eq "x86_64"} {
compiler.blacklist gcc-4.2
}
@@ -85,7 +85,7 @@
build.post_args targetpypystandalone
# JIT is not available on powerpc at present
-if {${os.arch} != "i386"} {
+if {${os.arch} ne "i386"} {
build.args-delete --opt=jit
build.args-append --opt=3
}
@@ -99,6 +99,11 @@
# won't run if it's in ${prefix}/bin
xinstall -m 755 ${build.dir}/pypy-c ${destroot}${prefix}/lib/${name}/pypy
ln -s ${prefix}/lib/${name}/pypy ${destroot}${prefix}/bin
+ # some modules have to be compiled at this point
+ system "${destroot}${prefix}/lib/${name}/pypy -c 'import _sqlite3; import _curses; import syslog'"
+
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -W ${worksrcpath} -m 644 README.rst LICENSE ${destroot}${prefix}/share/doc/${name}
}
variant opt1 description {use optimization level 1 for faster build (but slower execution)} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131116/f1a307b2/attachment-0001.html>
More information about the macports-changes
mailing list