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/tinycdb-0.81.ebuild | |
| parent | a818b166819bc5569b37f072e9b378b02223e8c3 (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/tinycdb-0.81.ebuild')
| -rw-r--r-- | dev-db/tinycdb/tinycdb-0.81.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
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 +} |
