diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-db/tinycdb | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-db/tinycdb')
-rw-r--r-- | dev-db/tinycdb/Manifest | 6 | ||||
-rw-r--r-- | dev-db/tinycdb/files/tinycdb-gentoo.patch | 28 | ||||
-rw-r--r-- | dev-db/tinycdb/files/tinycdb-uclibc.patch | 15 | ||||
-rw-r--r-- | dev-db/tinycdb/files/tinycdb-umask.patch | 11 | ||||
-rw-r--r-- | dev-db/tinycdb/metadata.xml | 7 | ||||
-rw-r--r-- | dev-db/tinycdb/tinycdb-0.77-r2.ebuild | 52 |
6 files changed, 119 insertions, 0 deletions
diff --git a/dev-db/tinycdb/Manifest b/dev-db/tinycdb/Manifest new file mode 100644 index 000000000000..873b0ae45285 --- /dev/null +++ b/dev-db/tinycdb/Manifest @@ -0,0 +1,6 @@ +AUX tinycdb-gentoo.patch 711 BLAKE2B a1f6a43fb9903784d3cc4dfdbd2b3d1b5b5532801b6de1cbda922b7a318ead7e93696b0722ee3132618f3cd8bb3ec1eb4f4cdfda35c1b428c3988626ff87b91c SHA512 b188db6904ef63a262a88aa79d1488ede1a9917af8e33b97da5d80c34cb00065bb42e84b00e20548a85f5f0b939679f5a3d85336b938318f98d101d880489415 +AUX tinycdb-uclibc.patch 328 BLAKE2B 20dacb9fc08d7e02c0b138c445d91ecbdcb1993d4b6709081bd4f8c81ce92ba5124c8e6dc8e59644bce8823d0fd0a16e3f7ae543d3dc9c093768114f55ec23a6 SHA512 b58656fbcdcd21d46ace85ba50fcbc9a85b3c0d02fe3c7ba048276e6a22e2d8a91dce6fe5f853a3516071e33fc9513216148b0e92ebe13b75b201881e73f127f +AUX tinycdb-umask.patch 215 BLAKE2B b64bd33a9a47c6a1d2ba0ea0354a79f608d8990b66033ec711790fd93f90471a722d7f0f7a00db7c968fdd644d7d68462690c93f85d911972724e27500ae3d79 SHA512 57eae9200d7ea13ae5d761f0c4575b0d438f24f696bd0c2d29c720f27a706bf5dba94f34fb0c93213ee5c6dbd12af449e2fbcc11ec1872e8ecc4a9a66c9d0905 +DIST tinycdb_0.77.tar.gz 37728 BLAKE2B bebcc6128b253fa9e64438ed2671488153d70cf452bd0686a90ebd5360b725ab784b4537b25fe2ea9de0281cb1bb2fa29beb5f3515aed90fd7e2965f7e5e38bd SHA512 cfc830578a9be49781a1dbade97b64ec13293853093719aeb9a403c128245f157fd1d2d7e6941966bdea00b472127f10f11672583ba06ccc6e49151b22bf4c9a +EBUILD tinycdb-0.77-r2.ebuild 1074 BLAKE2B fb6c8f0ef3deb516c976ef9f35d97dfcbd6a1567312d6b17a7a25db15ebab5236913b7735e11752f6e4ba3451d695666380cd3a898cb8ea1136c6a5cffc76d47 SHA512 d00b4eb0a1b5b6a881639b0a53b0a34a770a8a366418ad996f9943b52217869010e8c1f2df74201ad2dd45abe16bca9ddc4a091aacbbc36ef99a53fc63ed4dfe +MISC metadata.xml 221 BLAKE2B 6fb71e3c82061054a0c2d88c1ce8e591d5742628fe53032c9efd2c371ce1e8b0135b00ac91fa1905df39a507d5faa5871fb3a30d167dd46cec581682ba17c8ff SHA512 a11e9bbbabc9ac96985c5dc247e601b065fa762f12bce74224896c27aee34eb908187622bfc849c39c6c722a8ef8ee72b248afc84da1b0eb72f1ff5eeb13bbf0 diff --git a/dev-db/tinycdb/files/tinycdb-gentoo.patch b/dev-db/tinycdb/files/tinycdb-gentoo.patch new file mode 100644 index 000000000000..e8406b647d4b --- /dev/null +++ b/dev-db/tinycdb/files/tinycdb-gentoo.patch @@ -0,0 +1,28 @@ +--- a/Makefile ++++ b/Makefile +@@ -34,7 +34,7 @@ + CDB_USELIB = $(LIB) + NSS_USELIB = $(PICLIB) + LIBMAP = $(LIBBASE).map +-INSTALLPROG = cdb ++INSTALLPROG = cdb-shared + + # The following assumes GNU CC/LD - + # used for building shared libraries only +@@ -59,7 +59,7 @@ + ChangeLog NEWS + DEBIANFILES = debian/control debian/rules debian/copyright debian/changelog + +-all: static ++all: shared + static: staticlib cdb + staticlib: $(LIB) + nss: $(NSS_CDB) +@@ -128,6 +128,7 @@ + + do_install = \ + while [ "$$1" ] ; do \ ++ if [ ! -f $$1 ]; then shift 4; continue; fi; \ + if [ .$$4 = .- ]; then f=$$1; else f=$$4; fi; \ + d=$(DESTDIR)$$3 ; echo installing $$1 to $$d/$$f; \ + [ -d $$d ] || mkdir -p $$d || exit 1 ; \ diff --git a/dev-db/tinycdb/files/tinycdb-uclibc.patch b/dev-db/tinycdb/files/tinycdb-uclibc.patch new file mode 100644 index 000000000000..14e56bd7b6fc --- /dev/null +++ b/dev-db/tinycdb/files/tinycdb-uclibc.patch @@ -0,0 +1,15 @@ +--- a/cdb.c ++++ b/cdb.c +@@ -31,6 +31,12 @@ + # define HAVE_PROGRAM_INVOCATION_SHORT_NAME + #endif + ++#ifdef __UCLIBC__ ++# ifndef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__ ++# undef HAVE_PROGRAM_INVOCATION_SHORT_NAME ++# endif ++#endif ++ + #ifdef HAVE_PROGRAM_INVOCATION_SHORT_NAME + # define progname program_invocation_short_name + #else diff --git a/dev-db/tinycdb/files/tinycdb-umask.patch b/dev-db/tinycdb/files/tinycdb-umask.patch new file mode 100644 index 000000000000..2a53babb2510 --- /dev/null +++ b/dev-db/tinycdb/files/tinycdb-umask.patch @@ -0,0 +1,11 @@ +--- a/cdb.c ++++ b/cdb.c +@@ -21,6 +21,8 @@ + #include <stdarg.h> + #include <fcntl.h> + #include <errno.h> ++#include <sys/types.h> /* umask() */ ++#include <sys/stat.h> /* umask() */ + #include "cdb.h" + + #ifndef EPROTO diff --git a/dev-db/tinycdb/metadata.xml b/dev-db/tinycdb/metadata.xml new file mode 100644 index 000000000000..21dc8fdf43ff --- /dev/null +++ b/dev-db/tinycdb/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hattya@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/dev-db/tinycdb/tinycdb-0.77-r2.ebuild b/dev-db/tinycdb/tinycdb-0.77-r2.ebuild new file mode 100644 index 000000000000..2e942b3bbef4 --- /dev/null +++ b/dev-db/tinycdb/tinycdb-0.77-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +DESCRIPTION="A very fast and simple package for creating and reading constant data bases" +HOMEPAGE="http://www.corpit.ru/mjt/tinycdb.html" +SRC_URI="http://www.corpit.ru/mjt/${PN}/${P/-/_}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 ~arm64 hppa ia64 ~mips ppc x86" +IUSE="static-libs" +RESTRICT="test" + +RDEPEND="!dev-db/cdb" + +PATCHES=( + "${FILESDIR}"/${PN}-gentoo.patch + "${FILESDIR}"/${PN}-umask.patch + "${FILESDIR}"/${PN}-uclibc.patch +) + +src_prepare() { + default + + sed -i "/^libdir/s:/lib:/$(get_libdir):" Makefile +} + +src_compile() { + local targets="shared" + use static-libs && targets+=" staticlib piclib" + + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${LDFLAGS}" \ + ${targets} +} + +src_install() { + local targets="install install-sharedlib" + use static-libs && targets+=" install-piclib" + + emake \ + prefix="${EPREFIX}"/usr \ + mandir="${EPREFIX}"/usr/share/man \ + DESTDIR="${D}" \ + ${targets} + einstalldocs +} |