parent
134a1c6208
commit
e704e9e89d
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 29630 BLAKE2B 6dee207235a6018f8e88cd3947448af24eebacf5a707629c16b7b17b91d42790567fa25e9e87eb69ed3e47c81e5034974f5b18ef345290bfd13bed2e0aa3d92a SHA512 c89a21dd2b713e52ac106683a992746aa20f4a3f356724c5552bb4bcbb89efaca25d0474e3b390c72199972a62304a3cd433d6cd980065be6574097053855a15
|
||||
TIMESTAMP 2022-02-02T10:09:13Z
|
||||
MANIFEST Manifest.files.gz 29642 BLAKE2B 79a5b8f551b3941038d66d2d3f30fdd57e186be57eaa1d6827b6ea1c05d7ac79ba899965ddd07f158b750f778e417095b6d13b005eb373112755167f4b684326 SHA512 322a6e4b61da51ecfe2b45b9753f3f61df266ba359ff235fc692bb7fbeac3b842e2842d65b8e616df4756a0f999f726a7e6984eb1dd2440f2ab288f62b0e1177
|
||||
TIMESTAMP 2022-02-02T17:39:13Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmH6WElfFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmH6wcFfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klCXdRAAmPZN5ADaFfKZGDYhMDkRKAyeJ4R63GTFPAqN3WLAB6gseiE79ZzDP60/
|
||||
MOH7oM9ezYE8bcChtsA+/xFTzrVP9x92yaedW2fhmpDqk2MCD6lNbtpV48Pg41+5
|
||||
DeJoNkivNLp8OHXG/tCgm973Ip7M67hdmtFuLlfH+QlJ1JBFYaUrzjw+Z951N132
|
||||
rFvSZB4nBTSvLUs9+izauTxyd2Cqb32uxuvPM28GxWW+GRy2jPui6KThMXD8KGyn
|
||||
iXxYrYYyUQbnY0729a1weOoFV6abuN3PIE5SF5hlNLkBLAcTIWcG/i4tIjsEQ6ZW
|
||||
4D9hvwyBMPO/ojPdII80jrfOwJ5KXcywTaSVHmFbU0OHvFLt1GjmIx0qk5HRmXuB
|
||||
wZPv73XLEMnrWA/Lt/4uvypimEDAFkv2oQS7VwNdbqP1hmdKDx6a38dToDoYy8Jo
|
||||
S29GHFn2AHkCymZBy+Bn8LOL1YfGect3YHtkZ1rEHMHgicIH2gjcJe1uVU4fkxl4
|
||||
3aju5Kh29bBdCR6QrRydQIrj6IsrgEsbDg0zYkPlMVkCXR4VZKLUFwOpzgE7DPQW
|
||||
XM4zEt5p9eBjhSpVHrY6dHtqwe2e3ksPL0rwMz2KVgJNMkp9JvR/B6hUg/QLRQqb
|
||||
tjSSIOYEvCe8K756R4HiA00yqR5DX/3Fcdv5Dl9+lPZeUSPeG1Y=
|
||||
=yFp2
|
||||
klCeIQ/9HqlDdY3745CFr3OaozPyMAvayzBsWUR0G7SCC5t5KQo0SWCCQGdEdhXQ
|
||||
HBY5vd9OtcpbvYU1hBVJIiOPBYMOoh+jxz8mgS/PmHb2cAvI2MWgJFd3a+leqNYc
|
||||
JUm474lVQijxgqeHz+F59YF6G/6QL4UNenECBHpDyBzYBD651SSKo2tu0PAqRePL
|
||||
2U0qk1+kbx2elQKaIi7Uq7h8L7JupJC7nhnMTykO1evJ0MVmHdy/KMyWf+hWKnw/
|
||||
MbyszPUmglGihPM2Ey2aWLX4hAgpaXKX/YiWOU9txicAQggti3yLG3YHBnm98l7Z
|
||||
Fm9J3ePyDY80PD95TFM4b7XAfMq2QS12IFnttPYT5GtlUKHIHfbrgKFFkupIzPAg
|
||||
7OUCsal5v6/SjIvVsjM401A6FvsAlRPT8emDK9Z0SZLEtOHjI4m6qGCwNOu6mjku
|
||||
26mU3BkLU6aZKq2EtMkLO1tGK8BqsF8IEPkVPCcXmHjdLPdMUD/R0RoR+3dhTvO4
|
||||
nM2EsBknYMp5j5A1AkR8q+RgoO/83fFNY0iYvbfFhAD3jMde8JCsSxavjHuGACgX
|
||||
nqXji/xp6wlIehy33octJFNAfu0OCy/UHQPPuQrUBhh6YrqDeQeK7QBKHltddCnQ
|
||||
gI8OIwRD4WGKigA4tsJ9DICkZ5TTu23/rjeE4Z+DUeFvbgHRio8=
|
||||
=w+84
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,5 +1,3 @@
|
||||
AUX conky-1.11.6-ipv6.patch 503 BLAKE2B 896cfc76a858981438cecf83db5b2b4fe32d7d6a0749524ac4c4d8dba3fd124a0b7de5d89329280b5c50e9de6cc4e182c23c2813575be6fceb97615e2acda4ca SHA512 3ea5247723676812a07d9ecc129d63cc75e51626a23c202da50bd3172403a24b93f6cbcc5c5e743a9acfe87b6d087ba510381c6157e1995b54d28a6dadbcf08a
|
||||
AUX conky-1.12.1-network-speed.patch 1439 BLAKE2B f736c986528f9a205d325170b7f1c83653304249be7a2742dbb9d50ca4b58a02fe59796c4c3a39001716ce0c44ed107f51c2db8933bc644472b2f45d607c88af SHA512 f1768dbda3698699bfd7473fed7dbe7ab57e53dc7b3599edcbad0105d140673b1111752eaeb7e83b3e42c7684316a788ac3b1f27c6c71b8f7560a02f1ecec8bc
|
||||
DIST conky-1.12.2.tar.gz 2407428 BLAKE2B b8d1b40dc4b547679b5ab4bf0328aabaac868025433729f48baf572c536da4a527a073a6d47f36c179851aecef58535dccb956e3a695700f06bf8e6ab170ae1f SHA512 55280953da437efe36320e4c12f74d95b8406bd7d8b7d93c6582f9b346c1c80a94b71d1c27860f6274de9171865fca91e330dfc39feb80bb2f453a538bc5ce1a
|
||||
EBUILD conky-1.12.2.ebuild 4789 BLAKE2B 970c1549f95279193373a2e33a76abf5fdbf61acf33e1f72135db810dcb5286066a723b31bb21a640f6b37a19d14d3260f183f528de126058a3b5e0f0648c684 SHA512 d6c1dc998d639ba38078db07e7182c9123826df4e65b6babde863669ff7473d027b8653d24d1fc877118deb96f115ae725c9ad1da63f544285c29e61d676c43a
|
||||
MISC metadata.xml 2469 BLAKE2B fb62625e8125ba31a3c6800befd22973f6b4d0b007f49aaa20ef55fd9a7cc5551bdd1554f4afeb749d263b062388aa5a058c3be7025c8727c008e80e360623c4 SHA512 c0daa5a1a24556a59940849478505fadc8ea5195623f9ca57e45943265c0f35117170bd2b9ddcfa9e0edae9a8084a53219a535db8b2ffdd9ba15c0c0ea853860
|
||||
|
@ -1,22 +0,0 @@
|
||||
Fix no-ipv6
|
||||
From https://github.com/brndnmtthws/conky/issues/1033#issue-748414180
|
||||
|
||||
diff '--color=auto' -aur a/src/linux.cc b/src/linux.cc
|
||||
--- a/src/linux.cc 2019-08-12 14:53:54.000000000 -0700
|
||||
+++ b/src/linux.cc 2020-11-22 18:44:04.394329722 -0700
|
||||
@@ -667,6 +667,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
+#ifdef BUILD_IPV6
|
||||
void update_ipv6_net_stats() {
|
||||
FILE *file;
|
||||
char v6addr[33];
|
||||
@@ -731,6 +732,7 @@
|
||||
|
||||
fclose(file);
|
||||
}
|
||||
+#endif /* BUILD_IPV6 */
|
||||
|
||||
/**
|
||||
* Parses information from /proc/net/dev and stores them in ???
|
@ -1,36 +0,0 @@
|
||||
From 415c730133476d6652f479242b0638496b5f673b Mon Sep 17 00:00:00 2001
|
||||
From: Steven Xu <stevenxxiu@gmail.com>
|
||||
Date: Tue, 23 Mar 2021 20:12:52 +1100
|
||||
Subject: [PATCH] fix: update `update last_update_time` earlier, so the network
|
||||
speed is correctly displayed, otherwise the speed shown is much lower than
|
||||
the actual speed (resolves #863)
|
||||
|
||||
---
|
||||
src/conky.cc | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/conky.cc b/src/conky.cc
|
||||
index b116b2bed..af5602c5b 100644
|
||||
--- a/src/conky.cc
|
||||
+++ b/src/conky.cc
|
||||
@@ -766,6 +766,12 @@ static void generate_text() {
|
||||
* some info.mem entries */
|
||||
update_stuff();
|
||||
|
||||
+ /* Update `last_update_time` before `generate_text_internal()`, as the latter
|
||||
+ * calls `evaluate()` -> `update_net_stats()`, which needs `last_update_time`
|
||||
+ * to be set correctly. If this is not done, than the network speed being
|
||||
+ * shown will be much lower than the actual speed.*/
|
||||
+ last_update_time = current_update_time;
|
||||
+
|
||||
/* populate the text buffer; generate_text_internal() iterates through
|
||||
* global_root_object (an instance of the text_object struct) and calls
|
||||
* any callbacks that were set on startup by construct_text_object(). */
|
||||
@@ -822,7 +828,6 @@ static void generate_text() {
|
||||
if (next_update_time < time || next_update_time > time + ui) {
|
||||
next_update_time = time - fmod(time, ui) + ui;
|
||||
}
|
||||
- last_update_time = current_update_time;
|
||||
total_updates++;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST webapp-config-1.55.tar.bz2 72583 BLAKE2B be958dc991f0e1f6835d9c29350b7d97e3f23d52971f6013165ce59a8f4b32ac6262c9719956d1bcdbe60797f07d77910b44a749ae545c4dc15f765525144709 SHA512 44294b276fd036908438cd984ebf70433639caa18d8330bab348433b4f39ea2c42c57fa8de4f0a6198f7875429a3ef9ebe61321c288d910f9be8b3414865f438
|
||||
EBUILD webapp-config-1.55-r2.ebuild 1668 BLAKE2B 19e80e8e0dcfebb72e2507156cb5a5594cd5668e1cc13e54a7a2a6fe88ba0f13d1a01da2b850b5b0bcef3f6b6da66e21d50d15bc9dc881c98ad78e8717272b5a SHA512 d611050b0c187ae9f9058bce03550bb8db23a5ceabe2977ddf61edb77f2f7543cfc8caf6e517513b9eeb9aa30ec91486d1d8bac7a342e6d06001ed7393c23ccc
|
||||
EBUILD webapp-config-9999.ebuild 1777 BLAKE2B e7ad69bc2c4bbcea4ee2de8dbb5af689507b8a42633da9e0b6714deb744b99fe0b4d019d6d92cf9dcc08db0e8cd3c2ba227cc7328a5e1fe97908cf50ca427b09 SHA512 f9b1a38032ec05cfa7e2491aece8cb36d0abd55842b996be1ac2940bbc02ca38725b662c12cd378c571f55dfcaa6eb9d41df8f04fe4ff4b882784a5d35216bfd
|
||||
EBUILD webapp-config-1.55-r2.ebuild 1669 BLAKE2B e3b6db29d762ea395217a8e17db30e42bdd25eb2cdbccf6b8d2a0e4a5f62053ac4c9563ecc389b457a6a70b0330f996735cf83558a672ee606febed04c8d659a SHA512 b4e85efc71a7137cb70aba16666cdf5f0722961ae58068720611c5e5a19068ec6ef2f831ed5edea47cb707eceba082f844c11d4810afa1018f8ff0e33e1b55cf
|
||||
EBUILD webapp-config-9999.ebuild 1778 BLAKE2B b61dcbd5cc8be73e5fa13261608d1da27eb4bf8a4a6cf4d12220969f356ded9ddb3d87623af7f087842861e321f4c34b4761da528e7827b8cd2c8c911e400c45 SHA512 c8c6140dbab39c27f5eb57dcf3457c0756b2aed698ed68488aeddafc1698810d115e4fb2c2571bb28821bfde9fc5ad6ae26adc52e986dbc5b587b0ca797bec3b
|
||||
MISC metadata.xml 437 BLAKE2B 6b4fe82c92da6e29564593a724bdf6a908f35ed0394fc659aad02bd16e6034533912c9d99d5bc37742c2f6e9842d4d6e398d03896a6f791fb2da09c6f522c6db SHA512 0dce006e71329a0609b9b89fab4c57f385782321817e99351417c81c4e403234a7a8fd971b1abecea43a58cb584e41fd87b1a9d697f7c401480a787c2094918f
|
||||
|
Binary file not shown.
@ -1,239 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools flag-o-matic systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="https://www.clamav.net/"
|
||||
SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="bzip2 doc clamonacc clamdtop clamsubmit iconv ipv6 libclamav-only milter metadata-analysis-api selinux systemd test xml"
|
||||
|
||||
REQUIRED_USE="libclamav-only? ( !clamonacc !clamdtop !clamsubmit !milter !metadata-analysis-api )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/clamav in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
CDEPEND="acct-group/clamav
|
||||
acct-user/clamav
|
||||
dev-libs/libltdl
|
||||
dev-libs/libmspack
|
||||
|| ( dev-libs/libpcre2 >dev-libs/libpcre-6 )
|
||||
dev-libs/tomsfastmath
|
||||
>=sys-libs/zlib-1.2.2:=
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
clamdtop? ( sys-libs/ncurses:0 )
|
||||
clamsubmit? ( net-misc/curl dev-libs/json-c:= )
|
||||
elibc_musl? ( sys-libs/fts-standalone )
|
||||
iconv? ( virtual/libiconv )
|
||||
!libclamav-only? ( net-misc/curl )
|
||||
dev-libs/openssl:0=
|
||||
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
|
||||
xml? ( dev-libs/libxml2 )"
|
||||
|
||||
# We need at least autoconf-2.69-r5 because that's the first (patched)
|
||||
# version of it in Gentoo that supports ./configure --runstatedir.
|
||||
BDEPEND=">=sys-devel/autoconf-2.69-r5
|
||||
virtual/pkgconfig"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
metadata-analysis-api? ( dev-libs/json-c:* )
|
||||
test? ( dev-libs/check )"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.102.1-libxml2_pkgconfig.patch" #661328
|
||||
"${FILESDIR}/${PN}-0.102.2-fix-curl-detection.patch" #709616
|
||||
"${FILESDIR}/${PN}-0.103.0-system-tomsfastmath.patch" # 649394
|
||||
"${FILESDIR}/${PN}-0.103.1-upstream-openrc.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Be extra sure that we're using the system copy of tomsfastmath
|
||||
einfo "removing bundled copy of dev-libs/tomsfastmath"
|
||||
rm -r libclamav/tomsfastmath || \
|
||||
die "failed to remove bundled tomsfastmath"
|
||||
|
||||
AT_NO_RECURSIVE="yes" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use elibc_musl && append-ldflags -lfts
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
# according to configure help it should be
|
||||
# $(use_enable xml)
|
||||
# but that does not work
|
||||
# do not add this, since --disable-xml seems to override
|
||||
# --without-xml
|
||||
JSONUSE="--without-libjson"
|
||||
|
||||
if use clamsubmit || use metadata-analysis-api; then
|
||||
# either of those 2 requires libjson.
|
||||
# clamsubmit will be built as soon as libjson and curl are found
|
||||
# but we only install the binary if requested
|
||||
JSONUSE="--with-libjson=${EPREFIX}/usr"
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable bzip2)
|
||||
$(use_enable clamonacc)
|
||||
$(use_enable clamdtop)
|
||||
$(use_enable ipv6)
|
||||
$(use_enable milter)
|
||||
$(use_enable test check)
|
||||
$(use_with xml)
|
||||
$(use_with iconv)
|
||||
${JSONUSE}
|
||||
$(use_enable libclamav-only)
|
||||
$(use_with !libclamav-only libcurl)
|
||||
--with-system-libmspack
|
||||
--cache-file="${S}"/config.cache
|
||||
--disable-experimental
|
||||
--disable-static
|
||||
--disable-zlib-vcheck
|
||||
--enable-id-check
|
||||
--with-dbdir="${EPREFIX}"/var/lib/clamav
|
||||
# Don't call --with-zlib=/usr (see bug #699296)
|
||||
--with-zlib
|
||||
--disable-llvm
|
||||
--enable-openrc
|
||||
--runstatedir=/run
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav || die
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd; then
|
||||
# The tmpfiles entry is behind USE=systemd because the
|
||||
# upstream OpenRC service files should (and do) ensure that
|
||||
# the directories they need exist and have the correct
|
||||
# permissions without the help of opentmpfiles. There are
|
||||
# years-old root exploits in opentmpfiles, the design is
|
||||
# fundamentally flawed, and the maintainer is not up to
|
||||
# the task of fixing it.
|
||||
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||
"freshclamd.service"
|
||||
fi
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/clamd.logrotate" clamd
|
||||
newins "${FILESDIR}/freshclam.logrotate" freshclam
|
||||
use milter && \
|
||||
newins "${FILESDIR}/clamav-milter.logrotate-r1" clamav-milter
|
||||
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamd.conf.sample || die
|
||||
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/freshclam.conf.sample || die
|
||||
|
||||
if use milter ; then
|
||||
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||
sed -i -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav-milter.conf.sample || die
|
||||
|
||||
cat >> "${ED}"/etc/conf.d/clamd <<-EOF
|
||||
MILTER_NICELEVEL=19
|
||||
START_MILTER=no
|
||||
EOF
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-r1" clamav-milter.service
|
||||
fi
|
||||
|
||||
local i
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
if [[ -f "${ED}"/etc/"${i}".conf.sample ]]; then
|
||||
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# These both need to be writable by the clamav user.
|
||||
# TODO: use syslog by default; that's what it's for.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
local HTML_DOCS=( docs/html/. )
|
||||
einstalldocs
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
doman docs/man/*.[1-8]
|
||||
fi
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use libclamav-only ; then
|
||||
ewarn "Test target not available when USE=libclamav-only is set, skipping tests ..."
|
||||
return 0
|
||||
fi
|
||||
|
||||
emake quick-check
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
tmpfiles_process clamav.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||
if [[ ! -f "${databases}" ]] ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database"
|
||||
ewarn "before starting clamav for the first time."
|
||||
fi
|
||||
|
||||
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||
ewarn "runlevels that previously contained clamd."
|
||||
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST ncompress-5.0.tar.gz 34185 BLAKE2B 7b296bd00024bfb483d3261ff8aa6e47a6be8c62b445c3d456d702b69fbc2a7b731326f7ea91aa331ba8e8a27936f4318b3e252cc978b6bf3198e8812988913f SHA512 5bc886f98f25b03d034e8d8ebb0ee9388d727ee3e0c6d8a906698b2f8fa5c930f55d857486244b7f40447c7b74f3c620626600db619d0c6d6fd434f52912be42
|
||||
EBUILD ncompress-5.0.ebuild 757 BLAKE2B f4e4c703857af06135a7b9a64577255d7c60ca51ab3792129704f161e234b2c6343fcd019b2692883cb35b80e570cb62055092ce5a7acebc402e27724995ab9e SHA512 aa491fa0a7b6b34c638fd947d78cc612b7da4cdac177169b8effece4e66cb4f8580d2e7e4a194651c97e3c406ce6f98167cb65c65ee1e8fbb7a366125934e28b
|
||||
EBUILD ncompress-5.0.ebuild 756 BLAKE2B 6368d22eced6c197e6eca19db29989e6320f37858f71cb2a4dce56d80eb0ba10c294a498556fdd88f3671bd3eb5c34799ed7ee88c0878ece955ab2b992d91759 SHA512 9332b53efc5df725a3c3a2ac2de3fd36b46596edf888fc8890cecd85a9625cf3183794aa01e0b01a00353bbac6313e6323e13204e5613fc7578aa73b8ff9a818
|
||||
MISC metadata.xml 393 BLAKE2B 24133518bbc568fc7861bb255fcd6ebb34d8ed24912889ac7df4f0517f34fcb281a3eff0c75d5a285891f820956b680270b42cdb1f5cf7a417f43241b46d392f SHA512 7b5f6f0ea16f60fb9b05d9a27701b56e80b62c8e9d1fbf05ecc75015f51dc010f53546661013ec36831051985360e21fb374bc8b5006ecc14f707f9b715fe745
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST pigz-2.6.tar.gz 106840 BLAKE2B 8e1a8ca593896fc947a7d6ffaa71d9be69d347f7cf1ed2f635b8480aa05708f4679a4768cf3a18ac515ea94dd8352dd4158bd3c9d1b6fdebd82ad1b582d04cba SHA512 04d2e44bc7a7eb061c3c48100ce5b8fc79931aeac72340abd768fd2a4499ff1004e2bc009772fc2003a4c599f6e90f3abc8bef5c377d6397f1c8e9f7c49f95e2
|
||||
DIST pigz-2.7.tar.gz 108102 BLAKE2B d391522fd6f8eb6918d671fb1c9517034941f3ae8e05ffcd7bece141e6dae110cde1560bad02bd2bcca2f868cdba2a8a16b5606ad6637d40d5ced5ec9bfffcc8 SHA512 9f9f61de4a0307fc057dc4e31a98bd8d706d9e709ecde0be02a871534fddf6a1fe1321158aa72708603aaaece43f83d2423b127f7689b6219b23aea4f989e8f5
|
||||
EBUILD pigz-2.6.ebuild 966 BLAKE2B 0ab657b6c18b981f9b608b1b7bdfecd54edc83ecb3b2d36f712b84c4c042ed31d2453621d121f173b4f7964d70c6e6c4a6287e2b492cdeee92adabb84e858191 SHA512 204512015258a1db29827415d7a27a09bbbf52f0f3ddaed3bf7e1602416317fb0bca526e45d7b9c7d0040520d22c9cb5f0cae580150977fd70525c0b346b4063
|
||||
EBUILD pigz-2.6.ebuild 965 BLAKE2B f238267fd6360bb0041821f69a383b0157bde1428614b3f83506fb8f75aa021d64c79ae401805e2b287ed96ea836f519e636b090cb7e5b5503a72a68f0771800 SHA512 f96e775caf6a88c49f800a68df13a170608c0def6c3bf3d05d768441ea262a74b8097733ce33427b26542300683d85ac22271309245c730f56b782944028b9ea
|
||||
EBUILD pigz-2.7.ebuild 973 BLAKE2B 6e78189b7cca66ce5b99841ce49bb1a7c62dcc54e952c8ab5b91536c6debac0061ee8544b29d9c6e613cecb82002f84eb62666d6181df18555b78fac4d40ecc7 SHA512 43f7e84e30292b12e40bb57a84ba17cf3366ac82e8cfce9a5de3a87945c4f6c4642c935353651c4aae2d415b8581d2d9101e951a6b6770db305e197ef6ef39a9
|
||||
MISC metadata.xml 740 BLAKE2B f16110bdf40040ccabd1674c4eab628d44b019d6b17174b286e5bdeb0e2817ade6898202afccf02461ae6adfea61ffa41a8345d9b88234fbf3b0e5d41a396aa8 SHA512 7779fb38f750f9a3dee07e26cbd37d9cc5228422168a8cd59091c452969d7384d611b8153d87311ca922702e76a697f0a5c233c0e947ad4c2ac076453376d61f
|
||||
|
Binary file not shown.
@ -1,5 +1,4 @@
|
||||
DIST khal-0.10.1.tar.gz 173636 BLAKE2B 97158bc78dfbda3a3555df3588c61f6a5e8b20d71921099a74ba997eb7ccef05ed931e930afbb09f9c125f3e0e782143dd2cdf4d0da6bd09952765b9117d6ac4 SHA512 5b81a60099c201fa112ab17740b73edb17b29efa1548086766d57d9d595451e7d779aad5a2ce7a2afc78050116782ff6696c4bd284021a5e12c87fe361d15e47
|
||||
DIST khal-0.10.2.tar.gz 182534 BLAKE2B 0c7c4ab1234ebe90ef9ad8291f2a0087a3f6a60d25f5426445eedadb25f236b3598dacc051e959a108ad472efc56628bf7ba11ed714c885d956f1a8f905029ca SHA512 e15449b73175190f02b6fe5774a8feef8a5390966da3836624c94a044d146cc6e8a73985d991042fbb617f736c6759ded387a65292529e71f5b2f34bc80a686e
|
||||
EBUILD khal-0.10.1-r3.ebuild 1180 BLAKE2B 95253a48aede5078a011d1b5e0dcaff0fad65385f5564aafb716361f63b38202851f2c4a501a4914dc5a91475fd35dc6a0a3be8cc8024dcdbe70de5b8c5049ce SHA512 3b2b621c7a1dd9b8a23c7da6e7b6fd9d1462ea89fc7b5b21a3e8317c6945f9f990539f82ba0a677b39211ec5074a3a5258d9ca5a17da6b0bca9c478c11bdd097
|
||||
EBUILD khal-0.10.2-r2.ebuild 1186 BLAKE2B 7ff0a112e53f9c32bb503820820c9f2881715ffeb9e4576c0f34dbd2e0fdd80c5df47ee53e0f464c62c642b05a895ce0ab1a994741602168770a582101411c8a SHA512 6e64c68fc2b6b7f0aaa66a2495f92394778c635d928bbf42e2a91623210e1ab3a45546267fadc05d53ff1edfa81bf7dd40230b09e2146a5dc6e43b9dd8ba35e1
|
||||
AUX khal-0.10.4-add-etag.patch 417 BLAKE2B 2eadf7cb5ba1a4bd179a4f8b37278407819de7f798ce9f23723a11694fe9954bb67a267932d85416644a7dcf09544d13ca0107c02c832e63d36122cdab1e00f9 SHA512 ff5cd23b3351e474f8d9327bee52733587f8e5f8ab8973beff3736bd59af017865512c53b0c42b81f1b4fbb8212099b2d0d3751aa67e190f0e57349ffedd87b2
|
||||
DIST khal-0.10.4.tar.gz 185736 BLAKE2B 0cb9deb793f577bbcedcbba4788988973ee9d0ab71fdd30a01142a54434767d74b1d10e5bfa5f6a2feb9f18a8a9fe22717d4a38a07ab5e30b331c87b79a79f39 SHA512 b32f1bfe5d3a3976278726a6570eb345a5ad44f63a52b75f045fd0509d145edd5b76e11a10acffd9c3982edc124f93daec34a37c39299c2311796c0314016eb6
|
||||
EBUILD khal-0.10.4.ebuild 1309 BLAKE2B 6e434cf11da9566a73c8332178c191d412bc630b3eadb74817e6c0db2053e1077379f3c3ac21880fb43628073ef872eeab1ff79de851cf730c1c34326f3b7924 SHA512 2812692b896baa76082173b808995ee8b0ec54fa2a88101b27de63198bbe86bc3141e002754f1f0bd130d8b94ff7db8b0541f995ce87558a5d8e77fe3cc56873
|
||||
MISC metadata.xml 285 BLAKE2B 5e4543b327c8dc84cecfda51b540cccf8722c584a44ce5146beb390ccb3105af8789c8dfefe614e92723eb12a3c167baab09d6e83bd1d7ad2feb3f5ae31f7c81 SHA512 6309634c2ea8e5cbe7ce1627098b90fc90ae12829000332f83e967dd3ef1677dc807b78332cc9c790155323086d901b9db1c5acb23252c1f5e5d241d8b0b73d9
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- a/khal/ui/__init__.py 2022-02-02 16:30:20.507169060 +0100
|
||||
+++ b/khal/ui/__init__.py 2022-02-02 16:30:46.497378047 +0100
|
||||
@@ -1109,6 +1109,7 @@
|
||||
account, href, etag = part.split('\n', 2)
|
||||
event = self.collection.get_event(href, account)
|
||||
event.delete_instance(rec_id)
|
||||
+ event.etag = etag
|
||||
self.collection.update(event)
|
||||
|
||||
def keypress(self, size, key):
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_8 )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A CalDAV based calendar"
|
||||
HOMEPAGE="http://lostpackets.de/khal/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
RDEPEND=">=dev-python/click-3.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/click-log-0.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/icalendar-4.0.3[${PYTHON_USEDEP}]
|
||||
dev-python/urwid[${PYTHON_USEDEP}]
|
||||
dev-python/pyxdg[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
dev-python/configobj[${PYTHON_USEDEP}]
|
||||
>=dev-python/atomicwrites-0.1.7[${PYTHON_USEDEP}]
|
||||
<dev-python/tzlocal-3[${PYTHON_USEDEP}]
|
||||
dev-python/setproctitle[${PYTHON_USEDEP}]"
|
||||
BDEPEND=">dev-python/setuptools_scm-1.12.0[${PYTHON_USEDEP}]
|
||||
dev-python/vdirsyncer[${PYTHON_USEDEP}]
|
||||
dev-python/freezegun[${PYTHON_USEDEP}]"
|
||||
|
||||
DOCS=( AUTHORS.txt CHANGELOG.rst CONTRIBUTING.rst README.rst khal.conf.sample )
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins misc/__khal
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,15 +1,5 @@
|
||||
AUX sqlite-3.35.0-build_1.1.patch 9731 BLAKE2B e0d0e53847f272ddde038115d27d3b0595ec3aafaee0f7aef4bd0d1e3a0287f5e27c02957b7bb882462d3a2f00d683c7f0250a9d22aaea86212c836d52e9f5e9 SHA512 9aeecc2fd77440403e74d31367aca53885811e9b74f909a27105475ab4263a30e85f85ab1d471ac73c83774e570021556c3b747be0ac8bce9a9dc422dbd8a8b0
|
||||
AUX sqlite-3.35.0-build_1.2.patch 14036 BLAKE2B 42b1aa12f1aa0be10f565a5da09c5c1d4f78692f2a89918cb0714ebae536d60e9f5aea09fc325032cd56655fc5dd9abb566b6e962128c65f4296e5d299e1bde7 SHA512 d81dd506d06a54c6120f98a22922409e8f9b285d7b2f33630a71ef89d455a87356289363d9a7c4390422288c42855a0655e1d72b3aa51af8f37b7eb46e94e269
|
||||
AUX sqlite-3.35.0-build_2.1.patch 11089 BLAKE2B 54192c90a19f08ef05a9276b54a66b782aa23aaf6580bac5d94e48c72e96903e5328968bbce8145e5953e0e9f7a22d6bcf9fc9268817f4dab2466dc27a928db0 SHA512 11c8463c8282e92c3276578433f5ac0073ca935162dbc717ad0a22750f22af3c4ce87037da42c604c98b77ec88ef1f4f5e1073f8c257aaa3c2106c7dfa6992a8
|
||||
AUX sqlite-3.35.0-build_2.2.patch 12207 BLAKE2B cb8295b8ca8f1f38ebf130f5e32dd2b07dbb57bad7679ecda263bfe8e4e586864a69b9035a69c2579b1e9080322a26f3a4ce01c8bf066da16c7550938400e8d2 SHA512 094b1e5442743ec6020f1621bb1c3ca9f52434f8c83f1c237e345cafc7ec530c66244f4f0e1aa80416fcd85582fcb50a15ce8c93ab8967f6dfcd9fb9aa4012bd
|
||||
AUX sqlite-3.37.0-configure-amalgamation.patch 1319 BLAKE2B a302198a961ecaabc4383e659979c52c8b6cad9ce3f46c1958b17723b319136e5c0345afe78cb398c499d2077ec66c7ca190a3cd95ad0687520b70c407603345 SHA512 96b8011881c4badb3e5eb4f686170e86340dbe6db563cddadf3bf385302e8e0a695e9dc68781e58e606192b168b0a9b6cec335c54de3fe7b6c15bda3d2f9e2b1
|
||||
DIST sqlite-doc-3350500.zip 10205830 BLAKE2B e078713786522f8da7984df6ddf62671c24ec5381cac88fe976c97fcdf4800cff8dc1a595df9c9010c687c9929cb5ab070957f8ccbc0b5e8bd7add88ae9a0514 SHA512 2da5357623f4db7003f46ec7ea8bdd8a794ad6e1be9a25a8ebccfe5222da43eabc32d9d17acfd7766aa4cf1fd010e476a8087fab78ac6f6596c7c5b8a06de685
|
||||
DIST sqlite-doc-3370000.zip 6094848 BLAKE2B 7008936db7a744ace0e8ce10b7b3386d6075589fa1c178449c1065592f3a90f3325eed2d978e946e1766685814ad84ab39a20bcd1b94ea4cf2afb1a5952ec82b SHA512 37a764ba98d855a726998754605b501cdc887e02edbc75c19eab01916cea9659cf3bbf4baa120e3de2fbe298d00dd6ff1a09966f3a69b39f67c23baa94a67f01
|
||||
DIST sqlite-doc-3370200.zip 10542395 BLAKE2B 129ae0bac8099eb2571cc31ded186ed6c166c1b31af493047608ffb63ac7a90ccbaa5df733661c92660d2436bab6e3796f92e42ac8bb4154ff15212afc74b9b0 SHA512 02c68a3906aee3fd05a4340549144032a239e5ab885d9b3b09236ed2b74a90c770de373e4ca9f99e72f92df090d0fb6789213fb361e954d9dd6709af20336857
|
||||
DIST sqlite-src-3350500.zip 12819198 BLAKE2B 0f0d39cd663d78a3c698df62dd533019c32244e8c998e625354cb069f5839cc374476b825e2e2a6408916301333a9954c0c7b9cbab5493522fdffe8859f9b6a5 SHA512 f9afd11b3c42a8241f91e2ecafc3928e7391cc0f1fbee236b8122c2d3ca922d0c82d2605968b131351b6c5e38f983f8eed29b86c94cfa72799e2387b3b3db561
|
||||
DIST sqlite-src-3370000.zip 13141152 BLAKE2B 72e3ba37dcc1e10ab822ce080319c98e67aae5092946fb32c0da02bf3fd50e043c0e35b807270f2f20aee5fd53ecdf125113571f807f2facf1d9033f5e84d7a6 SHA512 5a3c358c42782bc248a0795ca78a10d834861f98ab0a021a05d8358ba1716f3febb3da29ded187dfd205902f77bbf284ed3207aabe4979b68b90d0557d1676f7
|
||||
DIST sqlite-src-3370200.zip 13145234 BLAKE2B 296eb8ac0e83552c348847ea1d0b06ce1b610ca1f53d8b56fa872196ccdc29c343a3b5cc671716854950c97425f8a5b78968e1b22c137ea1ff3bf386e94d8acc SHA512 2db103965934bb34c8336cf82ff7d77e75dc1ca00fa6324ac5697f3bf4b41bffff355dec7593515a68816449e5c9827a9503f6d7841c4c13981c231d3414ff76
|
||||
EBUILD sqlite-3.35.5.ebuild 12985 BLAKE2B 09e7ce9ba2d0ce36aaea8fd8fb2c3886eaccf0bffe3e756273fd84aead4ae1dda99c76865745f77907bf9bc32f8600becb8fe6af3e593148e2cda050bfc6437c SHA512 71b522aaf44c07f4632877c3626f260659477df560a5ac647e698794967b5554e382abfe5aba5df4f73adbed685a806d34486ee5a1a458c15faa1b34cfee959f
|
||||
EBUILD sqlite-3.37.0.ebuild 12993 BLAKE2B 759e75795eaaeac75fa7e70a7b0c13ef48a589c3ed6a1355fd842eaa9b6fe2403912c0a7acab52265191b701b76a7c08815609f286fd40b75cf23ef5704159f4 SHA512 7e62c74a728e6e713e34431f85c0904a6c38d23b672ca5e62f425982784e6eb1e80023264f7b5181c9098f24ce9e010ff3719b8beb272cd81ac163599f99cf17
|
||||
EBUILD sqlite-3.37.2.ebuild 12919 BLAKE2B 69decab1fb8d5b9815597b35ac4442d16afa82583431dcba1daa054f7264ed19f4517be3f2c408055ca472d1bb28ed58ea96718bae0ae6888be8158ef892521d SHA512 b06119380784525486934d74c0e9cb0df74197d03959f60ff2d2cbd87d5a30e9fa9e5f08adfed0ae8e3002a3309bcbe9a727f95d71f7e4c19eda6db79f366df8
|
||||
MISC metadata.xml 771 BLAKE2B 34887e6d8a43fde66998787bfb3ca4bda644918a3a80afc650546547f132a9ff482a955ea5df8dded47a971a317be099bf5d9708a00ab25f00f78b714c3ed521 SHA512 e5955f59348abdee15c7fcaff38c220ab0ad84a717600525686e33a1fb7d29498c5b510d81c87ca49d48d7d11da782cf3840f38f1d4bd0e696fd7166aedeb597
|
||||
|
@ -1,375 +0,0 @@
|
||||
Add initialization functions for internal usage in libsqlite3.so.
|
||||
|
||||
SQLite revision: acd63062eb06748bfe9e4886639e4f2b54ea6a496a83f10716abbaba4115500b
|
||||
|
||||
--- /ext/misc/amatch.c
|
||||
+++ /ext/misc/amatch.c
|
||||
@@ -1480,9 +1480,18 @@
|
||||
|
||||
#endif /* SQLITE_OMIT_VIRTUALTABLE */
|
||||
|
||||
+int sqlite3AmatchInit(sqlite3 *db){
|
||||
+ int rc = SQLITE_OK;
|
||||
+#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
+ rc = sqlite3_create_module(db, "approximate_match", &amatchModule, 0);
|
||||
+#endif /* SQLITE_OMIT_VIRTUALTABLE */
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
/*
|
||||
** Register the amatch virtual table
|
||||
*/
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -1491,11 +1500,8 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
- int rc = SQLITE_OK;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
(void)pzErrMsg; /* Not used */
|
||||
-#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
- rc = sqlite3_create_module(db, "approximate_match", &amatchModule, 0);
|
||||
-#endif /* SQLITE_OMIT_VIRTUALTABLE */
|
||||
- return rc;
|
||||
+ return sqlite3AmatchInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/carray.c
|
||||
+++ /ext/misc/carray.c
|
||||
@@ -498,16 +498,8 @@
|
||||
|
||||
#endif /* SQLITE_OMIT_VIRTUALTABLE */
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_carray_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3CarrayInit(sqlite3 *db){
|
||||
int rc = SQLITE_OK;
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
rc = sqlite3_create_module(db, "carray", &carrayModule, 0);
|
||||
#ifdef SQLITE_TEST
|
||||
@@ -519,3 +511,18 @@
|
||||
#endif /* SQLITE_OMIT_VIRTUALTABLE */
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_carray_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3CarrayInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/completion.c
|
||||
+++ /ext/misc/completion.c
|
||||
@@ -483,12 +483,13 @@
|
||||
return rc;
|
||||
}
|
||||
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
int sqlite3_completion_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
int rc = SQLITE_OK;
|
||||
@@ -499,3 +500,4 @@
|
||||
#endif
|
||||
return rc;
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/csv.c
|
||||
+++ /ext/misc/csv.c
|
||||
@@ -928,6 +928,22 @@
|
||||
#endif /* !defined(SQLITE_OMIT_VIRTUALTABLE) */
|
||||
|
||||
|
||||
+int sqlite3CsvInit(sqlite3 *db){
|
||||
+#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
+ int rc;
|
||||
+ rc = sqlite3_create_module(db, "csv", &CsvModule, 0);
|
||||
+#ifdef SQLITE_TEST
|
||||
+ if( rc==SQLITE_OK ){
|
||||
+ rc = sqlite3_create_module(db, "csv_wr", &CsvModuleFauxWrite, 0);
|
||||
+ }
|
||||
+#endif
|
||||
+ return rc;
|
||||
+#else
|
||||
+ return SQLITE_OK;
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -941,17 +957,8 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
-#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
- int rc;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
- rc = sqlite3_create_module(db, "csv", &CsvModule, 0);
|
||||
-#ifdef SQLITE_TEST
|
||||
- if( rc==SQLITE_OK ){
|
||||
- rc = sqlite3_create_module(db, "csv_wr", &CsvModuleFauxWrite, 0);
|
||||
- }
|
||||
-#endif
|
||||
- return rc;
|
||||
-#else
|
||||
- return SQLITE_OK;
|
||||
-#endif
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3CsvInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/dbdata.c
|
||||
+++ /ext/misc/dbdata.c
|
||||
@@ -803,7 +803,7 @@
|
||||
/*
|
||||
** Invoke this routine to register the "sqlite_dbdata" virtual table module
|
||||
*/
|
||||
-static int sqlite3DbdataRegister(sqlite3 *db){
|
||||
+int sqlite3DbdataRegister(sqlite3 *db){
|
||||
static sqlite3_module dbdata_module = {
|
||||
0, /* iVersion */
|
||||
0, /* xCreate */
|
||||
@@ -838,6 +838,7 @@
|
||||
return rc;
|
||||
}
|
||||
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -849,3 +850,4 @@
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
return sqlite3DbdataRegister(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/decimal.c
|
||||
+++ /ext/misc/decimal.c
|
||||
@@ -590,14 +590,7 @@
|
||||
decimal_free(pB);
|
||||
}
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_decimal_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3DecimalInit(sqlite3 *db){
|
||||
int rc = SQLITE_OK;
|
||||
static const struct {
|
||||
const char *zFuncName;
|
||||
@@ -611,10 +604,6 @@
|
||||
{ "decimal_mul", 2, decimalMulFunc },
|
||||
};
|
||||
unsigned int i;
|
||||
- (void)pzErrMsg; /* Unused parameter */
|
||||
-
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
-
|
||||
for(i=0; i<sizeof(aFunc)/sizeof(aFunc[0]) && rc==SQLITE_OK; i++){
|
||||
rc = sqlite3_create_function(db, aFunc[i].zFuncName, aFunc[i].nArg,
|
||||
SQLITE_UTF8|SQLITE_INNOCUOUS|SQLITE_DETERMINISTIC,
|
||||
@@ -632,3 +621,20 @@
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_decimal_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+
|
||||
+ return sqlite3DecimalInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/eval.c
|
||||
+++ /ext/misc/eval.c
|
||||
@@ -102,6 +102,20 @@
|
||||
}
|
||||
|
||||
|
||||
+int sqlite3EvalInit(sqlite3 *db){
|
||||
+ int rc = SQLITE_OK;
|
||||
+ rc = sqlite3_create_function(db, "eval", 1,
|
||||
+ SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
|
||||
+ sqlEvalFunc, 0, 0);
|
||||
+ if( rc==SQLITE_OK ){
|
||||
+ rc = sqlite3_create_function(db, "eval", 2,
|
||||
+ SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
|
||||
+ sqlEvalFunc, 0, 0);
|
||||
+ }
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -110,16 +124,8 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
- int rc = SQLITE_OK;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
(void)pzErrMsg; /* Unused parameter */
|
||||
- rc = sqlite3_create_function(db, "eval", 1,
|
||||
- SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
|
||||
- sqlEvalFunc, 0, 0);
|
||||
- if( rc==SQLITE_OK ){
|
||||
- rc = sqlite3_create_function(db, "eval", 2,
|
||||
- SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
|
||||
- sqlEvalFunc, 0, 0);
|
||||
- }
|
||||
- return rc;
|
||||
+ return sqlite3EvalInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/fileio.c
|
||||
+++ /ext/misc/fileio.c
|
||||
@@ -340,7 +340,7 @@
|
||||
** This function does the work for the writefile() UDF. Refer to
|
||||
** header comments at the top of this file for details.
|
||||
*/
|
||||
-static int writeFile(
|
||||
+static int writeFileContents(
|
||||
sqlite3_context *pCtx, /* Context to return bytes written in */
|
||||
const char *zFile, /* File to write */
|
||||
sqlite3_value *pData, /* Data to write */
|
||||
@@ -480,10 +480,10 @@
|
||||
mtime = sqlite3_value_int64(argv[3]);
|
||||
}
|
||||
|
||||
- res = writeFile(context, zFile, argv[1], mode, mtime);
|
||||
+ res = writeFileContents(context, zFile, argv[1], mode, mtime);
|
||||
if( res==1 && errno==ENOENT ){
|
||||
if( makeDirectory(zFile)==SQLITE_OK ){
|
||||
- res = writeFile(context, zFile, argv[1], mode, mtime);
|
||||
+ res = writeFileContents(context, zFile, argv[1], mode, mtime);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -970,18 +970,9 @@
|
||||
# define fsdirRegister(x) SQLITE_OK
|
||||
#endif
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_fileio_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3FileioInit(sqlite3 *db){
|
||||
int rc = SQLITE_OK;
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
- (void)pzErrMsg; /* Unused parameter */
|
||||
- rc = sqlite3_create_function(db, "readfile", 1,
|
||||
+ rc = sqlite3_create_function(db, "readfile", 1,
|
||||
SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
|
||||
readfileFunc, 0, 0);
|
||||
if( rc==SQLITE_OK ){
|
||||
@@ -998,3 +989,18 @@
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_fileio_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3FileioInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/ieee754.c
|
||||
+++ /ext/misc/ieee754.c
|
||||
@@ -253,14 +253,7 @@
|
||||
}
|
||||
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_ieee_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3IeeeInit(sqlite3 *db){
|
||||
static const struct {
|
||||
char *zFName;
|
||||
int nArg;
|
||||
@@ -277,13 +270,26 @@
|
||||
};
|
||||
unsigned int i;
|
||||
int rc = SQLITE_OK;
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
- (void)pzErrMsg; /* Unused parameter */
|
||||
for(i=0; i<sizeof(aFunc)/sizeof(aFunc[0]) && rc==SQLITE_OK; i++){
|
||||
- rc = sqlite3_create_function(db, aFunc[i].zFName, aFunc[i].nArg,
|
||||
+ rc = sqlite3_create_function(db, aFunc[i].zFName, aFunc[i].nArg,
|
||||
SQLITE_UTF8|SQLITE_INNOCUOUS,
|
||||
(void*)&aFunc[i].iAux,
|
||||
aFunc[i].xFunc, 0, 0);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_ieee_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3IeeeInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
@ -1,500 +0,0 @@
|
||||
Add initialization functions for internal usage in libsqlite3.so.
|
||||
|
||||
SQLite revision: acd63062eb06748bfe9e4886639e4f2b54ea6a496a83f10716abbaba4115500b
|
||||
|
||||
--- /ext/misc/nextchar.c
|
||||
+++ /ext/misc/nextchar.c
|
||||
@@ -286,17 +286,8 @@
|
||||
sqlite3_free(c.aResult);
|
||||
}
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_nextchar_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3NextcharInit(sqlite3 *db){
|
||||
int rc = SQLITE_OK;
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
- (void)pzErrMsg; /* Unused parameter */
|
||||
rc = sqlite3_create_function(db, "next_char", 3,
|
||||
SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
nextCharFunc, 0, 0);
|
||||
@@ -312,3 +303,18 @@
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_nextchar_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3NextcharInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/percentile.c
|
||||
+++ /ext/misc/percentile.c
|
||||
@@ -202,6 +202,15 @@
|
||||
}
|
||||
|
||||
|
||||
+int sqlite3PercentileInit(sqlite3 *db){
|
||||
+ int rc = SQLITE_OK;
|
||||
+ rc = sqlite3_create_function(db, "percentile", 2,
|
||||
+ SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
+ 0, percentStep, percentFinal);
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -210,11 +219,8 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
- int rc = SQLITE_OK;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
(void)pzErrMsg; /* Unused parameter */
|
||||
- rc = sqlite3_create_function(db, "percentile", 2,
|
||||
- SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
- 0, percentStep, percentFinal);
|
||||
- return rc;
|
||||
+ return sqlite3PercentileInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/regexp.c
|
||||
+++ /ext/misc/regexp.c
|
||||
@@ -740,10 +740,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
+int sqlite3RegexpInit(sqlite3 *db){
|
||||
+ int rc = SQLITE_OK;
|
||||
+ rc = sqlite3_create_function(db, "regexp", 2, SQLITE_UTF8|SQLITE_INNOCUOUS,
|
||||
+ 0, re_sql_func, 0, 0);
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
/*
|
||||
** Invoke this routine to register the regexp() function with the
|
||||
** SQLite database connection.
|
||||
*/
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -752,9 +760,8 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
- int rc = SQLITE_OK;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
- rc = sqlite3_create_function(db, "regexp", 2, SQLITE_UTF8|SQLITE_INNOCUOUS,
|
||||
- 0, re_sql_func, 0, 0);
|
||||
- return rc;
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3RegexpInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/series.c
|
||||
+++ /ext/misc/series.c
|
||||
@@ -423,6 +423,15 @@
|
||||
|
||||
#endif /* SQLITE_OMIT_VIRTUALTABLE */
|
||||
|
||||
+int sqlite3SeriesInit(sqlite3 *db){
|
||||
+ int rc = SQLITE_OK;
|
||||
+#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
+ rc = sqlite3_create_module(db, "generate_series", &seriesModule, 0);
|
||||
+#endif
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -431,7 +440,6 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
- int rc = SQLITE_OK;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
if( sqlite3_libversion_number()<3008012 ){
|
||||
@@ -439,7 +447,7 @@
|
||||
"generate_series() requires SQLite 3.8.12 or later");
|
||||
return SQLITE_ERROR;
|
||||
}
|
||||
- rc = sqlite3_create_module(db, "generate_series", &seriesModule, 0);
|
||||
#endif
|
||||
- return rc;
|
||||
+ return sqlite3SeriesInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/sha1.c
|
||||
+++ /ext/misc/sha1.c
|
||||
@@ -175,7 +175,7 @@
|
||||
}
|
||||
|
||||
/* Compute a string using sqlite3_vsnprintf() and hash it */
|
||||
-static void hash_step_vformat(
|
||||
+static void sha1_hash_step_vformat(
|
||||
SHA1Context *p, /* Add content to this context */
|
||||
const char *zFormat,
|
||||
...
|
||||
@@ -306,7 +306,7 @@
|
||||
nCol = sqlite3_column_count(pStmt);
|
||||
z = sqlite3_sql(pStmt);
|
||||
n = (int)strlen(z);
|
||||
- hash_step_vformat(&cx,"S%d:",n);
|
||||
+ sha1_hash_step_vformat(&cx,"S%d:",n);
|
||||
hash_step(&cx,(unsigned char*)z,n);
|
||||
|
||||
/* Compute a hash over the result of the query */
|
||||
@@ -349,14 +349,14 @@
|
||||
case SQLITE_TEXT: {
|
||||
int n2 = sqlite3_column_bytes(pStmt, i);
|
||||
const unsigned char *z2 = sqlite3_column_text(pStmt, i);
|
||||
- hash_step_vformat(&cx,"T%d:",n2);
|
||||
+ sha1_hash_step_vformat(&cx,"T%d:",n2);
|
||||
hash_step(&cx, z2, n2);
|
||||
break;
|
||||
}
|
||||
case SQLITE_BLOB: {
|
||||
int n2 = sqlite3_column_bytes(pStmt, i);
|
||||
const unsigned char *z2 = sqlite3_column_blob(pStmt, i);
|
||||
- hash_step_vformat(&cx,"B%d:",n2);
|
||||
+ sha1_hash_step_vformat(&cx,"B%d:",n2);
|
||||
hash_step(&cx, z2, n2);
|
||||
break;
|
||||
}
|
||||
@@ -370,6 +370,20 @@
|
||||
}
|
||||
|
||||
|
||||
+int sqlite3ShaInit(sqlite3 *db){
|
||||
+ int rc = SQLITE_OK;
|
||||
+ rc = sqlite3_create_function(db, "sha1", 1,
|
||||
+ SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC,
|
||||
+ 0, sha1Func, 0, 0);
|
||||
+ if( rc==SQLITE_OK ){
|
||||
+ rc = sqlite3_create_function(db, "sha1_query", 1,
|
||||
+ SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
|
||||
+ sha1QueryFunc, 0, 0);
|
||||
+ }
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -378,16 +392,8 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
- int rc = SQLITE_OK;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
(void)pzErrMsg; /* Unused parameter */
|
||||
- rc = sqlite3_create_function(db, "sha1", 1,
|
||||
- SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC,
|
||||
- 0, sha1Func, 0, 0);
|
||||
- if( rc==SQLITE_OK ){
|
||||
- rc = sqlite3_create_function(db, "sha1_query", 1,
|
||||
- SQLITE_UTF8|SQLITE_DIRECTONLY, 0,
|
||||
- sha1QueryFunc, 0, 0);
|
||||
- }
|
||||
- return rc;
|
||||
+ return sqlite3ShaInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/shathree.c
|
||||
+++ /ext/misc/shathree.c
|
||||
@@ -530,7 +530,7 @@
|
||||
/* Compute a string using sqlite3_vsnprintf() with a maximum length
|
||||
** of 50 bytes and add it to the hash.
|
||||
*/
|
||||
-static void hash_step_vformat(
|
||||
+static void sha3_hash_step_vformat(
|
||||
SHA3Context *p, /* Add content to this context */
|
||||
const char *zFormat,
|
||||
...
|
||||
@@ -626,7 +626,7 @@
|
||||
z = sqlite3_sql(pStmt);
|
||||
if( z ){
|
||||
n = (int)strlen(z);
|
||||
- hash_step_vformat(&cx,"S%d:",n);
|
||||
+ sha3_hash_step_vformat(&cx,"S%d:",n);
|
||||
SHA3Update(&cx,(unsigned char*)z,n);
|
||||
}
|
||||
|
||||
@@ -670,14 +670,14 @@
|
||||
case SQLITE_TEXT: {
|
||||
int n2 = sqlite3_column_bytes(pStmt, i);
|
||||
const unsigned char *z2 = sqlite3_column_text(pStmt, i);
|
||||
- hash_step_vformat(&cx,"T%d:",n2);
|
||||
+ sha3_hash_step_vformat(&cx,"T%d:",n2);
|
||||
SHA3Update(&cx, z2, n2);
|
||||
break;
|
||||
}
|
||||
case SQLITE_BLOB: {
|
||||
int n2 = sqlite3_column_bytes(pStmt, i);
|
||||
const unsigned char *z2 = sqlite3_column_blob(pStmt, i);
|
||||
- hash_step_vformat(&cx,"B%d:",n2);
|
||||
+ sha3_hash_step_vformat(&cx,"B%d:",n2);
|
||||
SHA3Update(&cx, z2, n2);
|
||||
break;
|
||||
}
|
||||
@@ -690,17 +690,8 @@
|
||||
}
|
||||
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_shathree_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3ShathreeInit(sqlite3 *db){
|
||||
int rc = SQLITE_OK;
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
- (void)pzErrMsg; /* Unused parameter */
|
||||
rc = sqlite3_create_function(db, "sha3", 1,
|
||||
SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC,
|
||||
0, sha3Func, 0, 0);
|
||||
@@ -721,3 +712,18 @@
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_shathree_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3ShathreeInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/sqlar.c
|
||||
+++ /ext/misc/sqlar.c
|
||||
@@ -14,6 +14,8 @@
|
||||
** for working with sqlar archives and used by the shell tool's built-in
|
||||
** sqlar support.
|
||||
*/
|
||||
+#ifdef SQLITE_HAVE_ZLIB
|
||||
+
|
||||
#include "sqlite3ext.h"
|
||||
SQLITE_EXTENSION_INIT1
|
||||
#include <zlib.h>
|
||||
@@ -101,6 +103,20 @@
|
||||
}
|
||||
|
||||
|
||||
+int sqlite3SqlarInit(sqlite3 *db){
|
||||
+ int rc = SQLITE_OK;
|
||||
+ rc = sqlite3_create_function(db, "sqlar_compress", 1,
|
||||
+ SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
+ sqlarCompressFunc, 0, 0);
|
||||
+ if( rc==SQLITE_OK ){
|
||||
+ rc = sqlite3_create_function(db, "sqlar_uncompress", 2,
|
||||
+ SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
+ sqlarUncompressFunc, 0, 0);
|
||||
+ }
|
||||
+ return rc;
|
||||
+}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -109,16 +125,10 @@
|
||||
char **pzErrMsg,
|
||||
const sqlite3_api_routines *pApi
|
||||
){
|
||||
- int rc = SQLITE_OK;
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
(void)pzErrMsg; /* Unused parameter */
|
||||
- rc = sqlite3_create_function(db, "sqlar_compress", 1,
|
||||
- SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
- sqlarCompressFunc, 0, 0);
|
||||
- if( rc==SQLITE_OK ){
|
||||
- rc = sqlite3_create_function(db, "sqlar_uncompress", 2,
|
||||
- SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
- sqlarUncompressFunc, 0, 0);
|
||||
- }
|
||||
- return rc;
|
||||
+ return sqlite3SqlarInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
+
|
||||
+#endif /* SQLITE_HAVE_ZLIB */
|
||||
--- /ext/misc/totype.c
|
||||
+++ /ext/misc/totype.c
|
||||
@@ -491,17 +491,8 @@
|
||||
#pragma warning(default: 4748)
|
||||
#endif
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_totype_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3TotypeInit(sqlite3 *db){
|
||||
int rc = SQLITE_OK;
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
- (void)pzErrMsg; /* Unused parameter */
|
||||
rc = sqlite3_create_function(db, "tointeger", 1,
|
||||
SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS, 0,
|
||||
tointegerFunc, 0, 0);
|
||||
@@ -512,3 +503,18 @@
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_totype_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3TotypeInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/uint.c
|
||||
+++ /ext/misc/uint.c
|
||||
@@ -78,6 +78,11 @@
|
||||
return (nKey1 - i) - (nKey2 - j);
|
||||
}
|
||||
|
||||
+int sqlite3UintInit(sqlite3 *db){
|
||||
+ return sqlite3_create_collation(db, "UINT", SQLITE_UTF8, 0, uintCollFunc);
|
||||
+}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -88,5 +93,6 @@
|
||||
){
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
(void)pzErrMsg; /* Unused parameter */
|
||||
- return sqlite3_create_collation(db, "uint", SQLITE_UTF8, 0, uintCollFunc);
|
||||
+ return sqlite3UintInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/uuid.c
|
||||
+++ /ext/misc/uuid.c
|
||||
@@ -206,21 +206,12 @@
|
||||
sqlite3_result_blob(context, pBlob, 16, SQLITE_TRANSIENT);
|
||||
}
|
||||
|
||||
-#ifdef _WIN32
|
||||
-__declspec(dllexport)
|
||||
-#endif
|
||||
-int sqlite3_uuid_init(
|
||||
- sqlite3 *db,
|
||||
- char **pzErrMsg,
|
||||
- const sqlite3_api_routines *pApi
|
||||
-){
|
||||
+int sqlite3UuidInit(sqlite3 *db){
|
||||
int rc = SQLITE_OK;
|
||||
- SQLITE_EXTENSION_INIT2(pApi);
|
||||
- (void)pzErrMsg; /* Unused parameter */
|
||||
rc = sqlite3_create_function(db, "uuid", 0, SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
|
||||
sqlite3UuidFunc, 0, 0);
|
||||
if( rc==SQLITE_OK ){
|
||||
- rc = sqlite3_create_function(db, "uuid_str", 1,
|
||||
+ rc = sqlite3_create_function(db, "uuid_str", 1,
|
||||
SQLITE_UTF8|SQLITE_INNOCUOUS|SQLITE_DETERMINISTIC,
|
||||
0, sqlite3UuidStrFunc, 0, 0);
|
||||
}
|
||||
@@ -231,3 +222,18 @@
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
+
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
+#ifdef _WIN32
|
||||
+__declspec(dllexport)
|
||||
+#endif
|
||||
+int sqlite3_uuid_init(
|
||||
+ sqlite3 *db,
|
||||
+ char **pzErrMsg,
|
||||
+ const sqlite3_api_routines *pApi
|
||||
+){
|
||||
+ SQLITE_EXTENSION_INIT2(pApi);
|
||||
+ (void)pzErrMsg; /* Unused parameter */
|
||||
+ return sqlite3UuidInit(db);
|
||||
+}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
--- /ext/misc/zipfile.c
|
||||
+++ /ext/misc/zipfile.c
|
||||
@@ -24,6 +24,8 @@
|
||||
** * No support for zip64 extensions
|
||||
** * Only the "inflate/deflate" (zlib) compression method is supported
|
||||
*/
|
||||
+#ifdef SQLITE_HAVE_ZLIB
|
||||
+
|
||||
#include "sqlite3ext.h"
|
||||
SQLITE_EXTENSION_INIT1
|
||||
#include <stdio.h>
|
||||
@@ -2139,7 +2141,7 @@
|
||||
/*
|
||||
** Register the "zipfile" virtual table.
|
||||
*/
|
||||
-static int zipfileRegister(sqlite3 *db){
|
||||
+int sqlite3ZipfileInit(sqlite3 *db){
|
||||
static sqlite3_module zipfileModule = {
|
||||
1, /* iVersion */
|
||||
zipfileConnect, /* xCreate */
|
||||
@@ -2173,9 +2175,10 @@
|
||||
return rc;
|
||||
}
|
||||
#else /* SQLITE_OMIT_VIRTUALTABLE */
|
||||
-# define zipfileRegister(x) SQLITE_OK
|
||||
+# define sqlite3ZipfileInit(x) SQLITE_OK
|
||||
#endif
|
||||
|
||||
+#if !defined(SQLITE_CORE) || defined(SQLITE_TEST)
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
@@ -2186,5 +2189,8 @@
|
||||
){
|
||||
SQLITE_EXTENSION_INIT2(pApi);
|
||||
(void)pzErrMsg; /* Unused parameter */
|
||||
- return zipfileRegister(db);
|
||||
+ return sqlite3ZipfileInit(db);
|
||||
}
|
||||
+#endif /* !defined(SQLITE_CORE) || defined(SQLITE_TEST) */
|
||||
+
|
||||
+#endif /* SQLITE_HAVE_ZLIB */
|
@ -1,292 +0,0 @@
|
||||
Move some code to libsqlite3.so to avoid duplication.
|
||||
Link executables against libsqlite3.so.
|
||||
Increase timeout for fuzzcheck.
|
||||
Update list of optionally available functions.
|
||||
Fix building with dlopen() not available.
|
||||
|
||||
SQLite revision: acd63062eb06748bfe9e4886639e4f2b54ea6a496a83f10716abbaba4115500b
|
||||
|
||||
--- /Makefile.in
|
||||
+++ /Makefile.in
|
||||
@@ -313,6 +313,9 @@
|
||||
# Source code for extensions
|
||||
#
|
||||
SRC += \
|
||||
+ $(TOP)/ext/expert/sqlite3expert.c \
|
||||
+ $(TOP)/ext/expert/sqlite3expert.h
|
||||
+SRC += \
|
||||
$(TOP)/ext/fts1/fts1.c \
|
||||
$(TOP)/ext/fts1/fts1.h \
|
||||
$(TOP)/ext/fts1/fts1_hash.c \
|
||||
@@ -365,8 +368,29 @@
|
||||
$(TOP)/ext/rbu/sqlite3rbu.h \
|
||||
$(TOP)/ext/rbu/sqlite3rbu.c
|
||||
SRC += \
|
||||
+ $(TOP)/ext/misc/amatch.c \
|
||||
+ $(TOP)/ext/misc/appendvfs.c \
|
||||
+ $(TOP)/ext/misc/carray.c \
|
||||
+ $(TOP)/ext/misc/completion.c \
|
||||
+ $(TOP)/ext/misc/csv.c \
|
||||
+ $(TOP)/ext/misc/dbdata.c \
|
||||
+ $(TOP)/ext/misc/decimal.c \
|
||||
+ $(TOP)/ext/misc/eval.c \
|
||||
+ $(TOP)/ext/misc/fileio.c \
|
||||
+ $(TOP)/ext/misc/ieee754.c \
|
||||
$(TOP)/ext/misc/json1.c \
|
||||
- $(TOP)/ext/misc/stmt.c
|
||||
+ $(TOP)/ext/misc/nextchar.c \
|
||||
+ $(TOP)/ext/misc/percentile.c \
|
||||
+ $(TOP)/ext/misc/regexp.c \
|
||||
+ $(TOP)/ext/misc/series.c \
|
||||
+ $(TOP)/ext/misc/sha1.c \
|
||||
+ $(TOP)/ext/misc/shathree.c \
|
||||
+ $(TOP)/ext/misc/sqlar.c \
|
||||
+ $(TOP)/ext/misc/stmt.c \
|
||||
+ $(TOP)/ext/misc/totype.c \
|
||||
+ $(TOP)/ext/misc/uint.c \
|
||||
+ $(TOP)/ext/misc/uuid.c \
|
||||
+ $(TOP)/ext/misc/zipfile.c
|
||||
|
||||
# Generated source code files
|
||||
#
|
||||
@@ -437,36 +461,21 @@
|
||||
# Statically linked extensions
|
||||
#
|
||||
TESTSRC += \
|
||||
- $(TOP)/ext/expert/sqlite3expert.c \
|
||||
$(TOP)/ext/expert/test_expert.c \
|
||||
- $(TOP)/ext/misc/amatch.c \
|
||||
- $(TOP)/ext/misc/appendvfs.c \
|
||||
- $(TOP)/ext/misc/carray.c \
|
||||
$(TOP)/ext/misc/cksumvfs.c \
|
||||
$(TOP)/ext/misc/closure.c \
|
||||
- $(TOP)/ext/misc/csv.c \
|
||||
- $(TOP)/ext/misc/decimal.c \
|
||||
- $(TOP)/ext/misc/eval.c \
|
||||
$(TOP)/ext/misc/explain.c \
|
||||
- $(TOP)/ext/misc/fileio.c \
|
||||
$(TOP)/ext/misc/fuzzer.c \
|
||||
$(TOP)/ext/fts5/fts5_tcl.c \
|
||||
$(TOP)/ext/fts5/fts5_test_mi.c \
|
||||
$(TOP)/ext/fts5/fts5_test_tok.c \
|
||||
- $(TOP)/ext/misc/ieee754.c \
|
||||
$(TOP)/ext/misc/mmapwarm.c \
|
||||
- $(TOP)/ext/misc/nextchar.c \
|
||||
$(TOP)/ext/misc/normalize.c \
|
||||
- $(TOP)/ext/misc/percentile.c \
|
||||
$(TOP)/ext/misc/prefixes.c \
|
||||
- $(TOP)/ext/misc/regexp.c \
|
||||
$(TOP)/ext/misc/remember.c \
|
||||
- $(TOP)/ext/misc/series.c \
|
||||
$(TOP)/ext/misc/spellfix.c \
|
||||
- $(TOP)/ext/misc/totype.c \
|
||||
$(TOP)/ext/misc/unionvtab.c \
|
||||
$(TOP)/ext/misc/wholenumber.c \
|
||||
- $(TOP)/ext/misc/zipfile.c \
|
||||
$(TOP)/ext/userauth/userauth.c
|
||||
|
||||
# Source code to the library files needed by the test fixture
|
||||
@@ -648,25 +657,25 @@
|
||||
|
||||
libtclsqlite3.la: tclsqlite.lo libsqlite3.la
|
||||
$(LTLINK) -no-undefined -o $@ tclsqlite.lo \
|
||||
- libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
|
||||
+ libsqlite3.la @TCL_STUB_LIB_SPEC@ \
|
||||
-rpath "$(TCLLIBDIR)" \
|
||||
-version-info "8:6:8" \
|
||||
-avoid-version
|
||||
|
||||
-sqlite3$(TEXE): shell.c sqlite3.c
|
||||
- $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \
|
||||
- shell.c sqlite3.c \
|
||||
- $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
|
||||
+sqlite3$(TEXE): shell.c libsqlite3.la
|
||||
+ $(LTLINK) $(READLINE_FLAGS) -o $@ \
|
||||
+ shell.c libsqlite3.la \
|
||||
+ $(LIBREADLINE)
|
||||
|
||||
-sqldiff$(TEXE): $(TOP)/tool/sqldiff.c sqlite3.lo sqlite3.h
|
||||
- $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.lo $(TLIBS)
|
||||
+sqldiff$(TEXE): $(TOP)/tool/sqldiff.c libsqlite3.la
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c libsqlite3.la
|
||||
|
||||
-dbhash$(TEXE): $(TOP)/tool/dbhash.c sqlite3.lo sqlite3.h
|
||||
- $(LTLINK) -o $@ $(TOP)/tool/dbhash.c sqlite3.lo $(TLIBS)
|
||||
+dbhash$(TEXE): $(TOP)/tool/dbhash.c libsqlite3.la
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/dbhash.c libsqlite3.la
|
||||
|
||||
-scrub$(TEXE): $(TOP)/ext/misc/scrub.c sqlite3.lo
|
||||
+scrub$(TEXE): $(TOP)/ext/misc/scrub.c libsqlite3.la
|
||||
$(LTLINK) -o $@ -I. -DSCRUB_STANDALONE \
|
||||
- $(TOP)/ext/misc/scrub.c sqlite3.lo $(TLIBS)
|
||||
+ $(TOP)/ext/misc/scrub.c libsqlite3.la
|
||||
|
||||
srcck1$(BEXE): $(TOP)/tool/srcck1.c
|
||||
$(BCC) -o srcck1$(BEXE) $(TOP)/tool/srcck1.c
|
||||
@@ -777,7 +786,7 @@
|
||||
# Rule to build the amalgamation
|
||||
#
|
||||
sqlite3.lo: sqlite3.c
|
||||
- $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
|
||||
+ $(LTCOMPILE) $(SHELL_OPT) $(TEMP_STORE) -c sqlite3.c
|
||||
|
||||
# Rules to build the LEMON compiler generator
|
||||
#
|
||||
@@ -1083,18 +1092,6 @@
|
||||
# Source files that go into making shell.c
|
||||
SHELL_SRC = \
|
||||
$(TOP)/src/shell.c.in \
|
||||
- $(TOP)/ext/misc/appendvfs.c \
|
||||
- $(TOP)/ext/misc/completion.c \
|
||||
- $(TOP)/ext/misc/decimal.c \
|
||||
- $(TOP)/ext/misc/fileio.c \
|
||||
- $(TOP)/ext/misc/ieee754.c \
|
||||
- $(TOP)/ext/misc/series.c \
|
||||
- $(TOP)/ext/misc/shathree.c \
|
||||
- $(TOP)/ext/misc/sqlar.c \
|
||||
- $(TOP)/ext/misc/uint.c \
|
||||
- $(TOP)/ext/expert/sqlite3expert.c \
|
||||
- $(TOP)/ext/expert/sqlite3expert.h \
|
||||
- $(TOP)/ext/misc/zipfile.c \
|
||||
$(TOP)/ext/misc/memtrace.c \
|
||||
$(TOP)/src/test_windirent.c
|
||||
|
||||
@@ -1264,11 +1261,11 @@
|
||||
|
||||
# Fuzz testing
|
||||
fuzztest: fuzzcheck$(TEXE) $(FUZZDATA) sessionfuzz$(TEXE) $(TOP)/test/sessionfuzz-data1.db
|
||||
- ./fuzzcheck$(TEXE) $(FUZZDATA)
|
||||
+ ./fuzzcheck$(TEXE) --timeout 3600 $(FUZZDATA)
|
||||
./sessionfuzz$(TEXE) run $(TOP)/test/sessionfuzz-data1.db
|
||||
|
||||
valgrindfuzz: fuzzcheck$(TEXT) $(FUZZDATA) sessionfuzz$(TEXE) $(TOP)/test/sessionfuzz-data1.db
|
||||
- valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M $(FUZZDATA)
|
||||
+ valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M --timeout 3600 $(FUZZDATA)
|
||||
valgrind ./sessionfuzz$(TEXE) run $(TOP)/test/sessionfuzz-data1.db
|
||||
|
||||
# The veryquick.test TCL tests.
|
||||
@@ -1302,24 +1299,23 @@
|
||||
shelltest: $(TESTPROGS)
|
||||
./testfixture$(TEXT) $(TOP)/test/permutations.test shell
|
||||
|
||||
-sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in
|
||||
+sqlite3_analyzer.c: $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in
|
||||
$(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in >sqlite3_analyzer.c
|
||||
|
||||
-sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
|
||||
- $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
|
||||
+sqlite3_analyzer$(TEXE): sqlite3_analyzer.c libsqlite3.la
|
||||
+ $(LTLINK) sqlite3_analyzer.c -o $@ libsqlite3.la $(LIBTCL)
|
||||
|
||||
-sqltclsh.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/sqltclsh.tcl $(TOP)/ext/misc/appendvfs.c $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in
|
||||
+sqltclsh.c: $(TOP)/src/tclsqlite.c $(TOP)/tool/sqltclsh.tcl $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in
|
||||
$(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in >sqltclsh.c
|
||||
|
||||
-sqltclsh$(TEXE): sqltclsh.c
|
||||
- $(LTLINK) sqltclsh.c -o $@ $(LIBTCL) $(TLIBS)
|
||||
+sqltclsh$(TEXE): sqltclsh.c libsqlite3.la
|
||||
+ $(LTLINK) sqltclsh.c -o $@ libsqlite3.la $(LIBTCL)
|
||||
|
||||
-sqlite3_expert$(TEXE): $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c
|
||||
- $(LTLINK) $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c -o sqlite3_expert $(TLIBS)
|
||||
+sqlite3_expert$(TEXE): $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/expert.c libsqlite3.la
|
||||
+ $(LTLINK) $(TOP)/ext/expert/expert.c -o sqlite3_expert libsqlite3.la
|
||||
|
||||
CHECKER_DEPS =\
|
||||
$(TOP)/tool/mkccode.tcl \
|
||||
- sqlite3.c \
|
||||
$(TOP)/src/tclsqlite.c \
|
||||
$(TOP)/ext/repair/sqlite3_checker.tcl \
|
||||
$(TOP)/ext/repair/checkindex.c \
|
||||
@@ -1330,36 +1326,36 @@
|
||||
sqlite3_checker.c: $(CHECKER_DEPS)
|
||||
$(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/ext/repair/sqlite3_checker.c.in >$@
|
||||
|
||||
-sqlite3_checker$(TEXE): sqlite3_checker.c
|
||||
- $(LTLINK) sqlite3_checker.c -o $@ $(LIBTCL) $(TLIBS)
|
||||
+sqlite3_checker$(TEXE): sqlite3_checker.c libsqlite3.la
|
||||
+ $(LTLINK) sqlite3_checker.c -o $@ libsqlite3.la $(LIBTCL)
|
||||
|
||||
-dbdump$(TEXE): $(TOP)/ext/misc/dbdump.c sqlite3.lo
|
||||
+dbdump$(TEXE): $(TOP)/ext/misc/dbdump.c libsqlite3.la
|
||||
$(LTLINK) -DDBDUMP_STANDALONE -o $@ \
|
||||
- $(TOP)/ext/misc/dbdump.c sqlite3.lo $(TLIBS)
|
||||
+ $(TOP)/ext/misc/dbdump.c libsqlite3.la
|
||||
|
||||
-dbtotxt$(TEXE): $(TOP)/tool/dbtotxt.c
|
||||
- $(LTLINK)-o $@ $(TOP)/tool/dbtotxt.c
|
||||
+dbtotxt$(TEXE): $(TOP)/tool/dbtotxt.c
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/dbtotxt.c
|
||||
|
||||
-showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
|
||||
- $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
|
||||
+showdb$(TEXE): $(TOP)/tool/showdb.c libsqlite3.la
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/showdb.c libsqlite3.la
|
||||
|
||||
-showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
|
||||
- $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
|
||||
+showstat4$(TEXE): $(TOP)/tool/showstat4.c libsqlite3.la
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/showstat4.c libsqlite3.la
|
||||
|
||||
-showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
|
||||
- $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
|
||||
+showjournal$(TEXE): $(TOP)/tool/showjournal.c
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/showjournal.c
|
||||
|
||||
-showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
|
||||
- $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
|
||||
+showwal$(TEXE): $(TOP)/tool/showwal.c
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/showwal.c
|
||||
|
||||
showshm$(TEXE): $(TOP)/tool/showshm.c
|
||||
$(LTLINK) -o $@ $(TOP)/tool/showshm.c
|
||||
|
||||
-index_usage$(TEXE): $(TOP)/tool/index_usage.c sqlite3.lo
|
||||
- $(LTLINK) $(SHELL_OPT) -o $@ $(TOP)/tool/index_usage.c sqlite3.lo $(TLIBS)
|
||||
+index_usage$(TEXE): $(TOP)/tool/index_usage.c libsqlite3.la
|
||||
+ $(LTLINK) -o $@ $(TOP)/tool/index_usage.c libsqlite3.la
|
||||
|
||||
-changeset$(TEXE): $(TOP)/ext/session/changeset.c sqlite3.lo
|
||||
- $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c sqlite3.lo $(TLIBS)
|
||||
+changeset$(TEXE): $(TOP)/ext/session/changeset.c libsqlite3.la
|
||||
+ $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c libsqlite3.la
|
||||
|
||||
changesetfuzz$(TEXE): $(TOP)/ext/session/changesetfuzz.c sqlite3.lo
|
||||
$(LTLINK) -o $@ $(TOP)/ext/session/changesetfuzz.c sqlite3.lo $(TLIBS)
|
||||
@@ -1387,11 +1383,11 @@
|
||||
kvtest$(TEXE): $(TOP)/test/kvtest.c sqlite3.c
|
||||
$(LTLINK) $(KV_OPT) -o $@ $(TOP)/test/kvtest.c sqlite3.c $(TLIBS)
|
||||
|
||||
-rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.lo
|
||||
- $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c sqlite3.lo $(TLIBS)
|
||||
+rbu$(EXE): $(TOP)/ext/rbu/rbu.c libsqlite3.la
|
||||
+ $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c libsqlite3.la
|
||||
|
||||
-loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la
|
||||
- $(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@ $(TLIBS)
|
||||
+loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la
|
||||
+ $(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@
|
||||
|
||||
# This target will fail if the SQLite amalgamation contains any exported
|
||||
# symbols that do not begin with "sqlite3_". It is run as part of the
|
||||
--- /configure.ac
|
||||
+++ /configure.ac
|
||||
@@ -108,7 +108,7 @@
|
||||
#########
|
||||
# Figure out whether or not we have these functions
|
||||
#
|
||||
-AC_CHECK_FUNCS([fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64])
|
||||
+AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])
|
||||
|
||||
#########
|
||||
# By default, we use the amalgamation (this may be changed below...)
|
||||
@@ -587,6 +587,9 @@
|
||||
if test "${enable_load_extension}" = "yes" ; then
|
||||
OPT_FEATURE_FLAGS=""
|
||||
AC_SEARCH_LIBS(dlopen, dl)
|
||||
+ if test "${ac_cv_search_dlopen}" = "no" ; then
|
||||
+ OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
|
||||
+ fi
|
||||
else
|
||||
OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
|
||||
fi
|
@ -1,441 +0,0 @@
|
||||
Move some code to libsqlite3.so to avoid duplication.
|
||||
Initialize some extensions in libsqlite3.so.
|
||||
Update test suite.
|
||||
|
||||
SQLite revision: acd63062eb06748bfe9e4886639e4f2b54ea6a496a83f10716abbaba4115500b
|
||||
|
||||
--- /ext/repair/sqlite3_checker.c.in
|
||||
+++ /ext/repair/sqlite3_checker.c.in
|
||||
@@ -2,6 +2,7 @@
|
||||
** Read an SQLite database file and analyze its space utilization. Generate
|
||||
** text on standard output.
|
||||
*/
|
||||
+#define SQLITE_CORE 1
|
||||
#define TCLSH_INIT_PROC sqlite3_checker_init_proc
|
||||
#define SQLITE_ENABLE_DBPAGE_VTAB 1
|
||||
#define SQLITE_ENABLE_JSON1 1
|
||||
@@ -14,7 +15,7 @@
|
||||
#define SQLITE_OMIT_SHARED_CACHE 1
|
||||
#define SQLITE_DEFAULT_MEMSTATUS 0
|
||||
#define SQLITE_MAX_EXPR_DEPTH 0
|
||||
-INCLUDE sqlite3.c
|
||||
+#include "sqlite3.h"
|
||||
INCLUDE $ROOT/src/tclsqlite.c
|
||||
INCLUDE $ROOT/ext/misc/btreeinfo.c
|
||||
INCLUDE $ROOT/ext/repair/checkindex.c
|
||||
--- /src/main.c
|
||||
+++ /src/main.c
|
||||
@@ -50,12 +50,36 @@
|
||||
#ifdef SQLITE_ENABLE_FTS5
|
||||
int sqlite3Fts5Init(sqlite3*);
|
||||
#endif
|
||||
+#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_ENABLE_DBPAGE_VTAB)
|
||||
+int sqlite3DbdataRegister(sqlite3*);
|
||||
+#endif
|
||||
#ifdef SQLITE_ENABLE_JSON1
|
||||
int sqlite3Json1Init(sqlite3*);
|
||||
#endif
|
||||
#ifdef SQLITE_ENABLE_STMTVTAB
|
||||
int sqlite3StmtVtabInit(sqlite3*);
|
||||
#endif
|
||||
+int sqlite3AmatchInit(sqlite3*);
|
||||
+int sqlite3CarrayInit(sqlite3*);
|
||||
+int sqlite3CompletionVtabInit(sqlite3*);
|
||||
+int sqlite3CsvInit(sqlite3*);
|
||||
+int sqlite3DecimalInit(sqlite3*);
|
||||
+int sqlite3EvalInit(sqlite3*);
|
||||
+int sqlite3FileioInit(sqlite3*);
|
||||
+int sqlite3IeeeInit(sqlite3*);
|
||||
+int sqlite3NextcharInit(sqlite3*);
|
||||
+int sqlite3PercentileInit(sqlite3*);
|
||||
+int sqlite3RegexpInit(sqlite3*);
|
||||
+int sqlite3SeriesInit(sqlite3*);
|
||||
+int sqlite3ShaInit(sqlite3*);
|
||||
+int sqlite3ShathreeInit(sqlite3*);
|
||||
+int sqlite3TotypeInit(sqlite3*);
|
||||
+int sqlite3UintInit(sqlite3*);
|
||||
+int sqlite3UuidInit(sqlite3*);
|
||||
+#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_HAVE_ZLIB)
|
||||
+int sqlite3ZipfileInit(sqlite3*);
|
||||
+int sqlite3SqlarInit(sqlite3*);
|
||||
+#endif
|
||||
|
||||
/*
|
||||
** An array of pointers to extension initializer functions for
|
||||
@@ -83,6 +107,9 @@
|
||||
#ifdef SQLITE_ENABLE_DBPAGE_VTAB
|
||||
sqlite3DbpageRegister,
|
||||
#endif
|
||||
+#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_ENABLE_DBPAGE_VTAB)
|
||||
+ sqlite3DbdataRegister,
|
||||
+#endif
|
||||
#ifdef SQLITE_ENABLE_DBSTAT_VTAB
|
||||
sqlite3DbstatRegister,
|
||||
#endif
|
||||
@@ -96,6 +123,27 @@
|
||||
#ifdef SQLITE_ENABLE_BYTECODE_VTAB
|
||||
sqlite3VdbeBytecodeVtabInit,
|
||||
#endif
|
||||
+ sqlite3AmatchInit,
|
||||
+ sqlite3CarrayInit,
|
||||
+ sqlite3CompletionVtabInit,
|
||||
+ sqlite3CsvInit,
|
||||
+ sqlite3DecimalInit,
|
||||
+ sqlite3EvalInit,
|
||||
+ sqlite3FileioInit,
|
||||
+ sqlite3IeeeInit,
|
||||
+ sqlite3NextcharInit,
|
||||
+ sqlite3PercentileInit,
|
||||
+ sqlite3RegexpInit,
|
||||
+ sqlite3SeriesInit,
|
||||
+ sqlite3ShaInit,
|
||||
+ sqlite3ShathreeInit,
|
||||
+ sqlite3TotypeInit,
|
||||
+ sqlite3UintInit,
|
||||
+ sqlite3UuidInit,
|
||||
+#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_HAVE_ZLIB)
|
||||
+ sqlite3ZipfileInit,
|
||||
+ sqlite3SqlarInit,
|
||||
+#endif
|
||||
};
|
||||
|
||||
#ifndef SQLITE_AMALGAMATION
|
||||
--- /src/shell.c.in
|
||||
+++ /src/shell.c.in
|
||||
@@ -69,6 +69,7 @@
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include "sqlite3.h"
|
||||
+#include "ext/expert/sqlite3expert.h"
|
||||
typedef sqlite3_int64 i64;
|
||||
typedef sqlite3_uint64 u64;
|
||||
typedef unsigned char u8;
|
||||
@@ -135,6 +136,10 @@
|
||||
# define SHELL_USE_LOCAL_GETLINE 1
|
||||
#endif
|
||||
|
||||
+#ifdef SQLITE_HAVE_ZLIB
|
||||
+#include <zlib.h>
|
||||
+#endif
|
||||
+
|
||||
|
||||
#if defined(_WIN32) || defined(WIN32)
|
||||
# if SQLITE_OS_WINRT
|
||||
@@ -1018,25 +1023,7 @@
|
||||
INCLUDE test_windirent.c
|
||||
#define dirent DIRENT
|
||||
#endif
|
||||
-INCLUDE ../ext/misc/shathree.c
|
||||
-INCLUDE ../ext/misc/fileio.c
|
||||
-INCLUDE ../ext/misc/completion.c
|
||||
-INCLUDE ../ext/misc/appendvfs.c
|
||||
INCLUDE ../ext/misc/memtrace.c
|
||||
-INCLUDE ../ext/misc/uint.c
|
||||
-INCLUDE ../ext/misc/decimal.c
|
||||
-INCLUDE ../ext/misc/ieee754.c
|
||||
-INCLUDE ../ext/misc/series.c
|
||||
-#ifdef SQLITE_HAVE_ZLIB
|
||||
-INCLUDE ../ext/misc/zipfile.c
|
||||
-INCLUDE ../ext/misc/sqlar.c
|
||||
-#endif
|
||||
-INCLUDE ../ext/expert/sqlite3expert.h
|
||||
-INCLUDE ../ext/expert/sqlite3expert.c
|
||||
-
|
||||
-#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_ENABLE_DBPAGE_VTAB)
|
||||
-INCLUDE ../ext/misc/dbdata.c
|
||||
-#endif
|
||||
|
||||
#if defined(SQLITE_ENABLE_SESSION)
|
||||
/*
|
||||
@@ -4608,20 +4595,6 @@
|
||||
#ifndef SQLITE_OMIT_LOAD_EXTENSION
|
||||
sqlite3_enable_load_extension(p->db, 1);
|
||||
#endif
|
||||
- sqlite3_fileio_init(p->db, 0, 0);
|
||||
- sqlite3_shathree_init(p->db, 0, 0);
|
||||
- sqlite3_completion_init(p->db, 0, 0);
|
||||
- sqlite3_uint_init(p->db, 0, 0);
|
||||
- sqlite3_decimal_init(p->db, 0, 0);
|
||||
- sqlite3_ieee_init(p->db, 0, 0);
|
||||
- sqlite3_series_init(p->db, 0, 0);
|
||||
-#if !defined(SQLITE_OMIT_VIRTUALTABLE) && defined(SQLITE_ENABLE_DBPAGE_VTAB)
|
||||
- sqlite3_dbdata_init(p->db, 0, 0);
|
||||
-#endif
|
||||
-#ifdef SQLITE_HAVE_ZLIB
|
||||
- sqlite3_zipfile_init(p->db, 0, 0);
|
||||
- sqlite3_sqlar_init(p->db, 0, 0);
|
||||
-#endif
|
||||
sqlite3_create_function(p->db, "shell_add_schema", 3, SQLITE_UTF8, 0,
|
||||
shellAddSchemaName, 0, 0);
|
||||
sqlite3_create_function(p->db, "shell_module_schema", 1, SQLITE_UTF8, 0,
|
||||
@@ -6644,8 +6617,6 @@
|
||||
);
|
||||
goto end_ar_command;
|
||||
}
|
||||
- sqlite3_fileio_init(cmd.db, 0, 0);
|
||||
- sqlite3_sqlar_init(cmd.db, 0, 0);
|
||||
sqlite3_create_function(cmd.db, "shell_putsnl", 1, SQLITE_UTF8, cmd.p,
|
||||
shellPutsFunc, 0, 0);
|
||||
|
||||
@@ -11108,6 +11079,7 @@
|
||||
#endif
|
||||
}
|
||||
data.out = stdout;
|
||||
+ extern int sqlite3_appendvfs_init(sqlite3 *, char **, const sqlite3_api_routines *);
|
||||
sqlite3_appendvfs_init(0,0,0);
|
||||
|
||||
/* Go ahead and open the database file if it already exists. If the
|
||||
--- /src/test_config.c
|
||||
+++ /src/test_config.c
|
||||
@@ -359,6 +359,8 @@
|
||||
Tcl_SetVar2(interp, "sqlite_options", "datetime", "1", TCL_GLOBAL_ONLY);
|
||||
#endif
|
||||
|
||||
+ Tcl_SetVar2(interp, "sqlite_options", "decimal", "1", TCL_GLOBAL_ONLY);
|
||||
+
|
||||
#ifdef SQLITE_OMIT_DECLTYPE
|
||||
Tcl_SetVar2(interp, "sqlite_options", "decltype", "0", TCL_GLOBAL_ONLY);
|
||||
#else
|
||||
@@ -546,6 +548,8 @@
|
||||
Tcl_SetVar2(interp, "sqlite_options", "progress", "1", TCL_GLOBAL_ONLY);
|
||||
#endif
|
||||
|
||||
+ Tcl_SetVar2(interp, "sqlite_options", "regexp", "1", TCL_GLOBAL_ONLY);
|
||||
+
|
||||
#ifdef SQLITE_OMIT_REINDEX
|
||||
Tcl_SetVar2(interp, "sqlite_options", "reindex", "0", TCL_GLOBAL_ONLY);
|
||||
#else
|
||||
@@ -668,6 +672,8 @@
|
||||
Tcl_SetVar2(interp, "sqlite_options", "truncate_opt", "1", TCL_GLOBAL_ONLY);
|
||||
#endif
|
||||
|
||||
+ Tcl_SetVar2(interp, "sqlite_options", "uint", "1", TCL_GLOBAL_ONLY);
|
||||
+
|
||||
#ifdef SQLITE_OMIT_UTF16
|
||||
Tcl_SetVar2(interp, "sqlite_options", "utf16", "0", TCL_GLOBAL_ONLY);
|
||||
#else
|
||||
--- /test/e_expr.test
|
||||
+++ /test/e_expr.test
|
||||
@@ -1079,7 +1079,7 @@
|
||||
#
|
||||
# There is a regexp function if ICU is enabled though.
|
||||
#
|
||||
-ifcapable !icu {
|
||||
+ifcapable !icu&&!regexp {
|
||||
do_catchsql_test e_expr-18.1.1 {
|
||||
SELECT regexp('abc', 'def')
|
||||
} {1 {no such function: regexp}}
|
||||
--- /test/icu.test
|
||||
+++ /test/icu.test
|
||||
@@ -41,7 +41,7 @@
|
||||
#
|
||||
test_expr icu-1.1 {i1='hello'} {i1 REGEXP 'hello'} 1
|
||||
test_expr icu-1.2 {i1='hello'} {i1 REGEXP '.ello'} 1
|
||||
- test_expr icu-1.3 {i1='hello'} {i1 REGEXP '.ell'} 0
|
||||
+ test_expr icu-1.3 {i1='hello'} {i1 REGEXP '.ell$'} 0
|
||||
test_expr icu-1.4 {i1='hello'} {i1 REGEXP '.ell.*'} 1
|
||||
test_expr icu-1.5 {i1=NULL} {i1 REGEXP '.ell.*'} {}
|
||||
|
||||
--- /test/pragma.test
|
||||
+++ /test/pragma.test
|
||||
@@ -1370,17 +1370,62 @@
|
||||
} ;# ifcapable trigger
|
||||
|
||||
ifcapable schema_pragmas {
|
||||
- do_test pragma-11.1 {
|
||||
- execsql2 {
|
||||
- pragma collation_list;
|
||||
+ ifcapable decimal {
|
||||
+ ifcapable uint {
|
||||
+ do_test pragma-11.1 {
|
||||
+ execsql2 {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {seq 0 name UINT seq 1 name decimal seq 2 name RTRIM seq 3 name NOCASE seq 4 name BINARY}
|
||||
+ do_test pragma-11.2 {
|
||||
+ db collate New_Collation blah...
|
||||
+ execsql {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {0 New_Collation 1 UINT 2 decimal 3 RTRIM 4 NOCASE 5 BINARY}
|
||||
}
|
||||
- } {seq 0 name RTRIM seq 1 name NOCASE seq 2 name BINARY}
|
||||
- do_test pragma-11.2 {
|
||||
- db collate New_Collation blah...
|
||||
- execsql {
|
||||
- pragma collation_list;
|
||||
+ ifcapable !uint {
|
||||
+ do_test pragma-11.1 {
|
||||
+ execsql2 {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {seq 0 name decimal seq 1 name RTRIM seq 2 name NOCASE seq 3 name BINARY}
|
||||
+ do_test pragma-11.2 {
|
||||
+ db collate New_Collation blah...
|
||||
+ execsql {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {0 New_Collation 1 decimal 2 RTRIM 3 NOCASE 4 BINARY}
|
||||
}
|
||||
- } {0 New_Collation 1 RTRIM 2 NOCASE 3 BINARY}
|
||||
+ }
|
||||
+ ifcapable !decimal {
|
||||
+ ifcapable uint {
|
||||
+ do_test pragma-11.1 {
|
||||
+ execsql2 {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {seq 0 name UINT seq 1 name RTRIM seq 2 name NOCASE seq 3 name BINARY}
|
||||
+ do_test pragma-11.2 {
|
||||
+ db collate New_Collation blah...
|
||||
+ execsql {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {0 New_Collation 1 UINT 2 RTRIM 3 NOCASE 4 BINARY}
|
||||
+ }
|
||||
+ ifcapable !uint {
|
||||
+ do_test pragma-11.1 {
|
||||
+ execsql2 {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {seq 0 name RTRIM seq 1 name NOCASE seq 2 name BINARY}
|
||||
+ do_test pragma-11.2 {
|
||||
+ db collate New_Collation blah...
|
||||
+ execsql {
|
||||
+ pragma collation_list;
|
||||
+ }
|
||||
+ } {0 New_Collation 1 RTRIM 2 NOCASE 3 BINARY}
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
|
||||
ifcapable schema_pragmas&&tempdb {
|
||||
--- /test/sessionfuzz.c
|
||||
+++ /test/sessionfuzz.c
|
||||
@@ -698,49 +698,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
-#ifndef OMIT_ZLIB
|
||||
-#include "zlib.h"
|
||||
-#endif
|
||||
-
|
||||
-/*
|
||||
-** Implementation of the "sqlar_uncompress(X,SZ)" SQL function
|
||||
-**
|
||||
-** Parameter SZ is interpreted as an integer. If it is less than or
|
||||
-** equal to zero, then this function returns a copy of X. Or, if
|
||||
-** SZ is equal to the size of X when interpreted as a blob, also
|
||||
-** return a copy of X. Otherwise, decompress blob X using zlib
|
||||
-** utility function uncompress() and return the results (another
|
||||
-** blob).
|
||||
-*/
|
||||
-static void sqlarUncompressFunc(
|
||||
- sqlite3_context *context,
|
||||
- int argc,
|
||||
- sqlite3_value **argv
|
||||
-){
|
||||
-#ifdef OMIT_ZLIB
|
||||
- sqlite3_result_value(context, argv[0]);
|
||||
-#else
|
||||
- uLong nData;
|
||||
- uLongf sz;
|
||||
-
|
||||
- assert( argc==2 );
|
||||
- sz = sqlite3_value_int(argv[1]);
|
||||
-
|
||||
- if( sz<=0 || sz==(nData = sqlite3_value_bytes(argv[0])) ){
|
||||
- sqlite3_result_value(context, argv[0]);
|
||||
- }else{
|
||||
- const Bytef *pData= sqlite3_value_blob(argv[0]);
|
||||
- Bytef *pOut = sqlite3_malloc(sz);
|
||||
- if( Z_OK!=uncompress(pOut, &sz, pData, nData) ){
|
||||
- sqlite3_result_error(context, "error in uncompress()", -1);
|
||||
- }else{
|
||||
- sqlite3_result_blob(context, pOut, sz, SQLITE_TRANSIENT);
|
||||
- }
|
||||
- sqlite3_free(pOut);
|
||||
- }
|
||||
-#endif
|
||||
-}
|
||||
-
|
||||
|
||||
/* Run a chunk of SQL. If any errors happen, print an error message
|
||||
** and exit.
|
||||
--- /tool/mksqlite3c.tcl
|
||||
+++ /tool/mksqlite3c.tcl
|
||||
@@ -129,6 +129,7 @@
|
||||
rtree.h
|
||||
sqlite3session.h
|
||||
sqlite3.h
|
||||
+ sqlite3expert.h
|
||||
sqlite3ext.h
|
||||
sqlite3rbu.h
|
||||
sqliteicu.h
|
||||
@@ -416,6 +417,28 @@
|
||||
sqlite3session.c
|
||||
fts5.c
|
||||
stmt.c
|
||||
+ amatch.c
|
||||
+ appendvfs.c
|
||||
+ carray.c
|
||||
+ completion.c
|
||||
+ csv.c
|
||||
+ dbdata.c
|
||||
+ decimal.c
|
||||
+ eval.c
|
||||
+ fileio.c
|
||||
+ ieee754.c
|
||||
+ nextchar.c
|
||||
+ percentile.c
|
||||
+ regexp.c
|
||||
+ series.c
|
||||
+ sha1.c
|
||||
+ shathree.c
|
||||
+ sqlar.c
|
||||
+ sqlite3expert.c
|
||||
+ totype.c
|
||||
+ uint.c
|
||||
+ uuid.c
|
||||
+ zipfile.c
|
||||
} {
|
||||
copy_file tsrc/$file
|
||||
}
|
||||
--- /tool/sqlite3_analyzer.c.in
|
||||
+++ /tool/sqlite3_analyzer.c.in
|
||||
@@ -14,9 +14,6 @@
|
||||
#define SQLITE_DEFAULT_MEMSTATUS 0
|
||||
#define SQLITE_MAX_EXPR_DEPTH 0
|
||||
#define SQLITE_OMIT_LOAD_EXTENSION 1
|
||||
-#ifndef USE_EXTERNAL_SQLITE
|
||||
-INCLUDE sqlite3.c
|
||||
-#endif
|
||||
INCLUDE $ROOT/src/tclsqlite.c
|
||||
|
||||
const char *sqlite3_analyzer_init_proc(Tcl_Interp *interp){
|
||||
--- /tool/sqltclsh.c.in
|
||||
+++ /tool/sqltclsh.c.in
|
||||
@@ -27,21 +27,13 @@
|
||||
#define SQLITE_OMIT_SHARED_CACHE 1
|
||||
#define SQLITE_DEFAULT_MEMSTATUS 0
|
||||
#define SQLITE_MAX_EXPR_DEPTH 0
|
||||
-INCLUDE sqlite3.c
|
||||
-INCLUDE $ROOT/ext/misc/appendvfs.c
|
||||
-#ifdef SQLITE_HAVE_ZLIB
|
||||
-INCLUDE $ROOT/ext/misc/zipfile.c
|
||||
-INCLUDE $ROOT/ext/misc/sqlar.c
|
||||
-#endif
|
||||
+#include "sqlite3.h"
|
||||
INCLUDE $ROOT/src/tclsqlite.c
|
||||
|
||||
const char *sqlite3_tclapp_init_proc(Tcl_Interp *interp){
|
||||
(void)interp;
|
||||
+ extern int sqlite3_appendvfs_init(sqlite3 *,char **, const sqlite3_api_routines *);
|
||||
sqlite3_appendvfs_init(0,0,0);
|
||||
-#ifdef SQLITE_HAVE_ZLIB
|
||||
- sqlite3_auto_extension((void(*)(void))sqlite3_sqlar_init);
|
||||
- sqlite3_auto_extension((void(*)(void))sqlite3_zipfile_init);
|
||||
-#endif
|
||||
|
||||
return
|
||||
BEGIN_STRING
|
@ -1,428 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools flag-o-matic multilib-minimal toolchain-funcs
|
||||
|
||||
if [[ "${PV}" != "9999" ]]; then
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(ver_rs 1- " "))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(ver_rs 1-3 " "))"
|
||||
fi
|
||||
|
||||
DESCRIPTION="SQL database engine"
|
||||
HOMEPAGE="https://sqlite.org/"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://sqlite.org/2021/${PN}-src-${SRC_PV}.zip
|
||||
doc? ( https://sqlite.org/2021/${PN}-doc-${DOC_PV}.zip )"
|
||||
fi
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
PROPERTIES="live"
|
||||
fi
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
BDEPEND=">=dev-lang/tcl-8.6:0
|
||||
dev-vcs/fossil"
|
||||
else
|
||||
BDEPEND="app-arch/unzip
|
||||
>=dev-lang/tcl-8.6:0"
|
||||
fi
|
||||
RDEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]
|
||||
icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-lang/tcl-8.6:0[${MULTILIB_USEDEP}] )"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
S="${WORKDIR}/${PN}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
fi
|
||||
|
||||
_fossil_fetch() {
|
||||
local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
|
||||
local repo_id="${1}"
|
||||
local repo_uri="${2}"
|
||||
|
||||
local -x FOSSIL_HOME="${HOME}"
|
||||
|
||||
mkdir -p "${T}/fossil/${repo_id}" || die
|
||||
pushd "${T}/fossil/${repo_id}" > /dev/null || die
|
||||
|
||||
if [[ -n "${EVCS_OFFLINE}" ]]; then
|
||||
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
die "Network activity disabled using EVCS_OFFLINE and clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
|
||||
fi
|
||||
else
|
||||
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
einfo fossil clone --verbose "${repo_uri}" "${repo_id}.fossil"
|
||||
fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" || die
|
||||
echo
|
||||
else
|
||||
cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" . || die
|
||||
einfo fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}"
|
||||
fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" || die
|
||||
echo
|
||||
fi
|
||||
|
||||
(
|
||||
addwrite "${distdir}"
|
||||
mkdir -p "${distdir}/fossil-src/${repo_id}" || die
|
||||
cp -p "${repo_id}.fossil" "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" || die
|
||||
)
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
_fossil_checkout() {
|
||||
local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
|
||||
local repo_id="${1}"
|
||||
local branch_or_commit="${2}"
|
||||
local target_directory="${3}"
|
||||
|
||||
local -x FOSSIL_HOME="${HOME}"
|
||||
|
||||
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
die "Clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
|
||||
fi
|
||||
|
||||
if [[ ! -f "${T}/fossil/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
mkdir -p "${T}/fossil/${repo_id}" || die
|
||||
cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" "${T}/fossil/${repo_id}" || die
|
||||
fi
|
||||
|
||||
mkdir "${target_directory}" || die
|
||||
pushd "${target_directory}" > /dev/null || die
|
||||
|
||||
einfo fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}"
|
||||
fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" || die
|
||||
echo
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
fossil_fetch() {
|
||||
local repo_id="${1}"
|
||||
local repo_uri="${2}"
|
||||
local target_directory="${3}"
|
||||
|
||||
local branch_or_commit="${EFOSSIL_COMMIT:-${EFOSSIL_BRANCH:-trunk}}"
|
||||
|
||||
_fossil_fetch "${repo_id}" "${repo_uri}"
|
||||
_fossil_checkout "${repo_id}" "${branch_or_commit}" "${target_directory}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
fossil_fetch sqlite https://sqlite.org/src "${WORKDIR}/${PN}"
|
||||
if use doc; then
|
||||
fossil_fetch sqlite-doc https://sqlite.org/docsrc "${WORKDIR}/${PN}-doc"
|
||||
fi
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/"${PN}-3.35.0-build_{1.1,1.2,2.1,2.2}.patch
|
||||
|
||||
eapply_user
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local -x CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}"
|
||||
local options=()
|
||||
|
||||
options+=(
|
||||
--enable-load-extension
|
||||
--enable-threadsafe
|
||||
)
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# https://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support bytecode and tables_used virtual tables.
|
||||
# https://sqlite.org/compile.html#enable_bytecode_vtab
|
||||
# https://sqlite.org/bytecodevtab.html
|
||||
append-cppflags -DSQLITE_ENABLE_BYTECODE_VTAB
|
||||
|
||||
# Support column metadata functions.
|
||||
# https://sqlite.org/compile.html#enable_column_metadata
|
||||
# https://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support sqlite_dbpage virtual table.
|
||||
# https://sqlite.org/compile.html#enable_dbpage_vtab
|
||||
# https://sqlite.org/dbpage.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBPAGE_VTAB
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# https://sqlite.org/compile.html#enable_dbstat_vtab
|
||||
# https://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support sqlite3_serialize() and sqlite3_deserialize() functions.
|
||||
# https://sqlite.org/compile.html#enable_deserialize
|
||||
# https://sqlite.org/c3ref/serialize.html
|
||||
# https://sqlite.org/c3ref/deserialize.html
|
||||
append-cppflags -DSQLITE_ENABLE_DESERIALIZE
|
||||
|
||||
# Support comments in output of EXPLAIN.
|
||||
# https://sqlite.org/compile.html#enable_explain_comments
|
||||
append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# https://sqlite.org/compile.html#enable_fts3
|
||||
# https://sqlite.org/compile.html#enable_fts3_parenthesis
|
||||
# https://sqlite.org/compile.html#enable_fts4
|
||||
# https://sqlite.org/compile.html#enable_fts5
|
||||
# https://sqlite.org/fts3.html
|
||||
# https://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support hidden columns.
|
||||
append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
|
||||
|
||||
# Support JSON1 extension.
|
||||
# https://sqlite.org/compile.html#enable_json1
|
||||
# https://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support memsys5 memory allocator.
|
||||
# https://sqlite.org/compile.html#enable_memsys5
|
||||
# https://sqlite.org/malloc.html#memsys5
|
||||
append-cppflags -DSQLITE_ENABLE_MEMSYS5
|
||||
|
||||
# Support sqlite3_normalized_sql() function.
|
||||
# https://sqlite.org/c3ref/expanded_sql.html
|
||||
append-cppflags -DSQLITE_ENABLE_NORMALIZE
|
||||
|
||||
# Support sqlite_offset() function.
|
||||
# https://sqlite.org/compile.html#enable_offset_sql_func
|
||||
# https://sqlite.org/lang_corefunc.html#sqlite_offset
|
||||
append-cppflags -DSQLITE_ENABLE_OFFSET_SQL_FUNC
|
||||
|
||||
# Support pre-update hook functions.
|
||||
# https://sqlite.org/compile.html#enable_preupdate_hook
|
||||
# https://sqlite.org/c3ref/preupdate_count.html
|
||||
append-cppflags -DSQLITE_ENABLE_PREUPDATE_HOOK
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# https://sqlite.org/compile.html#enable_rbu
|
||||
# https://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# https://sqlite.org/compile.html#enable_rtree
|
||||
# https://sqlite.org/compile.html#enable_geopoly
|
||||
# https://sqlite.org/rtree.html
|
||||
# https://sqlite.org/geopoly.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
|
||||
|
||||
# Support Session extension.
|
||||
# https://sqlite.org/compile.html#enable_session
|
||||
# https://sqlite.org/sessionintro.html
|
||||
append-cppflags -DSQLITE_ENABLE_SESSION
|
||||
|
||||
# Support scan status functions.
|
||||
# https://sqlite.org/compile.html#enable_stmt_scanstatus
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support sqlite_stmt virtual table.
|
||||
# https://sqlite.org/compile.html#enable_stmtvtab
|
||||
# https://sqlite.org/stmt.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMTVTAB
|
||||
|
||||
# Support unknown() function.
|
||||
# https://sqlite.org/compile.html#enable_unknown_sql_function
|
||||
append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
|
||||
|
||||
# Support unlock notification.
|
||||
# https://sqlite.org/compile.html#enable_unlock_notify
|
||||
# https://sqlite.org/c3ref/unlock_notify.html
|
||||
# https://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support LIMIT and ORDER BY clauses on DELETE and UPDATE statements.
|
||||
# https://sqlite.org/compile.html#enable_update_delete_limit
|
||||
# https://sqlite.org/lang_delete.html#optional_limit_and_order_by_clauses
|
||||
# https://sqlite.org/lang_update.html#optional_limit_and_order_by_clauses
|
||||
append-cppflags -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
|
||||
|
||||
# Support soundex() function.
|
||||
# https://sqlite.org/compile.html#soundex
|
||||
# https://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# Support URI filenames.
|
||||
# https://sqlite.org/compile.html#use_uri
|
||||
# https://sqlite.org/uri.html
|
||||
append-cppflags -DSQLITE_USE_URI
|
||||
|
||||
# debug USE flag.
|
||||
options+=($(use_enable debug))
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# https://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=(
|
||||
--disable-editline
|
||||
$(use_enable readline)
|
||||
)
|
||||
if use readline; then
|
||||
options+=(--with-readline-inc="-I${ESYSROOT}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# https://sqlite.org/compile.html#secure_delete
|
||||
# https://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if use tcl || use test || { use tools && multilib_is_native_abi; }; then
|
||||
options+=(
|
||||
--enable-tcl
|
||||
--with-tcl="${ESYSROOT}/usr/$(get_libdir)"
|
||||
)
|
||||
else
|
||||
options+=(--disable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${ABI}" == "x86" ]]; then
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} -E -P -dM - < /dev/null 2> /dev/null | grep -q "^#define __SSE__ 1$"; then
|
||||
append-cflags -mfpmath=sse
|
||||
else
|
||||
append-cflags -ffloat-store
|
||||
fi
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake changeset dbdump dbhash dbtotxt index_usage rbu scrub showdb showjournal showshm showstat4 showwal sqldiff sqlite3_analyzer sqlite3_checker sqlite3_expert sqltclsh
|
||||
fi
|
||||
|
||||
if [[ "${PV}" == "9999" ]] && use doc && multilib_is_native_abi; then
|
||||
emake tclsqlite3.c
|
||||
|
||||
local build_directory="$(pwd)"
|
||||
build_directory="${build_directory##*/}"
|
||||
|
||||
mkdir "${WORKDIR}/${PN}-doc-build" || die
|
||||
pushd "${WORKDIR}/${PN}-doc-build" > /dev/null || die
|
||||
|
||||
emake -f "../${PN}-doc/Makefile" -j1 SRC="../${PN}" BLD="../${build_directory}" DOC="../${PN}-doc" CC="$(tc-getBUILD_CC)" TCLINC="" TCLFLAGS="$($(tc-getBUILD_PKG_CONFIG) --libs tcl) -ldl -lm" base doc
|
||||
rmdir doc/matrix{/*,} || die
|
||||
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
local -x SQLITE_HISTORY="${T}/sqlite_history_${ABI}"
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
install_tool() {
|
||||
if [[ -f ".libs/${1}" ]]; then
|
||||
newbin ".libs/${1}" "${2}"
|
||||
else
|
||||
newbin "${1}" "${2}"
|
||||
fi
|
||||
}
|
||||
|
||||
install_tool changeset sqlite3-changeset
|
||||
install_tool dbdump sqlite3-db-dump
|
||||
install_tool dbhash sqlite3-db-hash
|
||||
install_tool dbtotxt sqlite3-db-to-txt
|
||||
install_tool index_usage sqlite3-index-usage
|
||||
install_tool rbu sqlite3-rbu
|
||||
install_tool scrub sqlite3-scrub
|
||||
install_tool showdb sqlite3-show-db
|
||||
install_tool showjournal sqlite3-show-journal
|
||||
install_tool showshm sqlite3-show-shm
|
||||
install_tool showstat4 sqlite3-show-stat4
|
||||
install_tool showwal sqlite3-show-wal
|
||||
install_tool sqldiff sqlite3-diff
|
||||
install_tool sqlite3_analyzer sqlite3-analyzer
|
||||
install_tool sqlite3_checker sqlite3-checker
|
||||
install_tool sqlite3_expert sqlite3-expert
|
||||
install_tool sqltclsh sqlite3-tclsh
|
||||
|
||||
unset -f install_tool
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
pushd "${WORKDIR}/${PN}-doc-build/doc" > /dev/null || die
|
||||
else
|
||||
pushd "${WORKDIR}/${PN}-doc-${DOC_PV}" > /dev/null || die
|
||||
fi
|
||||
|
||||
find "(" -name "*.db" -o -name "*.txt" ")" -delete || die
|
||||
if [[ "${PV}" != "9999" ]]; then
|
||||
rm search search.d/admin || die
|
||||
rmdir search.d || die
|
||||
find -name "*~" -delete || die
|
||||
fi
|
||||
|
||||
(
|
||||
docinto html
|
||||
dodoc -r *
|
||||
)
|
||||
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
@ -1,428 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools flag-o-matic multilib-minimal toolchain-funcs
|
||||
|
||||
if [[ "${PV}" != "9999" ]]; then
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(ver_rs 1- " "))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(ver_rs 1-3 " "))"
|
||||
fi
|
||||
|
||||
DESCRIPTION="SQL database engine"
|
||||
HOMEPAGE="https://sqlite.org/"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://sqlite.org/2021/${PN}-src-${SRC_PV}.zip
|
||||
doc? ( https://sqlite.org/2021/${PN}-doc-${DOC_PV}.zip )"
|
||||
fi
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
PROPERTIES="live"
|
||||
fi
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
BDEPEND=">=dev-lang/tcl-8.6:0
|
||||
dev-vcs/fossil"
|
||||
else
|
||||
BDEPEND="app-arch/unzip
|
||||
>=dev-lang/tcl-8.6:0"
|
||||
fi
|
||||
RDEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]
|
||||
icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-lang/tcl-8.6:0[${MULTILIB_USEDEP}] )"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
S="${WORKDIR}/${PN}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
fi
|
||||
|
||||
_fossil_fetch() {
|
||||
local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
|
||||
local repo_id="${1}"
|
||||
local repo_uri="${2}"
|
||||
|
||||
local -x FOSSIL_HOME="${HOME}"
|
||||
|
||||
mkdir -p "${T}/fossil/${repo_id}" || die
|
||||
pushd "${T}/fossil/${repo_id}" > /dev/null || die
|
||||
|
||||
if [[ -n "${EVCS_OFFLINE}" ]]; then
|
||||
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
die "Network activity disabled using EVCS_OFFLINE and clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
|
||||
fi
|
||||
else
|
||||
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
einfo fossil clone --verbose "${repo_uri}" "${repo_id}.fossil"
|
||||
fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" || die
|
||||
echo
|
||||
else
|
||||
cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" . || die
|
||||
einfo fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}"
|
||||
fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" || die
|
||||
echo
|
||||
fi
|
||||
|
||||
(
|
||||
addwrite "${distdir}"
|
||||
mkdir -p "${distdir}/fossil-src/${repo_id}" || die
|
||||
cp -p "${repo_id}.fossil" "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" || die
|
||||
)
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
_fossil_checkout() {
|
||||
local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
|
||||
local repo_id="${1}"
|
||||
local branch_or_commit="${2}"
|
||||
local target_directory="${3}"
|
||||
|
||||
local -x FOSSIL_HOME="${HOME}"
|
||||
|
||||
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
die "Clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
|
||||
fi
|
||||
|
||||
if [[ ! -f "${T}/fossil/${repo_id}/${repo_id}.fossil" ]]; then
|
||||
mkdir -p "${T}/fossil/${repo_id}" || die
|
||||
cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" "${T}/fossil/${repo_id}" || die
|
||||
fi
|
||||
|
||||
mkdir "${target_directory}" || die
|
||||
pushd "${target_directory}" > /dev/null || die
|
||||
|
||||
einfo fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}"
|
||||
fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" || die
|
||||
echo
|
||||
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
fossil_fetch() {
|
||||
local repo_id="${1}"
|
||||
local repo_uri="${2}"
|
||||
local target_directory="${3}"
|
||||
|
||||
local branch_or_commit="${EFOSSIL_COMMIT:-${EFOSSIL_BRANCH:-trunk}}"
|
||||
|
||||
_fossil_fetch "${repo_id}" "${repo_uri}"
|
||||
_fossil_checkout "${repo_id}" "${branch_or_commit}" "${target_directory}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
fossil_fetch sqlite https://sqlite.org/src "${WORKDIR}/${PN}"
|
||||
if use doc; then
|
||||
fossil_fetch sqlite-doc https://sqlite.org/docsrc "${WORKDIR}/${PN}-doc"
|
||||
fi
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/sqlite-3.37.0-configure-amalgamation.patch
|
||||
|
||||
eapply_user
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local -x CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}"
|
||||
local options=()
|
||||
|
||||
options+=(
|
||||
--enable-load-extension
|
||||
--enable-threadsafe
|
||||
)
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# https://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support bytecode and tables_used virtual tables.
|
||||
# https://sqlite.org/compile.html#enable_bytecode_vtab
|
||||
# https://sqlite.org/bytecodevtab.html
|
||||
append-cppflags -DSQLITE_ENABLE_BYTECODE_VTAB
|
||||
|
||||
# Support column metadata functions.
|
||||
# https://sqlite.org/compile.html#enable_column_metadata
|
||||
# https://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support sqlite_dbpage virtual table.
|
||||
# https://sqlite.org/compile.html#enable_dbpage_vtab
|
||||
# https://sqlite.org/dbpage.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBPAGE_VTAB
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# https://sqlite.org/compile.html#enable_dbstat_vtab
|
||||
# https://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support sqlite3_serialize() and sqlite3_deserialize() functions.
|
||||
# https://sqlite.org/compile.html#enable_deserialize
|
||||
# https://sqlite.org/c3ref/serialize.html
|
||||
# https://sqlite.org/c3ref/deserialize.html
|
||||
append-cppflags -DSQLITE_ENABLE_DESERIALIZE
|
||||
|
||||
# Support comments in output of EXPLAIN.
|
||||
# https://sqlite.org/compile.html#enable_explain_comments
|
||||
append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# https://sqlite.org/compile.html#enable_fts3
|
||||
# https://sqlite.org/compile.html#enable_fts3_parenthesis
|
||||
# https://sqlite.org/compile.html#enable_fts4
|
||||
# https://sqlite.org/compile.html#enable_fts5
|
||||
# https://sqlite.org/fts3.html
|
||||
# https://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support hidden columns.
|
||||
append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
|
||||
|
||||
# Support JSON1 extension.
|
||||
# https://sqlite.org/compile.html#enable_json1
|
||||
# https://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support memsys5 memory allocator.
|
||||
# https://sqlite.org/compile.html#enable_memsys5
|
||||
# https://sqlite.org/malloc.html#memsys5
|
||||
append-cppflags -DSQLITE_ENABLE_MEMSYS5
|
||||
|
||||
# Support sqlite3_normalized_sql() function.
|
||||
# https://sqlite.org/c3ref/expanded_sql.html
|
||||
append-cppflags -DSQLITE_ENABLE_NORMALIZE
|
||||
|
||||
# Support sqlite_offset() function.
|
||||
# https://sqlite.org/compile.html#enable_offset_sql_func
|
||||
# https://sqlite.org/lang_corefunc.html#sqlite_offset
|
||||
append-cppflags -DSQLITE_ENABLE_OFFSET_SQL_FUNC
|
||||
|
||||
# Support pre-update hook functions.
|
||||
# https://sqlite.org/compile.html#enable_preupdate_hook
|
||||
# https://sqlite.org/c3ref/preupdate_count.html
|
||||
append-cppflags -DSQLITE_ENABLE_PREUPDATE_HOOK
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# https://sqlite.org/compile.html#enable_rbu
|
||||
# https://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# https://sqlite.org/compile.html#enable_rtree
|
||||
# https://sqlite.org/compile.html#enable_geopoly
|
||||
# https://sqlite.org/rtree.html
|
||||
# https://sqlite.org/geopoly.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
|
||||
|
||||
# Support Session extension.
|
||||
# https://sqlite.org/compile.html#enable_session
|
||||
# https://sqlite.org/sessionintro.html
|
||||
append-cppflags -DSQLITE_ENABLE_SESSION
|
||||
|
||||
# Support scan status functions.
|
||||
# https://sqlite.org/compile.html#enable_stmt_scanstatus
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support sqlite_stmt virtual table.
|
||||
# https://sqlite.org/compile.html#enable_stmtvtab
|
||||
# https://sqlite.org/stmt.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMTVTAB
|
||||
|
||||
# Support unknown() function.
|
||||
# https://sqlite.org/compile.html#enable_unknown_sql_function
|
||||
append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
|
||||
|
||||
# Support unlock notification.
|
||||
# https://sqlite.org/compile.html#enable_unlock_notify
|
||||
# https://sqlite.org/c3ref/unlock_notify.html
|
||||
# https://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support LIMIT and ORDER BY clauses on DELETE and UPDATE statements.
|
||||
# https://sqlite.org/compile.html#enable_update_delete_limit
|
||||
# https://sqlite.org/lang_delete.html#optional_limit_and_order_by_clauses
|
||||
# https://sqlite.org/lang_update.html#optional_limit_and_order_by_clauses
|
||||
append-cppflags -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
|
||||
|
||||
# Support soundex() function.
|
||||
# https://sqlite.org/compile.html#soundex
|
||||
# https://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# Support URI filenames.
|
||||
# https://sqlite.org/compile.html#use_uri
|
||||
# https://sqlite.org/uri.html
|
||||
append-cppflags -DSQLITE_USE_URI
|
||||
|
||||
# debug USE flag.
|
||||
options+=($(use_enable debug))
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# https://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=(
|
||||
--disable-editline
|
||||
$(use_enable readline)
|
||||
)
|
||||
if use readline; then
|
||||
options+=(--with-readline-inc="-I${ESYSROOT}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# https://sqlite.org/compile.html#secure_delete
|
||||
# https://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if use tcl || use test || { use tools && multilib_is_native_abi; }; then
|
||||
options+=(
|
||||
--enable-tcl
|
||||
--with-tcl="${ESYSROOT}/usr/$(get_libdir)"
|
||||
)
|
||||
else
|
||||
options+=(--disable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${ABI}" == "x86" ]]; then
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} -E -P -dM - < /dev/null 2> /dev/null | grep -q "^#define __SSE__ 1$"; then
|
||||
append-cflags -mfpmath=sse
|
||||
else
|
||||
append-cflags -ffloat-store
|
||||
fi
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake changeset dbdump dbhash dbtotxt index_usage rbu scrub showdb showjournal showshm showstat4 showwal sqldiff sqlite3_analyzer sqlite3_checker sqlite3_expert sqltclsh
|
||||
fi
|
||||
|
||||
if [[ "${PV}" == "9999" ]] && use doc && multilib_is_native_abi; then
|
||||
emake tclsqlite3.c
|
||||
|
||||
local build_directory="$(pwd)"
|
||||
build_directory="${build_directory##*/}"
|
||||
|
||||
mkdir "${WORKDIR}/${PN}-doc-build" || die
|
||||
pushd "${WORKDIR}/${PN}-doc-build" > /dev/null || die
|
||||
|
||||
emake -f "../${PN}-doc/Makefile" -j1 SRC="../${PN}" BLD="../${build_directory}" DOC="../${PN}-doc" CC="$(tc-getBUILD_CC)" TCLINC="" TCLFLAGS="$($(tc-getBUILD_PKG_CONFIG) --libs tcl) -ldl -lm" base doc
|
||||
rmdir doc/matrix{/*,} || die
|
||||
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
local -x SQLITE_HISTORY="${T}/sqlite_history_${ABI}"
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
install_tool() {
|
||||
if [[ -f ".libs/${1}" ]]; then
|
||||
newbin ".libs/${1}" "${2}"
|
||||
else
|
||||
newbin "${1}" "${2}"
|
||||
fi
|
||||
}
|
||||
|
||||
install_tool changeset sqlite3-changeset
|
||||
install_tool dbdump sqlite3-db-dump
|
||||
install_tool dbhash sqlite3-db-hash
|
||||
install_tool dbtotxt sqlite3-db-to-txt
|
||||
install_tool index_usage sqlite3-index-usage
|
||||
install_tool rbu sqlite3-rbu
|
||||
install_tool scrub sqlite3-scrub
|
||||
install_tool showdb sqlite3-show-db
|
||||
install_tool showjournal sqlite3-show-journal
|
||||
install_tool showshm sqlite3-show-shm
|
||||
install_tool showstat4 sqlite3-show-stat4
|
||||
install_tool showwal sqlite3-show-wal
|
||||
install_tool sqldiff sqlite3-diff
|
||||
install_tool sqlite3_analyzer sqlite3-analyzer
|
||||
install_tool sqlite3_checker sqlite3-checker
|
||||
install_tool sqlite3_expert sqlite3-expert
|
||||
install_tool sqltclsh sqlite3-tclsh
|
||||
|
||||
unset -f install_tool
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
pushd "${WORKDIR}/${PN}-doc-build/doc" > /dev/null || die
|
||||
else
|
||||
pushd "${WORKDIR}/${PN}-doc-${DOC_PV}" > /dev/null || die
|
||||
fi
|
||||
|
||||
find "(" -name "*.db" -o -name "*.txt" ")" -delete || die
|
||||
if [[ "${PV}" != "9999" ]]; then
|
||||
rm search search.d/admin || die
|
||||
rmdir search.d || die
|
||||
find -name "*~" -delete || die
|
||||
fi
|
||||
|
||||
(
|
||||
docinto html
|
||||
dodoc -r *
|
||||
)
|
||||
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST jakartaee-migration-1.0.0-sources.tar.gz 35116 BLAKE2B 98b587e5a51e8f3540d6f4570c60ffa5516801709e41260ac09f7fcabc9e96a3b9067e8eba6c5975c62e3c56585a1f334a21acc15627666e1616ced6f625c56f SHA512 f0c0dc5da4d3c5d4bae8fd4c3db349cb45b7c8d82ca0bb12f3c995e92d4b0893db111ab33ce812299d66904827adc91b22c49381625760fc05c1b10de76faa0c
|
||||
EBUILD jakartaee-migration-1.0.0.ebuild 2876 BLAKE2B 46a8801f556665922b81dc55f548429ecbeded7e6dd03cd61aee6806d29eedc6e8e106d0b010e03e72776587efc492fad8738f796d85cf473ccb4e34b65cee19 SHA512 87855b3f6e73782f902a7e68a9308849c923316a3fef72899aaedff4164254f70b5f1b986d67151f3360fceb648369b58a279642ed9b6ec1d344a3e66241409a
|
||||
EBUILD jakartaee-migration-1.0.0.ebuild 2875 BLAKE2B 5c1d22930a619cedf70f5ab662f97254d749f9e61b69cef1042cdf953ed88500760a584293f85ddfd6092e16cb5da37a6e338bd8774248a30b6a356bc1b65977 SHA512 437f3185594bcc8450f8f000ae300bd178e82a4da58cb6a30c9412e387684a50d435e026d28712d6d06c675055ea23f0fa85f9f18bc0290116a6ad8010bae1e3
|
||||
MISC metadata.xml 233 BLAKE2B 2b385ca77219f08b2874b3a4a91a0c836d3cb45ec44b05babb33d590c56ceb5337ecb93a8450a37f8e6bbf4cfc1455892e8142d22e0a1d527d40361e2dce350b SHA512 1acc975a7dc3344bc63282d652ca00d8245970b58353b4fd00f09a4859db3eaba2dcd85e1537d424b7174e4f9c01c2ffb10ec6d107b5c895c9ca20730666de7f
|
||||
|
Binary file not shown.
@ -1,4 +1,6 @@
|
||||
AUX lazarus-0.9.26-fpcsrc.patch 407 BLAKE2B c3b006fd7bb58fb7037aae3d8d35ac146ab971fc6063652e3185b320e4cb05ccedb6c26c7d64b2f2998a901608ee251762b723f62bd9c239a51ab6a6d6f2b39d SHA512 823d9ba2041f97c39d8ea5f49cb02f68d8c98da95d0a479cc65a638365e2adafd1c5645fa6846720af18198834958f37b0cc0d92f38023ccdaf40ec8dc848f64
|
||||
DIST lazarus-2.0.12.tar.gz 69560778 BLAKE2B ff6c9414483b0d50dbbb30c8fbf626c81d9c71ef0329aa1d58b37aa4288a500e1ab55d06bad27f637e3f09b9d062af1896720b9cb7367b092fc872cf613f8a3d SHA512 dfd22b2b96fca9d0f672f03b9120c4294a7e640737a09b26c274d304025c61566a8504a5484638c108e42a322b21992229451d95e38d7e491a1c2f07a663483e
|
||||
DIST lazarus-2.2.0-0.tar.gz 76777421 BLAKE2B 29a7ed3285e3fbb6f72fe932d72d71edfd6903a8a5eb24f9534a12a4d1ccf5e40c61ce3cc1cbd8eef6dd7700f6e29fb640e35510b23a1ca1b02f7df0a4a738cc SHA512 4ebd8b4b7c6dfea491a30b1253e604646109d208c237e59be2fd9f6be3fb1e29443dd4e482076d77100678d0e4085b998398fca0532aa6122b59db7157af0ce4
|
||||
EBUILD lazarus-2.0.12.ebuild 2667 BLAKE2B d6e1a545dd5a90f61b2f447205bdfb325f7a10e26f79891dd8fb229f76933f437277aba252253b123313ebc3189440d8b82bd1e794873e127c0f543ad514e1b8 SHA512 479430f9b6f5b15cb1fac203fe9d133706d2a01bc9020b23f35d1a5935dbf1bf116e2e9095b7e4175cad964f91def11cbfbb5f3daa21c0b3c47c834d4195643f
|
||||
EBUILD lazarus-2.2.0.ebuild 2413 BLAKE2B f09dee3695b75dd6c59ff54b3358c7674a445d0476cce66ca0efb30331a66eaaa5596184913a798d9ceb6b95df1f428f206c6d886dd3fd0900df3de43a2494ba SHA512 5e2090fad65e9ad74679010c704643ec290a63f022711b5b454f6c564ae38758d501aaa3045e4a794e9fdb6a5afa1b694bcbc932ca3d0174fcaa22b628924a2f
|
||||
MISC metadata.xml 395 BLAKE2B ddc65b4329ed615ee2692ee80ff2b74b1b72992742ee27e6338aaa1ea8b7e39114ce5f735c61bf64bd603dbac7a1828f8bdb4c29b78a339a878b61092556e7ac SHA512 161abe773c486138f13a426c0d056d7efaf62f4180fc4fdfa85aa688021a5a834af7fc972867b92c6f53d45ca40940ff70ba07d7c4f61c4cfc32c2880286ba60
|
||||
|
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop
|
||||
|
||||
# See https://wiki.freepascal.org/Lazarus_2.0_fixes_branch for notes and
|
||||
# changes in FPCVER. It *does* change between minor versions of lazarus.
|
||||
FPCVER="3.2.2"
|
||||
|
||||
DESCRIPTION="Lazarus IDE is a feature rich visual programming environment emulating Delphi"
|
||||
HOMEPAGE="https://www.lazarus-ide.org/"
|
||||
SRC_URI="https://sourceforge.net/projects/${PN}/files/Lazarus%20Zip%20_%20GZip/Lazarus%20${PV}/${P}-0.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1-with-linking-exception"
|
||||
SLOT="0" # Note: Slotting Lazarus needs slotting fpc, see DEPEND.
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="minimal"
|
||||
|
||||
DEPEND=">=dev-lang/fpc-${FPCVER}[source]
|
||||
net-misc/rsync
|
||||
x11-libs/gtk+:2
|
||||
>=sys-devel/binutils-2.19.1-r1:="
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RESTRICT="strip" #269221
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.9.26-fpcsrc.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Use default configuration (minus stripping) unless specifically requested otherwise
|
||||
if ! test ${PPC_CONFIG_PATH+set} ; then
|
||||
local FPCVER=$(fpc -iV)
|
||||
export PPC_CONFIG_PATH="${WORKDIR}"
|
||||
sed -e 's/^FPBIN=/#&/' /usr/lib/fpc/${FPCVER}/samplecfg |
|
||||
sh -s /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# TODO: Change to LCL_PLATFORM=qt5?
|
||||
# bug #732758
|
||||
LCL_PLATFORM=gtk2 emake \
|
||||
$(usex minimal "" "bigide") \
|
||||
-j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
diropts -m0755
|
||||
dodir /usr/share
|
||||
# Using rsync to avoid unnecessary copies and cleaning...
|
||||
# Note: *.o and *.ppu are needed
|
||||
rsync -a \
|
||||
--exclude="CVS" --exclude=".cvsignore" \
|
||||
--exclude="*.ppw" --exclude="*.ppl" \
|
||||
--exclude="*.ow" --exclude="*.a"\
|
||||
--exclude="*.rst" --exclude=".#*" \
|
||||
--exclude="*.~*" --exclude="*.bak" \
|
||||
--exclude="*.orig" --exclude="*.rej" \
|
||||
--exclude=".xvpics" --exclude="*.compiled" \
|
||||
--exclude="killme*" --exclude=".gdb_hist*" \
|
||||
--exclude="debian" --exclude="COPYING*" \
|
||||
--exclude="*.app" \
|
||||
"${S}" "${ED}"/usr/share \
|
||||
|| die "Unable to copy files!"
|
||||
|
||||
dosym ../share/lazarus/startlazarus /usr/bin/startlazarus
|
||||
dosym ../share/lazarus/startlazarus /usr/bin/lazarus
|
||||
dosym ../share/lazarus/lazbuild /usr/bin/lazbuild
|
||||
use minimal || dosym ../share/lazarus/components/chmhelp/lhelp/lhelp /usr/bin/lhelp
|
||||
dosym ../lazarus/images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png
|
||||
|
||||
make_desktop_entry startlazarus "Lazarus IDE" "lazarus"
|
||||
}
|
Binary file not shown.
@ -1,240 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit multilib flag-o-matic pax-utils toolchain-funcs
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.4.3
|
||||
BV_AMD64=2.1.11
|
||||
BV_PPC=1.2.7
|
||||
BV_PPC64LE=1.5.8
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
BV_ARM=1.4.11
|
||||
BV_ARM64=1.4.2
|
||||
BV_X64_MACOS=1.2.11
|
||||
BV_PPC_MACOS=1.0.47
|
||||
BV_X86_SOLARIS=1.2.7
|
||||
BV_X64_SOLARIS=1.2.7
|
||||
BV_SPARC_SOLARIS=1.0.23
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
ppc64? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC64LE}-ppc64le-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
|
||||
arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
|
||||
arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
|
||||
x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
|
||||
ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
|
||||
x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
|
||||
x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
|
||||
sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="-* ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
|
||||
IUSE="debug doc source +threads +unicode zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.3:="
|
||||
BDEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-* sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug #468482
|
||||
eapply "${FILESDIR}"/concurrency-test-2.0.1.patch
|
||||
# bugs #486552, #527666, #517004
|
||||
eapply "${FILESDIR}"/bsd-sockets-test-2.0.5.patch
|
||||
# bugs #560276, #561018
|
||||
eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
|
||||
# bug #767742
|
||||
eapply "${FILESDIR}"/etags-2.1.0.patch
|
||||
|
||||
eapply "${FILESDIR}"/verbose-build-2.0.3.patch
|
||||
|
||||
eapply_user
|
||||
|
||||
# Make sure the *FLAGS variables are sane.
|
||||
# sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
|
||||
strip-unsupported-flags
|
||||
filter-flags -fomit-frame-pointer -Wl,-s
|
||||
filter-ldflags -s
|
||||
|
||||
# original bugs #526194, #620532
|
||||
# this broke no-pie default builds, c.f. bug #632670
|
||||
# Pass CFLAGS down by appending our value, to let users override
|
||||
# the default values.
|
||||
# Keep passing LDFLAGS down via the LINKFLAGS variable.
|
||||
sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
|
||||
-e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
|
||||
-i make-config.sh || die
|
||||
|
||||
# Use installed ASDF version
|
||||
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
# Avoid installation of ASDF info page. See bug #605752
|
||||
sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
# change location of /etc/sbclrc ...
|
||||
sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug #174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# bug #517008
|
||||
pax-mark -mr "${D}"/usr/bin/sbcl
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${ED}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dodoc -r doc/internals/sbcl-internals
|
||||
|
||||
doinfo doc/manual/*.info*
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
|
||||
docinto internals-notes
|
||||
dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${ED}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
|
||||
for d in contrib/*/; do
|
||||
cp -av "$d" "${ED}/usr/$(get_libdir)/sbcl/" || die
|
||||
done
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
AUX Devel-CheckLib-1.14-test-toolchain.patch 1468 BLAKE2B 5f1b0dc8474f3af85cdec211f33b8a675cc817ae5bd0fdbe7814fa951e5752a1b19066b21c2ed8ebb6505d93f8d09856861b40d0edceae3ea6e6a08c99ef298e SHA512 dd198c0358b86473d968385b49ef6e4fd328960cb751093e4d69d9f3a257c640b2f8667b039864af1981b4eabb2523e3e1e9440ce6055a2457ec95673f3879f9
|
||||
DIST Devel-CheckLib-1.14.tar.gz 15562 BLAKE2B f9e80b216dd6ee9a9949cc369e2d8f8d18f7cce8dd20f855f91ef18e6646d165c895567ad25e9b50a863e319e7320e785b1c3f5aa6cb3f65aec938786ddff01b SHA512 a5a310cd20e7bfa3c28718b0cba997e029ae0a422ed355d70774691521a3f5c2942eb39269dec1b09e706c1d124559313ab79e787430e0bb3ad43d8aa937539c
|
||||
EBUILD Devel-CheckLib-1.140.0.ebuild 902 BLAKE2B e3e5976174c4cf30177fbacc8bca7919320add5c048cd2c076e0c8e91c30e75dfdcdad2cf59f2e4d91eea3eeb9e695b458c55690f271c376d541ce032ab428e5 SHA512 475955e258e154c05932625254e4c1ea30032bec23ffbee5c06edf25527fedf59736e413f3ae68d1ea80416eb0d20c124d6e6ae6a0f4b1aff53aad201f1c584f
|
||||
EBUILD Devel-CheckLib-1.140.0.ebuild 901 BLAKE2B fc8b99299efa1ab1ec6bedb8f86947cca40d792068d22888ce4d597b317aa2536c7c3c34438dea730b5ba8d541ea68fd9b5c060aa85e2ee1274efef0dc5a3564 SHA512 c34122d44d72fa078331e845e1fff31bfcf729ab1f8ef3832f198a6c88db74c03da1f4684c9527d9388bd7df09c3b91f1f634c8d1e46c96aea18c2367290ecf1
|
||||
MISC metadata.xml 401 BLAKE2B d52207f747c7f41e2df5fab9a7638fc35689f4c4276b70b30cf8a998b320b0adcf1cc174f28bafa90cb4f7ae1f7674e9dab294b8bd1277b82b3e8e354e7c4a1a SHA512 062f45a894d4f32490d4eec9db7afe2f0c73380e9f3a439284f2eb0bc2fe240344fa851cc140836fa3200760d0d155e7c167b2b20db27157829ae69f322fac64
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST Mock-Config-0.03.tar.gz 6139 BLAKE2B 6104f182cacb2d73366ae7df98d7471ce8be01b94add0d16cfdcdd8c14e2f38781b9708a689d39f3ee701d1bf964f7af3563337e458bccef3a2a9b2e4fefbeb7 SHA512 6e61e8edc3226b133eb4b49358cccb45a8eb7da5b56eed0d75ce1503b5ef91c7ea84606ef3bd482e3ac8dc3d66226aa3065d835547b4e807729d909eae88c8c0
|
||||
EBUILD Mock-Config-0.30.0-r1.ebuild 543 BLAKE2B 3b097be5c4b8d58459d38963d57bb43b998f21bc3cfcd6a79834cb5cf357880d5ae96b556f1e40f71f21537c81280e72cdaf0b1d2856d729a2bbac936a473293 SHA512 207d1b91e034be1f57eb611acb8bc284d9e5cf5a153b6cc101d33cac30123459d179776db537e84c0fdd263d58348472cbb014af6cfccb639491d36557bc2b9e
|
||||
EBUILD Mock-Config-0.30.0-r1.ebuild 542 BLAKE2B 8fb5c06aaaee8c10e27274e69fc05440a188dcbc5d54db9abcc1a14102606e43e7b31b56a6c671bbc46f15ec004a96de525b79a807be9a04baf567a951211801 SHA512 522d636af426be81aae26a28d617ee95b436636019c2f9d858c18916709fdea5205611b928db751f532c560c6f61e061862ccf49155b1546d8c87718c2c4dfe9
|
||||
MISC metadata.xml 395 BLAKE2B bc8b478bc0374f320e0346a0edd6340bc941d6f07b6976eed62528052b4ea6a498a88cfd1e7cf259deb95518dca9bff6f1475ebe57d4fead7051f2e734b456cc SHA512 01dc4b7d650954743c7b07f4b4ec37d2fba93fc3073ae2a9feb845047dc3facb70896bce69497521d5b81ad1e7bc0393bf649a30590f747a3c03ede4b70d7556
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST XML-Parser-2.44.tar.gz 237377 BLAKE2B 3d45053b98ef6944122fc4e61a8dd9bf25b3313d635c043ac065387befe2222b52c9963d1f9c5bceb45d7e288f13a6a83a39ccbed8ab2806867d379565199ecf SHA512 4790d20d89478880b18255679727e5b2fb2860bb4de67d5032c805fd44c9f90697a240a612aba51255325192253aa578b346d658b29f631a4e92ad96e7d65b61
|
||||
DIST XML-Parser-2.46.tar.gz 254763 BLAKE2B a815c8f517adb609a1690e6127660eb339649eacffb21d77664b4f9ea071fbaeb432f50bc6469cb36a6b9b4b4e037f778dd2289bed6d87f497713d1d8cab9d0e SHA512 c4609495cc5ca34952f61876a690ef76d42eee6689d1bedb8036c9eab918525ec5213f1639c7178c029ee0f8765a2ca5eb0197f6e39b8be6d5dbc3f3c1d0b389
|
||||
EBUILD XML-Parser-2.440.0.ebuild 690 BLAKE2B d9c7932ed8564e95209cb8aa822415503ce7a222b3ea9536c33aa82e924fdcf6d3f6962dbfda9fbe658f283c78ad66b5c93527c5171d792a462b6bab31fba95f SHA512 a1a2d52cd8e46b8d7c2ccf75b65562cd6d0a47a290d545d31980c5a17117cb9cc8968408d30cb6c25ffba90eba0b4a05b6de2b1a395404af589b1f74eaa7e1f4
|
||||
EBUILD XML-Parser-2.460.0-r2.ebuild 1098 BLAKE2B 9f3d56fcc94907efe14fedc36795c28a0e92d4dbd62d054363c12cce352e1267e7026c1a9e406bfd2937cafb12a357bd6d3c6ae4e8f8bac8fd54e519b6555445 SHA512 cff1db8ce83f0abae57c75454ce385a6a382bdf75167cb59c12692607d6bd2e1c8713f77657c18349a2baa031a70fc70af25c248be42991a8750db1ad9f80d19
|
||||
EBUILD XML-Parser-2.460.0-r2.ebuild 1097 BLAKE2B f7ebbc487748082108e14513ad7da9962eacebe5763a3663aac7c82da7a4aa8532a992f9d6d3fd7c7fa8a90a4fdc80c4287724df473536353c16b12a33f3cf07 SHA512 2636c4a259f99ab82fc36983a77ade790914537e5ddbeeab738b2151b2fa80452ee87496700b2e50583512f03f662a68a9bb6f4bc86d92dcd74d218fc15e0f16
|
||||
MISC metadata.xml 819 BLAKE2B 72b9aed2fbc5cea1b1bfff5a9299ba09eec2eceb5a02efaa8eb8d4d8fdabc4d79d69565b5898b84b814b39cf66211f7e41824000a1ea73f1c0513c3682f501f5 SHA512 9cab20a15cb4f8e4bc8c474d90eee046d970b3c48312fcfff62f5314834714c3731b5de6604a934f997800e8c02be5577614941d36ff5d2ce17a4131c3f79e1f
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST cloudpickle-2.0.0.tar.gz 60038 BLAKE2B 21f3c170c21c5b5c44fbe5317d788e7b09cc4d15789d91227cfcf736807ee11cbbc003ea66dae4fb90de99ea5fd1c6096827efe4d438b92b8b73ec981e12e784 SHA512 4f2c0019a9b6b7ca4c8749b0c2b600ac502450f6fec9c23fe5b9ddece34c77105c86666274e24c6672d405c3e0e800b0a7da055a95ada8fcc060a63214aa9666
|
||||
EBUILD cloudpickle-2.0.0.ebuild 815 BLAKE2B 3ba4989c50d41d5adb6cac0387960f5286536dc0ff91b9870591c8ca519c29c6ff14e38628fef3f44a286900d81434334b940b568dba2be7d43e413e5382051e SHA512 fec9fe7c0dec325ea7ef781c4fb26b99bf2dd10c9f3868ab59c20979bd7b65b2a51572290766520d090dedef4dc7f241366f196ab609205d6d0c2dd53eb20035
|
||||
EBUILD cloudpickle-2.0.0.ebuild 814 BLAKE2B 68c2962fa8872445d165e3e54d98a907f061295d189a5733c84d11f476f2cae8c45eb640c801765e53942051faf10996e5fd4edbac4f06474d24dadcfcfb681d SHA512 3e3c83f49ceb525971cc506f3a5bd408a1ea2bddd655853e1a8dd493502346f6008091990f1d8dce50b30793f7593257e90cf027613809f6371d542e061b3b71
|
||||
MISC metadata.xml 400 BLAKE2B 6b8036e6fee459cd45ff48884ade7ba9471d948ff06e46062584e5953fdaea8197525ec02e2dc44d4daa6326c7a1859680340e616f27d72ea1d98fe5c011a5cd SHA512 70c88c748d18923d3205c9f2ebc683e6b73240d4f8215f1bf3c3c91bb5eaac259066dc735f10806c43375432df581545831c616ab3aa7218981193956e6c0450
|
||||
|
@ -1,22 +1,13 @@
|
||||
AUX django-2.0.7-bashcomp.patch 1507 BLAKE2B 8aeb494087dbccffc69ad43f370e791d9fbfb1908d45f55d5f8be01ec0f3af6b2aff591da84a06c0858fecd44180579a4647d622ef57d8235ccb4b3b80fd3a2a SHA512 5a3867b8e4f2fafe4c53a741d41e8c6e8e28a55463f7d8007afd669a04daa8b93f911e4ef8d5ad38ba300558f21ac8090b00337d0c0bfb93b2aea73a179334a4
|
||||
AUX django-3.1-bashcomp.patch 2085 BLAKE2B 36a0aa4d3413f13089ac104f5d3f98ecbb152a9a5a35f8c1ff2e5ffc9824153b0ac89f1cbca76c31a1afefde471e4d6ed801e405551b25cb31da89c20f3019cc SHA512 82dceede4292bad6e3e4966a6dba01bd2bbc7db494fce592e25dc4a64236485d88d8ad67b247239a80f8fe96dff054d20afea6f48a5518b67cf88404d399e61c
|
||||
AUX django-4.0-bashcomp.patch 2021 BLAKE2B f04c83b500a92ea8ef9609225191e38a41b3349a295beca8f8575ab05395d0cf37e1aefe295004b11c1bcf34cce9074ac7d274034cb50e1ae43e2fcb5d6952b2 SHA512 2215dca4120023b0fd839738bd602443c49e9adaa98d182bc74081ebe70613649c2dc11e2b5f6242701dceac25755adb8605774895091360b56ed1195a7e629e
|
||||
DIST Django-2.2.26.checksum.txt 2561 BLAKE2B a974c7d5c8cef76e781e4fa1559725cc7d77de3d16b08ec20d034b38cb39a986b62397532bbc81d4414b3eae8a5487a9fef9615eed73946a54a2b43cdf34a6ad SHA512 7c1d3e04913237ed0dc9955eedd02cfb5113b9536ed0b471d873269ec82099561714a061b74bf212c2e99bbe47e6cf72e639358a2f9134f751fdd7cd53e6ce17
|
||||
DIST Django-2.2.26.tar.gz 9207984 BLAKE2B abd520bc5681b8450e51c4248eb97558daa6a87f74915bea8857843a5ea9be6bf3a04c9f5871c35d2076adb644da266c7b88ac39bb2837ff1eaa71f885bd08bf SHA512 2005b081e7347f6f8fd4837219043bd1728cd85aca00c62a16432f63272abec7d30b7461675708fa0f55e3273af5bbd67c26d31934f8a4a38f48e65ea721916f
|
||||
DIST Django-2.2.27.checksum.txt 2556 BLAKE2B 770dc5670d0d4aebcfd1956d644b9d7e4e5bf0b511649ae072de1b8ec8d2ea12dbc48563f5372979dead9e729abd9b5174c99323a14170876b1f1b5e61de96f6 SHA512 fb76f2bef6e6d0a3002298e4eeec5b335bfdc365ae55f0c26dcb050d369864c504dd32d40ac3b49897d56bc0dadc10136b588361ddf3598ffdc03830a97e1d63
|
||||
DIST Django-2.2.27.tar.gz 9185716 BLAKE2B 26d509c722c62b5bf784331466a97ad1b961715572da9e6add4be1bdc7cf999c0ec7c763d9bc8ab2fc1ca35a48783feaf748c3c9388ae9f5f3e393972deea734 SHA512 0db670651a820b49d855e38a336c0c6990ce4701bb686c5e8a292ccb03342e995c61c2c628b1d625d2715404e969fc31c256e5bf0fd6c1ff714d1c1c1ee30bff
|
||||
DIST Django-3.2.11.checksum.txt 2561 BLAKE2B ece4f40d4d368e2e5ad3cc3ed6072aa8d1693b47d68b76020059508bfc10a30f6291f5e84c68bb959fa973c4e060bf4fd408beefaedc13b68e81b721cb78aab3 SHA512 4f2c12088cfb69f547ba687e9cac34b68a9bd28c793482430bda078f51e780b1272de7ec7816dc31d2fa93bf1c68973f847d67c01414fc8bf07fa6f6ea09dc39
|
||||
DIST Django-3.2.11.tar.gz 9821958 BLAKE2B 8f83db578e31c3cbeca67bd826b4c639b346e449de83aba6ddf6bf4eef1fc58ebcbbddf91227012e592516d7796d9f3cc468ae4ce51d684b4aa0a417bb39ddb1 SHA512 ea1ca9a76afcd7e20d0ce518efc0497bbd11f4ab7ed20bd4490561bfcfc6c80db8922a22d8aca94c1dc2743e7366b28a0ae76c3d64f55afc142c38a744dd5120
|
||||
DIST Django-3.2.12.checksum.txt 2556 BLAKE2B 7ae6e41305b5b07969ddad3474a0819359dff888fc3bdc1c5000ded1b9b726a7c55aa7aaffc85184558edcc6c12b617c8270cc569fa8e645622206631979a9c2 SHA512 5098dde440a15ad066fa7927943f4ec66bb925798afcb42101c5cf50b8148301866c39ad37ebb5db9d7f9e195953337c03dc6fa2c49758716f969ee2ce414d24
|
||||
DIST Django-3.2.12.tar.gz 9812448 BLAKE2B 39b6e7e8f50b79d7be62be171eb358ab815c9dd630b8b2ad2cf085c42c79a6a8c92914fae3c471f41578e65fa09f011f959dd0794c804e7b30cfbc9411cf4f4b SHA512 fc8ad3af019b268d514cc5240cac9c6b2fbf3a169c7933e8ab2da92e9cfed72df7a2784a8d92eaec8105bc9c245763acd307178bdf662e5d51407e72ae9d8683
|
||||
DIST Django-4.0.1.checksum.txt 2552 BLAKE2B 123a613af7ff1ccb423c11086501a4419d86cf07c0ae7a4751f12d32f1592916e72e3e47cee13192944a3fc05ce5ee7ac81038118e346545536f313a10783de6 SHA512 979a7c5efafd4d8923d6c769ddd7d73c67482c33fd1a76c64d75aee0a03399e35703e7cbde9f5ad25baab969c33ab53690400e39c879e54066a146944e5d0ee1
|
||||
DIST Django-4.0.1.tar.gz 9995484 BLAKE2B af05ec1ec1d079e383efc590de78413b7fd769e7f03c5d4bdcfd26f193a46f783b4c3428558f5d3281cab9a7fa8be4cfecdc4edaf1bea72f37e8e983b3c061f1 SHA512 7753c516b080c10673c3a95e8ec4af00984aeed5f288e4d6e7ab1efd461222a343701b21cfd27bc61ee4e63df5ce3f3be49398490a995f6839e63b40c3fe306c
|
||||
DIST Django-4.0.2.checksum.txt 2547 BLAKE2B 532139126846e1758bbe7b4dc4ad4aad6c6b3607e298f4373366239637ceca7d01a26472b2a87917e64db7140d28a76c1f5fbb396e7022b1a42b723551770d1f SHA512 eddd8ac31fc60f803f1e6f975c079e84e5ef997e8ac93b7dcf3573bd0c5d057adeb6f092acaecb200529044d81aa2db9849c1c13525678c8c2bd27bd14d6b280
|
||||
DIST Django-4.0.2.tar.gz 9996300 BLAKE2B 422b0bb000e7f62a854dc8fa686001acc3f629ded462d2520fad9486a9c8eb5d501d29c6a9f30f63ff8da128ded6f40281439371eb688fb9bc95f2377c5ca0f7 SHA512 c64b25aa69b826805cc7a3efcd63ae41bbc31a61e68cdbda90e6bcec6bd8e2c5fc47b82176d0c1708f55d2c7b082c71939b89cb0621fcf1929d1475e3d393a97
|
||||
EBUILD django-2.2.26.ebuild 2676 BLAKE2B fac142da15bc8f27726191808b107e7e49be0d68d779259ce4a1730aba104d3fc978292dd8c5ce7fbe9020a802eedad02d5cf1c50e6cbb314e540a254f78e2d9 SHA512 a7cb898618b31a624561389e19fd318bfa9afaf7609e9fedf1d049b7f3dd99b45c39d619d0db3c895f305dac09ac39c33c947cb60422908c394a2a31690d8a8c
|
||||
EBUILD django-2.2.27.ebuild 2680 BLAKE2B 99951c73539e0bf7c48447f1ca53a60d411a5caf72cd348eaec211c2c3527b6d3f1294b84c2a8c55cd636457fe6299c502baa608f6596917a8eb6f74075c79bc SHA512 c54a300717fb5a3d03c366e2e403bfb63b929e39c6bbae3b8b0f25124f0f8097e438c31859bdf4f6aeff64ce5fce3e6b8a2404d483674844c4d5fb1bc0966553
|
||||
EBUILD django-3.2.11.ebuild 2896 BLAKE2B e152a21beddeb46f0b5ca0210bf362fb4eafbd8ac1152964bab008d4fe47d7c250e6f8d082055797a89c0ef34a9fe1137d9f9fe46a45376c53ba433d78fd5e60 SHA512 9a0788fb8f1c916d79871eeb24b67e8f9fe803db707533994e3087c641e430f6eba308f95775b4006f06b7576bb5b9a19c9bf906c4f50cba1f54fd281331532b
|
||||
EBUILD django-3.2.12.ebuild 2900 BLAKE2B 6dd78efc84394b9ab6a23227750c4b64335a1d81f283a629b4ed4b42a4738fe44e4a74e2668032cebf2b70c02d41fbf12835a87e5db88c4427b45ceb99a2f0f1 SHA512 f115b5ab733566d8f17507baa2f9b21e5f26cabbdde84b6bf3b0887e585c4396320d489678a97a566c1ea6438c7e1ef1feb5a6157f099f26b4964977b97d1a14
|
||||
EBUILD django-4.0.1.ebuild 2960 BLAKE2B d04166c92cbcd1fbd20884f198d3dedc26215f31501d17d10dabd240302a96be117a4b793af6161aefdffe82d2a23de9c2f5d445d00519fbf9bfcee5d7d39dbc SHA512 6dce1aa3cf814809d01b6c69a02d6f2c979d4755c709b606106b62ed4f71e0883203f50bd1ef0b12d0d8a135ca89d57da2ee27855a068b0b427e753f1be36bec
|
||||
EBUILD django-4.0.2.ebuild 2960 BLAKE2B d04166c92cbcd1fbd20884f198d3dedc26215f31501d17d10dabd240302a96be117a4b793af6161aefdffe82d2a23de9c2f5d445d00519fbf9bfcee5d7d39dbc SHA512 6dce1aa3cf814809d01b6c69a02d6f2c979d4755c709b606106b62ed4f71e0883203f50bd1ef0b12d0d8a135ca89d57da2ee27855a068b0b427e753f1be36bec
|
||||
EBUILD django-2.2.27.ebuild 2676 BLAKE2B fac142da15bc8f27726191808b107e7e49be0d68d779259ce4a1730aba104d3fc978292dd8c5ce7fbe9020a802eedad02d5cf1c50e6cbb314e540a254f78e2d9 SHA512 a7cb898618b31a624561389e19fd318bfa9afaf7609e9fedf1d049b7f3dd99b45c39d619d0db3c895f305dac09ac39c33c947cb60422908c394a2a31690d8a8c
|
||||
EBUILD django-3.2.12.ebuild 2896 BLAKE2B e152a21beddeb46f0b5ca0210bf362fb4eafbd8ac1152964bab008d4fe47d7c250e6f8d082055797a89c0ef34a9fe1137d9f9fe46a45376c53ba433d78fd5e60 SHA512 9a0788fb8f1c916d79871eeb24b67e8f9fe803db707533994e3087c641e430f6eba308f95775b4006f06b7576bb5b9a19c9bf906c4f50cba1f54fd281331532b
|
||||
EBUILD django-4.0.2.ebuild 2956 BLAKE2B daf8e2523918193db1e242684debfb524dde2a85243f4c8e2700c730f72f16a215dcd507529790f1fdb2d8e033368b96b4b02b6aa238e59a1cfc497dca093ac8 SHA512 1b0912d1432ea5657d752d49d73d1e015039d8fc8760a16271eb5bac9b8d95b68eab1a065162385f13f8fa93f832d3974f5a3800204f191a1101f885238f5390
|
||||
MISC metadata.xml 400 BLAKE2B 6b3414ac734f078d90c82b44edd2f9f70e494e98da8a3d874d18006ae5e0eb5f7060b98b402094d6045e800bf525586f2566e6f554a8b2999cce37bdcc5472a0 SHA512 1cf0bb6ef93da3abbd1a66878462b1b8672a9b8fccd7f968b427e429caa6ecf30cb703a6060d621ccad1ba77b927d2b0e632b04b0a47975918ccbfcc5f2b85f7
|
||||
|
@ -1,92 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
PYTHON_REQ_USE='sqlite?,threads(+)'
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 optfeature verify-sig
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="High-level Python web framework"
|
||||
HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
|
||||
SRC_URI="
|
||||
https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz
|
||||
verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="BSD"
|
||||
# admin fonts: Roboto (media-fonts/roboto)
|
||||
LICENSE+=" Apache-2.0"
|
||||
# admin icons, jquery, xregexp.js
|
||||
LICENSE+=" MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
IUSE="doc sqlite test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
$(python_gen_impl_dep sqlite)
|
||||
${RDEPEND}
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[webp,${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/selenium[${PYTHON_USEDEP}]
|
||||
dev-python/tblib[${PYTHON_USEDEP}]
|
||||
sys-devel/gettext
|
||||
)
|
||||
verify-sig? ( sec-keys/openpgp-keys-django )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.7-bashcomp.patch
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs --no-autodoc
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Tests have non-standard assumptions about PYTHONPATH,
|
||||
# and don't work with ${BUILD_DIR}/lib.
|
||||
PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 ||
|
||||
die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp extras/django_bash_completion ${PN}-admin
|
||||
bashcomp_alias ${PN}-admin django-admin.py
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Additional Backend support can be enabled via:"
|
||||
optfeature "MySQL backend support" dev-python/mysqlclient
|
||||
optfeature "PostgreSQL backend support" dev-python/psycopg:2
|
||||
optfeature_header
|
||||
optfeature "GEO Django" "sci-libs/gdal[geos]"
|
||||
optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
|
||||
optfeature "ImageField Support" dev-python/pillow
|
||||
optfeature "Password encryption" dev-python/bcrypt
|
||||
optfeature "High-level abstractions for Django forms" dev-python/django-formtools
|
||||
}
|
@ -1,101 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE='sqlite?,threads(+)'
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 optfeature verify-sig
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="High-level Python web framework"
|
||||
HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
|
||||
SRC_URI="
|
||||
https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz
|
||||
verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="BSD"
|
||||
# admin fonts: Roboto (media-fonts/roboto)
|
||||
LICENSE+=" Apache-2.0"
|
||||
# admin icons, jquery, xregexp.js
|
||||
LICENSE+=" MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86 ~x64-macos"
|
||||
IUSE="doc sqlite test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_impl_dep sqlite)
|
||||
${RDEPEND}
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[webp,${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/selenium[${PYTHON_USEDEP}]
|
||||
dev-python/tblib[${PYTHON_USEDEP}]
|
||||
sys-devel/gettext
|
||||
!!<dev-python/ipython-7.21.0-r1
|
||||
!!=dev-python/ipython-7.22.0-r0
|
||||
)
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.1-bashcomp.patch
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs --no-autodoc
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Fails because of warnings
|
||||
sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Tests have non-standard assumptions about PYTHONPATH,
|
||||
# and don't work with ${BUILD_DIR}/lib.
|
||||
PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 ||
|
||||
die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp extras/django_bash_completion ${PN}-admin
|
||||
bashcomp_alias ${PN}-admin django-admin.py
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Additional Backend support can be enabled via:"
|
||||
optfeature "MySQL backend support" dev-python/mysqlclient
|
||||
optfeature "PostgreSQL backend support" dev-python/psycopg:2
|
||||
optfeature_header
|
||||
optfeature "GEO Django" "sci-libs/gdal[geos]"
|
||||
optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
|
||||
optfeature "ImageField Support" dev-python/pillow
|
||||
optfeature "Password encryption" dev-python/bcrypt
|
||||
optfeature "High-level abstractions for Django forms" dev-python/django-formtools
|
||||
}
|
@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE='sqlite?,threads(+)'
|
||||
|
||||
inherit bash-completion-r1 distutils-r1 optfeature verify-sig
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="High-level Python web framework"
|
||||
HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/"
|
||||
SRC_URI="
|
||||
https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz
|
||||
verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="BSD"
|
||||
# admin fonts: Roboto (media-fonts/roboto)
|
||||
LICENSE+=" Apache-2.0"
|
||||
# admin icons, jquery, xregexp.js
|
||||
LICENSE+=" MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
|
||||
IUSE="doc sqlite test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/asgiref-3.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/backports-zoneinfo[${PYTHON_USEDEP}]
|
||||
' python3_8 pypy3)"
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_impl_dep sqlite)
|
||||
${RDEPEND}
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[webp,${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/selenium[${PYTHON_USEDEP}]
|
||||
dev-python/tblib[${PYTHON_USEDEP}]
|
||||
sys-devel/gettext
|
||||
!!<dev-python/ipython-7.21.0-r1
|
||||
!!=dev-python/ipython-7.22.0-r0
|
||||
)
|
||||
verify-sig? ( >=sec-keys/openpgp-keys-django-20201201 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.0-bashcomp.patch
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs --no-autodoc
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
cd "${DISTDIR}" || die
|
||||
verify-sig_verify_signed_checksums \
|
||||
"${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz"
|
||||
cd "${WORKDIR}" || die
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Fails because of warnings
|
||||
sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Tests have non-standard assumptions about PYTHONPATH,
|
||||
# and don't work with ${BUILD_DIR}/lib.
|
||||
PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 ||
|
||||
die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp extras/django_bash_completion ${PN}-admin
|
||||
bashcomp_alias ${PN}-admin django-admin.py
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature_header "Additional Backend support can be enabled via:"
|
||||
optfeature "MySQL backend support" dev-python/mysqlclient
|
||||
optfeature "PostgreSQL backend support" dev-python/psycopg:2
|
||||
optfeature_header
|
||||
optfeature "GEO Django" "sci-libs/gdal[geos]"
|
||||
optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached
|
||||
optfeature "ImageField Support" dev-python/pillow
|
||||
optfeature "Password encryption" dev-python/bcrypt
|
||||
optfeature "High-level abstractions for Django forms" dev-python/django-formtools
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST eradicate-2.0.0.tar.gz 8390 BLAKE2B 22dced2414622138655be80d1c10b746519d313959c7620cb54c4dc27247b0c29b7607c54934fe1dc379bec2cb729213b7ffb1d27f3f7f9b9a9d186aa9402674 SHA512 947a3890ccb1dbb52e73b37e632ae5ba1eff732d9d0b0dc127fa8dc908412e864fcda3203274d5eb1645b22f6e97a90ebb13cd4363a2360d6591475d909bdb96
|
||||
EBUILD eradicate-2.0.0-r1.ebuild 633 BLAKE2B f747ba9fd46ab4bbea4a956f9dc34bd6a1941d0b88dd7f2bb756c254e344be84a86e7aa8d374a3ae897a8dde4a312b5dbeea670096c6d325cfadde4ccb761ebe SHA512 fe867fc02285163680a938c5f573993450d9b6fe12c8f853dba539625928504fa3df4fb02f32928af7a0d94587d5a4c15ce0e1cd5ddb13f5185789d3a5ed29b3
|
||||
EBUILD eradicate-2.0.0.ebuild 622 BLAKE2B 5585ae90980db2cab87f80150e6b9d660ca723fbe627f6460b016d428a3fc8ec7934569c1f13a6dfad6211e49b50657328b9bd0844774eb8645d730bacbed133 SHA512 4dc7fe710331965d6394dc67ba4542f99cbb9fbc986a6282b2620c2b81e71cd5b5485f29f8f466ecbad43d0d3119876555468902f142479886605a9c3c1d1f9d
|
||||
EBUILD eradicate-2.0.0.ebuild 621 BLAKE2B e03f7458a23bbe3a5c85bf9b052d286116b5dc9bd4f99ae04568a6fa1b9f92ef41fdfbaf7c7cb4e411219e5177b37e52a80f085e4c753aacbca9af2abb8ed8dc SHA512 8fdf2e18042be026adabfa49159b2895184b6bc087751f519084d1806b737b8a4985111611b28c295344033273f0ac09c5efe25c40c9a8933a39be8e6bf40371
|
||||
MISC metadata.xml 396 BLAKE2B fbd39a684f629b20e9553c911e5ce288863e35bb6a1a4fc7a16e9e114d9a70f0ee6bef0ea8cf34f091427ceaf743a5b280ff0b7b6ca6858b0c301fecf6535df5 SHA512 03886b745b7f3e2b99a39fdb0fe7864d4c1acdd529137b845d1700715b606fa02ec53bd8ed25ea20242857bd421869246f0165566dfe72098853203bf8fda21b
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST mando-0.6.4.tar.gz 36560 BLAKE2B 9878746485d4b896c3e32512b77ac02739940a1398eee12056fd6719cc3c99f8c526c8e573d2556b6a9d0d8d26e20fb45c97119e626b1d44f0a5b5f4655adba1 SHA512 457fa0db4e8e5dbfac6146d254181213814ef1975c919b4573007face27749ec3a50eda850558ebdc0fdff94a5e9819fd825b10cb3023078b2b426c2825fdbf0
|
||||
EBUILD mando-0.6.4-r1.ebuild 857 BLAKE2B 59664b794c85f95dddb2e0eaf67159375410a1ceca4cd1e52b425722eae3767bf4cbd8f85719cd4c15e5c59dd066a03533cfd038385f7bcb5cb5a164830f6406 SHA512 f3b3ea11ac4e774f392a62254f1ef00614b89cd16d9c1919fd7989de0e478f7867296428d644ff41187a58310777d6384fe8ea29243a53a4e3c3783ac10dbc32
|
||||
EBUILD mando-0.6.4-r1.ebuild 856 BLAKE2B 2d0824bd50c40be72ddaec4bd4faaafdf4deb66c8326109200ef1388514108986beccce63ec42f669d52d4449ae7979afdd76f9a50d8d5bae76e79b4850e2b62 SHA512 d5ebbd5641b3f17463916b4b6ee614f5f18e3bbe41a87a235d3b5c31b245f7481ac49691be8aad0d75e8cc256cfaf3cb8366a09c3fb006bf30e640725c436402
|
||||
MISC metadata.xml 285 BLAKE2B 3f0f1cbd9283919ed3b4fb89de7ce5a23a535844ca1d04dd416f2a9d7d64ebcd84a8f89736c56452418014c4574bc4cb75156038f100eb87b5f7ad663be5ca38 SHA512 78b7d0ede36474cdd7d887cc2d74b69ff28f4c2ddf3f8dd449396b454dd48308e1ac912331b8f03aff18ebcd0168f656dc1affdda0f88dbcfb39dd14ba2a7d42
|
||||
|
@ -1,5 +1,5 @@
|
||||
DIST pyGPG-0.2.tar.gz 15439 BLAKE2B 92c82b8b23c279461a872f118c636fa9cdae3f44910fc34a357983b0b4afea2a7b13c6400499a0fdbb4365357ade64294642178ca07a79ab3b7df89e60146e73 SHA512 93d892a57a27b254bfdc9778b73d341dfec654c2104c578014628df78c43beaf93eafb571ac544d52f334e63f6e5b8c0cfad7c8a0d585ee7211e8649efce8c67
|
||||
EBUILD pyGPG-0.2-r1.ebuild 1158 BLAKE2B a03278ad31f9e185d728b52fc538a28b098c4cc3a619ed523a44a51315334c8c745938bf9ad8afff1e7992c3ce73b86548ef027e73f9a43d44cf034e8c92b554 SHA512 53f1116af1a8cbcf1996e0aae1b157f0f7a8e0f4c359435553bbf9368d50b6ebbcc2ea326d06c07d8c2b9d122a8aede45068f0f3f6077a4b0142b569d284f7d7
|
||||
EBUILD pyGPG-0.2.ebuild 1157 BLAKE2B a4b93515073eb71c7dee0e0ea1dadf627329e1b9f4e2d423c144c42cc91821a551cdbbd825d0411e3da86d25b1a086af14d0bde8f38f88f9086aeafd83bd9952 SHA512 5b1ded477bb7239380706db2581af68985ed9494d76f68c33592663cd8e95cb925c99c7497a884f0ef21f25e246158842787e89ea8e3642742255b8db167f93c
|
||||
EBUILD pyGPG-9999.ebuild 1158 BLAKE2B a03278ad31f9e185d728b52fc538a28b098c4cc3a619ed523a44a51315334c8c745938bf9ad8afff1e7992c3ce73b86548ef027e73f9a43d44cf034e8c92b554 SHA512 53f1116af1a8cbcf1996e0aae1b157f0f7a8e0f4c359435553bbf9368d50b6ebbcc2ea326d06c07d8c2b9d122a8aede45068f0f3f6077a4b0142b569d284f7d7
|
||||
EBUILD pyGPG-0.2-r1.ebuild 1161 BLAKE2B 0b5e213f7f110f182ccc9071dce832c20a46e44a604d3d392a6e5f773ce8add8d56fffc5aa0d4ab0c47adcd626935bdc4bad17b04ea650b94eef422266d38c4d SHA512 b8a3f9b2b339af3bdccbce8e5c8ab757b3150981a13cf12fbd46f56063e350637b1f03bd98dff9aec46ff312e8378d009d15131884875dbd44d92e370cac7942
|
||||
EBUILD pyGPG-0.2.ebuild 1160 BLAKE2B 9b30a5d267c33d1a064044b966cced6b27f594be5c451c2c86ed076c3acc60f71f3cd8eb879a9bca0cbb336c8773adf8c9e405cf93665ecbb65bef08bd643cba SHA512 80645b487c926bc580036cdb705969bc13cea8a3d0f1b1d72e8609a337431df401289580ae9e51a3dbec111c3748dc204b7d8615df1ad1dfef97e7e9daef4d0e
|
||||
EBUILD pyGPG-9999.ebuild 1161 BLAKE2B 0b5e213f7f110f182ccc9071dce832c20a46e44a604d3d392a6e5f773ce8add8d56fffc5aa0d4ab0c47adcd626935bdc4bad17b04ea650b94eef422266d38c4d SHA512 b8a3f9b2b339af3bdccbce8e5c8ab757b3150981a13cf12fbd46f56063e350637b1f03bd98dff9aec46ff312e8378d009d15131884875dbd44d92e370cac7942
|
||||
MISC metadata.xml 567 BLAKE2B e0c99fa711e08f9ae227c71f685083871aed97c2b8e07ea67e02bd9685f0b1c05a7cb5cca4b9b7405b3c6af49659bb7d79bad1128a3696d7b918c9ff93ccd13a SHA512 ce22011a182f373d6507ddc8eb2658d0f0e74e5f2d281a6dc4326b5c04a34320ccb294c4606da641c1a24d0563a612931cb4a1acdda61db02a723b4111d89b77
|
||||
|
@ -1,9 +1,5 @@
|
||||
DIST pylama-7.7.1.tar.gz 34740 BLAKE2B a4bd5aed40c2c4e7bdb9f9968030f0954f0309cff80567b2252ee9576fdb4598714286bda63c22676789d4919662430ef2729089faa70b5cb590784eb47ef1f0 SHA512 298fabffcdf38e3e868e3965de87a0e761bc9dfcfe33320b53057c4e05598bcc22045481ec16ccb8df27f49ea41d6fef82b69fe7327905f93ce74d9350682cf0
|
||||
DIST pylama-8.0.6.tar.gz 34223 BLAKE2B 690a0a1197f6512e9511083aa079843f2ca99c9bdb5d74756531db79f7d39e8e0f60a0955b24bc7739edce0376eb79821a796978fb2365789a97628f03f240f8 SHA512 5bc75e5b2a0b141dbe2ca993d13833914980c735b84f3df766bf750909af1eeaba0d554845d8c09f0d8186ff48c8330d9ffa5b565a577ef6506f32672a2c9209
|
||||
DIST pylama-8.3.6.tar.gz 36190 BLAKE2B f0c9944d3aa205c9f52fdfab6b47ad5ad08f1865db22eef20add0652fcb4355f878026aad9f1babbfcb4f98c13bc5cbaa069d9d7b5c7a775d994a8952f8a8cc5 SHA512 c279f3005e354be448f42addcfeae6025e1dd4acf84e5de0c3ae707ceac4f98e43a07f43be347b26bfb8db4167945db1db547ed7bd9eb73ca78bbc92d26fdfff
|
||||
DIST pylama-8.3.7.tar.gz 36264 BLAKE2B 8092320c039b5cd45a379a2718443cf03f5cef931767ae765c90096e3b23d5b7242034009eecb40413f05e2de2fd72a4285a91ebbc1fb474d232cffc9c992b94 SHA512 acfab9584e7bd8b146350e6af83975e91391e39c00a0fea23d4e55f46dd684b519088ed68c90e335e334e8526aecab2ad2286a0c082d26a4b867eadcbd8866c8
|
||||
EBUILD pylama-7.7.1-r1.ebuild 1265 BLAKE2B 59690378b80f2a9dba5a7fdeb2abb1d518c94edde05a87b63e68309cfbd7293c672a01225dd325dfc46bd04542eadc4b0b46fedad8c4da9a6b627d8f8f47097e SHA512 2535a1bc10f6e15268befa691c177831e4595a429af11c23cbb38327560ae9ebbb7941b32369f9ef2a04a8e7cc9d2a31c2c330cefbe644e85111be3b3e1db1f6
|
||||
EBUILD pylama-8.0.6.ebuild 939 BLAKE2B e73e48cfc3729928c111a6bbe69da8da8ba76d3c7b38614f3e6abf1fdbfab7b01c0e26766924ce8ddd8b218f2ad6e9ea5cadedaad235dfd724bdbd4ea28cce7f SHA512 4e1cfa1e1d6b9ab00704a0a689899306d14059f35b2f0c17e3d48214ae135a15387e864df6b60bad37fe18358f9e11f5602b0cf49a9346f184e11832e7391698
|
||||
EBUILD pylama-8.3.6.ebuild 974 BLAKE2B 91f67b04f94b8480d27f6f8643cf7234f52b58cad5c4545109fce44b4f9ef67b732acf18cbd596856990e078927f4bfc8a61a075c93bf47f31e3f0b90545ce50 SHA512 9f45f055edae85710ae177a5c5ca768181c88a4096edc4ad5795e782a57bafe0b65ac17b80b409e6e817a341580c11338ddda6cbb7f56f24e5e1436bea1d07ee
|
||||
EBUILD pylama-8.3.6.ebuild 973 BLAKE2B f1f56f435f6c12db7bbc5e575ce61ec2cc39206f203e80a483c1da02d455707eff19f2256ecec4bd636f3d8f007de44dc802663f99a65874395a386ba57567b9 SHA512 f4ddf10fe358dce041ad4219419c53970c572e1fb50dad52cc64cf4203246cf877949f6804f4f39859a56a01a8e6cef0a17f082953785be1d6cb56e111950ab1
|
||||
EBUILD pylama-8.3.7.ebuild 981 BLAKE2B 4629454cbe80e27d7ca64a9559a1f1f82ad3bdddc759d6e684427805be34cd85e9862332d9563a41527edaba469d0b67550a68f9a081f4a531326cb659338420 SHA512 0ed01f4605f3e6642aa8b4b236b2246f2b62b8242c2503b26f2d3a580bfc3eb28738246aef96559dce6c4139d2c1b1e10cc5c661c1a2cecd69d562fd0025ef49
|
||||
MISC metadata.xml 389 BLAKE2B 4320ff9500cf2ec3d896d0ae766fd5c850b72c773a1626df243904f779db7ab9c28c2db462ab90f72e99b1da96b1131d8da207f9e3d14766ef9c33fe92c4ca76 SHA512 024823ccef87858b76df67e12452882ba523cc05a09fc128d8fe943ac92dc45abd9f3912cf6232fe411874555eec205b2623419d9e0d3247bae7663fa3775894
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Code audit tool for python"
|
||||
HOMEPAGE="https://github.com/klen/pylama"
|
||||
SRC_URI="https://github.com/klen/pylama/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
# pypi tarball excludes unit tests
|
||||
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/mccabe-0.5.2[${PYTHON_USEDEP}]
|
||||
dev-python/pycodestyle[${PYTHON_USEDEP}]
|
||||
dev-python/pydocstyle[${PYTHON_USEDEP}]
|
||||
dev-python/pyflakes[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mypy[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
sed -e "s|exclude=\['plugins'\]|exclude=['plugins', 'tests']|" -i setup.py || die
|
||||
sed -e 's|^\(def\) \(test_ignore_select\)|\1 _\2|' -i tests/test_config.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Disable eradicate until it is fixed:
|
||||
# https://github.com/klen/pylama/issues/190
|
||||
tests/test_linters.py::test_eradicate
|
||||
)
|
||||
epytest tests
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Code audit tool for python"
|
||||
HOMEPAGE="https://github.com/klen/pylama"
|
||||
SRC_URI="https://github.com/klen/pylama/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/mccabe-0.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycodestyle-2.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydocstyle-6.1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyflakes-2.4.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/eradicate[${PYTHON_USEDEP}]
|
||||
dev-python/mypy[${PYTHON_USEDEP}]
|
||||
dev-python/pylint[${PYTHON_USEDEP}]
|
||||
dev-python/radon[${PYTHON_USEDEP}]
|
||||
dev-vcs/git
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# not packaged
|
||||
tests/test_linters.py::test_quotes
|
||||
tests/test_linters.py::test_vulture
|
||||
)
|
@ -1,3 +1,3 @@
|
||||
DIST radon-5.1.0.tar.gz 1873643 BLAKE2B 475c140fa3f9350b2376a66d3cf0dddd7f0ab1b3a4f397e82b65d175dc20ece38da1cdc7a83ef2f9e65d7d735dd589fa7ccbb5d966ca07cc7950430dd33642b9 SHA512 98e1c3dbf419ff0a791f01ea5376177c5be47c9cf1afdd9ae53014e8869dd10c7a7661a69bace48adb880173a8a176d4a13534711fcf53408b3f495f4579f7c5
|
||||
EBUILD radon-5.1.0.ebuild 628 BLAKE2B 4d4fcfb4d17f3b0bb26c8d91feac97f80c773ac98b84321d27365e6473f354120dc07a7365b4675ff6510e026e4d6fb766aaf902d6f653dd5c186ed00c947b06 SHA512 a8a0d6e3a6e47694f869b260fd41f1573debeddc4db1a1054582f127457157947298e2e0bd987e8f25e23923b1004937d1debcc0327341d53f88bc7986dd3d9f
|
||||
EBUILD radon-5.1.0.ebuild 627 BLAKE2B c768b072e8617e63d33d667adefc8ddda54b008147cb1796bd791ede7e636329246c707d67533e29313a5f500e7509aea6d34e3fa7a160b9cc64e2bd80a6a5fd SHA512 8edaabbf66e445dbcce2c1b4de109e873f1c1805a22ef015cbecf4b38b41da37143a66888c8345410fc93cb56010902486491860e8e605436c57c903893e6a7d
|
||||
MISC metadata.xml 384 BLAKE2B 9c13838aaec4e01a6152498eb4f0e3bfbbb8cffe0cebc53ae7602c6ef1009852b8568f33e6c0299619a2a2df234abc6e06726ca145b09470b2798ea500dde731 SHA512 5c1a2d23ef8a2450f6d2540d125c9edea2e512e2df03a6d8501a41e238902afe4283c9f455b178e80626cf266aa472391c342d6128683f534f37db60eab38720
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST patchutils-0.4.2.tar.xz 159504 BLAKE2B 3ffcda8497b010a88e8601005871fb691ea8cac6158276862ba8e4192c333a335965288f9b5451c2fbc0a873ef95eb4a485d265387b43b0cec31b6c18d38f88e SHA512 20970d52fd43c09dc7799297b9a9eb6f60ba29ecc750d49381a2dc52273dfe484a47696cddd541f623394fa3486734cf337297cbeab6b1b244511c7740f46897
|
||||
EBUILD patchutils-0.4.2.ebuild 599 BLAKE2B a4ff6be6e75406430132679ebbb0f95e97d96f67948a27b62efa93c24b9e4806f818c414d60821e0fcd31da63dd6c2a9ad8da3cfe9c4f45d8dca75969ab94522 SHA512 9c141b27a7ca4274ed96395893e8e41eb6b1a96f166e36282380bfb0faa8b04cec5f5b6b00c63aafc3cd4bf79ca4b3254f5d3ea1e509623b8ce6ddae7a154160
|
||||
EBUILD patchutils-0.4.2.ebuild 598 BLAKE2B 131e257507520035ed6f892ee1d78310512291cd7bccf00182538861bc8032d55509c7662439dfc207a743f0370323c55eb2fdac2e6550ae1ebdf7d536479623 SHA512 9ec7bd92837637967e6929026f6aa891eab54145a29f85a8967ac480821f582eba7e50a4617d803cc3d786d74cadb0c825d17e796c1f556bde570bafd886df8d
|
||||
MISC metadata.xml 348 BLAKE2B 19e90134b16af7cfbfdf6df3426141aece8338e53d9f63a52ba5954c528b81b48e53d6a26dd1ddc8cd2004f71740901cc3e8cdca76a9121a9bae2520c4acfcf6 SHA512 b335be213bc604fcb3ac0ff52712bd55d6fcea7855abdb349785fab15bd2dbd1200e9a7af1589df4d07babf188a8fee0f374ca6e7fb342d3359f38aa93e75791
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
DIST ssmtp-2.64-patches-4.tar.xz 6928 BLAKE2B 6f1d9a823273298abc58025c94cb288e1e296031580f63ed489a9d2559cd8846761e78c6fdfc1a385e645f990bc739ce3cf3ad0d1c1a3006dd3bd60e4a38c4f4 SHA512 6fa57c0bc5ad363e21bf69fb60f1cbb87ad1ead393a53ab5bd25b709303c321a29ed37ce7fe95b94dae748703bba3b0631fc2a95e40957c5241b5d9f42bc0c4a
|
||||
DIST ssmtp_2.64.orig.tar.bz2 52501 BLAKE2B be158f8d969f98e1a7105bf4b741da960efa2a1c4a941426d6b6ec0677df13a2272fc71a93d2c44fe65c7d0a30e9acc4ec8259ed298b746c8d9ceefd64f95336 SHA512 911752e744420adf58552b9cf3a6e558d8b39103e5ad33a9ed4429b9a3a2091f7674aac11fe9bbd66747a61cdabe6bd638b80efcaadc86b057c12e2e235cca72
|
||||
EBUILD ssmtp-2.64-r4.ebuild 3538 BLAKE2B 55dd507a28705730cf40bbd028531be6a164e69956d9cb3874792c3023cb66e28f56e938c1da1bfaf9a5aac2af22c400b6c56a139e1024f50e6d284385d50821 SHA512 791631ba3e6a09f65cc007500b642cb5271363505415e82dbc7761054249c3ddefcaa8e6ded577bfec883583927e6f383addab67e4e721618c05dbd4c747d400
|
||||
EBUILD ssmtp-2.64-r4.ebuild 3537 BLAKE2B 341570d27c5bf942ba5f38ea8096db66dd6dad9c48162fbbc1800458b56e6f0aaa43318419ea5484d398d138fd58d42cb62fc5e2caa2c47b50fa6fde401fab03 SHA512 deebfcdbd25f811ec110600868fb48aa123381df101bbf72f70f0a6e79f83799d16f1a30f9c3abf98b764e1aacd422d453175178b4c1911a699066d7887866ac
|
||||
MISC metadata.xml 260 BLAKE2B f96b11c227920f879747b300fc6477b855b8e8be2124d6ef0e92dc736dc26c4dc76e771566ffeeda9040796048e87a56982650dbbdec58b16bb585a251222f53 SHA512 9048e40f4fe34b95b6e528d34d2911f4dbd772d055d29bf1b8ecf6b7a4e0862e2f8f2cada011be9be7eb0e691d57380ec063023016856d4faae009e741991054
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST gstreamer-editing-services-1.16.3.tar.xz 1091208 BLAKE2B d88bed4e8958a6bad05aab8d6c19cd737c6812e0780c420fd144d58fe416cd5dbd01e019c3fc53417d65cb2d6e100de123dc8183c8c3dab329fd677ba55644c5 SHA512 c84cc2dab2b1644ab118794b7aeb98748f893a26070359850f48e87cf362fd53b54baf8754a07e1d412cacb85cf9cfcafb3cf10d79c67bbe077e4d763f9703ef
|
||||
EBUILD gstreamer-editing-services-1.16.3.ebuild 1854 BLAKE2B ca2103e20fe4db1494a3bfd0292cd14a8c6984bb6eb176cb1b8832e996fd246002077fc053c65d93c1dce510138d8fb1d004bc1261b4c23470512e3c5fbf4d9a SHA512 80b202bc6983adf3b29015bcdba91a60c0bc6d36021f741169648af133e96cf87c214b2063ee61901b8ec0b6e99381902546696080912f8e470cc9c40ed21c27
|
||||
EBUILD gstreamer-editing-services-1.16.3.ebuild 1857 BLAKE2B 9161678fd102cc9f249a289f7c6cccc97e9a3e4f4f4591cd598fbaaa736cf73a1b27c86cd1eaa2dfcbf5f0cad4c016796b533fd9567f1aa80c9deaa8d0be2105 SHA512 d5219ab71d71e520bfdf83c0ac58c5b442adc984893026675aeb2b5304c35c029b5debdbd1baf53655a1a097f1271f74e81701fcda3a6a2a02690ed8be2cc2c9
|
||||
MISC metadata.xml 263 BLAKE2B dd46173106e3b1509b54acb2e1688a98d89f8f1fe255db2f2db9fc82021410df1139ebb7fe913acf44e64bb8ca4b00e8f71801b92f0adf3d4110f4a7f9226900 SHA512 53d4401737d15aac01f0b0cf65fb159908ccf3611604b38c28baaf5a5f4a290931a6cbfd735421dadd8f1114367cf2d79bf3f4b5473ba958bd46e0c1ee666454
|
||||
|
Binary file not shown.
@ -1,3 +1,5 @@
|
||||
DIST puddletag-2.0.1.tar.gz 1227152 BLAKE2B 804e9ca9629a9d78114d6f4b6afbe9032cb414678ea6325679c21ac18867bafed8f1b16aae5fbea18995ecc800d35594c478a5164b377f3b4e5dd75148fd3246 SHA512 d84ba360a6cd8c3ddb6628e30276df58d059d9e8cbb2d1255320ca273436c69f05584059c2e768a15871d3f56dc08d7ac96fef9a9c7c077811bb9fdfde444610
|
||||
DIST puddletag-2.1.0.tar.gz 14628824 BLAKE2B 52ac6291682710eed81aa6176b1a53eb15aec8885a8421361d3da8850e8b1719d0d1c9b2f131ad826febc328244ec890cf6283f1945275458d75b1f923890dd2 SHA512 638c12be894d157d0456f336972f0064c4f4087d1c689f58b7b01f0e88cd773319b9c447e6f2b606f6e482b6d1e2328f5bc2aca556bab427b764d6525b8c2d5e
|
||||
EBUILD puddletag-2.0.1-r1.ebuild 1103 BLAKE2B 4ae7c9475756de655d0bcd372c437a8b5ff2402686feb252b127a307184e2c15d30aac9634257491d1e311692ad72e309f19e28fa4cc5722959a5fdb15648ff2 SHA512 344971ce17a67d5173c33deac101395f86492229660d58b1647de50714801c27624084bb737806f9917442d167bc4e404f530cacab5cb0e9bab161ac8ed251cf
|
||||
EBUILD puddletag-2.1.0.ebuild 1148 BLAKE2B f9e8e2c778d08d158516e4aef6b2fb1f30f14aebd16a37dbede2e65b6738cd49a6cea802a201544f80342d1ed630bcb0f3aa330c7ccc677a6282ad6742fc109d SHA512 e4ac798f89666f6da5b8cf32f620dbc855bc579a885d8569c4ee6328f8ed81e471e74d900ddb086429007f62099919f8fe18c9b3845015c2438714197ebae5b9
|
||||
MISC metadata.xml 625 BLAKE2B 53148d8c908987d7bae7246c123e72638270848c8458a18f1839a8046995eb156d25c75b0312d0dfd5b1949d16062362b7c4af09f74843fb3dbf81015f706de5 SHA512 b49b68c45205f4f465263983d94bbb5289412ab7567e210f98b98587bd3103db426a375fecf7c2e99929df623d1bbd603330561fffccdc4bf70170f2312d2769
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
||||
|
||||
inherit distutils-r1 xdg
|
||||
|
||||
DESCRIPTION="Audio tag editor"
|
||||
HOMEPAGE="http://docs.puddletag.net/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="acoustid quodlibet"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
>=dev-python/configobj-5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyparsing-2.4.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQt5-5.15.2[${PYTHON_USEDEP},svg]
|
||||
>=media-libs/mutagen-1.45.1[${PYTHON_USEDEP}]
|
||||
acoustid? ( >=media-libs/chromaprint-1.4.3 )
|
||||
quodlibet? ( >=media-sound/quodlibet-4.4.0[${PYTHON_USEDEP}] )
|
||||
>=dev-python/sip-4.19.22:0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-4.5.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
# docs
|
||||
# >=dev-python/wheel-0.35.1[${PYTHON_USEDEP}]
|
||||
# >=dev-python/markdown-3.1.1[${PYTHON_USEDEP}]
|
||||
# >=dev-python/sphinx-1.4.8[${PYTHON_USEDEP}]
|
||||
# >=dev-python/sphinx-bootstrap-theme-0.4.13[${PYTHON_USEDEP}]
|
||||
# >=dev-python/PyRSS2Gen-1.1[${PYTHON_USEDEP}]
|
||||
|
||||
DOCS=(changelog NEWS THANKS TODO)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue