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