/[gentoo-x86]/dev-libs/icu/icu-49.1.2.ebuild
Gentoo

Contents of /dev-libs/icu/icu-49.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Sep 30 16:19:09 2012 UTC (2 years, 2 months ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
alpha/ia64/s390/sh/sparc stable wrt #428074

(Portage version: 2.1.11.16/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/icu-49.1.2.ebuild,v 1.7 2012/08/04 13:39:56 ago Exp $
4
5 EAPI="4"
6
7 inherit eutils versionator
8
9 MAJOR_VERSION="$(get_version_component_range 1)"
10 if [[ "${PV}" =~ ^[[:digit:]]+_rc[[:digit:]]*$ ]]; then
11 MINOR_VERSION="0"
12 else
13 MINOR_VERSION="$(get_version_component_range 2)"
14 fi
15
16 DESCRIPTION="International Components for Unicode"
17 HOMEPAGE="http://www.icu-project.org/"
18
19 BASE_URI="http://download.icu-project.org/files/icu4c/${PV/_/}"
20 SRC_ARCHIVE="icu4c-${PV//./_}-src.tgz"
21 DOCS_ARCHIVE="icu4c-${PV//./_}-docs.zip"
22
23 SRC_URI="${BASE_URI}/${SRC_ARCHIVE}
24 doc? ( ${BASE_URI}/${DOCS_ARCHIVE} )"
25
26 LICENSE="BSD"
27 SLOT="0"
28 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
29 IUSE="debug doc examples static-libs"
30
31 DEPEND="doc? ( app-arch/unzip )"
32 RDEPEND=""
33
34 S="${WORKDIR}/${PN}/source"
35
36 QA_DT_NEEDED="/usr/lib.*/libicudata\.so\.${MAJOR_VERSION}\.${MINOR_VERSION}.*"
37
38 src_unpack() {
39 unpack "${SRC_ARCHIVE}"
40 if use doc; then
41 mkdir docs
42 pushd docs > /dev/null
43 unpack "${DOCS_ARCHIVE}"
44 popd > /dev/null
45 fi
46 }
47
48 src_prepare() {
49 # Do not hardcode flags into icu-config.
50 # https://ssl.icu-project.org/trac/ticket/6102
51 local variable
52 for variable in CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do
53 sed -i -e "/^${variable} =.*/s:@${variable}@::" config/Makefile.inc.in || die "sed failed"
54 done
55
56 epatch "${FILESDIR}/${PN}-4.8.1-fix_binformat_fonts.patch"
57 epatch "${FILESDIR}/${PN}-4.8.1.1-fix_ltr.patch"
58 epatch "${FILESDIR}/${P}-platforms.patch"
59 }
60
61 src_configure() {
62 econf \
63 $(use_enable debug) \
64 $(use_enable examples samples) \
65 $(use_enable static-libs static)
66 }
67
68 src_test() {
69 # INTLTEST_OPTS: intltest options
70 # -e: Exhaustive testing
71 # -l: Reporting of memory leaks
72 # -v: Increased verbosity
73 # IOTEST_OPTS: iotest options
74 # -e: Exhaustive testing
75 # -v: Increased verbosity
76 # CINTLTST_OPTS: cintltst options
77 # -e: Exhaustive testing
78 # -v: Increased verbosity
79 emake -j1 check
80 }
81
82 src_install() {
83 emake DESTDIR="${D}" install
84
85 dohtml ../readme.html
86 dodoc ../unicode-license.txt
87 if use doc; then
88 insinto /usr/share/doc/${PF}/html/api
89 doins -r "${WORKDIR}/docs/"*
90 fi
91 }

  ViewVC Help
Powered by ViewVC 1.1.20