|
Lines 2-7
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.3.5-r1.ebuild,v 1.6 2008/07/05 16:48:39 armin76 Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.3.5-r1.ebuild,v 1.6 2008/07/05 16:48:39 armin76 Exp $ |
| 4 |
|
4 |
|
|
|
5 |
EAPI="1" |
| 5 |
WANT_AUTOMAKE=1.9 |
6 |
WANT_AUTOMAKE=1.9 |
| 6 |
|
7 |
|
| 7 |
inherit autotools eutils kde-functions multilib |
8 |
inherit autotools eutils kde-functions multilib |
|
Lines 12-60
Link Here
|
| 12 |
|
13 |
|
| 13 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
| 14 |
SLOT="2" |
15 |
SLOT="2" |
| 15 |
KEYWORDS="alpha amd64 ia64 ppc sparc x86 ~x86-fbsd" |
16 |
KEYWORDS="~amd64 ~x86" |
| 16 |
IUSE="ssl socks5 qt3 kde ncurses crypt msn debug" |
17 |
IUSE="crypt debug kde msn ncurses nls pic qt3 qt4 socks5 ssl" |
| 17 |
|
18 |
|
| 18 |
# we can't have conditional dependencies so "use kde && inherit kde" |
19 |
# we use kde as KDE4 |
| 19 |
# won't work -- messes up dep caching. |
20 |
RDEPEND="kde? ( kde-base/kdelibs:4.1 ) |
| 20 |
|
21 |
ssl? ( dev-libs/openssl ) |
| 21 |
# need-kde and their eclass friends inject things into DEPEND. But we only |
22 |
qt3? ( x11-libs/qt:3 ) |
| 22 |
# want them enabled if the kde USE flag is set. We get around this in the |
23 |
qt4? ( || ( x11-libs/qt-gui:4 x11-libs/qt:4 ) ) |
| 23 |
# following dep lines: |
24 |
nls? ( sys-devel/gettext ) |
| 24 |
RDEPEND="kde? ( >=kde-base/kdelibs-3.0 )" |
25 |
ncurses? ( sys-libs/ncurses =dev-libs/cdk-5* ) |
| 25 |
DEPEND="kde? ( >=kde-base/kdelibs-3.0 ) |
26 |
crypt? ( app-crypt/gpgme:1 )" |
| 26 |
ssl? ( >=dev-libs/openssl-0.9.6 ) |
27 |
DEPEND="${RDEPEND}" |
| 27 |
qt3? ( =x11-libs/qt-3* ) |
|
|
| 28 |
ncurses? ( sys-libs/ncurses >=dev-libs/cdk-4.9.11.20031210-r1 ) |
| 29 |
crypt? ( >=app-crypt/gpgme-1.0.0 )" |
| 30 |
|
28 |
|
| 31 |
src_unpack() { |
29 |
src_unpack() { |
| 32 |
unpack ${A} |
30 |
unpack ${A} |
| 33 |
cd "${S}" |
31 |
cd "${S}" |
| 34 |
|
|
|
| 35 |
epatch "${FILESDIR}"/${P}-logonfix.patch |
| 36 |
epatch "${FILESDIR}"/${P}-prevent-dos.patch |
| 37 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
| 38 |
|
32 |
|
| 39 |
use ncurses && epatch "${FILESDIR}"/1.3.0-suse_bool.patch |
33 |
if use kde; then |
| 40 |
|
|
|
| 41 |
if use kde |
| 42 |
then |
| 43 |
# fix for #12436 |
34 |
# fix for #12436 |
| 44 |
ebegin "Setting kde plugin as default" |
35 |
ebegin "Setting kde plugin as default" |
| 45 |
cp "${S}"/src/licq.conf.h "${T}" |
36 |
cp "${S}"/src/licq.conf.h "${T}" |
| 46 |
sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \ |
37 |
sed "s:Plugin1 = qt4-gui:Plugin1 = kde-gui:" \ |
| 47 |
"${T}"/licq.conf.h > "${S}"/src/licq.conf.h |
38 |
"${T}"/licq.conf.h > "${S}"/src/licq.conf.h |
| 48 |
eend $? |
39 |
eend $? |
| 49 |
else |
40 |
else |
| 50 |
if ! use qt3 |
41 |
if ! use qt3; then |
| 51 |
then |
|
|
| 52 |
ebegin "Setting console plugin as default..." |
42 |
ebegin "Setting console plugin as default..." |
| 53 |
cp "${S}"/src/licq.conf.h "${T}" |
43 |
cp "${S}"/src/licq.conf.h "${T}" |
| 54 |
sed "s:Plugin1 = qt-gui:Plugin1 = console:" \ |
44 |
sed "s:Plugin1 = qt-gui:Plugin1 = console:" \ |
| 55 |
"${T}"/licq.conf.h > "${S}"/src/licq.conf.h |
45 |
"${T}"/licq.conf.h > "${S}"/src/licq.conf.h |
| 56 |
eend $? |
46 |
eend $? |
| 57 |
fi |
47 |
fi |
| 58 |
fi |
48 |
fi |
| 59 |
|
49 |
|
| 60 |
# Install plugins in the correct libdir |
50 |
# Install plugins in the correct libdir |
|
Lines 88-127
Link Here
|
| 88 |
use ssl || myconf="${myconf} --disable-openssl" |
78 |
use ssl || myconf="${myconf} --disable-openssl" |
| 89 |
use socks5 && myconf="${myconf} --enable-socks5" |
79 |
use socks5 && myconf="${myconf} --enable-socks5" |
| 90 |
use debug && myconf="${myconf} --enable-debug" |
80 |
use debug && myconf="${myconf} --enable-debug" |
| 91 |
|
81 |
use nls || myconf="${myconf} --disable-nls" |
| 92 |
myconf="${myconf} $(use_enable crypt gpgme)" |
82 |
myconf="${myconf} $(use_enable crypt gpgme) $(use_with pic)" |
| 93 |
|
|
|
| 94 |
cd "${S}" |
| 95 |
|
| 96 |
# bug #21009 |
| 97 |
find . -name 'configure' -exec sed -e "s:sed 's/-g:sed 's/^-g:" -i {} \; |
| 98 |
|
83 |
|
| 99 |
econf ${myconf} || die "econf failed" |
84 |
econf ${myconf} || die "econf failed" |
| 100 |
|
|
|
| 101 |
use crypt && { |
| 102 |
# workaround for gpgme's headers inclusion path |
| 103 |
sed \ |
| 104 |
-e "s:FAULT_INCLUDES =:FAULT_INCLUDES = -I/usr/include/gpgme:" \ |
| 105 |
-i "${S}"/src/Makefile |
| 106 |
} |
| 107 |
|
| 108 |
emake || die "emake failed" |
85 |
emake || die "emake failed" |
| 109 |
|
86 |
if use qt3; then |
| 110 |
# Create the various plug-ins |
|
|
| 111 |
|
| 112 |
# First, the Qt plug-in |
| 113 |
if use qt3 |
| 114 |
then |
| 115 |
set-qtdir 3 |
87 |
set-qtdir 3 |
| 116 |
set-kdedir 3 |
|
|
| 117 |
|
| 118 |
use kde && myconf="${myconf} --with-kde" |
| 119 |
|
88 |
|
| 120 |
# Problems finding qt on multilib systems |
89 |
# Problems finding qt on multilib systems |
| 121 |
myconf="${myconf} --with-qt-libraries=${QTDIR}/$(get_libdir)" |
90 |
myconf="${myconf} --with-qt-libraries=${QTDIR}/$(get_libdir)" |
| 122 |
|
91 |
|
| 123 |
# note! watch the --prefix=/usr placement; |
92 |
# note! watch the --prefix=/usr placement; |
| 124 |
# licq itself installs into /usr, but the |
93 |
# licq itself installs into /usr, but the |
| 125 |
# optional kde/qt interface (to which second_conf belogns) |
94 |
# optional kde/qt interface (to which second_conf belogns) |
| 126 |
# installs its files in $KDE3DIR/{lib,share}/licq |
95 |
# installs its files in $KDE3DIR/{lib,share}/licq |
| 127 |
|
96 |
|
|
Lines 130-136
Link Here
|
| 130 |
econf ${myconf} || die |
99 |
econf ${myconf} || die |
| 131 |
emake || die |
100 |
emake || die |
| 132 |
fi |
101 |
fi |
| 133 |
|
102 |
if use qt4; then |
|
|
103 |
cd "${S}"/plugins/qt4-gui |
| 104 |
einfo "Compiling Qt4 GUI plug-in" |
| 105 |
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DWITH_KDE=1 || die "cmake failed" |
| 106 |
emake || die "emake failed" |
| 107 |
fi |
| 134 |
# Now the console plug-in |
108 |
# Now the console plug-in |
| 135 |
if use ncurses |
109 |
if use ncurses |
| 136 |
then |
110 |
then |
|
Lines 140-146
Link Here
|
| 140 |
emake || die |
114 |
emake || die |
| 141 |
fi |
115 |
fi |
| 142 |
|
116 |
|
| 143 |
for plugin in auto-reply rms msn email ; do |
117 |
for plugin in auto-reply rms msn email osd; do |
| 144 |
cd "${S}"/plugins/${plugin} |
118 |
cd "${S}"/plugins/${plugin} |
| 145 |
einfo "Compiling '${plugin}' plug-in" |
119 |
einfo "Compiling '${plugin}' plug-in" |
| 146 |
econf || die "econf failed for ${plugin} plugin" |
120 |
econf || die "econf failed for ${plugin} plugin" |
|
Lines 154-178
Link Here
|
| 154 |
dodoc ChangeLog INSTALL README* doc/* |
128 |
dodoc ChangeLog INSTALL README* doc/* |
| 155 |
|
129 |
|
| 156 |
# Install the plug-ins |
130 |
# Install the plug-ins |
| 157 |
if use qt3 |
131 |
if use qt3; then |
| 158 |
then |
|
|
| 159 |
cd "${S}"/plugins/qt-gui |
132 |
cd "${S}"/plugins/qt-gui |
| 160 |
emake DESTDIR="${D}" install || die |
133 |
emake DESTDIR="${D}" install || die |
| 161 |
docinto plugins/qt-gui |
134 |
docinto plugins/qt-gui |
| 162 |
dodoc README* |
135 |
dodoc README* |
| 163 |
|
136 |
|
| 164 |
fi |
137 |
fi |
| 165 |
|
138 |
if use qt4; then |
| 166 |
if use ncurses |
139 |
cd "${S}"/plugins/qt4-gui |
| 167 |
then |
140 |
emake DESTDIR="${D}" install || die |
|
|
141 |
docinto plugins/qt4-gui |
| 142 |
dodoc README |
| 143 |
fi |
| 144 |
if use ncurses; then |
| 168 |
cd "${S}"/plugins/console |
145 |
cd "${S}"/plugins/console |
| 169 |
emake DESTDIR="${D}" install || die |
146 |
emake DESTDIR="${D}" install || die |
| 170 |
docinto plugins/console |
147 |
docinto plugins/console |
| 171 |
dodoc README |
148 |
dodoc README |
| 172 |
fi |
149 |
fi |
| 173 |
|
150 |
|
| 174 |
if use msn |
151 |
if use msn; then |
| 175 |
then |
|
|
| 176 |
cd "${S}"/plugins/msn |
152 |
cd "${S}"/plugins/msn |
| 177 |
make DESTDIR="${D}" install || die |
153 |
make DESTDIR="${D}" install || die |
| 178 |
docinto plugins/msn |
154 |
docinto plugins/msn |
|
Lines 189-194
Link Here
|
| 189 |
docinto plugins/rms |
165 |
docinto plugins/rms |
| 190 |
dodoc README licq_rms.conf |
166 |
dodoc README licq_rms.conf |
| 191 |
|
167 |
|
|
|
168 |
cd "${S}"/plugins/osd |
| 169 |
make DESTDIR="${D}" install || die |
| 170 |
docinto plugins/osd |
| 171 |
dodoc README licq_osd.conf |
| 172 |
|
| 192 |
exeinto /usr/share/${PN}/upgrade |
173 |
exeinto /usr/share/${PN}/upgrade |
| 193 |
doexe "${S}"/upgrade/* |
174 |
doexe "${S}"/upgrade/* |
| 194 |
|
175 |
|
|
Lines 196-207
Link Here
|
| 196 |
rm -fR "${D}"/var |
177 |
rm -fR "${D}"/var |
| 197 |
} |
178 |
} |
| 198 |
|
179 |
|
| 199 |
pkg_postinst() { |
|
|
| 200 |
echo |
| 201 |
ewarn |
| 202 |
ewarn "If you're upgrading from <=licq-1.3.0 - you have to manually " |
| 203 |
ewarn "upgrade your existing licq installation. Please backup your " |
| 204 |
ewarn "settings and look into: /usr/share/licq/upgrade for scripts." |
| 205 |
ewarn |
| 206 |
echo |
| 207 |
} |