1 # Copyright 1999-2009 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"
17 IUSE="gnutls gpm gtk ncurses readline spell ssl static unicode"
20 gtk? ( >=x11-libs/gtk+-2.4 )
21 readline? ( sys-libs/readline )
22 gnutls? ( >=net-libs/gnutls-1.0.17 )
23 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6m ) )
25 ncurses? ( sys-libs/ncurses[unicode?]
26 gpm? ( >=sys-libs/gpm-1.20.1 )
27 spell? ( >=app-text/aspell-0.50.5 ) )"
29 DEPEND=">=dev-util/scons-0.97
33 # ekg2-remote supports less frontends than ekg2 due to stripped down API
35 if ! use gtk && ! use ncurses && ! use readline; then
36 ewarn 'ekg2-remote is being compiled without any frontend, you should consider'
37 ewarn 'enabling either ncurses, readline or gtk USEflag.'
42 use $1 && echo -n ,${2:-$1}
45 # Build comma-separated plugin list based on USE
51 $(use_plug readline) \
55 # create DEPS list for plugin
56 # + means dep forced (fail if unavailable)
57 # - means dep disabled (don't even check for it)
58 # use:opt maps USEflag to specified opt
66 # loop over different opts
68 # parse use:opt, if no :opt specified fopt=flag
72 use ${flag} && out=+ || out=-
76 [ -n "$1" ] && echo -n ,
85 elif use openssl; then
93 echo -n $1= | tr a-z A-Z
94 use $1 && echo -n 1 || echo -n 0
98 # HARDDEPS -> build should fail if some dep is unsatisfied
99 # DISTNOTES -> are displayed with /version, helpful for upstream bug reports
101 scons PLUGINS=$(build_plugin_list) REMOTE=only REMOTE_SSL=$(make_rssl) \
102 $(use ncurses && make_deps NCURSES gpm spell:aspell) \
103 HARDDEPS=1 $(use_var unicode) $(use_var static) \
104 PREFIX=/usr LIBDIR="\$EPREFIX/$(get_libdir)" \
105 PLUGINDIR='$LIBDIR/ekg2-remote/plugins' DOCDIR="\$DATAROOTDIR/doc/${PF}" \
106 DISTNOTES="emdzientoo ebuild ${PVR}, USE=${USE}" \
107 ${MAKEOPTS} conf || die "scons conf failed"
111 # SKIPCONF -> no need to reconfigure
113 scons SKIPCONF=1 ${MAKEOPTS} || die "scons failed"
117 scons DESTDIR="${D}" ${MAKEOPTS} install || die "scons install failed"
121 elog "EKG2 is still considered very experimental. Please do report all issues"
122 elog "to mailing list ekg2-users@lists.ziew.org (you can write in English)."
123 elog "Please do not file bugs to Gentoo Bugzilla."
125 elog "Before reporting a bug, please check if it's reproducible and get"
126 elog "complete backtrace of it. Even if you can't reproduce it, you may let us"
127 elog "know that something like that happened."
129 elog "How to get backtraces:"
130 elog " http://www.gentoo.org/proj/en/qa/backtraces.xml"
132 elog "Thank you and have fun."