Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 441794 | Differences between
and this patch

Collapse All | Expand All

(-)icu-50_rc-r2.ebuild (-27 / +20 lines)
Lines 4-14 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
BASE_URI="http://download.icu-project.org/files/icu4c/${PV/_/}"
7
inherit autotools eutils toolchain-funcs versionator base
8
SRC_ARCHIVE="icu4c-${PV//./_}-src.tgz"
9
DOCS_ARCHIVE="icu4c-${PV//./_}-docs.zip"
10
11
inherit eutils toolchain-funcs versionator base
12
8
13
MAJOR_VERSION="$(get_version_component_range 1)"
9
MAJOR_VERSION="$(get_version_component_range 1)"
14
if [[ ${PV/_rc/} != ${PV} ]]; then
10
if [[ ${PV/_rc/} != ${PV} ]]; then
Lines 19-35 fi Link Here
19
15
20
DESCRIPTION="International Components for Unicode"
16
DESCRIPTION="International Components for Unicode"
21
HOMEPAGE="http://www.icu-project.org/"
17
HOMEPAGE="http://www.icu-project.org/"
22
18
SRC_URI="http://download.icu-project.org/files/icu4c/${PV/_}/icu4c-${PV//./_}-src.tgz"
23
SRC_URI="${BASE_URI}/${SRC_ARCHIVE}
24
	doc? ( ${BASE_URI}/${DOCS_ARCHIVE} )
25
"
26
19
27
LICENSE="BSD"
20
LICENSE="BSD"
28
SLOT="0"
21
SLOT="0"
29
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
22
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
30
IUSE="debug doc examples static-libs"
23
IUSE="debug doc examples static-libs"
31
24
32
DEPEND="doc? ( app-arch/unzip )"
25
DEPEND="doc? ( app-doc/doxygen )"
33
RDEPEND="!dev-libs/icu:0/50"
26
RDEPEND="!dev-libs/icu:0/50"
34
27
35
S="${WORKDIR}/${PN}/source"
28
S="${WORKDIR}/${PN}/source"
Lines 40-56 QA_FLAGS_IGNORED="/usr/lib.*/libicudata\ Link Here
40
PATCHES=(
33
PATCHES=(
41
	"${FILESDIR}/${PN}-4.8.1-fix_binformat_fonts.patch"
34
	"${FILESDIR}/${PN}-4.8.1-fix_binformat_fonts.patch"
42
	"${FILESDIR}/${PN}-4.8.1.1-fix_ltr.patch"
35
	"${FILESDIR}/${PN}-4.8.1.1-fix_ltr.patch"
36
	"${FILESDIR}/${PN}-50-doc.patch"
43
)
37
)
44
38
45
src_unpack() {
46
	unpack "${SRC_ARCHIVE}"
47
	if use doc; then
48
		mkdir -p docs
49
		cd docs
50
		unpack "${DOCS_ARCHIVE}"
51
	fi
52
}
53
54
src_prepare() {
39
src_prepare() {
55
	local variable
40
	local variable
56
41
Lines 65-70 src_prepare() { Link Here
65
			-i config/Makefile.inc.in \
50
			-i config/Makefile.inc.in \
66
			|| die
51
			|| die
67
	done
52
	done
53
54
	sed -e "s/#define U_DISABLE_RENAMING 0/#define U_DISABLE_RENAMING 1/" -i common/unicode/uconfig.h
55
56
	eautoreconf
68
}
57
}
69
58
70
src_configure() {
59
src_configure() {
Lines 73-85 src_configure() { Link Here
73
	# bootstrap for cross compilation
62
	# bootstrap for cross compilation
74
	if tc-is-cross-compiler; then
63
	if tc-is-cross-compiler; then
75
		CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
64
		CFLAGS="" CXXFLAGS="" ASFLAGS="" LDFLAGS="" \
76
		CC=$(tc-getBUILD_CC) CXX=$(tc-getBUILD_CXX) AR=$(tc-getBUILD_AR) \
65
		CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" AR="$(tc-getBUILD_AR)" \
77
		RANLIB=$(tc-getBUILD_RANLIB) LD=$(tc-getBUILD_LD) \
66
		RANLIB="$(tc-getBUILD_RANLIB)" LD="$(tc-getBUILD_LD)" \
78
		./configure --disable-renaming --disable-debug \
67
		./configure --disable-renaming --disable-debug \
79
			--disable-samples --enable-static || die
68
			--disable-samples --enable-static || die
80
		emake
69
		emake VERBOSE=1
81
		mkdir -p "${WORKDIR}/host/"
70
		mkdir -p "${WORKDIR}/host/"
82
		cp -a {bin,lib,config} "${WORKDIR}/host/"
71
		cp -a {bin,lib,config,tools} "${WORKDIR}/host/"
83
		emake clean
72
		emake clean
84
73
85
		cross_opts="--with-cross-build=${WORKDIR}/host"
74
		cross_opts="--with-cross-build=${WORKDIR}/host"
Lines 93-98 src_configure() { Link Here
93
		${cross_opts}
82
		${cross_opts}
94
}
83
}
95
84
85
src_compile() {
86
	emake VERBOSE=1
87
	if use doc; then
88
		doxygen -u Doxyfile && doxygen Doxyfile || die
89
	fi
90
}
91
96
src_test() {
92
src_test() {
97
	# INTLTEST_OPTS: intltest options
93
	# INTLTEST_OPTS: intltest options
98
	#   -e: Exhaustive testing
94
	#   -e: Exhaustive testing
Lines 112-119 src_install() { Link Here
112
108
113
	dohtml ../readme.html
109
	dohtml ../readme.html
114
	dodoc ../unicode-license.txt
110
	dodoc ../unicode-license.txt
115
	if use doc; then
111
	use doc && dohtml -p api -r doc/html/
116
		insinto /usr/share/doc/${PF}/html/api
117
		doins -r "${WORKDIR}/docs/"*
118
	fi
119
}
112
}

Return to bug 441794