Magellan Linux

Contents of /branches/R11-stable/extras/libotr3/libotr3-3.2.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15227 - (show annotations) (download)
Wed Jan 2 10:59:52 2013 UTC (11 years, 4 months ago) by niro
File size: 1219 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="libotr3"
4 PVER="3.2.1"
5 PBUILD="r1"
6
7 PCAT="net-libs"
8
9 DESCRIPTION="Off-the-Record (OTR) Messaging allows you to have private conversations over instant messaging."
10 HOMEPAGE="http://www.cypherpunks.ca/otr/"
11
12 DEPEND=">= app-crypt/libgcrypt-1.5
13 >= app-crypt/libgpg-error-1.9"
14
15 SRCFILE="${PNAME/3/}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 http://www.cypherpunks.ca/otr/${SRCFILE}
22 mirror://${PNAME/3/}/${SRCFILE}
23 mirror://${PNAME/3/}/${PNAME}-${PVER}-soname-2.patch
24 )
25
26 UP2DATE="updatecmd -listonly ${HOMEPAGE} | grep ${PNAME}- | lasttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # use libotr3 soname to fix parallel install with libotr-4
34 mpatch ${PNAME}-${PVER}-soname-2.patch || die
35 mautoreconf || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 mconfigure --program-transform-name='s/otr/otr3/' || die
43 mmake || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}
49 mmake DESTDIR=${BINDIR} install || die
50
51 local i
52 for i in parse sesskeys mackey readforge modify remac
53 do
54 rm ${BINDIR}/usr/share/man/man1/otr_${i}.1 || die
55 mlink otr3_toolkit.1 /usr/share/man/man1/otr3_${i}.1 || die
56 done
57
58 minstalldocs AUTHORS ChangeLog COPYING NEWS README || die
59 }