forked from Lainports/freebsd-ports
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
43 lines
1 KiB
Makefile
43 lines
1 KiB
Makefile
# Created by: Hye-Shik Chang
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sqlite3
|
|
PORTVERSION= ${PYTHON_PORTVERSION}
|
|
PORTREVISION= 6
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= Python-${PORTVERSION}
|
|
DIST_SUBDIR= python
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Standard Python binding to the SQLite3 library
|
|
|
|
LICENSE= PSFL
|
|
LICENSE_FILE= ${WRKDIR}/Python-${PORTVERSION}/LICENSE
|
|
|
|
LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3
|
|
|
|
PORTSCOUT= ignore:1
|
|
|
|
USES= python tar:xz
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo
|
|
WRKSRC= ${WRKDIR}/Python-${PORTVERSION}/Modules
|
|
|
|
PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload
|
|
|
|
.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
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/lib-dynload/_sqlite3.so
|
|
|
|
.include <bsd.port.post.mk>
|