summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2012-03-03 18:58:18 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2012-03-03 18:58:18 +0000
commit9596c52f22e7b151f6151ab487f806a929cde5d3 (patch)
tree246a481028e1710f14c68d064fde6175a8baa53d /x11-plugins/purple-plugin_pack
parentwww-apps/twiki is no more (diff)
downloadgentoo-2-9596c52f22e7b151f6151ab487f806a929cde5d3.tar.gz
gentoo-2-9596c52f22e7b151f6151ab487f806a929cde5d3.tar.bz2
gentoo-2-9596c52f22e7b151f6151ab487f806a929cde5d3.zip
Version bump, see bug #401079.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'x11-plugins/purple-plugin_pack')
-rw-r--r--x11-plugins/purple-plugin_pack/ChangeLog10
-rw-r--r--x11-plugins/purple-plugin_pack/purple-plugin_pack-2.7.0.ebuild77
2 files changed, 85 insertions, 2 deletions
diff --git a/x11-plugins/purple-plugin_pack/ChangeLog b/x11-plugins/purple-plugin_pack/ChangeLog
index c297e4e0701b..810280eebd3a 100644
--- a/x11-plugins/purple-plugin_pack/ChangeLog
+++ b/x11-plugins/purple-plugin_pack/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for x11-plugins/purple-plugin_pack
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/purple-plugin_pack/ChangeLog,v 1.39 2011/10/27 06:46:56 tetromino Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/purple-plugin_pack/ChangeLog,v 1.40 2012/03/03 18:58:18 nelchael Exp $
+
+*purple-plugin_pack-2.7.0 (03 Mar 2012)
+
+ 03 Mar 2012; Krzysztof Pawlik <nelchael@gentoo.org>
+ +purple-plugin_pack-2.7.0.ebuild:
+ Version bump, see bug #401079.
27 Oct 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
purple-plugin_pack-2.5.1-r1.ebuild, purple-plugin_pack-2.6.2-r1.ebuild,
diff --git a/x11-plugins/purple-plugin_pack/purple-plugin_pack-2.7.0.ebuild b/x11-plugins/purple-plugin_pack/purple-plugin_pack-2.7.0.ebuild
new file mode 100644
index 000000000000..d45566e86865
--- /dev/null
+++ b/x11-plugins/purple-plugin_pack/purple-plugin_pack-2.7.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/purple-plugin_pack/purple-plugin_pack-2.7.0.ebuild,v 1.1 2012/03/03 18:58:18 nelchael Exp $
+
+EAPI="2"
+
+inherit eutils python
+
+DESCRIPTION="A package with many different plugins for pidgin and libpurple"
+HOMEPAGE="https://www.guifications.org/projects/purple-plugin-pack"
+# The ID in URL changes with each release :(
+SRC_URI="https://www.guifications.org/attachments/download/201/purple-plugin-pack-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+IUSE="debug gtk ncurses spell talkfilters"
+
+RDEPEND="net-im/pidgin[gtk?,ncurses?]
+ talkfilters? ( app-text/talkfilters )
+ spell? ( app-text/gtkspell:2 )"
+DEPEND="${RDEPEND}
+ =dev-lang/python-2*"
+
+S="${WORKDIR}/purple-plugin-pack-${PV}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -e '/CFLAGS=/{s| -g3||}' -i configure || die
+}
+
+list_plugins_dep() {
+ local dependency=${1}
+ grep -EH "depends.*$dependency" */plugins.cfg | sed 's:/.*::'
+}
+
+src_configure() {
+ local plugins=""
+
+ # list all plugins, then pull DISABLED_PLUGINS with the ones we don't need
+ plugins="$($(PYTHON) plugin_pack.py -d dist_dirs)"
+ einfo "List of all possible plugins:"
+ einfo "${plugins}"
+
+ eval DISABLED_PLUGINS="\$${PN//[^a-z]/_}_DISABLED_PLUGINS"
+ # disable known broken plugins
+ DISABLED_PLUGINS+=" schedule findip"
+ use gtk || DISABLED_PLUGINS+=" $(list_plugins_dep pidgin)"
+ use ncurses || DISABLED_PLUGINS+=" $(list_plugins_dep finch)"
+ use spell || DISABLED_PLUGINS+=" $(list_plugins_dep gtkspell)"
+ use talkfilters || DISABLED_PLUGINS+=" $(list_plugins_dep talkfiltersbin)"
+
+ for plug in ${DISABLED_PLUGINS}; do
+ plugins="${plugins//${plug}}"
+ done
+
+ plugins="$(echo ${plugins} | sed 's:[ \t]\+:,:g;s:,$::;s:^,::')"
+
+ econf \
+ --with-plugins="${plugins}" \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README VERSION || die
+}
+
+pkg_preinst() {
+ elog "Note: if you want to disable some plugins in pack, define"
+ elog "${PN//[^a-z]/_}_DISABLED_PLUGINS with a list of plugins to"
+ elog "skip during install (for list see einfo in build output)."
+}