diff options
author | Michał Górny <mgorny@gentoo.org> | 2009-07-25 20:56:32 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2009-07-25 20:56:32 +0000 |
commit | 996467c71e8d1a653b24b5b01ae21f32e814f2e3 (patch) | |
tree | 607ca910fb019d3a136c1663582b98e4b7c05ee1 /net-im | |
parent | net-im/ekg2: Live ebuild for EKG2 IM (bug #187330). (diff) | |
download | sunrise-996467c71e8d1a653b24b5b01ae21f32e814f2e3.tar.gz sunrise-996467c71e8d1a653b24b5b01ae21f32e814f2e3.tar.bz2 sunrise-996467c71e8d1a653b24b5b01ae21f32e814f2e3.zip |
net-im/ekg2-remote: Live ebuild for EKG2 IM remote client (additional ebuild for bug #187330).
svn path=/sunrise/; revision=8885
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/ekg2-remote/ChangeLog | 8 | ||||
-rw-r--r-- | net-im/ekg2-remote/Manifest | 3 | ||||
-rw-r--r-- | net-im/ekg2-remote/ekg2-remote-99999999.ebuild | 133 | ||||
-rw-r--r-- | net-im/ekg2-remote/metadata.xml | 14 |
4 files changed, 158 insertions, 0 deletions
diff --git a/net-im/ekg2-remote/ChangeLog b/net-im/ekg2-remote/ChangeLog new file mode 100644 index 000000000..bbecc1571 --- /dev/null +++ b/net-im/ekg2-remote/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-im/ekg2-remote +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 25 Jul 2009; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl> + +ekg2-remote-99999999.ebuild, +metadata.xml: + Live ebuild for EKG2 IM remote client (additional ebuild for bug #187330). + diff --git a/net-im/ekg2-remote/Manifest b/net-im/ekg2-remote/Manifest new file mode 100644 index 000000000..414f0c54f --- /dev/null +++ b/net-im/ekg2-remote/Manifest @@ -0,0 +1,3 @@ +EBUILD ekg2-remote-99999999.ebuild 3269 RMD160 b3a2c333e5f2d0b501059ad659e1bbb4259a4b17 SHA1 7ac0ed8575948a51f9a6d38e22bcd8c61af05f54 SHA256 3bcc8330d8203f9452ca2893b88717b178947ca1a0e70125db538d3bededa41c +MISC ChangeLog 308 RMD160 7ee73cf2f031dd2ac7f17256836481295af10e1b SHA1 257ea880d3f6187694f35b168bec82f32b5b2d55 SHA256 c99df9b0802aec95e2979e48c77c717a33ec3bd3f83983eac669729b458511b5 +MISC metadata.xml 582 RMD160 5a90a7f5da80b29a175f46671da0e8d7dbeda81b SHA1 1aa21d5ad3bf6582ea9f2bc18fb97d68cb6197a3 SHA256 792d935349d4f1d3d8e00304573461c5fb6dfaceb25474e929764605d4ce0705 diff --git a/net-im/ekg2-remote/ekg2-remote-99999999.ebuild b/net-im/ekg2-remote/ekg2-remote-99999999.ebuild new file mode 100644 index 000000000..8f9ab9c79 --- /dev/null +++ b/net-im/ekg2-remote/ekg2-remote-99999999.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +ESVN_REPO_URI="http://toxygen.net/svn/ekg2/trunk" + +inherit multilib subversion + +DESCRIPTION="Remote UI client for EKG2 instant messenger" +HOMEPAGE="http://www.ekg2.org" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="gnutls gpm gtk ncurses readline spell ssl static unicode" + +RDEPEND=" + gtk? ( >=x11-libs/gtk+-2.4 ) + readline? ( sys-libs/readline ) + gnutls? ( >=net-libs/gnutls-1.0.17 ) + !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6m ) ) + + ncurses? ( sys-libs/ncurses[unicode?] + gpm? ( >=sys-libs/gpm-1.20.1 ) + spell? ( >=app-text/aspell-0.50.5 ) )" + +DEPEND=">=dev-util/scons-0.97 + ${RDEPEND}" + +pkg_setup() { + # ekg2-remote supports less frontends than ekg2 due to stripped down API + + if ! use gtk && ! use ncurses && ! use readline; then + ewarn 'ekg2-remote is being compiled without any frontend, you should consider' + ewarn 'enabling either ncurses, readline or gtk USEflag.' + fi +} + +use_plug() { + use $1 && echo -n ,${2:-$1} +} + +# Build comma-separated plugin list based on USE + +build_plugin_list() { + echo '@none' \ + $(use_plug gtk) \ + $(use_plug ncurses) \ + $(use_plug readline) \ + | tr -d '[[:space:]]' +} + +# create DEPS list for plugin +# + means dep forced (fail if unavailable) +# - means dep disabled (don't even check for it) +# use:opt maps USEflag to specified opt + +make_deps() { + local flag fopt out + + echo -n " $1_DEPS=" + shift + + # loop over different opts + while [ -n "$1" ]; do + # parse use:opt, if no :opt specified fopt=flag + flag=${1%:*} + fopt=${1#*:} + + use ${flag} && out=+ || out=- + echo -n ${out}${fopt} + + shift + [ -n "$1" ] && echo -n , + done +} + +# REMOTE_SSL option + +make_rssl() { + if use gnutls; then + echo -n gnutls + elif use openssl; then + echo -n openssl + else + echo -n none + fi +} + +use_var() { + echo -n $1= | tr a-z A-Z + use $1 && echo -n 1 || echo -n 0 +} + +src_configure() { + # HARDDEPS -> build should fail if some dep is unsatisfied + # DISTNOTES -> are displayed with /version, helpful for upstream bug reports + + scons PLUGINS=$(build_plugin_list) REMOTE=only REMOTE_SSL=$(make_rssl) \ + $(use ncurses && make_deps NCURSES gpm spell:aspell) \ + HARDDEPS=1 $(use_var unicode) $(use_var static) \ + PREFIX=/usr LIBDIR="\$EPREFIX/$(get_libdir)" \ + PLUGINDIR='$LIBDIR/ekg2-remote/plugins' DOCDIR="\$DATAROOTDIR/doc/${PF}" \ + DISTNOTES="emdzientoo ebuild ${PVR}, USE=${USE}" \ + ${MAKEOPTS} conf || die "scons conf failed" +} + +src_compile() { + # SKIPCONF -> no need to reconfigure + + scons SKIPCONF=1 ${MAKEOPTS} || die "scons failed" +} + +src_install() { + scons DESTDIR="${D}" ${MAKEOPTS} install || die "scons install failed" +} + +pkg_postinst() { + elog "EKG2 is still considered very experimental. Please do report all issues" + elog "to mailing list ekg2-users@lists.ziew.org (you can write in English)." + elog "Please do not file bugs to Gentoo Bugzilla." + elog + elog "Before reporting a bug, please check if it's reproducible and get" + elog "complete backtrace of it. Even if you can't reproduce it, you may let us" + elog "know that something like that happened." + elog + elog "How to get backtraces:" + elog " http://www.gentoo.org/proj/en/qa/backtraces.xml" + elog + elog "Thank you and have fun." +} diff --git a/net-im/ekg2-remote/metadata.xml b/net-im/ekg2-remote/metadata.xml new file mode 100644 index 000000000..a9fda8643 --- /dev/null +++ b/net-im/ekg2-remote/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>maintainer-wanted</herd> + <use> + <flag name='gnutls'>Enable SSL/TLS support through GnuTLS. If 'ssl' + is set too, GnuTLS will be used.</flag> + <flag name='static'>Link statically with plugins instead of installing + them as shared libraries (external libraries can still be linked + dynamically).</flag> + <flag name='ssl'>Enable SSL/TLS support through OpenSSL. If 'gnutls' + is set too, it will be used instead.</flag> + </use> +</pkgmetadata> |