43 lines
975 B
Makefile
43 lines
975 B
Makefile
# $OpenBSD: Makefile,v 1.3 2002/02/15 19:53:42 matt Exp $
|
|
|
|
COMMENT= "Python Unicode codecs for Chinese charsets"
|
|
|
|
VERSION= 1.2.0
|
|
DISTNAME= ChineseCodecs${VERSION}
|
|
PKGNAME= py-zhCodecs-${VERSION}
|
|
CATEGORIES= chinese devel
|
|
NEED_VERSION= 1.504
|
|
|
|
HOMEPAGE= http://www.sf.net/projects/python-codecs/
|
|
|
|
MAINTAINER= Shell Hung <shell@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ftp://ftp.shellhung.org/pub/OpenBSD/packages/chinese/ \
|
|
ftp://ftp2.python.or.kr/pub/FreeBSD/ports/distfiles/
|
|
|
|
PYTHON_VER= 2.1
|
|
|
|
BUILD_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
NO_REGRESS= Yes
|
|
|
|
PY_CMD= cd ${WRKSRC}/Python; python${PYTHON_VER} ./setup.py
|
|
|
|
SUBST_VARS= PYTHON_VER
|
|
|
|
post-extract:
|
|
@${CHMOD} 711 ${WRKSRC}/Python/chinesetw
|
|
|
|
do-build:
|
|
${PY_CMD} build --build-base=${WRKSRC}
|
|
|
|
do-install:
|
|
${PY_CMD} install -O1 --prefix=${PREFIX}
|
|
|
|
.include <bsd.port.mk>
|