2013-09-07 23:30:12 +02:00
|
|
|
# Created by: Hye-Shik Chang <perky@python.or.kr>
|
2001-09-16 19:25:13 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= iconv
|
2001-12-22 13:32:05 +01:00
|
|
|
PORTVERSION= 1.0
|
2002-03-18 11:27:58 +01:00
|
|
|
PORTREVISION= 1
|
2001-09-16 19:25:13 +02:00
|
|
|
CATEGORIES= converters python
|
2002-07-01 19:35:17 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= perky
|
2001-09-16 19:25:13 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2001-12-22 13:32:05 +01:00
|
|
|
DIST_SUBDIR= python
|
2001-09-16 19:25:13 +02:00
|
|
|
|
2010-05-23 23:16:16 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-09-07 23:30:12 +02:00
|
|
|
COMMENT= Iconv wrapper with Unicode codec for Python
|
2001-09-16 19:25:13 +02:00
|
|
|
|
2013-04-27 10:50:46 +02:00
|
|
|
USES= iconv
|
2001-09-16 19:25:13 +02:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 14:57:09 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2014-01-20 19:53:03 +01:00
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
2001-09-16 19:25:13 +02:00
|
|
|
|
2013-09-04 20:06:07 +02:00
|
|
|
.if empty(ICONV_LIB)
|
|
|
|
SETUPINFO= ,library_dirs=["${LOCALBASE}/lib"],\
|
|
|
|
include_dirs=["${LOCALBASE}/include"]
|
|
|
|
.else
|
2001-12-22 13:32:05 +01:00
|
|
|
SETUPINFO= ,libraries=["iconv"],library_dirs=["${LOCALBASE}/lib"],\
|
|
|
|
include_dirs=["${LOCALBASE}/include"]
|
2013-09-04 20:06:07 +02:00
|
|
|
.endif
|
2001-12-22 13:32:05 +01:00
|
|
|
|
|
|
|
post-patch:
|
2014-01-20 19:53:03 +01:00
|
|
|
${REINPLACE_CMD} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\
|
|
|
|
${WRKSRC}/setup.py
|
2001-12-22 13:32:05 +01:00
|
|
|
|
2013-09-07 23:30:12 +02:00
|
|
|
.include <bsd.port.mk>
|