Magellan Linux

Contents of /trunk/core/nettle/nettle-3.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30312 - (show annotations) (download)
Thu Nov 30 12:50:40 2017 UTC (6 years, 4 months ago) by niro
File size: 910 byte(s)
auto added: ver bump to 3.4-r1
1 # $Id$
2
3 PNAME="nettle"
4 PVER="3.4"
5 PBUILD="r1"
6
7 PCAT="app-crypt"
8
9 DESCRIPTION="Libgnettle is low-level cryptographic library."
10 HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/"
11
12 DEPEND=">= dev-libs/gmp-6.0"
13
14 SRCFILE="${PNAME}-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude multilib mtools
18
19 SRC_URI=(
20 #http://www.lysator.liu.se/~nisse/archive/${SRCFILE}
21 gnu://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd http://www.lysator.liu.se/~nisse/archive/ | grep ${PNAME}- | highesttarball gz"
26
27 src_compile()
28 {
29 # disable-static breaks the build
30 mconfigure --enable-static || die
31 mmake || die
32 }
33
34 src_install()
35 {
36 multilib_src_install || die
37
38 # remove static libs
39 mdelete /usr/$(mlibdir)/libhogweed.a || die
40 mdelete /usr/$(mlibdir)/libnettle.a || die
41 if [[ $(mlibdir) != lib ]]
42 then
43 mdelete /usr/lib/libhogweed.a || die
44 mdelete /usr/lib/libnettle.a || die
45 fi
46 }