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

(-)xz-utils-9999.ebuild (-6 / +10 lines)
Lines 7-13 Link Here
7
7
8
EAPI="4"
8
EAPI="4"
9
9
10
inherit eutils multilib toolchain-funcs libtool
10
inherit eutils multilib toolchain-funcs libtool multilib-minimal
11
11
12
if [[ ${PV} == "9999" ]] ; then
12
if [[ ${PV} == "9999" ]] ; then
13
	EGIT_REPO_URI="http://git.tukaani.org/xz.git"
13
	EGIT_REPO_URI="http://git.tukaani.org/xz.git"
Lines 44-59 Link Here
44
	fi
44
	fi
45
}
45
}
46
46
47
src_configure() {
47
multilib_src_configure() {
48
	econf \
48
	ECONF_SOURCE="${S}" econf \
49
		$(use_enable nls) \
49
		$(use_enable nls) \
50
		$(use_enable threads) \
50
		$(use_enable threads) \
51
		$(use_enable static-libs static)
51
		$(use_enable static-libs static) \
52
		$(multilib_is_native_abi || echo --disable-{xz,xzdec,lzmadec,lzmainfo,lzma-links,scripts})
52
}
53
}
53
54
54
src_install() {
55
multilib_src_install() {
55
	default
56
	default
56
	gen_usr_ldscript -a lzma
57
	multilib_is_native_abi && gen_usr_ldscript -a lzma
58
}
59
60
multilib_src_install_all() {
57
	prune_libtool_files --all
61
	prune_libtool_files --all
58
	rm "${ED}"/usr/share/doc/xz/COPYING* || die
62
	rm "${ED}"/usr/share/doc/xz/COPYING* || die
59
	mv "${ED}"/usr/share/doc/{xz,${PF}} || die
63
	mv "${ED}"/usr/share/doc/{xz,${PF}} || die

Return to bug 474940