Magellan Linux

Contents of /trunk/deprecated/gaim/gaim-1.5.0-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 3113 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/gaim/gaim-1.5.0-r4.smage2,v 1.3 2008/02/07 14:23:37 niro Exp $
2
3 PNAME="gaim"
4 PVER="1.5.0"
5 PBUILD="r4"
6
7 PCATEGORIE="net-im"
8 STATE="testing"
9
10 DESCRIPTION="Gaim is a multi-protocol instant messaging client for Linux."
11 HOMEPAGE="http://gaim.sourceforge.net"
12
13 DEPEND=">= x11-libs/gtk2+-2
14 >= dev-libs/glib2-2
15 >= dev-libs/nss-3
16 >= media-libs/libao-0.8.3
17 >= media-libs/audiofile-0.2.0
18 >= media-libs/nas-1.4.1
19 >= app-text/gtkspell-2.0.2
20 >= x11-libs/startup-notification-0.6"
21 #>= dev-lang/perl-5.8.3 disabled; deprecated by the gaim maintainers
22
23 SDEPEND=">= sys-dev/gettext-0.12.1"
24
25 SRCFILE="${PNAME}-${PVER}.tar.bz2"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 GAIM_ENC_PVER="2.39"
29 GAIM_ENC_FILE="${PNAME}-encryption-${GAIM_ENC_PVER}.tar.gz"
30 GAIM_ENC_DIR="${BUILDDIR}/${PNAME}-encryption-${GAIM_ENC_PVER}"
31
32 sminclude mtools
33
34 SRC_URI=(
35 sourceforge://${PNAME}/${SRCFILE}
36 sourceforge://gaim-encryption/${GAIM_ENC_FILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${GAIM_ENC_FILE}
39 mirror://${PNAME}/${PNAME}-1.1.4-prefs.xml
40 mirror://${PNAME}/${PNAME}-${PVER}-privacy.patch
41 )
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46 munpack ${GAIM_ENC_FILE} || die
47 cd ${SRCDIR}
48
49 # fix crashes with certain privacy options
50 mpatch ${PNAME}-${PVER}-privacy.patch || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56
57 # gaim
58 # disabled perl support; now deprecated by the gaim maintainers
59 mconfigure \
60 --disable-perl \
61 --disable-tcl \
62 --disable-tk \
63 --enable-nas \
64 --disable-gevolution \
65 --with-nspr-includes=/usr/include/nspr \
66 --with-nss-includes=/usr/include/nss \
67 --with-nspr-libs=/usr/$(mlibdir) \
68 --with-nss-libs=/usr/$(mlibdir) \
69 || die
70
71 mmake || die
72 }
73
74 src_install()
75 {
76
77 # gaim
78 cd ${SRCDIR}
79
80 # needed directories
81 install -d ${BINDIR}/etc/gaim || die
82 install -d ${BINDIR}/usr/include/gaim/src || die
83
84 make DESTDIR=${BINDIR} install || die
85
86 # install default preferences
87 minstallfile -s ${PNAME}-1.1.4-prefs.xml /etc/gaim/prefs.xml || die
88
89 # install includes
90 minstallfile config.h /usr/include/gaim || die
91
92 cd ${SRCDIR}/src
93 tar cf - *.h | (cd ${BINDIR}/usr/include/gaim/src ; tar xvf -)
94
95 cd ${SRCDIR}
96 minstalldocs ABOUT-NLS NEWS AUTHORS PROGRAMMING_NOTES COPYING \
97 README* COPYRIGHT ChangeLog* HACKING \
98 doc/CREDITS doc/FAQ || die
99
100 # gaim-encryption (can only be done after gaim is installed)
101 cd ${GAIM_ENC_DIR}
102
103 PKG_CONFIG_PATH=${BINDIR}/usr/$(mlibdir)/pkgconfig:${PKG_CONFIG_PATH} \
104 mconfigure \
105 --with-nspr-includes=/usr/include/nspr \
106 --with-nss-includes=/usr/include/nss \
107 --with-nspr-libs=/usr/$(mlibdir) \
108 --with-nss-libs=/usr/$(mlibdir) \
109 || die
110
111 # fix location of gaim includes
112 sed -i "s:/usr/include/gaim:${BINDIR}/usr/include/gaim:g" Makefile || die
113
114 mmake || die
115
116 # needed directories
117 install -d ${BINDIR}/usr/share/doc/${PNAME}-encryption-${GAIM_ENC_PVER} || die
118
119 make DESTDIR=${BINDIR} install || die
120
121 # docs
122 install -m 0644 CHANGELOG INSTALL NOTES README TODO VERSION WISHLIST \
123 ${BINDIR}/usr/share/doc/${PNAME}-encryption-${GAIM_ENC_PVER} || die
124 gzip -r9 ${BINDIR}/usr/share/doc/${PNAME}-encryption-${GAIM_ENC_PVER} || die
125 }

Properties

Name Value
svn:keywords Id