diff options
author | Akinori Hattori <hattya@gentoo.org> | 2024-01-27 14:22:38 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2024-01-27 14:22:38 +0900 |
commit | 8354bd8f9d8d805ffb8287443f1c61d27e25384d (patch) | |
tree | a5ba9a2b06e3222dae617ebbcd9df6237c208b36 /dev-db/tinycdb | |
parent | app-emulation/wine-vanilla: add 9.1 (diff) | |
download | gentoo-8354bd8f9d8d805ffb8287443f1c61d27e25384d.tar.gz gentoo-8354bd8f9d8d805ffb8287443f1c61d27e25384d.tar.bz2 gentoo-8354bd8f9d8d805ffb8287443f1c61d27e25384d.zip |
dev-db/tinycdb: new upstream release
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-db/tinycdb')
-rw-r--r-- | dev-db/tinycdb/Manifest | 1 | ||||
-rw-r--r-- | dev-db/tinycdb/tinycdb-0.81.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-db/tinycdb/Manifest b/dev-db/tinycdb/Manifest index ec77e1b8d078..302ac45b9888 100644 --- a/dev-db/tinycdb/Manifest +++ b/dev-db/tinycdb/Manifest @@ -1 +1,2 @@ DIST tinycdb-0.78.tar.gz 36754 BLAKE2B 41f4256840645acd28296c5473087c7cf4c026f068310375b3c305430c030b1c946f53fd3e09967d77b592ba84e7e56518fdb18e54d1e0f5e7dd552a1664a0ec SHA512 8930086b8e7fddcd4dbd3354c5f5ee05171df68fde1cc222b6c402430042b6e761efbad7e5fa8de18e1d36390f1526cc3e605c5086fe1c363ba1df6c03201553 +DIST tinycdb-0.81.tar.gz 31901 BLAKE2B 6b5b1167bd7e58a02b9a3a1ff2d58adb0e522ef65a13384051d9a037358ed7586f7d567e543099adec6322f9c60d38525fed586488510215bf72d12a60c67684 SHA512 56d0422700835d7b0460c32c41e6d5f30b8b833cefea775eb7f2b5592d744942c1109eac1501421b02f196d15e551111bb2accc71f2fd32ef4b8d658c635340e diff --git a/dev-db/tinycdb/tinycdb-0.81.ebuild b/dev-db/tinycdb/tinycdb-0.81.ebuild new file mode 100644 index 000000000000..fc9fe8b1d16b --- /dev/null +++ b/dev-db/tinycdb/tinycdb-0.81.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit toolchain-funcs + +DESCRIPTION="A very fast and simple package for creating and reading constant data bases" +HOMEPAGE="https://www.corpit.ru/mjt/tinycdb.html" +SRC_URI="https://www.corpit.ru/mjt/${PN}/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~riscv ~x86" +IUSE="static-libs" +RESTRICT="test" + +RDEPEND="!dev-db/cdb" + +PATCHES=( + "${FILESDIR}"/${PN}-gentoo.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="${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 +} |