forked from Lainports/freebsd-ports
. lang/python27: 2.7.3 -> 2.7.5 . lang/python32: 3.2.3 -> 3.2.4 . lang/python33: 3.3.0 -> 3.3.1 - update Mk/bsd.python.mk with new versions - mark lang/python26 and lang/python31 as deprecated (set them to upstream EoL dates) - update docs (lang/python-doc-html) - align databases/py-bsddb patch for python27 - most of it was applied upstream. Raise BDB version to 4.3 atleast, according to upstream requirements. Many thanks to Martin (miwi) for his time on this update. PR: 178506 Submitted by: rm (myself) Exp-run by: portmgr (miwi) - revert erroneous threads patch in lang/python26 and lang/python27, that was added after ports/131080. It was rejected upstream, because it's not actually a bug, but misuse. Gabor Pali (pgj) in collaboration with Kubilay Kocak (koobs) did an independent investigation regard the issue. See here for details: http://lists.freebsd.org/pipermail/freebsd-python/2013-April/005376.html PR: 153167 Submitted by: Duncan Findlay <duncan@duncf.ca> Reported by: pgj/koobs (at python@ ML) Exp-run by: portmgr (miwi)
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: Hye-Shik Chang <perky@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bsddb
|
|
PORTVERSION= ${PYTHON_PORTVERSION}
|
|
PORTREVISION= 3
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= PYTHON
|
|
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTFILES= ${PYTHON_DISTFILE}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Standard Python bindings to the Berkeley DB library
|
|
|
|
USE_BDB= 43+
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=yes
|
|
USE_XZ= yes
|
|
|
|
DIST_SUBDIR= python
|
|
DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo
|
|
WRKSRC= ${PYTHON_WRKSRC}/Modules
|
|
|
|
PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
PYDISTUTILS_PKGNAME= _bsddb
|
|
|
|
MAKE_ENV= BSDDB_VERSION=${BDB_LIB_NAME}
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-py${PYTHON_SUFFIX}-_bsddb.c
|
|
|
|
PLIST_FILES= %%PYTHON_LIBDIR%%/lib-dynload/_bsddb.so
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} >= 300
|
|
IGNORE= bsddb package was removed from core standard library since 3.0, use databases/py-bsddb3 instead
|
|
.endif
|
|
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
's,^\(#include.*\)\(db\.h.*\)$$,\1${BDB_INCLUDE_DIR}/\2,' \
|
|
${WRKSRC}/bsddb.h
|
|
|
|
.include <bsd.port.post.mk>
|