summaryrefslogtreecommitdiff
blob: a1e5096a8c85dff3631d94fe31cac46e55154039 (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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Tk-JPEG-Lite/Tk-JPEG-Lite-2.01403.ebuild,v 1.9 2006/08/22 15:04:16 yuval Exp $

inherit perl-module

IUSE=""

DESCRIPTION="lite JPEG loader for Tk::Photo"
SRC_URI="mirror://cpan/authors/id/S/SR/SREZIC/${P}.tar.gz"
HOMEPAGE="http://www.cpan.org/modules/by-authors/id/S/SR/SREZIC/${P}.readme"

SLOT="0"
LICENSE="Artistic GPL-2"
KEYWORDS="~amd64 ia64 ~ppc sparc x86"

DEPEND="dev-perl/perl-tk
	dev-lang/perl"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd ${S}
	for i in Makefile.PL tkjpeg MANIFEST; do
	 	sed -e 's:tkjpeg:tkjpeg-lite:' ${i} > ${i}.new \
		   	&& mv ${i}.new ${i} || die "sed on ${i} failed!"
	done
 	mv tkjpeg tkjpeg-lite
}

pkg_postinst() {
	elog
	elog "To avoid collisions, the command line program has been renamed from tkjpeg to tkjpeg-lite"
	elog
}