summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-10-23 22:26:58 +0000
committerTim Harder <radhermit@gentoo.org>2012-10-23 22:26:58 +0000
commit558e50b26e60ef51eb418f98497827caa9ad0bc1 (patch)
treebb20dcd40bb0731c0ccb9da26fe7e02bd53dfe55 /sys-libs/libfaketime
parentVersion bump (diff)
downloadgentoo-2-558e50b26e60ef51eb418f98497827caa9ad0bc1.tar.gz
gentoo-2-558e50b26e60ef51eb418f98497827caa9ad0bc1.tar.bz2
gentoo-2-558e50b26e60ef51eb418f98497827caa9ad0bc1.zip
Version bump.
(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'sys-libs/libfaketime')
-rw-r--r--sys-libs/libfaketime/ChangeLog8
-rw-r--r--sys-libs/libfaketime/files/libfaketime-0.9.1-makefile.patch42
-rw-r--r--sys-libs/libfaketime/libfaketime-0.9.1.ebuild32
3 files changed, 81 insertions, 1 deletions
diff --git a/sys-libs/libfaketime/ChangeLog b/sys-libs/libfaketime/ChangeLog
index b4bb3559a85b..5f1bc8580046 100644
--- a/sys-libs/libfaketime/ChangeLog
+++ b/sys-libs/libfaketime/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-libs/libfaketime
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libfaketime/ChangeLog,v 1.2 2012/02/27 23:54:08 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libfaketime/ChangeLog,v 1.3 2012/10/23 22:26:58 radhermit Exp $
+
+*libfaketime-0.9.1 (23 Oct 2012)
+
+ 23 Oct 2012; Tim Harder <radhermit@gentoo.org> +libfaketime-0.9.1.ebuild,
+ +files/libfaketime-0.9.1-makefile.patch:
+ Version bump.
*libfaketime-0.9-r1 (27 Feb 2012)
diff --git a/sys-libs/libfaketime/files/libfaketime-0.9.1-makefile.patch b/sys-libs/libfaketime/files/libfaketime-0.9.1-makefile.patch
new file mode 100644
index 000000000000..d26682286617
--- /dev/null
+++ b/sys-libs/libfaketime/files/libfaketime-0.9.1-makefile.patch
@@ -0,0 +1,42 @@
+--- libfaketime-0.9.1/Makefile
++++ libfaketime-0.9.1/Makefile
+@@ -1,6 +1,5 @@
+ all:
+ $(MAKE) -C src all
+- $(MAKE) -C test all
+
+ test:
+ $(MAKE) -C test all
+--- libfaketime-0.9.1/src/Makefile
++++ libfaketime-0.9.1/src/Makefile
+@@ -47,7 +47,7 @@
+ # the dynamic disabling of the FAKE_STAT calls.
+ #
+
+-CC = gcc
++CC ?= gcc
+ INSTALL = install
+
+ PREFIX = /usr/local
+--- libfaketime-0.9.1/test/Makefile
++++ libfaketime-0.9.1/test/Makefile
+@@ -1,7 +1,7 @@
+-CC = gcc
++CC ?= gcc
+
+-CFLAGS = -std=gnu99 -Wall -DFAKE_STAT
+-LDFLAGS = -lrt
++CFLAGS += -std=gnu99 -Wall -DFAKE_STAT
++LIBS = -lrt
+
+ SRC = timetest.c
+ OBJ = ${SRC:.c=.o}
+@@ -12,7 +12,7 @@
+ ${CC} -c ${CFLAGS} $<
+
+ timetest: ${OBJ}
+- ${CC} -o $@ ${OBJ} ${LDFLAGS}
++ ${CC} -o $@ ${OBJ} ${LDFLAGS} ${LIBS}
+
+ test: timetest functest
+ @echo
diff --git a/sys-libs/libfaketime/libfaketime-0.9.1.ebuild b/sys-libs/libfaketime/libfaketime-0.9.1.ebuild
new file mode 100644
index 000000000000..13b4793bc250
--- /dev/null
+++ b/sys-libs/libfaketime/libfaketime-0.9.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libfaketime/libfaketime-0.9.1.ebuild,v 1.1 2012/10/23 22:26:58 radhermit Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="Report faked system time to programs"
+HOMEPAGE="http://www.code-wizards.com/projects/libfaketime/"
+SRC_URI="http://www.code-wizards.com/projects/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${PN}-0.9-as-needed.patch
+ tc-export CC
+}
+
+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
+ dodoc NEWS README TODO
+}