]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
icu: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 12 Feb 2013 20:20:28 +0000 (21:20 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 12 Feb 2013 20:20:28 +0000 (21:20 +0100)
This is a build dependency of harfbuzz with icu support and webkitgtk3.

icu/icu.nm [new file with mode: 0644]

diff --git a/icu/icu.nm b/icu/icu.nm
new file mode 100644 (file)
index 0000000..9693bb1
--- /dev/null
@@ -0,0 +1,68 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = icu
+version    = %{ver_major}.%{ver_minor}.%{ver_plevel}
+ver_major  = 50
+ver_minor  = 1
+ver_plevel = 2
+release    = 1
+
+groups     = Development/Tools
+url        = http://www.icu-project.org
+license    = MIT and UCD and Public Domain
+summary    = International Components for Unicode.
+
+description
+       Tools and utilities for developing with icu.
+end
+
+source_dl  = http://download.icu-project.org/files/icu4c/%{version}/
+sources    = icu4c-%{ver_major}_%{ver_minor}_%{ver_plevel}-src.tgz
+
+build
+       DIR_APP = %{DIR_SRC}/icu/source
+
+       configure_options += \
+               --disable-static \
+               --with-data-packaging=library \
+               --disable-samples
+
+       configure_cmds
+               # There is no source/doc/html/search/ directory
+               sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
+               
+               # The configure --disable-renaming and possibly other options result in icu/source/uconfig.h.prepend 
+               # being created, include that content in icu/source/common/unicode/uconfig.h to propagate to consumer packages.
+               test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' \
+                       -i common/unicode/uconfig.h
+       end
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+
+       package lib%{name}
+               template LIBS
+       end
+
+       package lib%{name}-devel
+               template DEVEL
+
+               files += \
+                       %{bindir}/*config* \
+                       %{bindir}/icuinfo \
+                       %{libidir}/%{name} \
+                       %{datadir}/%{name}
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end