Magellan Linux

Annotation of /branches/R11-unstable/core/perl-xml-parser/perl-xml-parser-2.44-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32115 - (hide annotations) (download)
Mon Apr 29 11:40:19 2019 UTC (5 years ago) by niro
File size: 561 byte(s)
-release branches/R11-unstable
1 niro 31617 # $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    
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     }