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 (-10 / +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 61-67 Link Here
61
	# use prefix && eautoreconf
65
	# use prefix && eautoreconf
62
}
66
}
63
67
64
src_configure() {
68
multilib_src_configure() {
65
	# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
69
	# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
66
	if amalgamation; then
70
	if amalgamation; then
67
		if use debug; then
71
		if use debug; then
Lines 123-128 Link Here
123
127
124
	# `configure` from amalgamation tarball does not support
128
	# `configure` from amalgamation tarball does not support
125
	# --with-readline-inc and --(enable|disable)-tcl options.
129
	# --with-readline-inc and --(enable|disable)-tcl options.
130
	ECONF_SOURCE="${S}" \
126
	econf \
131
	econf \
127
		--enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \
132
		--enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \
128
		--enable-threadsafe \
133
		--enable-threadsafe \
Lines 133-143 Link Here
133
		$(amalgamation || echo --enable-tcl)
138
		$(amalgamation || echo --enable-tcl)
134
}
139
}
135
140
136
src_compile() {
141
multilib_src_compile() {
137
	emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
142
	emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
138
}
143
}
139
144
140
src_test() {
145
multilib_src_test() {
141
	if [[ "${EUID}" -eq 0 ]]; then
146
	if [[ "${EUID}" -eq 0 ]]; then
142
		ewarn "Skipping tests due to root permissions"
147
		ewarn "Skipping tests due to root permissions"
143
		return
148
		return
Lines 146-155 Link Here
146
	emake $(use debug && echo fulltest || echo test)
151
	emake $(use debug && echo fulltest || echo test)
147
}
152
}
148
153
149
src_install() {
154
multilib_src_install() {
150
	emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
155
	emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
151
	prune_libtool_files
156
}
152
157
158
multilib_src_install_all() {
159
	prune_libtool_files
153
	doman sqlite3.1
160
	doman sqlite3.1
154
161
155
	if use doc; then
162
	if use doc; then

Return to bug 496014