blob: b3bce276741cb5a3b670fafa3aa3b3318a78b212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit multilib toolchain-funcs
KEYWORDS="~amd64"
DESCRIPTION="SQLite: an SQL Database Engine in a C Library"
HOMEPAGE="http://www.sqlite.org/"
SRC_URI="http://www.sqlite.org/${P}.tar.gz"
LICENSE="public-domain"
SLOT="2"
IUSE="nls"
DEPEND=""
RDEPEND="
!=dev-db/sqlite-2*:0
"
src_prepare() {
eapply \
"${FILESDIR}"/${P}-multilib.patch \
"${FILESDIR}"/${P}-exit.patch
if use nls ; then
ENCODING=${ENCODING-"UTF8"}
else
ENCODING="ISO8859"
fi
sed -i -e "s:@@S@@:${S}:g" \
-e "s:@@CC@@:$(tc-getCC):g" \
-e "s:@@CFLAGS@@:${CFLAGS}:g" \
-e "s:@@AR@@:$(tc-getAR):g" \
-e "s:@@RANLIB@@:$(tc-getRANLIB):g" \
-e "s:@@ENCODING@@:${ENCODING}:g" \
"${S}"/Makefile.linux-gcc
sed -i \
-e '/^LTLINK/s:$(TCC):& $(LDFLAGS):' \
-e '/lemon/s:-o:$(LDFLAGS) &:' \
"${S}"/{main.mk,Makefile.in}
default
}
src_configure() {
local myconf="--enable-incore-db --enable-tempdb-in-ram"
myconf="${myconf} --without-tcl"
econf ${myconf} \
--disable-static \
$(use_enable nls utf8)
}
src_install () {
dodir /usr/$(get_libdir)
make DESTDIR="${D}" install || die "make install failed"
find "${D}" -name '*.la' -exec rm -f {} +
dodoc README VERSION
rm -rf "${D}/usr/bin" "${D}/usr/share/man" "${D}/usr/include" "${D}/usr/$(get_libdir)/pkgconfig"
}
|