summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-libs/libfaketime/libfaketime-0.9.5.ebuild20
1 files changed, 17 insertions, 3 deletions
diff --git a/sys-libs/libfaketime/libfaketime-0.9.5.ebuild b/sys-libs/libfaketime/libfaketime-0.9.5.ebuild
index 1cac958..a59150b 100644
--- a/sys-libs/libfaketime/libfaketime-0.9.5.ebuild
+++ b/sys-libs/libfaketime/libfaketime-0.9.5.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-inherit eutils toolchain-funcs multilib
+inherit eutils toolchain-funcs multilib-minimal
DESCRIPTION="Report faked system time to programs"
HOMEPAGE="http://www.code-wizards.com/projects/libfaketime/ https://github.com/wolfcw/libfaketime/"
@@ -18,14 +18,28 @@ src_prepare() {
epatch "${FILESDIR}"/0001-Fake-__clock_gettime-and-similar-calls-using-__.-cal.patch
epatch "${FILESDIR}"/0002-Finish-safe-faking-of-internal-calls.patch
tc-export CC
+ multilib_copy_sources
}
-src_install() {
+multilib_src_test() {
+ if [[ ${ABI} == ${DEFAULT_ABI} ]]; then
+ default_src_test
+ else
+ einfo "not running tests for ${ABI}"
+ echo ${DEFAULT_ABI}
+ fi
+}
+
+multilib_src_install() {
dobin src/faketime
- doman man/faketime.1
exeinto /usr/$(get_libdir)/faketime
doexe src/${PN}*.so.*
dosym ${PN}.so.1 /usr/$(get_libdir)/faketime/${PN}.so
dosym ${PN}MT.so.1 /usr/$(get_libdir)/faketime/${PN}MT.so
+}
+
+src_install() {
+ multilib-minimal_src_install
+ doman man/faketime.1
dodoc NEWS README TODO
}