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

EAPI=3

inherit perl-module 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="~amd64 ~x86"
IUSE=""

DEPEND="sys-libs/zlib
	dev-lang/perl"
RDEPEND="dev-lang/perl
	dev-util/xdelta:0"

S=${WORKDIR}/${PN}

src_prepare(){
	sed -i "s/gcc -Wall -O2 -lz -o \$@ \$(ZGZ_SOURCES)/$(tc-getCC) \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(ZGZ_SOURCES) -lz/" \
		"${S}"/Makefile.PL || die
	perl-module_src_prepare
}

src_install(){
	mydoc="delta-format.txt debian/changelog"
	perl-module_src_install
}