blob: e9f715a668485f94db8c05ff37b052c8f9536b5a (
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
47
48
49
50
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-LibXML/XML-LibXML-1.40.ebuild,v 1.4 2002/07/25 04:13:27 seemant Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="A Perl module to parse XSL Transformational sheets using gnome's libXSLT"
SRC_URI="http://cpan.valueclick.com/modules/by-category/11_String_Lang_Text_Proc/XML/${A}"
SLOT="0"
HOMEPAGE="http://cpan.valueclick.com/modules/by-category/11_String_Lang_Text_Proc/XML/${P}.readme"
SLOT="0"
DEPEND=">=sys-devel/perl-5
>=dev-perl/XML-SAX-0.10
>=dev-libs/libxml2-2.4.1"
src_compile() {
perl Makefile.PL
try make
try make test
}
#src_install () {
# export PERL5_LIB=/var/tmp/portage/${P}/image/usr/lib/perl5/site_perl/5.6.1/
# export PERLLIB=${D}/`perl -MConfig -e 'print $Config{sitelib}'`
# try make PREFIX=${D}/usr INSTALLMAN3DIR=${D}/usr/share/man/man3 install
# dodoc MANIFEST README
#}
src_install () {
export PERL5LIB=`perl -e 'print map { ":$ENV{D}/$_" } @INC'`
# try make PREFIX=${D}/usr INSTALLMAN3DIR=${D}/usr/share/man/man3 install
# hack around the make install "make install_sax_driver" stage since it breaks things :/
try make PREFIX=${D}/usr INSTALLMAN3DIR=${D}/usr/share/man/man3 pure_install doc_install
# perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
dodoc MANIFEST README
}
pkg_postinst() {
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()"
}
|