OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 11-Aug-2006 12:37:15
Branch: HEAD Handle: 2006081111371500
Modified files:
openpkg-src/parrot parrot.spec
Log:
make ICU (Unicode) optional
Summary:
Revision Changes Path
1.21 +13 -2 openpkg-src/parrot/parrot.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/parrot/parrot.spec
============================================================================
$ cvs diff -u -r1.20 -r1.21 parrot.spec
--- openpkg-src/parrot/parrot.spec 11 Aug 2006 10:28:24 -0000 1.20
+++ openpkg-src/parrot/parrot.spec 11 Aug 2006 10:37:15 -0000 1.21
@@ -35,6 +35,9 @@
Version: 0.4.6
Release: 20060811
+# package options
+%option with_icu no
+
# list of sources
Source0:
ftp://ftp.cpan.org/pub/CPAN/authors/id/C/CH/CHIPS/parrot-%{version}.tar.gz
Patch0: parrot.patch
@@ -44,8 +47,12 @@
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, perl, gcc, flex, bison, make
PreReq: OpenPKG, openpkg >= 20040130
-BuildPreReq: gmp, icu
-PreReq: gmp, icu
+BuildPreReq: gmp
+PreReq: gmp
+%if "%{with_icu}" == "yes"
+BuildPreReq: icu
+PreReq: icu
+%endif
AutoReq: no
AutoReqProv: no
@@ -68,7 +75,11 @@
%build
# configure program
%{l_prefix}/bin/perl Configure.pl \
+%if "%{with_icu}" == "yes"
--icu-config=%{l_prefix}/bin/icu-config \
+%else
+ --without-icu \
+%endif
--debugging=0 \
--optimize \
--cc="%{l_cc}" \
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]