summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2009-08-21 08:41:03 +0000
committerMichał Górny <mgorny@gentoo.org>2009-08-21 08:41:03 +0000
commit0b022af5762aee26a52797f296f405b4bfd6ca26 (patch)
tree29b064b7e3fe3a5cac217085a9ba8807d5066554 /net-im
parentdev-python/Whoosh: Version bump. (diff)
downloadsunrise-reviewed-0b022af5762aee26a52797f296f405b4bfd6ca26.tar.gz
sunrise-reviewed-0b022af5762aee26a52797f296f405b4bfd6ca26.tar.bz2
sunrise-reviewed-0b022af5762aee26a52797f296f405b4bfd6ca26.zip
net-im/ekg2: Adding snapshot ebuild.
svn path=/sunrise/; revision=9087
Diffstat (limited to 'net-im')
-rw-r--r--net-im/ekg2/ChangeLog4
-rw-r--r--net-im/ekg2/Manifest4
-rw-r--r--net-im/ekg2/ekg2-0.3_pre20090821.ebuild243
3 files changed, 250 insertions, 1 deletions
diff --git a/net-im/ekg2/ChangeLog b/net-im/ekg2/ChangeLog
index dedbf2ad1..088303f3b 100644
--- a/net-im/ekg2/ChangeLog
+++ b/net-im/ekg2/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 21 Aug 2009; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl>
+ +ekg2-0.3_pre20090821.ebuild:
+ Adding snapshot ebuild.
+
20 Aug 2009; Michał Górny (sedzimir) <gentoo@mgorny.alt.pl>
ekg2-9999.ebuild:
Update live ebuild to support SKIPCHECKS introduced by upstream lately.
diff --git a/net-im/ekg2/Manifest b/net-im/ekg2/Manifest
index 979f876fb..47744198e 100644
--- a/net-im/ekg2/Manifest
+++ b/net-im/ekg2/Manifest
@@ -1,3 +1,5 @@
+DIST ekg2-20090821.tar.lzma 801199 RMD160 dec73ff6b0fc72c4fe93563dfcb1c5490f9fe70b SHA1 95732e2816fe41a645a46c86ae9ffd4fa6e036d8 SHA256 566717d3677fafcd5c9e05e7ab935e6de9dc341a50080ea94a338e9c67ebe7ad
+EBUILD ekg2-0.3_pre20090821.ebuild 6392 RMD160 974a56fea460baae93b68fcdfee8c1d0a125030b SHA1 06e8a7393307ebc510a6bbe8dff99bd5f663f070 SHA256 cfeddda712542f13088963a4d975f8fa4b0c8f90f1257cf72eae11a2f3937511
EBUILD ekg2-9999.ebuild 6324 RMD160 5b26e3d93925fe5b143f8e10d25e1eb34c18487d SHA1 78a6c6f2a78f47218c0150ff9ffb39a01284d6ef SHA256 67b8a872ff226b628e7630e2c3f6f609a86e9fb0a9734846796ef794f7ee6946
-MISC ChangeLog 1062 RMD160 1145b32a52dffa55a6f13fd8716662f13b93d903 SHA1 7e16a4792590c9fc35a44f365e8805d7d875bab9 SHA256 452023fc1358929e1624bbf3da33815b9b602b3b4205a536f996c5b74e0993a0
+MISC ChangeLog 1185 RMD160 8001ae4650f927d031a93f7bd2b23d1d0eada140 SHA1 98b95534e9af6a25f25538fae849928d0354261b SHA256 ab87ae894672b49c1e6722aa58668d0ec6ce01c0948c6abb94afa731f75a1f54
MISC metadata.xml 2417 RMD160 4f3105d0648d9a31080d2c4b5a9e51d0002ecc06 SHA1 1014f8aca047799557ccfe60b71134f86a6b04d5 SHA256 8ee80399405307e70f2cfb70ad5f6a48200e13d95c4b1bacd71fa14b110bcc21
diff --git a/net-im/ekg2/ekg2-0.3_pre20090821.ebuild b/net-im/ekg2/ekg2-0.3_pre20090821.ebuild
new file mode 100644
index 000000000..2bc2335cc
--- /dev/null
+++ b/net-im/ekg2/ekg2-0.3_pre20090821.ebuild
@@ -0,0 +1,243 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit multilib perl-module
+
+MY_P="ekg2-${PV#*_pre}"
+
+DESCRIPTION="Text-based, multi-protocol instant messenger"
+HOMEPAGE="http://www.ekg2.org"
+SRC_URI="http://proj.mgorny.alt.pl/ekg2/${MY_P}.tar.lzma"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="dbus extra gadu gif gnutls gpg gpm gsm gtk icq idn inotify irc
+ jabber jogger jpeg mail minimal ncurses nls nntp oracle oss pcap
+ perl python readline remote rss ruby sim sms spell
+ sqlite sqlite3 srv ssl static unicode web xosd zlib"
+
+# -- non-obvious plugin mappings --
+# extra -> autoresponder, polchat, rivchat, rot13, xmsg
+# !minimal -> ioctld, logs, rc
+# any sound -> pcm
+# web -> httprc_xajax
+
+RDEPEND="
+ dbus? ( sys-apps/dbus )
+ gpg? ( app-crypt/gpgme )
+ gsm? ( media-sound/gsm )
+ gtk? ( x11-libs/gtk+:2 )
+ idn? ( net-dns/libidn )
+ nls? ( virtual/libintl )
+ oracle? ( dev-db/oracle-instantclient-basic )
+ pcap? ( net-libs/libpcap )
+ perl? ( dev-lang/perl )
+ python? ( dev-lang/python )
+ readline? ( sys-libs/readline )
+ rss? ( dev-libs/expat )
+ ruby? ( dev-lang/ruby )
+ sim? ( dev-libs/openssl )
+ xosd? ( x11-libs/xosd )
+ gadu? ( net-libs/libgadu
+ gif? ( media-libs/giflib )
+ jpeg? ( media-libs/jpeg ) )
+ jabber? ( dev-libs/expat
+ gnutls? ( net-libs/gnutls )
+ !gnutls? ( ssl? ( dev-libs/openssl ) )
+ zlib? ( sys-libs/zlib ) )
+ !minimal? (
+ zlib? ( sys-libs/zlib ) )
+ ncurses? ( sys-libs/ncurses[unicode?]
+ gpm? ( sys-libs/gpm )
+ spell? ( app-text/aspell ) )
+ sqlite3? ( dev-db/sqlite:3 )
+ !sqlite3? ( sqlite? ( dev-db/sqlite:0 ) )"
+
+DEPEND="dev-util/scons
+ || ( app-arch/xz-utils app-arch/lzma-utils )
+ ${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if ! use gtk && ! use ncurses && ! use readline && ! use remote && ! use web; then
+ ewarn 'ekg2 is being compiled without any frontend, you should consider'
+ ewarn 'enabling at least one of following USEflags:'
+ ewarn ' gtk, ncurses, readline, remote, web.'
+ fi
+}
+
+use_plug() {
+ use $1 && echo -n ,${2:-$1}
+}
+
+# Build comma-separated plugin list based on USE
+# We can put the same plugin few times if it's referenced by more than one flag
+
+build_plugin_list() {
+ echo '@none' \
+ $(use_plug dbus) \
+ $(use_plug extra autoresponder,polchat,rivchat,rot13,xmsg) \
+ $(use_plug gadu gg) \
+ $(use_plug gpg) \
+ $(use_plug gsm) \
+ $(use_plug gtk) \
+ $(use_plug icq) \
+ $(use_plug irc) \
+ $(use_plug jabber jabber) \
+ $(use_plug jogger jogger) \
+ $(use_plug mail) \
+ $(use_plug !minimal ioctld,logs,rc) \
+ $(use_plug ncurses) \
+ $(use_plug nntp feed) \
+ $(use_plug oracle logsoracle) \
+ $(use_plug oss oss,pcm) \
+ $(use_plug pcap sniff) \
+ $(use_plug perl) \
+ $(use_plug python) \
+ $(use_plug readline) \
+ $(use_plug remote) \
+ $(use_plug rss feed) \
+ $(use_plug ruby) \
+ $(use_plug sim) \
+ $(use_plug sms) \
+ $(use_plug sqlite logsqlite) \
+ $(use_plug sqlite3 logsqlite) \
+ $(use_plug web httprc_xajax) \
+ $(use_plug xosd) \
+ | tr -d '[[:space:]]'
+}
+
+# create DEPS list for plugin
+# + means dep forced (fail if unavailable, prioritize over other one-of)
+# - means dep disabled (don't even check for it)
+# use:opt maps USEflag to specified opt
+# usea|useb|usec makes one-of opt
+
+make_deps() {
+ local spls spll flag fopt out
+
+ echo -n " $1_DEPS="
+ shift
+
+ # loop over different opts
+ while [ -n "$1" ]; do
+ spls=$1
+ out=
+ # loop over one-of opts
+ while true; do
+ # get next one-of, make sure spls gets empty if last
+ spll=${spls%%|*}
+ spls=${spls:$(( ${#spll} + 1 ))}
+ # parse use:opt, if no :opt specified fopt=flag
+ flag=${spll%:*}
+ fopt=${spll#*:}
+
+ # if one of one-of opt matches, we output only it
+ # else we need to output all of them disabled
+ use ${flag} && out=+ || out=${out}-
+ out=${out}${fopt}
+
+ # got more one-of opts? parse them only if this didn't match
+ if [ -n "${spls}" ] && ! use ${flag}; then
+ out=${out},
+ continue
+ fi
+
+ echo -n ${out}
+ shift
+ [ -n "$1" ] && echo -n ,
+ break
+ done
+ done
+}
+
+# create all DEPS lists
+
+build_addopts_list() {
+ use extra && make_deps XMSG inotify
+ use gadu && make_deps GG gif jpeg
+ use jabber && make_deps JABBER zlib 'gnutls|ssl:openssl'
+ use mail && make_deps MAIL inotify
+ use !minimal && make_deps LOGS zlib
+ use ncurses && make_deps NCURSES gpm spell:aspell
+ use rss || use nntp && make_deps FEED rss:expat
+ use sqlite3 || use sqlite && make_deps LOGSQLITE 'sqlite3|sqlite'
+}
+
+# SCons doesn't build perl modules, perl-module.eclass does it better
+
+foreach_perl_module() {
+ if use perl; then
+ cd plugins/perl || die 'cd plugins/perl failed'
+ for DIR in */; do
+ cd "${DIR}" || die "cd ${DIR} (perl module) failed"
+ $1
+ cd ..
+
+ # workaround perl-module.eclass
+ unset SRC_PREP
+ done
+ cd ../..
+ fi
+}
+
+use_var() {
+ echo -n "${2:-$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) $(build_addopts_list) \
+ HARDDEPS=1 SKIPCHECKS=1 $(use_var unicode) $(use_var nls) \
+ $(use_var static) $(use_var idn) $(use_var srv RESOLV) \
+ PREFIX=/usr LIBDIR="\$EPREFIX/$(get_libdir)" \
+ DOCDIR="\$DATAROOTDIR/doc/${PF}" \
+ DISTNOTES="emdzientoo ebuild ${PVR}, USE=${USE}" \
+ ${MAKEOPTS} conf || die "scons conf failed"
+
+ foreach_perl_module perl-module_src_configure
+}
+
+src_compile() {
+ # SKIPCONF -> no need to reconfigure
+
+ scons SKIPCONF=1 ${MAKEOPTS} || die "scons failed"
+
+ foreach_perl_module perl-module_src_compile
+}
+
+src_test() {
+ foreach_perl_module perl-module_src_test
+}
+
+src_install() {
+ scons DESTDIR="${D}" ${MAKEOPTS} install || die "scons install failed"
+
+ foreach_perl_module perl-module_src_install
+
+ use perl && fixlocalpod
+ prepalldocs
+}
+
+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."
+}