Annotation of /trunk/core/perl-xml-parser/perl-xml-parser-2.44-r2.smage2
Parent Directory | Revision Log
Revision 29740 -
(hide annotations)
(download)
Tue Oct 10 10:44:16 2017 UTC (6 years, 11 months ago) by niro
File size: 561 byte(s)
Tue Oct 10 10:44:16 2017 UTC (6 years, 11 months ago) by niro
File size: 561 byte(s)
auto added: ver bump to 2.44-r2
1 | niro | 29740 | # $Id$ |
2 | |||
3 | PNAME="perl-xml-parser" | ||
4 | PVER="2.44" | ||
5 | PBUILD="r2" | ||
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 | } |