public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/yaz/files: yaz-4.2.30-icu-automagic.patch
@ 2012-04-22 21:07 Robin H. Johnson (robbat2)
  0 siblings, 0 replies; only message in thread
From: Robin H. Johnson (robbat2) @ 2012-04-22 21:07 UTC (permalink / raw
  To: gentoo-commits

robbat2     12/04/22 21:07:10

  Added:                yaz-4.2.30-icu-automagic.patch
  Log:
  Version bumps. v4 is pmasked for slotting.
  
  (Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-libs/yaz/files/yaz-4.2.30-icu-automagic.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/yaz/files/yaz-4.2.30-icu-automagic.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/yaz/files/yaz-4.2.30-icu-automagic.patch?rev=1.1&content-type=text/plain

Index: yaz-4.2.30-icu-automagic.patch
===================================================================
diff -Nuar yaz-4.2.30.orig/configure.ac yaz-4.2.30/configure.ac
--- yaz-4.2.30.orig/configure.ac	2012-03-23 10:20:20.000000000 +0000
+++ yaz-4.2.30/configure.ac	2012-04-22 20:56:41.118691087 +0000
@@ -372,14 +372,13 @@
 
 dnl
 dnl 
-AC_CHECK_ICU([3.4],[
-	if test "$xml_enabled" = "true"; then
-	    ICU_CPPFLAGS="$ICU_CPPFLAGS -D YAZ_HAVE_ICU=1"
-	else
-	    ICU_CPPFLAGS=""
-	    AC_MSG_WARN([ICU support disabled because XML support is unavailable])
-	fi
-])
+AC_ARG_ENABLE(icu, [  --enable-icu            enable ICU support],[enable_icu=$enableval],[enable_icu=no])
+if test "$enable_icu" = "yes"; then
+    AC_CHECK_ICU([3.4],[
+       ICU_CPPFLAGS="$ICU_CPPFLAGS -D YAZ_HAVE_ICU=1"],[
+       AC_MSG_ERROR([For ICU support please install libicu34-dev or similar])
+    ])
+fi
 dnl ------ versioning
 dnl
 WIN_FILEVERSION=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { m = $4; printf("%d,%d,%d,%d", $1, $2, $3 == "" ? "0" : $3, $4 == "" ? "1" : $4);}'`






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-22 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-22 21:07 [gentoo-commits] gentoo-x86 commit in dev-libs/yaz/files: yaz-4.2.30-icu-automagic.patch Robin H. Johnson (robbat2)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox