Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 494468
Collapse All | Expand All

(-)/usr/portage/dev-libs/dbus-glib/dbus-glib-0.100.2.ebuild (-21 / +26 lines)
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dbus-glib/dbus-glib-0.100.2.ebuild,v 1.12 2013/03/05 09:12:15 ago Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dbus-glib/dbus-glib-0.100.2.ebuild,v 1.12 2013/03/05 09:12:15 ago Exp $
4
4
5
EAPI=5
5
EAPI=5
6
inherit bash-completion-r1 eutils
6
inherit bash-completion-r1 eutils multilib-minimal
7
7
8
DESCRIPTION="D-Bus bindings for glib"
8
DESCRIPTION="D-Bus bindings for glib"
9
HOMEPAGE="http://dbus.freedesktop.org/"
9
HOMEPAGE="http://dbus.freedesktop.org/"
Lines 11-30 Link Here
11
11
12
LICENSE="|| ( GPL-2 AFL-2.1 )"
12
LICENSE="|| ( GPL-2 AFL-2.1 )"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
15
IUSE="debug doc static-libs test"
15
IUSE="debug doc static-libs test"
16
16
17
RDEPEND=">=dev-libs/expat-2
17
CDEPEND=">=dev-libs/expat-2[${MULTILIB_USEDEP}]
18
	>=dev-libs/glib-2.26:2
18
	>=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}]
19
	>=sys-apps/dbus-1.6.2"
19
	>=sys-apps/dbus-1.6.2[${MULTILIB_USEDEP}]"
20
DEPEND="${RDEPEND}
20
DEPEND="${CDEPEND}
21
	virtual/pkgconfig
21
	virtual/pkgconfig
22
	doc? ( >=dev-util/gtk-doc-1.4 )"
22
	doc? ( >=dev-util/gtk-doc-1.4 )"
23
RDEPEND="${CDEPEND}
24
	 abi_x86_32? (
25
	 	!<=app-emulation/emul-linux-x86-baselibs-20131008-r6
26
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
27
	)"
23
28
24
# out of sources build directory
29
# out of sources build directory
25
BD=${WORKDIR}/${P}-build
30
BUILD_DIR=${WORKDIR}/${P}-build
26
# out of sources build dir for make check
31
27
TBD=${WORKDIR}/${P}-tests-build
32
set_TBD() {
33
	# out of sources build dir for make check
34
	export TBD="${BUILD_DIR}-tests"
35
}
28
36
29
src_prepare() {
37
src_prepare() {
30
	# Fix testsuite, bug #356699 (fixed in git master)
38
	# Fix testsuite, bug #356699 (fixed in git master)
Lines 34-55 Link Here
34
	cp "${FILESDIR}"/${PN}-0.100-dbus-glib-sections.txt doc/reference/dbus-glib-sections.txt || die
42
	cp "${FILESDIR}"/${PN}-0.100-dbus-glib-sections.txt doc/reference/dbus-glib-sections.txt || die
35
}
43
}
36
44
37
src_configure() {
45
multilib_src_configure() {
38
	local myconf=(
46
	local myconf=(
39
		--localstatedir="${EPREFIX}"/var
47
		--localstatedir="${EPREFIX}"/var
40
		--enable-bash-completion
48
		--enable-bash-completion
41
		$(use_enable debug verbose-mode)
49
		$(use_enable debug verbose-mode)
42
		$(use_enable debug asserts)
50
		$(use_enable debug asserts)
43
		$(use_enable static-libs static)
51
		$(use_enable static-libs static)
44
		$(use_enable doc gtk-doc)
52
		$(multilib_is_native_abi && use_enable doc gtk-doc || echo "--disable-doc")
45
		)
53
		)
46
54
47
	mkdir "${BD}"
48
	cd "${BD}"
49
	einfo "Running configure in ${BD}"
50
	ECONF_SOURCE="${S}" econf "${myconf[@]}"
55
	ECONF_SOURCE="${S}" econf "${myconf[@]}"
51
56
52
	if use test; then
57
	if use test; then
58
		set_TBD
53
		mkdir "${TBD}"
59
		mkdir "${TBD}"
54
		cd "${TBD}"
60
		cd "${TBD}"
55
		einfo "Running configure in ${TBD}"
61
		einfo "Running configure in ${TBD}"
Lines 62-90 Link Here
62
	fi
68
	fi
63
}
69
}
64
70
65
src_compile() {
71
multilib_src_compile() {
66
	cd "${BD}"
67
	einfo "Running make in ${BD}"
68
	emake
72
	emake
69
73
70
	if use test; then
74
	if use test; then
75
		set_TBD
71
		cd "${TBD}"
76
		cd "${TBD}"
72
		einfo "Running make in ${TBD}"
77
		einfo "Running make in ${TBD}"
73
		emake
78
		emake
74
	fi
79
	fi
75
}
80
}
76
81
77
src_test() {
82
multilib_src_test() {
83
	set_TBD
78
	cd "${TBD}"
84
	cd "${TBD}"
79
	emake check
85
	emake check
80
}
86
}
81
87
82
src_install() {
88
src_install() {
83
	# NEWS file is obsolete
89
	# NEWS file is obsolete
84
	dodoc AUTHORS ChangeLog HACKING README
90
	DOCS=( AUTHORS ChangeLog HACKING README )
85
91
86
	cd "${BD}"
92
	multilib-minimal_src_install
87
	emake DESTDIR="${D}" install
88
93
89
	newbashcomp "${ED}"/etc/bash_completion.d/dbus-bash-completion.sh dbus
94
	newbashcomp "${ED}"/etc/bash_completion.d/dbus-bash-completion.sh dbus
90
	rm -rf "${ED}"/etc/bash_completion.d || die
95
	rm -rf "${ED}"/etc/bash_completion.d || die

Return to bug 494468