1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 ESVN_REPO_URI="http://toxygen.net/svn/ekg2/trunk"
8 inherit multilib subversion
10 DESCRIPTION="Remote UI client for EKG2 instant messenger"
11 HOMEPAGE="http://www.ekg2.org"
16 IUSE="gnutls gpm gtk ncurses readline spell ssl static unicode"
19 gtk? ( x11-libs/gtk+:2 )
20 readline? ( sys-libs/readline )
21 gnutls? ( net-libs/gnutls )
22 !gnutls? ( ssl? ( dev-libs/openssl ) )
23 ncurses? ( sys-libs/ncurses[unicode?]
25 spell? ( app-text/aspell ) )"
27 DEPEND="dev-util/scons
31 # ekg2-remote supports less frontends than ekg2 due to stripped down API
33 if ! use gtk && ! use ncurses && ! use readline; then
34 ewarn 'ekg2-remote is being compiled without any frontend, you should consider'
35 ewarn 'enabling either ncurses, readline or gtk USEflag.'
40 use $1 && echo -n ,${2:-$1}
43 # Build comma-separated plugin list based on USE
49 $(use_plug readline) \
53 # create DEPS list for plugin
54 # + means dep forced (fail if unavailable)
55 # - means dep disabled (don't even check for it)
56 # use:opt maps USEflag to specified opt
64 # loop over different opts
66 # parse use:opt, if no :opt specified fopt=flag
70 use ${flag} && out=+ || out=-
74 [ -n "$1" ] && echo -n ,
83 elif use openssl; then
91 echo -n $1= | tr a-z A-Z
92 use $1 && echo -n 1 || echo -n 0
96 # HARDDEPS -> build should fail if some dep is unsatisfied
97 # DISTNOTES -> are displayed with /version, helpful for upstream bug reports
99 scons PLUGINS=$(build_plugin_list) REMOTE=only REMOTE_SSL=$(make_rssl) \
100 $(use ncurses && make_deps NCURSES gpm spell:aspell) \
101 HARDDEPS=1 SKIPCHECKS=1 $(use_var unicode) $(use_var static) \
102 PREFIX=/usr LIBDIR="\$EPREFIX/$(get_libdir)" \
103 PLUGINDIR='$LIBDIR/ekg2-remote/plugins' DOCDIR="\$DATAROOTDIR/doc/${PF}" \
104 DISTNOTES="emdzientoo ebuild ${PVR}, USE=${USE}" \
105 ${MAKEOPTS} conf || die "scons conf failed"
109 # SKIPCONF -> no need to reconfigure
111 scons SKIPCONF=1 ${MAKEOPTS} || die "scons failed"
115 scons DESTDIR="${D}" ${MAKEOPTS} install || die "scons install failed"
119 elog "EKG2 is still considered very experimental. Please do report all issues"
120 elog "to mailing list ekg2-users@lists.ziew.org (you can write in English)."
121 elog "Please do not file bugs to Gentoo Bugzilla."
123 elog "Before reporting a bug, please check if it's reproducible and get"
124 elog "complete backtrace of it. Even if you can't reproduce it, you may let us"
125 elog "know that something like that happened."
127 elog "How to get backtraces:"
128 elog " http://www.gentoo.org/proj/en/qa/backtraces.xml"
130 elog "Thank you and have fun."