summaryrefslogtreecommitdiff
blob: f5fb097d9f03950349cdd4bf371caea357c5ff5d (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=1

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:0"

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
}