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

Collapse All | Expand All

(-)a/dev-libs/ustr/ustr-1.0.4-r3.ebuild (-12 / +36 lines)
Lines 4-10 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit multilib toolchain-funcs
7
inherit multilib-build toolchain-funcs
8
8
9
DESCRIPTION="Low-overhead managed string library for C"
9
DESCRIPTION="Low-overhead managed string library for C"
10
HOMEPAGE="http://www.and.org/ustr"
10
HOMEPAGE="http://www.and.org/ustr"
Lines 12-39 Link Here
12
12
13
LICENSE="|| ( BSD-2 MIT LGPL-2 )"
13
LICENSE="|| ( BSD-2 MIT LGPL-2 )"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="amd64 ~arm ~mips x86"
15
KEYWORDS="~amd64 ~arm ~mips ~x86"
16
IUSE=""
16
IUSE=""
17
17
18
DEPEND=""
18
DEPEND=""
19
RDEPEND=""
19
RDEPEND=""
20
20
21
src_compile() {
21
src_prepare() {
22
	emake AR=$(tc-getAR) CC=$(tc-getCC) CFLAGS="${CFLAGS}" HIDE= \
22
	multilib_copy_sources
23
		SHRDIR="/usr/share/${P}" \
24
		all-shared
25
}
23
}
26
24
27
src_test() {
25
ustr_make() {
28
	emake AR=$(tc-getAR) CC=$(tc-getCC) CFLAGS="${CFLAGS}" HIDE= check
26
	cd "${BUILD_DIR}" || die
27
	[ -e ustr-conf.h ] && rm ustr-conf.h
28
	emake "$@" \
29
		AR="$(tc-getAR)" \
30
		CC="$(tc-getCC)" \
31
		CFLAGS="${CFLAGS}" \
32
		LDFLAGS="${LDFLAGS}" \
33
		prefix="${EPREFIX}/usr" \
34
		SHRDIR="/usr/share/${P}" \
35
		HIDE= || die
29
}
36
}
30
37
31
src_install() {
38
ustr_install() {
32
	emake install DESTDIR="${D}" HIDE= \
39
	cd "${BUILD_DIR}" || die
33
		libdir="/usr/$(get_libdir)" \
40
41
	emake "$@" \
42
		DESTDIR="${D}" \
43
		prefix="${EPREFIX}/usr" \
44
		libdir="${EPREFIX}/usr/$(get_libdir)" \
34
		mandir="/usr/share/man" \
45
		mandir="/usr/share/man" \
35
		SHRDIR="/usr/share/${P}" \
46
		SHRDIR="/usr/share/${P}" \
36
		DOCSHRDIR="/usr/share/doc/${PF}"
47
		DOCSHRDIR="/usr/share/doc/${PF}" \
48
		HIDE= || die
49
}
50
37
51
52
src_compile() {
53
	multilib_foreach_abi ustr_make all-shared
54
}
55
56
multilib_src_test() {
57
	multilib_foreach_abi ustr_make check
58
}
59
60
src_install() {
61
	multilib_foreach_abi ustr_install install-multilib-linux
38
	dodoc ChangeLog README README-DEVELOPERS AUTHORS NEWS TODO
62
	dodoc ChangeLog README README-DEVELOPERS AUTHORS NEWS TODO
39
}
63
}

Return to bug 506460