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

(-)alsa-lib-1.0.26-r1.ebuild (-34 / +39 lines)
Lines 6-12 Link Here
6
6
7
PYTHON_COMPAT=( python{2_6,2_7} )
7
PYTHON_COMPAT=( python{2_6,2_7} )
8
8
9
inherit autotools eutils multilib python-single-r1
9
inherit eutils python-single-r1 autotools-utils multilib-minimal
10
10
11
DESCRIPTION="Advanced Linux Sound Architecture Library"
11
DESCRIPTION="Advanced Linux Sound Architecture Library"
12
HOMEPAGE="http://www.alsa-project.org/"
12
HOMEPAGE="http://www.alsa-project.org/"
Lines 17-71 Link Here
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
17
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
18
IUSE="doc debug alisp python"
18
IUSE="doc debug alisp python"
19
19
20
RDEPEND="python? ( ${PYTHON_DEPS} )"
20
RDEPEND="python? ( ${PYTHON_DEPS} )
21
	!<=app-emulation/emul-linux-x86-soundlibs-20130224"
21
DEPEND="${RDEPEND}
22
DEPEND="${RDEPEND}
22
	>=media-sound/alsa-headers-1.0.25
23
	>=media-sound/alsa-headers-1.0.25
23
	doc? ( >=app-doc/doxygen-1.2.6 )"
24
	doc? ( >=app-doc/doxygen-1.2.6 )"
24
25
26
DOCS=( ChangeLog TODO )
27
PATCHES=( "${FILESDIR}/1.0.25-extraneous-cflags.diff" )
28
29
AUTOTOOLS_AUTORECONF="1"
30
25
pkg_setup() {
31
pkg_setup() {
26
	use python && python-single-r1_pkg_setup
32
	use python && python-single-r1_pkg_setup
27
}
33
}
28
34
29
src_prepare() {
35
src_prepare() {
30
	epatch "${FILESDIR}"/1.0.25-extraneous-cflags.diff
36
	autotools-utils_src_prepare
31
	eautoreconf
37
	multilib_copy_sources
32
	# if eautoreconf'd with recent autoconf, then epunt_cxx is
33
	# unncessary wrt #460974
34
#	epunt_cxx
35
}
36
37
src_configure() {
38
	local myconf
39
	use elibc_uclibc && myconf="--without-versioned"
40
41
	econf \
42
		--enable-shared \
43
		--disable-resmgr \
44
		--enable-rawmidi \
45
		--enable-seq \
46
		--enable-aload \
47
		$(use_with debug) \
48
		$(use_enable alisp) \
49
		$(use_enable python) \
50
		${myconf}
51
}
38
}
52
39
53
src_compile() {
40
multilib_src_configure() {
54
	emake
41
	local myeconfargs=(
42
		--enable-shared
43
		--disable-resmgr
44
		--enable-rawmidi
45
		--enable-seq
46
		--enable-aload
47
		$(use_with debug)
48
		$(use_enable alisp)
49
	)
50
	use elibc_uclibc && myeconfargs+=" --without-versioned"
51
52
	# Only enable python for the most preferred ABI
53
	is_final_abi && myeconfargs+=( $(use_enable python) )
54
	is_final_abi || myeconfargs+=( --disable-python )
55
56
	autotools-utils_src_configure
57
}
55
58
59
src_compile_doc() {
60
	cd "${BUILD_DIR}"
56
	if use doc; then
61
	if use doc; then
57
		emake doc
62
		emake doc
58
		fgrep -Zrl "${S}" "${S}/doc/doxygen/html" | \
63
		fgrep -Zrl "${BUILD_DIR}" "${BUILD_DIR}/doc/doxygen/html" | \
59
			xargs -0 sed -i -e "s:${S}::"
64
			xargs -0 sed -i -e "s:${BUILD_DIR}::"
60
	fi
65
	fi
61
}
66
}
62
67
63
src_install() {
68
multilib_src_compile() {
64
	emake DESTDIR="${D}" install
69
	autotools-utils_src_compile
65
70
	is_final_abi && src_compile_doc
66
	prune_libtool_files --all
71
}
67
	find "${ED}"/usr/$(get_libdir)/alsa-lib -name '*.a' -exec rm -f {} +
68
72
69
	dodoc ChangeLog TODO
73
multilib_src_install() {
70
	use doc && dohtml -r doc/doxygen/html/*
74
	is_final_abi && use doc && HTML_DOCS=( "${BUILD_DIR}/doc/doxygen/html/" )
75
	autotools-utils_src_install
71
}
76
}

Return to bug 463750