Magellan Linux

Annotation of /trunk/extras/perl-net-ssleay/perl-net-ssleay-1.85-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31649 - (hide annotations) (download)
Wed Dec 5 09:06:49 2018 UTC (5 years, 5 months ago) by niro
File size: 640 byte(s)
auto added: ver bump to 1.85-r2
1 niro 31649 # $Id$
2    
3     PNAME="perl-net-ssleay"
4     PVER="1.85"
5     PBUILD="r2"
6    
7     DESCRIPTION="Perl extension for using OpenSSL."
8    
9     DEPEND=">= dev-lang/perl-5.26.1
10     >= dev-libs/openssl-1.1"
11    
12     CPAN_MODULE="Net-SSLeay"
13     CPAN_AUTHOR="mikem"
14     sminclude cpan
15    
16     src_prepare()
17     {
18     munpack ${SRCFILE} || die
19     cd ${SRCDIR}
20    
21     # fix libdir
22     sed -i "s:openssl_path/lib:openssl_path/$(mlibdir):" Makefile.PL || die
23     }
24    
25     src_compile()
26     {
27     # wants to know the openssl directory location
28     cpan_src_compile "/usr"
29     }
30    
31     postinstall()
32     {
33     _PNAME=net-ssleay
34    
35     if [[ ! -z $(magequery -n ${_PNAME}) ]]
36     then
37     echo "Uninstalling deprecated package '${_PNAME}'..."
38     mage uninstall "${_PNAME}"
39     fi
40     }