blob: ef13b03a0242d9a7dcba88f67c01cd5311471baf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit multilib
DESCRIPTION="FakeTime Preload Library"
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="~x86 ~amd64"
IUSE=""
#FIXME: Write a fix for make test (only libfaketime.so seems to be tested)
src_compile() {
sed -i 's:${CC}:$(CC) $(CFLAGS) $(LDFLAGS):;
s:\(soname,libfaketime\.so\)\.1:\1:' Makefile || die "sed failed"
emake libs || die "make libs failed"
}
src_install() {
local my_bin=${PN/lib}
dosym ${PN}.so.1 /usr/$(get_libdir)/${PN}.so \
|| die "dosym ${PN}.so failed"
dosym ${PN}MT.so.1 /usr/$(get_libdir)/${PN}MT.so \
|| die "dosym ${PN}MT.so failed"
dolib ${PN}*.so* || die "dolib failed"
dobin ${my_bin} || die "dobin failed"
doman ${my_bin}.1 || die "doman failed"
dodoc README Changelog || die "dodoc failed"
}
|