2001-09-16 17:25:13 +00:00
|
|
|
# New ports collection makefile for: py-iconv
|
|
|
|
# Date created: 11 September 2001
|
|
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= iconv
|
2001-12-22 12:32:05 +00:00
|
|
|
PORTVERSION= 1.0
|
2002-03-18 10:27:58 +00:00
|
|
|
PORTREVISION= 1
|
2001-09-16 17:25:13 +00:00
|
|
|
CATEGORIES= converters python
|
2001-12-22 12:32:05 +00:00
|
|
|
MASTER_SITES= ftp://people.linuxkorea.co.kr/pub/Python/ \
|
|
|
|
http://cvsup3.kr.freebsd.org/~perky/distfiles/ \
|
|
|
|
http://www3.kr.freebsd.org/~perky/distfiles/
|
2001-09-16 17:25:13 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2001-12-22 12:32:05 +00:00
|
|
|
DIST_SUBDIR= python
|
2001-09-16 17:25:13 +00:00
|
|
|
|
2002-01-28 16:12:39 +00:00
|
|
|
MAINTAINER= perky@fallin.lv
|
2001-09-16 17:25:13 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
2002-03-18 09:46:46 +00:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
2001-09-16 17:25:13 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
|
|
|
|
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g}
|
|
|
|
|
2001-12-22 12:32:05 +00:00
|
|
|
SETUPINFO= ,libraries=["iconv"],library_dirs=["${LOCALBASE}/lib"],\
|
|
|
|
include_dirs=["${LOCALBASE}/include"]
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC} && ${SED} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\
|
|
|
|
setup.py > setup.py.tmp && ${CAT} setup.py.tmp > setup.py
|
|
|
|
|
2001-09-16 17:25:13 +00:00
|
|
|
do-build:
|
|
|
|
${SETUP_CMD} build
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${SETUP_CMD} install
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|