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

Contents of /dev-libs/icu/icu-4.8.1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Jun 7 00:37:19 2012 UTC (2 years, 3 months ago) by floppym
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Drop old per Arfrever.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20