You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.3 KiB
92 lines
2.3 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
12 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/icu/icu-49.1.2.ebuild,v 1.1 2012/06/07 00:42:54 floppym Exp $
|
||
13 years ago
|
|
||
|
EAPI="4"
|
||
|
|
||
12 years ago
|
inherit eutils versionator
|
||
13 years ago
|
|
||
|
MAJOR_VERSION="$(get_version_component_range 1)"
|
||
12 years ago
|
if [[ "${PV}" =~ ^[[:digit:]]+_rc[[:digit:]]*$ ]]; then
|
||
|
MINOR_VERSION="0"
|
||
13 years ago
|
else
|
||
12 years ago
|
MINOR_VERSION="$(get_version_component_range 2)"
|
||
13 years ago
|
fi
|
||
|
|
||
|
DESCRIPTION="International Components for Unicode"
|
||
|
HOMEPAGE="http://www.icu-project.org/"
|
||
|
|
||
|
BASE_URI="http://download.icu-project.org/files/icu4c/${PV/_/}"
|
||
|
SRC_ARCHIVE="icu4c-${PV//./_}-src.tgz"
|
||
|
DOCS_ARCHIVE="icu4c-${PV//./_}-docs.zip"
|
||
|
|
||
|
SRC_URI="${BASE_URI}/${SRC_ARCHIVE}
|
||
|
doc? ( ${BASE_URI}/${DOCS_ARCHIVE} )"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||
13 years ago
|
IUSE="debug doc examples static-libs"
|
||
|
|
||
|
DEPEND="doc? ( app-arch/unzip )"
|
||
|
RDEPEND=""
|
||
|
|
||
|
S="${WORKDIR}/${PN}/source"
|
||
|
|
||
12 years ago
|
QA_DT_NEEDED="/usr/lib.*/libicudata\.so\.${MAJOR_VERSION}\.${MINOR_VERSION}.*"
|
||
13 years ago
|
|
||
|
src_unpack() {
|
||
|
unpack "${SRC_ARCHIVE}"
|
||
|
if use doc; then
|
||
|
mkdir docs
|
||
|
pushd docs > /dev/null
|
||
|
unpack "${DOCS_ARCHIVE}"
|
||
|
popd > /dev/null
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
|
# Do not hardcode flags into icu-config.
|
||
|
# https://ssl.icu-project.org/trac/ticket/6102
|
||
|
local variable
|
||
|
for variable in CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do
|
||
|
sed -i -e "/^${variable} =.*/s:@${variable}@::" config/Makefile.inc.in || die "sed failed"
|
||
|
done
|
||
|
|
||
12 years ago
|
epatch "${FILESDIR}/${PN}-4.8.1-fix_binformat_fonts.patch"
|
||
|
epatch "${FILESDIR}/${PN}-4.8.1.1-fix_ltr.patch"
|
||
|
epatch "${FILESDIR}/${PN}-49.1.1-bsd.patch"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
$(use_enable debug) \
|
||
|
$(use_enable examples samples) \
|
||
|
$(use_enable static-libs static)
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
# INTLTEST_OPTS: intltest options
|
||
|
# -e: Exhaustive testing
|
||
|
# -l: Reporting of memory leaks
|
||
|
# -v: Increased verbosity
|
||
|
# IOTEST_OPTS: iotest options
|
||
|
# -e: Exhaustive testing
|
||
|
# -v: Increased verbosity
|
||
|
# CINTLTST_OPTS: cintltst options
|
||
|
# -e: Exhaustive testing
|
||
|
# -v: Increased verbosity
|
||
|
emake -j1 check
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake DESTDIR="${D}" install
|
||
|
|
||
|
dohtml ../readme.html
|
||
|
dodoc ../unicode-license.txt
|
||
|
if use doc; then
|
||
|
insinto /usr/share/doc/${PF}/html/api
|
||
|
doins -r "${WORKDIR}/docs/"*
|
||
|
fi
|
||
|
}
|