blob: 2abf1c8638fa2a2cc60da3e13749b9f1a1709b45 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit toolchain-funcs
DESCRIPTION="regenerate a pristine upstream tarball"
HOMEPAGE="http://kitenet.net/~joey/code/pristine-tar/"
SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="sys-libs/zlib
dev-lang/perl"
RDEPEND="dev-lang/perl
dev-util/xdelta"
S=${WORKDIR}/${PN}
src_unpack(){
unpack ${A}
sed -i "s/gcc -Wall -O2 -lz -o \$@ \$(ZGZ_SOURCES)/$(tc-getCC) ${CFLAGS} -o \$@ \$(ZGZ_SOURCES) -lz ${LDFLAGS}/" \
"${S}"/Makefile || die
}
src_install(){
emake DESTDIR="${D}" install || die
dodoc delta-format.txt TODO debian/changelog || die
}
|