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

Collapse All | Expand All

(-)file_not_specified_in_diff (-29 / +27 lines)
Line  Link Here
0
-- dev-libs/expat/expat-2.1.0-r2.ebuild 
0
++ dev-libs/expat/expat-2.1.0-r3.ebuild 
Lines 2-9 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/expat-2.1.0-r2.ebuild,v 1.8 2013/03/09 12:33:55 ssuominen Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/expat-2.1.0-r2.ebuild,v 1.8 2013/03/09 12:33:55 ssuominen Exp $
4
4
5
EAPI=4
5
EAPI=5
6
inherit eutils libtool multilib toolchain-funcs
6
inherit eutils libtool multilib toolchain-funcs multilib-minimal
7
7
8
DESCRIPTION="XML parsing libraries"
8
DESCRIPTION="XML parsing libraries"
9
HOMEPAGE="http://expat.sourceforge.net/"
9
HOMEPAGE="http://expat.sourceforge.net/"
Lines 11-78 Link Here
11
11
12
LICENSE="MIT"
12
LICENSE="MIT"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
15
IUSE="elibc_FreeBSD examples static-libs unicode"
15
IUSE="elibc_FreeBSD examples static-libs unicode"
16
17
RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224 )"
16
18
17
src_prepare() {
19
src_prepare() {
18
	elibtoolize
20
	elibtoolize
19
20
	mkdir "${S}"-build{,u,w} || die
21
}
21
}
22
22
23
src_configure() {
23
multilib_src_configure() {
24
	local myconf="$(use_enable static-libs static)"
24
	local myconf="$(use_enable static-libs static)"
25
25
26
	pushd "${S}"-build >/dev/null
26
	mkdir -p "${BUILD_DIR}"{u,w} || die
27
27
	ECONF_SOURCE="${S}" econf ${myconf}
28
	ECONF_SOURCE="${S}" econf ${myconf}
28
	popd >/dev/null
29
29
30
	if use unicode; then
30
	if use unicode; then
31
		pushd "${S}"-buildu >/dev/null
31
		pushd "${BUILD_DIR}"u >/dev/null
32
		CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}" econf ${myconf}
32
		CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}" econf ${myconf}
33
		popd >/dev/null
33
		popd >/dev/null
34
34
35
		pushd "${S}"-buildw >/dev/null
35
		pushd "${BUILD_DIR}"w >/dev/null
36
		CPPFLAGS="${CPPFLAGS} -DXML_UNICODE_WCHAR_T" ECONF_SOURCE="${S}" econf ${myconf}
36
		CPPFLAGS="${CPPFLAGS} -DXML_UNICODE_WCHAR_T" ECONF_SOURCE="${S}" econf ${myconf}
37
		popd >/dev/null
37
		popd >/dev/null
38
	fi
38
	fi
39
}
39
}
40
40
41
src_compile() {
41
multilib_src_compile() {
42
	pushd "${S}"-build >/dev/null
43
	emake
42
	emake
44
	popd >/dev/null
45
43
46
	if use unicode; then
44
	if use unicode; then
47
		pushd "${S}"-buildu >/dev/null
45
		pushd "${BUILD_DIR}"u >/dev/null
48
		emake buildlib LIBRARY=libexpatu.la
46
		emake buildlib LIBRARY=libexpatu.la
49
		popd >/dev/null
47
		popd >/dev/null
50
48
51
		pushd "${S}"-buildw >/dev/null
49
		pushd "${BUILD_DIR}"w >/dev/null
52
		emake buildlib LIBRARY=libexpatw.la
50
		emake buildlib LIBRARY=libexpatw.la
53
		popd >/dev/null
51
		popd >/dev/null
54
	fi
52
	fi
55
}
53
}
56
54
57
src_install() {
55
multilib_src_install() {
58
	dodoc Changes README
59
	dohtml doc/*
60
61
	if use examples; then
62
		insinto /usr/share/doc/${PF}/examples
63
		doins examples/*.c
64
	fi
65
66
	pushd "${S}"-build >/dev/null
67
	emake install DESTDIR="${D}"
56
	emake install DESTDIR="${D}"
68
	popd >/dev/null
69
57
70
	if use unicode; then
58
	if use unicode; then
71
		pushd "${S}"-buildu >/dev/null
59
		pushd "${BUILD_DIR}"u >/dev/null
72
		emake installlib DESTDIR="${D}" LIBRARY=libexpatu.la
60
		emake installlib DESTDIR="${D}" LIBRARY=libexpatu.la
73
		popd >/dev/null
61
		popd >/dev/null
74
62
75
		pushd "${S}"-buildw >/dev/null
63
		pushd "${BUILD_DIR}"w >/dev/null
76
		emake installlib DESTDIR="${D}" LIBRARY=libexpatw.la
64
		emake installlib DESTDIR="${D}" LIBRARY=libexpatw.la
77
		popd >/dev/null
65
		popd >/dev/null
78
66
Lines 83-88 Link Here
83
		sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
71
		sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
84
		popd >/dev/null
72
		popd >/dev/null
85
	fi
73
	fi
74
}
75
76
multilib_src_install_all() {
77
	dodoc Changes README
78
	dohtml doc/*
79
80
	if use examples; then
81
		insinto /usr/share/doc/${PF}/examples
82
		doins examples/*.c
83
	fi
86
84
87
	rm -f "${ED}"usr/lib*/libexpat{,u,w}.la
85
	rm -f "${ED}"usr/lib*/libexpat{,u,w}.la
88
86

Return to bug 478468