]> git.ipfire.org Git - ipfire-3.x.git/blame - icu/icu.nm
icu: New package.
[ipfire-3.x.git] / icu / icu.nm
CommitLineData
34870564
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = icu
7version = %{ver_major}.%{ver_minor}.%{ver_plevel}
8ver_major = 50
9ver_minor = 1
10ver_plevel = 2
11release = 1
12
13groups = Development/Tools
14url = http://www.icu-project.org
15license = MIT and UCD and Public Domain
16summary = International Components for Unicode.
17
18description
19 Tools and utilities for developing with icu.
20end
21
22source_dl = http://download.icu-project.org/files/icu4c/%{version}/
23sources = icu4c-%{ver_major}_%{ver_minor}_%{ver_plevel}-src.tgz
24
25build
26 DIR_APP = %{DIR_SRC}/icu/source
27
28 configure_options += \
29 --disable-static \
30 --with-data-packaging=library \
31 --disable-samples
32
33 configure_cmds
34 # There is no source/doc/html/search/ directory
35 sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
36
37 # The configure --disable-renaming and possibly other options result in icu/source/uconfig.h.prepend
38 # being created, include that content in icu/source/common/unicode/uconfig.h to propagate to consumer packages.
39 test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' \
40 -i common/unicode/uconfig.h
41 end
42
43 test
44 make check
45 end
46end
47
48packages
49 package %{name}
50
51 package lib%{name}
52 template LIBS
53 end
54
55 package lib%{name}-devel
56 template DEVEL
57
58 files += \
59 %{bindir}/*config* \
60 %{bindir}/icuinfo \
61 %{libidir}/%{name} \
62 %{datadir}/%{name}
63 end
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
68end