datefudge-1.17-r1.ebuild (937B)
1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=6
5 inherit multilib toolchain-funcs eutils
6
7 DESCRIPTION="A program (and preload library) to fake system date"
8 HOMEPAGE="http://packages.qa.debian.org/d/datefudge.html"
9 SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
14 IUSE=""
15
16 src_prepare() {
17 use userland_BSD && epatch "${FILESDIR}"/${P}-bsd.patch
18 epatch "${FILESDIR}/datefudge-alt-libc.patch"
19 sed -i \
20 -e '/dpkg-parsechangelog/d' \
21 -e "s:usr/lib:usr/$(get_libdir):" \
22 Makefile || die
23
24 if use prefix; then
25 sed -i -e '/-o root -g root/d' Makefile || die
26 fi
27 eapply_user
28 }
29
30 src_compile() {
31 emake CC="$(tc-getCC)" VERSION="${PV}"
32 }
33
34 src_install() {
35 emake DESTDIR="${ED}" VERSION="${PV}" install
36 dodoc debian/changelog README
37 }