aboutsummaryrefslogtreecommitdiff
path: root/lang/pypy/Makefile
diff options
context:
space:
mode:
authorDavid Naylor <dbn@FreeBSD.org>2015-05-18 18:56:27 +0000
committerDavid Naylor <dbn@FreeBSD.org>2015-05-18 18:56:27 +0000
commitd762c9d1e999c92715da52b295b7eecdda4b1819 (patch)
treeb4d2b812f7a9bf528fb5f0bb81520d748e57221a /lang/pypy/Makefile
parentad5a689c8e25a31ae237b86696e5c609c63fee0f (diff)
downloadports-d762c9d1e999c92715da52b295b7eecdda4b1819.tar.gz
ports-d762c9d1e999c92715da52b295b7eecdda4b1819.zip
Notes
Diffstat (limited to 'lang/pypy/Makefile')
-rw-r--r--lang/pypy/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/lang/pypy/Makefile b/lang/pypy/Makefile
index a5f5636f5213..90a51e543a95 100644
--- a/lang/pypy/Makefile
+++ b/lang/pypy/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pypy
-DISTVERSION= 2.4.0
+DISTVERSION= 2.5.1
CATEGORIES= lang python
MASTER_SITES= https://bitbucket.org/pypy/pypy/get/ LOCAL/dbn/pypy
DISTNAME= release-${DISTVERSION}
@@ -16,7 +16,8 @@ LICENSE_COMB= multi
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \
libffi.so:${PORTSDIR}/devel/libffi \
- libsqlite3.so:${PORTSDIR}/databases/sqlite3
+ libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
+ libgdbm.so:${PORTSDIR}/databases/gdbm
PYTHON_DESC= Use Python-2.7 to translate (slowest)
PYPY_DESC= Use PyPy to translate (fastest, highest memory usage)
@@ -43,7 +44,7 @@ USES= compiler:c11 gettext iconv tar:bzip2
MAKEFILE= ${FILESDIR}/Makefile
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
-WRKSRC= ${WRKDIR}/pypy-pypy-c6ad44ecf5d8
+WRKSRC= ${WRKDIR}/pypy-pypy-e3d046c43451
PYPY_VER= ${DISTVERSION:C|([0-9])\.([0-9]).*|\1.\2|}
PYTHON_IMPL_VER= 2.7
@@ -236,8 +237,8 @@ do-configure:
post-build:
# UPDATING: check pypy/tool/release/package.py for list of cffi modules
-.for mod in _sqlite3 _curses syslog
- ${SETENV} ${MAKE_ENV} ${WRKDIR}/${PYPY_PRIMARY} -c 'import ${mod}'
+.for mod in _sqlite3 _curses syslog gdbm
+ ${SETENV} ${MAKE_ENV} LD_LIBRARY_PATH=${WRKDIR}:${LD_LIBRARY_PATH} ${WRKDIR}/${PYPY_PRIMARY} -c 'import ${mod}'
.endfor
${STRIP_CMD} ${WRKDIR}/${PYPY_LIBDIR}/lib_pypy/__pycache__/_cffi__*.pypy-${PYPY_VER:C/\.//}.so
.for _path in ${PYPYDIRS}
@@ -254,7 +255,7 @@ post-build:
do-install:
.for _path in ${PYPYDIRS}
- ${RM} -f ${STAGEDIR}${PREFIX}/${_path:C/.*://}
+ ${RM} -r ${STAGEDIR}${PREFIX}/${_path:C/.*://}
(cd ${WRKSRC}/${_path:C/:.*//}; ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${_path:C/.*://})
.endfor
.for name in ${PYPY_NAMES:O}
@@ -262,6 +263,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKDIR}/${name} ${STAGEDIR}${PREFIX}/bin/${name}-${PYPY_VER}
${ECHO} bin/${name}-${PYPY_VER} >> ${TMPPLIST}
.endfor
+ ${INSTALL_LIB} ${WRKDIR}/libpypy-c.so ${STAGEDIR}${PREFIX}/lib/
test: patch
.for inst in ${PYPY_INST}
@@ -270,10 +272,11 @@ test: patch
.endfor
pkg-plist: build
- ${RM} -f ${WRKDIR}/.plist-files-gen ${WRKDIR}/.plist-dirs-gen
+ ${RM} ${WRKDIR}/.plist-files-gen ${WRKDIR}/.plist-dirs-gen
.for path in ${PYPYDIRS}
cd ${WRKDIR} && ${FIND} ${path:C/.*://}/ -type f >> ${WRKDIR}/.plist-files-gen
.endfor
+ ${ECHO} lib/libpypy-c.so >> ${WRKDIR}/.plist-files-gen
${REINPLACE_CMD} -e 's|^${PYPY_LIBDIR}|%%PYPY_LIBDIR%%|g' \
-e 's|^${PYPY_INCLUDEDIR}|%%PYPY_INCLUDEDIR%%|g' \
-e 's|${PYPY_ARCH}|%%PYPY_ARCH%%|g' \