Contents of /trunk/core/perl-xml-parser/perl-xml-parser-2.44-r3.smage2
Parent Directory | Revision Log
Revision 30993 -
(show annotations)
(download)
Tue May 29 09:43:48 2018 UTC (6 years, 3 months ago) by niro
File size: 561 byte(s)
Tue May 29 09:43:48 2018 UTC (6 years, 3 months ago) by niro
File size: 561 byte(s)
auto added: ver bump to 2.44-r3
1 | # $Id$ |
2 | |
3 | PNAME="perl-xml-parser" |
4 | PVER="2.44" |
5 | PBUILD="r3" |
6 | |
7 | DESCRIPTION="A perl module for parsing XML documents." |
8 | |
9 | DEPEND=">= dev-libs/expat-2" |
10 | |
11 | CPAN_MODULE=XML-Parser |
12 | CPAN_AUTHOR=toddr |
13 | sminclude multilib cpan |
14 | |
15 | src_prepare() |
16 | { |
17 | munpack ${SRCFILE} || die |
18 | |
19 | # fix libdir on 64bit arches |
20 | all-abis 'sed -i "s:^\$expat_libpath.*:\$expat_libpath = \"/usr/$(mlibdir)\";:" Makefile.PL || die' |
21 | } |
22 | |
23 | postinstall() |
24 | { |
25 | _PNAME=xml-parser |
26 | |
27 | if [[ ! -z $(magequery -n ${_PNAME}) ]] |
28 | then |
29 | echo "Uninstalling deprecated package '${_PNAME}'..." |
30 | mage uninstall "${_PNAME}" |
31 | fi |
32 | } |