Annotation of /branches/R11-stable/extras/libotr3/libotr3-3.2.1-r1.smage2
Parent Directory | Revision Log
Revision 14478 -
(hide annotations)
(download)
Fri Dec 21 12:39:31 2012 UTC (11 years, 9 months ago) by niro
Original Path: trunk/extras/libotr3/libotr3-3.2.1-r1.smage2
File size: 1191 byte(s)
Fri Dec 21 12:39:31 2012 UTC (11 years, 9 months ago) by niro
Original Path: trunk/extras/libotr3/libotr3-3.2.1-r1.smage2
File size: 1191 byte(s)
-fixed PNAME
1 | niro | 14477 | # $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 | niro | 14478 | SRCFILE="${PNAME/3/}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}" | ||
17 | niro | 14477 | |
18 | sminclude mbuild | ||
19 | |||
20 | SRC_URI=( | ||
21 | http://www.cypherpunks.ca/otr/${SRCFILE} | ||
22 | niro | 14478 | mirror://${PNAME/3/}/${SRCFILE} |
23 | mirror://${PNAME/3/}/${PNAME}-${PVER}-soname.patch | ||
24 | niro | 14477 | ) |
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 | } |