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
|
2018-02-19 12:10:43 +01:00
|
|
|
PORTREVISION= 3
|
2001-09-16 19:25:13 +02:00
|
|
|
CATEGORIES= converters python
|
2014-10-06 17:02:40 +02:00
|
|
|
MASTER_SITES= LOCAL/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
|
|
|
|
2018-02-19 12:10:43 +01:00
|
|
|
USES= iconv python:2.7
|
2014-10-06 17:02:40 +02:00
|
|
|
USE_PYTHON= autoplist distutils
|
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
|
|
|
|
2014-10-06 17:02:40 +02:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/iconv.so
|
|
|
|
|
2013-09-07 23:30:12 +02:00
|
|
|
.include <bsd.port.mk>
|