diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-05-11 22:55:11 +0300 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-05-11 22:55:11 +0300 |
commit | d362d0da9153b57711cf73aede90983b296dc6c1 (patch) | |
tree | e7ac22faad01bfc67ad5cdfb19195288b5b8cf1e /dev-db | |
parent | dev-db/sqlite: Add ancient version for qtiplot-bin... (diff) | |
download | dilfridge-d362d0da9153b57711cf73aede90983b296dc6c1.tar.gz dilfridge-d362d0da9153b57711cf73aede90983b296dc6c1.tar.bz2 dilfridge-d362d0da9153b57711cf73aede90983b296dc6c1.zip |
dev-db/sqlite: Transform to lib-only binary compat package
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-db')
-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 | 4 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-2.8.16-r100.ebuild | 71 | ||||
-rw-r--r-- | dev-db/sqlite/sqlite-2.8.16-r5.ebuild | 127 |
5 files changed, 73 insertions, 181 deletions
diff --git a/dev-db/sqlite/files/maketcllib.sh b/dev-db/sqlite/files/maketcllib.sh deleted file mode 100644 index ad87ce1..0000000 --- a/dev-db/sqlite/files/maketcllib.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/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 deleted file mode 100644 index 7081ffd..0000000 --- a/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch +++ /dev/null @@ -1,12 +0,0 @@ -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 index aaccb57..69efc37 100644 --- a/dev-db/sqlite/files/sqlite-2.8.16-exit.patch +++ b/dev-db/sqlite/files/sqlite-2.8.16-exit.patch @@ -1,7 +1,7 @@ temp.c:4:1: warning: incompatible implicit declaration of built-in function ‘exit’ ---- Makefile.in -+++ Makefile.in +--- a/Makefile.in ++++ b/Makefile.in @@ -269,6 +269,7 @@ # config.h: diff --git a/dev-db/sqlite/sqlite-2.8.16-r100.ebuild b/dev-db/sqlite/sqlite-2.8.16-r100.ebuild new file mode 100644 index 0000000..eddbbef --- /dev/null +++ b/dev-db/sqlite/sqlite-2.8.16-r100.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils alternatives multilib toolchain-funcs + +KEYWORDS="~amd64" + +DESCRIPTION="SQLite: an SQL Database Engine in a C Library" +HOMEPAGE="http://www.sqlite.org/" +SRC_URI="http://www.sqlite.org/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="2" +IUSE="nls" + +DEPEND="" + +RDEPEND=" + !=dev-db/sqlite-2*:0 +" + +src_prepare() { + eapply \ + "${FILESDIR}"/${P}-multilib.patch \ + "${FILESDIR}"/${P}-exit.patch + + if use nls ; then + ENCODING=${ENCODING-"UTF8"} + else + ENCODING="ISO8859" + fi + + sed -i -e "s:@@S@@:${S}:g" \ + -e "s:@@CC@@:$(tc-getCC):g" \ + -e "s:@@CFLAGS@@:${CFLAGS}:g" \ + -e "s:@@AR@@:$(tc-getAR):g" \ + -e "s:@@RANLIB@@:$(tc-getRANLIB):g" \ + -e "s:@@ENCODING@@:${ENCODING}:g" \ + "${S}"/Makefile.linux-gcc + + sed -i \ + -e '/^LTLINK/s:$(TCC):& $(LDFLAGS):' \ + -e '/lemon/s:-o:$(LDFLAGS) &:' \ + "${S}"/{main.mk,Makefile.in} + + default +} + +src_configure() { + local myconf="--enable-incore-db --enable-tempdb-in-ram" + + myconf="${myconf} --without-tcl" + + econf ${myconf} \ + --disable-static \ + $(use_enable nls utf8) +} + +src_install () { + dodir /usr/$(get_libdir) + + make DESTDIR="${D}" install || die "make install failed" + + find "${D}" -name '*.la' -exec rm -f {} + + + dodoc README VERSION + + rm -rf "${D}/usr/bin" "${D}/usr/share/man" "${D}/usr/include" "${D}/usr/$(get_libdir)/pkgconfig" +} diff --git a/dev-db/sqlite/sqlite-2.8.16-r5.ebuild b/dev-db/sqlite/sqlite-2.8.16-r5.ebuild deleted file mode 100644 index 76248c1..0000000 --- a/dev-db/sqlite/sqlite-2.8.16-r5.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -inherit eutils alternatives multilib toolchain-funcs - -KEYWORDS="~amd64" - -DESCRIPTION="SQLite: an SQL Database Engine in a C Library" -HOMEPAGE="http://www.sqlite.org/" -SRC_URI="http://www.sqlite.org/${P}.tar.gz" - -LICENSE="public-domain" -SLOT="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 -} |