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

Collapse All | Expand All

(-)/usr/portage/dev-db/sqlite/sqlite-3.8.2.ebuild (-9 / +17 lines)
Lines 4-10 Link Here
4
4
5
EAPI="5"
5
EAPI="5"
6
6
7
inherit autotools eutils flag-o-matic multilib versionator
7
inherit autotools eutils flag-o-matic multilib versionator multilib-minimal
8
8
9
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
9
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
10
DOC_PV="${SRC_PV}"
10
DOC_PV="${SRC_PV}"
Lines 24-38 Link Here
24
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
25
IUSE="debug doc icu +readline secure-delete static-libs tcl test"
25
IUSE="debug doc icu +readline secure-delete static-libs tcl test"
26
26
27
RDEPEND="icu? ( dev-libs/icu:= )
27
RDEPEND="icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
28
	readline? ( sys-libs/readline )
28
	readline? ( sys-libs/readline[${MULTILIB_USEDEP}] )
29
	tcl? ( dev-lang/tcl:= )"
29
	tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] )
30
	abi_x86_32? (
31
		!<=app-emulation/emul-linux-x86-baselibs-20131008-r6
32
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
33
		)"
30
DEPEND="${RDEPEND}
34
DEPEND="${RDEPEND}
31
	doc? ( app-arch/unzip )
35
	doc? ( app-arch/unzip )
32
	tcl? ( app-arch/unzip )
36
	tcl? ( app-arch/unzip )
33
	test? (
37
	test? (
34
		app-arch/unzip
38
		app-arch/unzip
35
		dev-lang/tcl
39
		dev-lang/tcl[${MULTILIB_USEDEP}]
36
	)"
40
	)"
37
41
38
amalgamation() {
42
amalgamation() {
Lines 59-67 Link Here
59
63
60
	# At least ppc-aix, x86-interix and *-solaris need newer libtool.
64
	# At least ppc-aix, x86-interix and *-solaris need newer libtool.
61
	# use prefix && eautoreconf
65
	# use prefix && eautoreconf
66
67
	multilib_copy_sources
62
}
68
}
63
69
64
src_configure() {
70
multilib_src_configure() {
65
	# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
71
	# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
66
	if amalgamation; then
72
	if amalgamation; then
67
		if use debug; then
73
		if use debug; then
Lines 133-143 Link Here
133
		$(amalgamation || echo --enable-tcl)
139
		$(amalgamation || echo --enable-tcl)
134
}
140
}
135
141
136
src_compile() {
142
multilib_src_compile() {
137
	emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
143
	emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
138
}
144
}
139
145
140
src_test() {
146
multilib_src_test() {
141
	if [[ "${EUID}" -eq 0 ]]; then
147
	if [[ "${EUID}" -eq 0 ]]; then
142
		ewarn "Skipping tests due to root permissions"
148
		ewarn "Skipping tests due to root permissions"
143
		return
149
		return
Lines 146-155 Link Here
146
	emake $(use debug && echo fulltest || echo test)
152
	emake $(use debug && echo fulltest || echo test)
147
}
153
}
148
154
149
src_install() {
155
multilib_src_install() {
150
	emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
156
	emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
151
	prune_libtool_files
157
	prune_libtool_files
158
}
152
159
160
multilib_src_install_all() {
153
	doman sqlite3.1
161
	doman sqlite3.1
154
162
155
	if use doc; then
163
	if use doc; then

Return to bug 496014