summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-db/tinycdb/tinycdb-0.77-r2.ebuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/dev-db/tinycdb/tinycdb-0.77-r2.ebuild b/dev-db/tinycdb/tinycdb-0.77-r2.ebuild
index 937f5d7f3fe1..5451c4cff7d0 100644
--- a/dev-db/tinycdb/tinycdb-0.77-r2.ebuild
+++ b/dev-db/tinycdb/tinycdb-0.77-r2.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI="6"
-inherit eutils multilib toolchain-funcs
+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"
@@ -17,11 +17,15 @@ RESTRICT="test"
RDEPEND="!dev-db/cdb"
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-umask.patch
+ "${FILESDIR}"/${PN}-uclibc.patch
+)
+
src_prepare() {
- epatch "${FILESDIR}"/${PN}-gentoo.patch
- epatch "${FILESDIR}"/${PN}-umask.patch
- epatch "${FILESDIR}"/${PN}-uclibc.patch
- # fix multilib support
+ default
+
sed -i "/^libdir/s:/lib:/$(get_libdir):" Makefile
}
@@ -40,9 +44,9 @@ src_install() {
use static-libs && targets+=" install-piclib"
emake \
- prefix="/usr" \
- mandir="/usr/share/man" \
+ prefix="${EPREFIX}"/usr \
+ mandir="${EPREFIX}"/usr/share/man \
DESTDIR="${D}" \
${targets}
- dodoc ChangeLog NEWS
+ einstalldocs
}