Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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