ports/148843: [PATCH] devel/py26-icu: add support for ICU 4.4
Martin Matuska
mm at FreeBSD.org
Thu Jul 22 14:00:07 UTC 2010
>Number: 148843
>Category: ports
>Synopsis: [PATCH] devel/py26-icu: add support for ICU 4.4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 22 14:00:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0 r210214M: Sun Jul 18 10:06:56 CEST
>Description:
- add optional and autodetect support for ICU 4.4 library
Port maintainer (bland at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- py26-icu-1.0_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/py-icu/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 17 Jul 2010 06:53:44 -0000 1.3
+++ Makefile 22 Jul 2010 13:51:45 -0000
@@ -7,6 +7,7 @@
PORTNAME= icu
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
MASTER_SITE_SUBDIR= source/P/PyICU
@@ -16,8 +17,6 @@
MAINTAINER= bland at FreeBSD.org
COMMENT= Python extension wrapping IBM's ICU C++ API
-LIB_DEPENDS= icudata:${PORTSDIR}/devel/icu
-
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= PyICU
@@ -29,4 +28,14 @@
PYICU_LFLAGS="-L${PREFIX}/lib" \
PYICU_LIBRARIES="icui18n:icuuc:icudata"
-.include <bsd.port.mk>
+OPTIONS= ICU4 "Use ICU 4.x instead of 3.8" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ICU4) || exists(${LOCALBASE}/lib/libicudata.so.44)
+LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu4
+.else
+LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu
+.endif
+
+.include <bsd.port.post.mk>
--- py26-icu-1.0_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list