diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/sqlite | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/sqlite')
-rw-r--r-- | dev-db/sqlite/Manifest | 7 | ||||
-rw-r--r-- | dev-db/sqlite/files/maketcllib.sh | 40 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch | 12 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-2.8.16-exit.patch | 12 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-2.8.16-multilib.patch | 108 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-3.8.1-autoconf-dlopen_check.patch | 12 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-3.8.1-src-dlopen_check.patch | 12 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-3.8.1-tests-icu-52.patch | 49 | ||||
-rw-r--r-- | dev-db/sqlite/metadata.xml | 16 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-2.8.16-r5.ebuild | 127 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-3.8.10.1.ebuild | 210 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-3.8.10.2.ebuild | 210 |
12 files changed, 815 insertions, 0 deletions
diff --git a/dev-db/sqlite/Manifest b/dev-db/sqlite/Manifest new file mode 100644 index 000000000000..c600d6dc6332 --- /dev/null +++ b/dev-db/sqlite/Manifest @@ -0,0 +1,7 @@ +DIST sqlite-2.8.16.tar.gz 981834 SHA256 d26e8a6fac1ad497a3ade719da4f1d6d60f586fd10f66253f1c3d3db7168984e SHA512 262cacbb9a6e615cd6ce7c2992c4dd5b0cd59de096daa74925e81baef4c0e4b3d9a7e4ebf8f4ba949afac4fe2fbf2c627ead29fa72ff38dffe6446ae46c40d4a WHIRLPOOL 78c4dc05f94d97483c03b1f1eee67f86fd5d9499e82b082ba3951878867d10d18ecbb5cac9086ce509c0cb1cb47b57661709a28d2ee7e61038512d1c11c77bff +DIST sqlite-autoconf-3081001.tar.gz 2049377 SHA256 5f8f2ae6461e637ff63e50fef10b6962764dfc3b81a8c0f80a19794b9d59f7ca SHA512 8e206952b351ef8a9cf523558574cba9630c8c07ef7ae90fb0712d2b99fea91742a26d0af1b01816593ea769fad343101fdbbab9c1626a4d712bb1a18b2b6b30 WHIRLPOOL 83fd822bd9eb6fedea29d968381726be24153375c06ad8c39d4ef34fd3d2e1001c8d5440880d6a880ba24242cd87782afa445ce145cdf7e75843419275136da5 +DIST sqlite-autoconf-3081002.tar.gz 2049387 SHA256 8382e55a4e7d853c93038562ca3dd00307937fccf1c6b65ddd813e503a56d626 SHA512 afdf11d5482a645c37cc0c4c5c2b3f8c56f26c95ee94658c92bfa0ffeb68981f67834215a45a658f733333c68f28231448e87995f9614a56f9f1672cedd13a65 WHIRLPOOL f3c7b1a11d63213a29f9dc6c04c02db9900b25dd0a8c0551bbf6d220493e7cc420d5775d99147d92c781b7f0068889e6dbeb32a10f447009341827908eee4ad8 +DIST sqlite-doc-3081001.zip 5060040 SHA256 0b6c186a2da8b7d7397eb3942e97fd85b88734beb300702ace0dca4a3db729a6 SHA512 76caf476c98d8a0f5da55c4608bfc31235289e3ab2286089195fab86da6b5d98b2d5eb0fe7b81e3aff8f04939c9bcbfded6be22f0eeb21103478bf519e9ff78b WHIRLPOOL 5edd1d06babf19d54e326f6262d45851d43a0907adad66b130c93cf63efbfadcad6dbc98330bd4d2f80d1d528cd9088ada0727475b42005de6bcdbc4914e5d7c +DIST sqlite-doc-3081002.zip 5068441 SHA256 e355ec10989829d485d2df08f076f6c3f598f7fc1d45d307b4fd70d5e609e6c4 SHA512 c222b250de6c8e182da1b534f459600a81b300c87578f9484b7d6f1fbbfaad9e8be70c306d0200b163850f48c974c55ce25782fefd55672ef72f03dc0b5f8d19 WHIRLPOOL 148bbce9bc3ffb1f9101e45936ce060aa49dbc88647effabf5418fa95ccdb91a4971d171d940de3307a2d59144e73250c43f8d8d79927ac36a1e02784f143061 +DIST sqlite-src-3081001.zip 7648823 SHA256 def6e2401c8da91b489de19d1a1734f722b4e629148ab804776d27b49ba49e7b SHA512 7604ac35eddd4aca53c02b0ab7ae7682856aec2eb4e6a9627da041ea19d464bb6080a70d84070a94abf77eb14ae616a0a8c5fe2f2a6c19fc899d1b21535d3e1a WHIRLPOOL c44e4f446d12af1f4df49e171276d853381784e979d3521cafbfdd5b5359c792586d298f3573bbda8a260b9008a4b7fcdc4ce0382fdda18574287018a2cb4f4c +DIST sqlite-src-3081002.zip 7648737 SHA256 fda379bc4590761838d02ac8008433b7c3eae6e120e45d639d24b09d0004b42d SHA512 99661c709ffe8d5776c3ed2c1a64c70f541b68f0c7745e3e769528273966f71eeb29e8911d42ede9420f179b7fcbda63c4d0980a9d7bc05e937d0a6deb7b814f WHIRLPOOL 4e13138a5f92f5c5fe65c8b670097b57ea778244a37a5bcabf75f86f4ac3f0bc17860f3e55833adc9adcc335b6aece396c685421b58ccb0ddca66f37edfda7fc diff --git a/dev-db/sqlite/files/maketcllib.sh b/dev-db/sqlite/files/maketcllib.sh new file mode 100644 index 000000000000..ad87ce1fcafb --- /dev/null +++ b/dev-db/sqlite/files/maketcllib.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# +# This script was adapted from the one used by Hwaci to build it's +# documentation and binaries for shipping to their website. +# +# Any similarity to the original has probably been trampled into +# oblivion modifying everything for Gentoo. +# +echo "Starting TCL Build" + +# Set srcdir to the name of the directory that contains the publish.sh +# script. +# +srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'` + +# +# Build the tclsqlite.so shared library for import into tclsh or wish +# under Linux +# +make target_source +source /etc/make.conf +cd tsrc +rm shell.c + +OPTS='-DUSE_TCL_STUBS=1 -DNDEBUG=1' +TCLSTUBLIB=${TCL_BUILD_STUB_LIB_PATH} + +export CFLAGS +gcc -fPIC $CFLAGS $OPTS -I. -shared *.c $TCLSTUBLIB -o tclsqlite.so + +strip tclsqlite.so +cp tclsqlite.so .. + +cd .. + +echo "pkg_mkIndex [pwd] tclsqlite.so" >> make_pkgIndex.tcl +tclsh make_pkgIndex.tcl + +echo "Done TCL Build" + diff --git a/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch b/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch new file mode 100644 index 000000000000..7081ffd00323 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch @@ -0,0 +1,12 @@ +diff -uNr sqlite.orig/src/vdbeInt.h sqlite/src/vdbeInt.h +--- sqlite.orig/src/vdbeInt.h 2004-10-16 01:33:02.779442000 +0200 ++++ sqlite/src/vdbeInt.h 2004-10-16 01:35:01.139442000 +0200 +@@ -115,7 +115,7 @@ + int flags; /* Some combination of MEM_Null, MEM_Str, MEM_Dyn, etc. */ + double r; /* Real value */ + char *z; /* String value */ +- char zShort[NBFS]; /* Space for short strings */ ++ char zShort[NBFS] __attribute__ ((__aligned__(16))); /* Space for short strings */ + }; + typedef struct Mem Mem; + diff --git a/dev-db/sqlite/files/sqlite-2.8.16-exit.patch b/dev-db/sqlite/files/sqlite-2.8.16-exit.patch new file mode 100644 index 000000000000..aaccb575e0a9 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-2.8.16-exit.patch @@ -0,0 +1,12 @@ +temp.c:4:1: warning: incompatible implicit declaration of built-in function ‘exit’ + +--- Makefile.in ++++ Makefile.in +@@ -269,6 +269,7 @@ + # + config.h: + echo '#include <stdio.h>' >temp.c ++ echo '#include <stdlib.h>' >>temp.c + echo 'int main(){printf(' >>temp.c + echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c + echo 'exit(0);}' >>temp.c diff --git a/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch b/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch new file mode 100644 index 000000000000..32111877c1b6 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch @@ -0,0 +1,108 @@ +diff -Naurp sqlite-2.8.16.orig/Makefile.in sqlite-2.8.16/Makefile.in +--- sqlite-2.8.16.orig/Makefile.in 2005-02-14 00:22:04.000000000 +0000 ++++ sqlite-2.8.16/Makefile.in 2005-02-17 18:22:50.174537727 +0000 +@@ -187,12 +187,12 @@ last_change: $(SRC) + | awk '{print $$5,$$6}' >last_change + + libsqlite.la: $(LIBOBJ) +- $(LTLINK) -o libsqlite.la $(LIBOBJ) ${RELEASE} -rpath @exec_prefix@/lib \ ++ $(LTLINK) -o libsqlite.la $(LIBOBJ) ${RELEASE} -rpath @libdir@ \ + -version-info "8:6:8" + + libtclsqlite.la: tclsqlite.lo libsqlite.la + $(LTLINK) -o libtclsqlite.la tclsqlite.lo \ +- libsqlite.la $(LIBTCL) -rpath @exec_prefix@/lib/sqlite \ ++ libsqlite.la $(LIBTCL) -rpath @libdir@/sqlite \ + -version-info "8:6:8" + + sqlite@TARGET_EXEEXT@: $(TOP)/src/shell.c libsqlite.la sqlite.h +@@ -465,14 +465,14 @@ doc: $(DOC) + mv $(DOC) doc + + install: sqlite libsqlite.la sqlite.h +- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib +- $(LTINSTALL) libsqlite.la $(DESTDIR)$(exec_prefix)/lib ++ $(INSTALL) -d $(DESTDIR)@libdir@ ++ $(LTINSTALL) libsqlite.la $(DESTDIR)@libdir@ + $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin + $(LTINSTALL) sqlite $(DESTDIR)$(exec_prefix)/bin + $(INSTALL) -d $(DESTDIR)$(prefix)/include + $(INSTALL) -m 0644 sqlite.h $(DESTDIR)$(prefix)/include +- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib/pkgconfig; +- $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)$(exec_prefix)/lib/pkgconfig; ++ $(INSTALL) -d $(DESTDIR)@libdir@/pkgconfig; ++ $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)@libdir@/pkgconfig; + + clean: + rm -f *.lo *.la *.o sqlite@TARGET_EXEEXT@ libsqlite.la sqlite.h opcodes.* +diff -Naurp sqlite-2.8.16.orig/Makefile.linux-gcc sqlite-2.8.16/Makefile.linux-gcc +--- sqlite-2.8.16.orig/Makefile.linux-gcc 2005-02-14 00:22:04.000000000 +0000 ++++ sqlite-2.8.16/Makefile.linux-gcc 2005-02-17 18:21:47.654969648 +0000 +@@ -14,7 +14,7 @@ + #### The toplevel directory of the source tree. This is the directory + # that contains this "Makefile.in" and the "configure.in" script. + # +-TOP = ../sqlite ++TOP = @@S@@ + + #### C Compiler and options for use in building executables that + # will run on the platform that is doing the build. +@@ -38,8 +38,8 @@ THREADSAFE = -DTHREADSAFE=0 + #### Specify any extra linker options needed to make the library + # thread safe + # +-#THREADLIB = -lpthread +-THREADLIB = ++THREADLIB = -lpthread ++#THREADLIB = + + #### Leave MEMORY_DEBUG undefined for maximum speed. Use MEMORY_DEBUG=1 + # to check for memory leaks. Use MEMORY_DEBUG=2 to print a log of all +@@ -64,7 +64,7 @@ EXE = + # will run on the target platform. This is usually the same + # as BCC, unless you are cross-compiling. + # +-TCC = gcc -O6 ++TCC = @@CC@@ @@CFLAGS@@ + #TCC = gcc -g -O0 -Wall + #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage + #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6 +@@ -72,23 +72,23 @@ TCC = gcc -O6 + + #### Tools used to build a static library. + # +-AR = ar cr ++AR = @@AR@@ cr + #AR = /opt/mingw/bin/i386-mingw32-ar cr +-RANLIB = ranlib ++RANLIB = @@RANLIB@@ + #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib + + #### Extra compiler options needed for programs that use the TCL library. + # +-#TCL_FLAGS = ++#TCL_FLAGS = @@TCL_FLAGS@@ + #TCL_FLAGS = -DSTATIC_BUILD=1 +-TCL_FLAGS = -I/home/drh/tcltk/8.4linux ++#TCL_FLAGS = -I/home/drh/tcltk/8.4linux + #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1 + #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux + + #### Linker options needed to link against the TCL library. + # +-#LIBTCL = -ltcl -lm -ldl +-LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl ++LIBTCL = -ltcl -lm -ldl ++#LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl + #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt + #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc + +@@ -100,7 +100,7 @@ READLINE_FLAGS = -DHAVE_READLINE=1 -I/us + #### Linker options needed by programs using readline() must link against. + # + #LIBREADLINE = +-LIBREADLINE = -static -lreadline -ltermcap ++LIBREADLINE = -static -lreadline -lncurses + + #### Should the database engine assume text is coded as UTF-8 or iso8859? + # diff --git a/dev-db/sqlite/files/sqlite-3.8.1-autoconf-dlopen_check.patch b/dev-db/sqlite/files/sqlite-3.8.1-autoconf-dlopen_check.patch new file mode 100644 index 000000000000..bd55a0778bd1 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.8.1-autoconf-dlopen_check.patch @@ -0,0 +1,12 @@ +--- configure.ac ++++ configure.ac +@@ -70,6 +70,9 @@ + [], [enable_dynamic_extensions=yes]) + if test x"$enable_dynamic_extensions" != "xno"; then + AC_SEARCH_LIBS(dlopen, dl) ++ if test "${ac_cv_search_dlopen}" = "no" ; then ++ DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1 ++ fi + else + DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1 + fi diff --git a/dev-db/sqlite/files/sqlite-3.8.1-src-dlopen_check.patch b/dev-db/sqlite/files/sqlite-3.8.1-src-dlopen_check.patch new file mode 100644 index 000000000000..0c5b48d1db9a --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.8.1-src-dlopen_check.patch @@ -0,0 +1,12 @@ +--- configure.ac ++++ configure.ac +@@ -611,6 +611,9 @@ + if test "${use_loadextension}" = "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 diff --git a/dev-db/sqlite/files/sqlite-3.8.1-tests-icu-52.patch b/dev-db/sqlite/files/sqlite-3.8.1-tests-icu-52.patch new file mode 100644 index 000000000000..c6cbb33c4918 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.8.1-tests-icu-52.patch @@ -0,0 +1,49 @@ +--- test/fts4unicode.test ++++ test/fts4unicode.test +@@ -366,27 +366,26 @@ + do_isspace_test 6.$T.1 $T 32 + do_isspace_test 6.$T.2 $T 160 + do_isspace_test 6.$T.3 $T 5760 +- do_isspace_test 6.$T.4 $T 6158 +- do_isspace_test 6.$T.5 $T 8192 +- do_isspace_test 6.$T.6 $T 8193 +- do_isspace_test 6.$T.7 $T 8194 +- do_isspace_test 6.$T.8 $T 8195 +- do_isspace_test 6.$T.9 $T 8196 +- do_isspace_test 6.$T.10 $T 8197 +- do_isspace_test 6.$T.11 $T 8198 +- do_isspace_test 6.$T.12 $T 8199 +- do_isspace_test 6.$T.13 $T 8200 +- do_isspace_test 6.$T.14 $T 8201 +- do_isspace_test 6.$T.15 $T 8202 +- do_isspace_test 6.$T.16 $T 8239 +- do_isspace_test 6.$T.17 $T 8287 +- do_isspace_test 6.$T.18 $T 12288 ++ do_isspace_test 6.$T.4 $T 8192 ++ do_isspace_test 6.$T.5 $T 8193 ++ do_isspace_test 6.$T.6 $T 8194 ++ do_isspace_test 6.$T.7 $T 8195 ++ do_isspace_test 6.$T.8 $T 8196 ++ do_isspace_test 6.$T.9 $T 8197 ++ do_isspace_test 6.$T.10 $T 8198 ++ do_isspace_test 6.$T.11 $T 8199 ++ do_isspace_test 6.$T.12 $T 8200 ++ do_isspace_test 6.$T.13 $T 8201 ++ do_isspace_test 6.$T.14 $T 8202 ++ do_isspace_test 6.$T.15 $T 8239 ++ do_isspace_test 6.$T.16 $T 8287 ++ do_isspace_test 6.$T.17 $T 12288 + +- do_isspace_test 6.$T.19 $T {32 160 5760 6158} +- do_isspace_test 6.$T.20 $T {8192 8193 8194 8195} +- do_isspace_test 6.$T.21 $T {8196 8197 8198 8199} +- do_isspace_test 6.$T.22 $T {8200 8201 8202 8239} +- do_isspace_test 6.$T.23 $T {8287 12288} ++ do_isspace_test 6.$T.18 $T {32 160 5760} ++ do_isspace_test 6.$T.19 $T {8192 8193 8194 8195} ++ do_isspace_test 6.$T.20 $T {8196 8197 8198 8199} ++ do_isspace_test 6.$T.21 $T {8200 8201 8202 8239} ++ do_isspace_test 6.$T.22 $T {8287 12288} + } + + #------------------------------------------------------------------------- diff --git a/dev-db/sqlite/metadata.xml b/dev-db/sqlite/metadata.xml new file mode 100644 index 000000000000..6a4f9ebb84ed --- /dev/null +++ b/dev-db/sqlite/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>arfrever.fta@gmail.com</email> + <name>Arfrever Frehtes Taifersar Arahesis</name> + </maintainer> + <herd>proxy-maintainers</herd> + <use> + <flag name="secure-delete">Enable overwriting of deleted content with zeros by default (http://sqlite.org/pragma.html#pragma_secure_delete), causing some performance penalty</flag> + <flag name="tools">Install additional tools</flag> + </use> + <upstream> + <remote-id type="cpe">cpe:/a:sqlite:sqlite</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/sqlite/sqlite-2.8.16-r5.ebuild b/dev-db/sqlite/sqlite-2.8.16-r5.ebuild new file mode 100644 index 000000000000..2cb8a32b49a1 --- /dev/null +++ b/dev-db/sqlite/sqlite-2.8.16-r5.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils alternatives multilib toolchain-funcs + +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" + +DESCRIPTION="SQLite: an SQL Database Engine in a C Library" +HOMEPAGE="http://www.sqlite.org/" +SRC_URI="http://www.sqlite.org/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +IUSE="doc nls tcl" + +DEPEND="doc? ( dev-lang/tcl ) + tcl? ( dev-lang/tcl )" + +RDEPEND="tcl? ( dev-lang/tcl )" + +SOURCE="/usr/bin/lemon" +ALTERNATIVES="${SOURCE}-3 ${SOURCE}-0" + +RESTRICT="!tcl? ( test )" + +src_unpack() { + # test + if has test ${FEATURES}; then + if ! has userpriv ${FEATURES}; then + ewarn "The userpriv feature must be enabled to run tests." + eerror "Testsuite will not be run." + fi + if ! use tcl; then + ewarn "You must enable the tcl use flag if you want to run the test" + ewarn "suite." + eerror "Testsuite will not be run." + fi + fi + + unpack ${A} + cd "${S}" + + use hppa && epatch "${FILESDIR}"/${PN}-2.8.15-alignement-fix.patch + + epatch \ + "${FILESDIR}"/${P}-multilib.patch \ + "${FILESDIR}"/${P}-exit.patch + + epunt_cxx + + if use nls ; then + ENCODING=${ENCODING-"UTF8"} + else + ENCODING="ISO8859" + fi + + sed -i -e "s:@@S@@:${S}:g" \ + -e "s:@@CC@@:$(tc-getCC):g" \ + -e "s:@@CFLAGS@@:${CFLAGS}:g" \ + -e "s:@@AR@@:$(tc-getAR):g" \ + -e "s:@@RANLIB@@:$(tc-getRANLIB):g" \ + -e "s:@@ENCODING@@:${ENCODING}:g" \ + "${S}"/Makefile.linux-gcc + + sed -i \ + -e '/^LTLINK/s:$(TCC):& $(LDFLAGS):' \ + -e '/lemon/s:-o:$(LDFLAGS) &:' \ + "${S}"/{main.mk,Makefile.in} +} + +src_compile() { + local myconf="--enable-incore-db --enable-tempdb-in-ram" + + if ! use tcl ; then + myconf="${myconf} --without-tcl" + fi + + econf ${myconf} \ + --disable-static \ + $(use_enable nls utf8) + + emake all || die "emake all failed" + + if use doc ; then + emake doc || die "emake doc failed" + fi + + if use tcl ; then + cp -P "${FILESDIR}"/maketcllib.sh "${S}" + chmod +x ./maketcllib.sh + ./maketcllib.sh + fi +} + +src_test() { + if use tcl ; then + if has userpriv ${FEATURES} ; then + elog "SQLite 2.x is known to have problems on 64 bit architectures." + elog "If you observe segmentation faults please use 3.x instead!" + + cd "${S}" + emake test || die "some test failed" + fi + fi +} + +src_install () { + dodir /usr/{bin,include,$(get_libdir)} + + make DESTDIR="${D}" install || die "make install failed" + + find "${D}" -name '*.la' -exec rm -f {} + + + newbin lemon lemon-${SLOT} + + dodoc README VERSION + doman sqlite.1 + + use doc && dohtml doc/*.html doc/*.txt doc/*.png + + if use tcl ; then + mkdir "${D}"/usr/$(get_libdir)/tclsqlite${PV} + cp "${S}"/tclsqlite.so "${D}"/usr/$(get_libdir)/tclsqlite${PV}/ + cp "${S}"/pkgIndex.tcl "${D}"/usr/$(get_libdir)/tclsqlite${PV}/ + fi +} diff --git a/dev-db/sqlite/sqlite-3.8.10.1.ebuild b/dev-db/sqlite/sqlite-3.8.10.1.ebuild new file mode 100644 index 000000000000..2d690883a5df --- /dev/null +++ b/dev-db/sqlite/sqlite-3.8.10.1.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator + +SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))" +DOC_PV="${SRC_PV}" +# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))" + +DESCRIPTION="A SQL Database Engine in a C Library" +HOMEPAGE="http://sqlite.org/" +SRC_URI="doc? ( http://sqlite.org/2015/${PN}-doc-${DOC_PV}.zip ) + tcl? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip ) + test? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip ) + tools? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip ) + !tcl? ( !test? ( !tools? ( http://sqlite.org/2015/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )" + +LICENSE="public-domain" +SLOT="3" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug doc icu +readline secure-delete static-libs tcl test tools" + +RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] ) + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) + tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r14 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${RDEPEND} + doc? ( app-arch/unzip ) + tcl? ( app-arch/unzip ) + test? ( + app-arch/unzip + dev-lang/tcl:0[${MULTILIB_USEDEP}] + ) + tools? ( dev-lang/tcl:0 )" + +amalgamation() { + ! use tcl && ! use test && ! use tools +} + +pkg_setup() { + if amalgamation; then + S="${WORKDIR}/${PN}-autoconf-${SRC_PV}" + else + S="${WORKDIR}/${PN}-src-${SRC_PV}" + fi +} + +src_prepare() { + if amalgamation; then + epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch" + + # http://www.sqlite.org/cgi/src/info/85bfa9a67f997084 + sed \ + -e "s/^sqlite3_SOURCES = shell.c sqlite3.h$/sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h/" \ + -e "s/^sqlite3_LDADD = sqlite3.\$(OBJEXT) @READLINE_LIBS@$/sqlite3_LDADD = @READLINE_LIBS@\nsqlite3_CFLAGS = \$(AM_CFLAGS)/" \ + -i Makefile.am + else + epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch" + epatch "${FILESDIR}/${PN}-3.8.1-tests-icu-52.patch" + + # Fix shell1-5.0 test. + # http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html + sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test + fi + + eautoreconf + + # At least ppc-aix, x86-interix and *-solaris need newer libtool. + # use prefix && eautoreconf + + if use icu; then + if amalgamation; then + sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" + else + sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" + fi + fi + + multilib_copy_sources +} + +src_configure() { + # `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag. + if amalgamation; then + if use debug; then + append-cppflags -DSQLITE_DEBUG + else + append-cppflags -DNDEBUG + fi + fi + + # Support detection of misuse of SQLite API. + # http://sqlite.org/compile.html#enable_api_armor + append-cppflags -DSQLITE_ENABLE_API_ARMOR + + # Support column metadata functions. + # http://sqlite.org/c3ref/column_database_name.html + append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA + + # Support dbstat virtual table. + # http://sqlite.org/dbstat.html + append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB + + # Support Full-Text Search versions 3 and 4. + # http://sqlite.org/fts3.html + append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 + + # Support R*Trees. + # http://sqlite.org/rtree.html + append-cppflags -DSQLITE_ENABLE_RTREE + + # Support scan status functions. + # http://sqlite.org/c3ref/stmt_scanstatus.html + # http://sqlite.org/c3ref/stmt_scanstatus_reset.html + append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS + + # Support unlock notification. + # http://sqlite.org/unlock_notify.html + append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY + + # Support soundex() function. + # http://sqlite.org/lang_corefunc.html#soundex + append-cppflags -DSQLITE_SOUNDEX + + if use icu; then + # Support ICU extension. + # http://sqlite.org/compile.html#enable_icu + append-cppflags -DSQLITE_ENABLE_ICU + fi + + if use secure-delete; then + # Enable secure_delete pragma by default. + # http://sqlite.org/pragma.html#pragma_secure_delete + append-cppflags -DSQLITE_SECURE_DELETE + fi + + if [[ "${CHOST}" == *-mint* ]]; then + append-cppflags -DSQLITE_OMIT_WAL + fi + + # Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available. + if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then + append-cppflags -DUSE_PREAD + fi + if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then + append-cppflags -DUSE_PREAD64 + elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then + append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE + fi + + multilib-minimal_src_configure +} + +multilib_src_configure() { + # `configure` from amalgamation tarball does not support + # --with-readline-inc and --(enable|disable)-tcl options. + econf \ + --enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \ + --enable-threadsafe \ + $(use_enable readline) \ + $(use_enable static-libs static) \ + $(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \ + $(amalgamation || use_enable debug) \ + $(amalgamation || if use tcl || use test; then echo --enable-tcl; else echo --disable-tcl; fi) +} + +multilib_src_compile() { + emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" + + if use tools && multilib_is_native_abi; then + emake showdb showjournal showstat4 showwal sqldiff + fi +} + +multilib_src_test() { + if [[ "${EUID}" -eq 0 ]]; then + ewarn "Skipping tests due to root permissions" + return + fi + + emake $(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 + newbin showdb sqlite3-show-db + newbin showjournal sqlite3-show-journal + newbin showstat4 sqlite3-show-stat4 + newbin showwal sqlite3-show-wal + newbin sqldiff sqlite3-diff + fi +} + +multilib_src_install_all() { + prune_libtool_files + + doman sqlite3.1 + + if use doc; then + dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/" + fi +} diff --git a/dev-db/sqlite/sqlite-3.8.10.2.ebuild b/dev-db/sqlite/sqlite-3.8.10.2.ebuild new file mode 100644 index 000000000000..30dd78ed9f87 --- /dev/null +++ b/dev-db/sqlite/sqlite-3.8.10.2.ebuild @@ -0,0 +1,210 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator + +SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))" +DOC_PV="${SRC_PV}" +# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))" + +DESCRIPTION="A SQL Database Engine in a C Library" +HOMEPAGE="http://sqlite.org/" +SRC_URI="doc? ( http://sqlite.org/2015/${PN}-doc-${DOC_PV}.zip ) + tcl? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip ) + test? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip ) + tools? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip ) + !tcl? ( !test? ( !tools? ( http://sqlite.org/2015/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )" + +LICENSE="public-domain" +SLOT="3" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="debug doc icu +readline secure-delete static-libs tcl test tools" + +RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] ) + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) + tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] ) + abi_x86_32? ( + !<=app-emulation/emul-linux-x86-baselibs-20131008-r14 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] + )" +DEPEND="${RDEPEND} + doc? ( app-arch/unzip ) + tcl? ( app-arch/unzip ) + test? ( + app-arch/unzip + dev-lang/tcl:0[${MULTILIB_USEDEP}] + ) + tools? ( dev-lang/tcl:0 )" + +amalgamation() { + ! use tcl && ! use test && ! use tools +} + +pkg_setup() { + if amalgamation; then + S="${WORKDIR}/${PN}-autoconf-${SRC_PV}" + else + S="${WORKDIR}/${PN}-src-${SRC_PV}" + fi +} + +src_prepare() { + if amalgamation; then + epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch" + + # http://www.sqlite.org/cgi/src/info/85bfa9a67f997084 + sed \ + -e "s/^sqlite3_SOURCES = shell.c sqlite3.h$/sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h/" \ + -e "s/^sqlite3_LDADD = sqlite3.\$(OBJEXT) @READLINE_LIBS@$/sqlite3_LDADD = @READLINE_LIBS@\nsqlite3_CFLAGS = \$(AM_CFLAGS)/" \ + -i Makefile.am + else + epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch" + epatch "${FILESDIR}/${PN}-3.8.1-tests-icu-52.patch" + + # Fix shell1-5.0 test. + # http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html + sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test + fi + + eautoreconf + + # At least ppc-aix, x86-interix and *-solaris need newer libtool. + # use prefix && eautoreconf + + if use icu; then + if amalgamation; then + sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" + else + sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed" + fi + fi + + multilib_copy_sources +} + +src_configure() { + # `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag. + if amalgamation; then + if use debug; then + append-cppflags -DSQLITE_DEBUG + else + append-cppflags -DNDEBUG + fi + fi + + # Support detection of misuse of SQLite API. + # http://sqlite.org/compile.html#enable_api_armor + append-cppflags -DSQLITE_ENABLE_API_ARMOR + + # Support column metadata functions. + # http://sqlite.org/c3ref/column_database_name.html + append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA + + # Support dbstat virtual table. + # http://sqlite.org/dbstat.html + append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB + + # Support Full-Text Search versions 3 and 4. + # http://sqlite.org/fts3.html + append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 + + # Support R*Trees. + # http://sqlite.org/rtree.html + append-cppflags -DSQLITE_ENABLE_RTREE + + # Support scan status functions. + # http://sqlite.org/c3ref/stmt_scanstatus.html + # http://sqlite.org/c3ref/stmt_scanstatus_reset.html + append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS + + # Support unlock notification. + # http://sqlite.org/unlock_notify.html + append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY + + # Support soundex() function. + # http://sqlite.org/lang_corefunc.html#soundex + append-cppflags -DSQLITE_SOUNDEX + + if use icu; then + # Support ICU extension. + # http://sqlite.org/compile.html#enable_icu + append-cppflags -DSQLITE_ENABLE_ICU + fi + + if use secure-delete; then + # Enable secure_delete pragma by default. + # http://sqlite.org/pragma.html#pragma_secure_delete + append-cppflags -DSQLITE_SECURE_DELETE + fi + + if [[ "${CHOST}" == *-mint* ]]; then + append-cppflags -DSQLITE_OMIT_WAL + fi + + # Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available. + if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then + append-cppflags -DUSE_PREAD + fi + if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then + append-cppflags -DUSE_PREAD64 + elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then + append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE + fi + + multilib-minimal_src_configure +} + +multilib_src_configure() { + # `configure` from amalgamation tarball does not support + # --with-readline-inc and --(enable|disable)-tcl options. + econf \ + --enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \ + --enable-threadsafe \ + $(use_enable readline) \ + $(use_enable static-libs static) \ + $(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \ + $(amalgamation || use_enable debug) \ + $(amalgamation || if use tcl || use test; then echo --enable-tcl; else echo --disable-tcl; fi) +} + +multilib_src_compile() { + emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" + + if use tools && multilib_is_native_abi; then + emake showdb showjournal showstat4 showwal sqldiff + fi +} + +multilib_src_test() { + if [[ "${EUID}" -eq 0 ]]; then + ewarn "Skipping tests due to root permissions" + return + fi + + emake $(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 + newbin showdb sqlite3-show-db + newbin showjournal sqlite3-show-journal + newbin showstat4 sqlite3-show-stat4 + newbin showwal sqlite3-show-wal + newbin sqldiff sqlite3-diff + fi +} + +multilib_src_install_all() { + prune_libtool_files + + doman sqlite3.1 + + if use doc; then + dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/" + fi +} |