Magellan Linux

Contents of /smage/branches/alx07x-stable/core/perl-xml-parser/perl-xml-parser-2.46-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15108 - (show annotations) (download)
Fri Aug 7 07:25:05 2020 UTC (3 years, 8 months ago) by niro
File size: 595 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="perl-xml-parser"
4 PVER="2.46"
5 PBUILD="r3"
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 }