Contents of /trunk/extras/libotr3/libotr3-3.2.1-r2.smage2
Parent Directory | Revision Log
Revision 20918 -
(show annotations)
(download)
Fri Feb 14 12:38:03 2014 UTC (10 years, 7 months ago) by niro
File size: 1207 byte(s)
Fri Feb 14 12:38:03 2014 UTC (10 years, 7 months ago) by niro
File size: 1207 byte(s)
-rebuild against libgcrypt-1.6 (soname change)
1 | # $Id$ |
2 | |
3 | PNAME="libotr3" |
4 | PVER="3.2.1" |
5 | PBUILD="r2" |
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.6 |
13 | >= app-crypt/libgpg-error-1.12" |
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 | # only v4 is provided upstream, fake it |
27 | UP2DATE="echo ${PVER}" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | # use libotr3 soname to fix parallel install with libotr-4 |
35 | mpatch ${PNAME}-${PVER}-soname-2.patch || die |
36 | mautoreconf || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | |
43 | mconfigure --program-transform-name='s/otr/otr3/' || die |
44 | mmake || die |
45 | } |
46 | |
47 | src_install() |
48 | { |
49 | cd ${SRCDIR} |
50 | mmake DESTDIR=${BINDIR} install || die |
51 | |
52 | local i |
53 | for i in parse sesskeys mackey readforge modify remac |
54 | do |
55 | rm ${BINDIR}/usr/share/man/man1/otr_${i}.1 || die |
56 | mlink otr3_toolkit.1 /usr/share/man/man1/otr3_${i}.1 || die |
57 | done |
58 | |
59 | minstalldocs AUTHORS ChangeLog COPYING NEWS README || die |
60 | } |