Magellan Linux

Contents of /trunk/extras/libotr3/libotr3-3.2.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14478 - (show annotations) (download)
Fri Dec 21 12:39:31 2012 UTC (11 years, 6 months ago) by niro
File size: 1191 byte(s)
-fixed PNAME
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 mbuild
19
20 SRC_URI=(
21 http://www.cypherpunks.ca/otr/${SRCFILE}
22 mirror://${PNAME/3/}/${SRCFILE}
23 mirror://${PNAME/3/}/${PNAME}-${PVER}-soname.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.patch || die
35 }
36
37 src_compile()
38 {
39 cd ${SRCDIR}
40
41 mconfigure --program-transform-name='s/otr/otr3/' || die
42 mmake || die
43 }
44
45 src_install()
46 {
47 cd ${SRCDIR}
48 mmake DESTDIR=${BINDIR} install || die
49
50 local i
51 for i in parse sesskeys mackey readforge modify remac
52 do
53 mdelete /usr/share/man/man1/otr_${i}.1 || die
54 mlink otr3_toolkit.1 /usr/share/man/man1/otr3_${i}.1 || die
55 done
56
57 minstalldocs AUTHORS ChangeLog COPYING NEWS README || die
58 }