Magellan Linux

Contents of /trunk/extras/perl-net-ssleay/perl-net-ssleay-1.82-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30229 - (show annotations) (download)
Mon Nov 6 18:05:20 2017 UTC (6 years, 5 months ago) by niro
File size: 640 byte(s)
auto added: ver bump to 1.82-r1
1 # $Id$
2
3 PNAME="perl-net-ssleay"
4 PVER="1.82"
5 PBUILD="r1"
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 }