Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlcipher/
Date: Tue, 26 Feb 2019 10:34:24
Message-Id: 1551177138.119f30f9cb4597cb3b7631405410f4c98b04b15d.pinkbyte@gentoo
1 commit: 119f30f9cb4597cb3b7631405410f4c98b04b15d
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 26 10:32:18 2019 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 26 10:32:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119f30f9
7
8 dev-db/sqlcipher: version bump
9
10 Bump EAPI to 7.
11 Add support for some extensions during buildtime,
12 including column metadata info.
13
14 Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org>
15 Reported-by: paradox_ptr <paradox_ptr <AT> protonmail.ch>
16 Closes: https://bugs.gentoo.org/670346
17 Package-Manager: Portage-2.3.51, Repoman-2.3.10
18
19 dev-db/sqlcipher/Manifest | 1 +
20 dev-db/sqlcipher/sqlcipher-4.0.1.ebuild | 67 +++++++++++++++++++++++++++++++++
21 2 files changed, 68 insertions(+)
22
23 diff --git a/dev-db/sqlcipher/Manifest b/dev-db/sqlcipher/Manifest
24 index 300a2664c6a..35e3d49592a 100644
25 --- a/dev-db/sqlcipher/Manifest
26 +++ b/dev-db/sqlcipher/Manifest
27 @@ -1 +1,2 @@
28 DIST sqlcipher-3.4.2.tar.gz 14743960 BLAKE2B 88ee265b02bb9a42734c2ef93070c8fd8e13d546d7cc85e7fbfd6e6046ccbf2626d75e14b19cbba379c99784c7311d0100de06235b99b4908c60c99890d8d7a2 SHA512 c620bf2b175e404afd60ebe76b5476f5a447ff5fcdfa31bebc3f4bd7f1ebfcd507ee423cd582c9b3d6431d8b57320171492da2586e1a739adb4f440e7443dc03
29 +DIST sqlcipher-4.0.1.tar.gz 17006324 BLAKE2B 44e8eb4e1230c3625b4fe1b4af608cd8edc25f3c6adf7e11450c8f9ddb7970fea92ff0823f3a1e631d1b0acfbab6cf078c80e4645c535d66de57f1d73b55ff47 SHA512 0fb48326860a10e9849b2f56fae0c310deae124c7203b54d51f92d346782be795d505c29eafbdfb7206f5e7be54c0f7228fe50c45bd9d2b23cca976b263264fc
30
31 diff --git a/dev-db/sqlcipher/sqlcipher-4.0.1.ebuild b/dev-db/sqlcipher/sqlcipher-4.0.1.ebuild
32 new file mode 100644
33 index 00000000000..7ce770c2ff1
34 --- /dev/null
35 +++ b/dev-db/sqlcipher/sqlcipher-4.0.1.ebuild
36 @@ -0,0 +1,67 @@
37 +# Copyright 1999-2019 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit autotools flag-o-matic multilib-minimal
43 +
44 +DESCRIPTION="Full Database Encryption for SQLite"
45 +HOMEPAGE="https://www.zetetic.net/sqlcipher/"
46 +SRC_URI="https://github.com/sqlcipher/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +IUSE="debug libedit readline libressl static-libs tcl test"
53 +
54 +# Tcl is always needed by buildsystem
55 +RDEPEND="
56 + libedit? ( dev-libs/libedit[${MULTILIB_USEDEP}] )
57 + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
58 + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
59 + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
60 + tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] )
61 +"
62 +DEPEND="${RDEPEND}
63 + dev-lang/tcl:*"
64 +
65 +# Libedit and readline support are mutually exclusive
66 +# Testsuite requires compilation with TCL, bug #582584
67 +REQUIRED_USE="
68 + libedit? ( !readline )
69 + test? ( tcl )
70 +"
71 +
72 +DOCS=( README.md )
73 +
74 +src_prepare() {
75 + # Column metadata added due to bug #670346
76 + append-cflags -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA
77 + default_src_prepare
78 + eautoreconf
79 +}
80 +
81 +multilib_src_configure() {
82 + ECONF_SOURCE=${S} \
83 + econf \
84 + --enable-fts3 \
85 + --enable-fts4 \
86 + --enable-fts5 \
87 + --enable-geopoly \
88 + --enable-json1 \
89 + --enable-memsys5 \
90 + --enable-rtree \
91 + --enable-session \
92 + --enable-tempstore \
93 + $(use_enable debug) \
94 + $(use_enable libedit editline) \
95 + $(use_enable readline) \
96 + $(use_enable static-libs static) \
97 + $(use_enable tcl)
98 +}
99 +
100 +multilib_src_install_all() {
101 + find "${D}" -name '*.la' -type f -delete || die
102 + einstalldocs
103 +}