1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/databases/py-gdbm/Makefile
Kubilay Kocak dc25f558f7 databases/py-gdbm: Make install PREFIX-safe
Pass a PREFIX-safe Python library directory to Python --install arguments.

While I'm here:

- Re-order and sort USE(S) and PYDISTUTILS entries
- Whitespace alignment
2014-04-23 11:49:08 +00:00

43 lines
951 B
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= gdbm
PORTVERSION= ${PYTHON_PORTVERSION}
PORTREVISION= 2
CATEGORIES= databases python
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PYTHON_DISTNAME}
MAINTAINER= python@FreeBSD.org
COMMENT= Python bindings to the GNU dbm library
LICENSE= PSFL
LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm
PORTSCOUT= ignore:1
USES= tar:xz
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHONPREFIX_LIBDIR}/lib-dynload
DIST_SUBDIR= python
DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo
WRKSRC= ${PYTHON_WRKSRC}/Modules
.include <bsd.port.pre.mk>
post-extract:
.if ${PYTHON_REL} < 300
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
.else
@${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
.endif
.include <bsd.port.post.mk>