Magellan Linux

Annotation of /smage/trunk/core/perl-xml-parser/perl-xml-parser-2.46-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13954 - (hide annotations) (download)
Thu Jul 2 08:13:48 2020 UTC (3 years, 10 months ago) by niro
File size: 595 byte(s)
auto added: ver bump to 2.46-r3
1 niro 13954 # $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     }