blob: 1e2f03cdbc509a0a712938abe694b17677aa4966 (
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
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Tk-TableMatrix/Tk-TableMatrix-1.2.3.ebuild,v 1.7 2007/07/14 13:55:01 armin76 Exp $
inherit versionator perl-module eutils
MY_P="${PN}-$(delete_version_separator 2)"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Perl module for Tk-TableMatrix"
HOMEPAGE="http://search.cpan.org/author/CERNEY/${MY_P}"
SRC_URI="mirror://cpan/authors/id/C/CE/CERNEY/${MY_P}.tar.gz"
#SRC_TEST="do"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ppc sparc x86"
IUSE=""
DEPEND="dev-perl/perl-tk
dev-lang/perl"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/pTk-1.22.patch
}
src_install() {
perl-module_src_install
# Clean out stray conflicting file - its generated by perl-tk already.
# Bug 169294
local version
eval `perl '-V:version'`
perl_version=${version}
local myarch
eval `perl '-V:archname'`
myarch=${archname}
if [ -f ${D}/usr/$(get_libdir)/perl5/vendor_perl/${perl_version}/${myarch}/auto/Tk/pTk/extralibs.ld ]; then
rm ${D}/usr/$(get_libdir)/perl5/vendor_perl/${perl_version}/${myarch}/auto/Tk/pTk/extralibs.ld
fi
}
|