summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin McCarthy <signals@gentoo.org>2011-02-24 17:52:50 +0000
committerKevin McCarthy <signals@gentoo.org>2011-02-24 17:52:50 +0000
commit5d9a311fc9771a2af0e87b9529eb4ae315ea1fa0 (patch)
tree500ea405681721d777ccbec607acdd59446d0879 /x11-misc/wbar
parenthoneyd does not work with libevent-2 (bug #333099). Also, set RDEPEND. (diff)
downloadhistorical-5d9a311fc9771a2af0e87b9529eb4ae315ea1fa0.tar.gz
historical-5d9a311fc9771a2af0e87b9529eb4ae315ea1fa0.tar.bz2
historical-5d9a311fc9771a2af0e87b9529eb4ae315ea1fa0.zip
New ebuild for 2.1.1
Package-Manager: portage-2.2.0_alpha25/cvs/Linux x86_64
Diffstat (limited to 'x11-misc/wbar')
-rw-r--r--x11-misc/wbar/ChangeLog11
-rw-r--r--x11-misc/wbar/Manifest8
-rw-r--r--x11-misc/wbar/files/wbar-2.1.1-fix-warnings.patch30
-rw-r--r--x11-misc/wbar/files/wbar-2.1.1-opt-config.patch51
-rw-r--r--x11-misc/wbar/metadata.xml10
-rw-r--r--x11-misc/wbar/wbar-2.1.1.ebuild49
6 files changed, 154 insertions, 5 deletions
diff --git a/x11-misc/wbar/ChangeLog b/x11-misc/wbar/ChangeLog
index e41705493a51..d702adb2716b 100644
--- a/x11-misc/wbar/ChangeLog
+++ b/x11-misc/wbar/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-misc/wbar
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/wbar/ChangeLog,v 1.5 2010/01/14 16:11:26 ssuominen Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/wbar/ChangeLog,v 1.6 2011/02/24 17:52:50 signals Exp $
+
+*wbar-2.1.1 (24 Feb 2011)
+
+ 24 Feb 2011; Kevin McCarthy <signals@gentoo.org> +wbar-2.1.1.ebuild,
+ +files/wbar-2.1.1-fix-warnings.patch, +files/wbar-2.1.1-opt-config.patch:
+ New ebuild for version 2.1.1. Added "gtk" USE flag to control
+ building of the GTK based wbar-config utility.
14 Jan 2010; Samuli Suominen <ssuominen@gentoo.org>
files/wbar-1.3.3-Makefile.patch:
diff --git a/x11-misc/wbar/Manifest b/x11-misc/wbar/Manifest
index 5b0aa9640bdc..48241f07471a 100644
--- a/x11-misc/wbar/Manifest
+++ b/x11-misc/wbar/Manifest
@@ -1,6 +1,10 @@
AUX wbar-1.3.3-Makefile.patch 1508 RMD160 a7416d94a67f820f96316e8273da32c12dbdfb9a SHA1 63337c992f0093d43c3c440c0ff775f932f89bc3 SHA256 58ca7d843ed96a0fccfb49af0a9f052f3182eadad6383ff9315dfa96d4aeaf1d
AUX wbar-1.3.3-gcc43.patch 615 RMD160 d8eec115fa99059e4db63a6dda382fa6b03e79a4 SHA1 f60366d437db34d39b5c8a9c363b2333a6652d24 SHA256 5ad3425e4ba870166f1b410499b912daa1e0120e0a88fbd6f5a7f23f96c5d5cf
+AUX wbar-2.1.1-fix-warnings.patch 1027 RMD160 d17bc2025b45ed14deb61ddd98fae7fd60deb234 SHA1 686130080cb849756d2718a879fa86f4266643cd SHA256 10ab8e71aa1d1d635ad2d7bbf026d22a0a78732d63cacb8423686f6f59595a54
+AUX wbar-2.1.1-opt-config.patch 1221 RMD160 03c65c8cb9d12d43249f9bd61ce3130603826dc4 SHA1 8707315c44710eccbb93dc6da93d5421f7437b9e SHA256 e1d0e0ff0c95a2bf84f92c54b523aaaa9c72755a54de14514d26d7c19d5a409e
DIST wbar-1.3.3.tbz2 429098 RMD160 9edda727b6701af71763ea7df25c370757c08f3b SHA1 743dff28bd7d2d37523a1314b6f4c9320f109f48 SHA256 431c5f7a8b6b065e2fe32a6482476a5ecefdf838aee550cae381ba64cb79eb4b
+DIST wbar-2.1.1.tar.gz 579693 RMD160 fa24ddc8217302b60a9d87715d4ea79b92438621 SHA1 52718df8d57f48abda01647d0252d58bf98d8c7a SHA256 9a619767595a1e61a69c9cfbd1f29afd62c9ed2edc748e87b4f47c2b0bbf3e18
EBUILD wbar-1.3.3.ebuild 914 RMD160 c880974a454d8348e4df13df00d67596233be998 SHA1 b09380267eb32ea34f91b00e43f3eb2daaf723a8 SHA256 850aaacde34f32017067b52a5a6fd2bce1ffa53dfeec0ba95c6cf77df8cfe4e4
-MISC ChangeLog 966 RMD160 0a18ef3eb9c835b3e45415a79202fd1476c46427 SHA1 eb7a8b93b21fbac3a796ad63064e08420176e254 SHA256 7058db9ce9d510e8646049603b2ec11022b39e7f76d68a1bc96255a56525aabd
-MISC metadata.xml 166 RMD160 7b80226659bf40e97050b1ffce1858d5f20b3c60 SHA1 e6c6436c304a65b4a012a5b7be7ee264b228a645 SHA256 8e7de0a7f7c15840474de373a3ce36adcc5dd658b2e4d18366fcb63b964a0826
+EBUILD wbar-2.1.1.ebuild 1238 RMD160 a79af5ac864b2a855fa3d8ff324d1b786d238308 SHA1 c0c0de86bde69c4ec6d29b14106f05fb9717c65f SHA256 b86265c7272cddca799777578e702f4f595c5560c099f9a079f31b0fea53e87f
+MISC ChangeLog 1252 RMD160 51892cb057945dad93195d17da45d20a55957ac9 SHA1 23222f1e25e88ea5e95635607ad8a8351053c870 SHA256 1c3299910ff8ec440c9a0fbdb4008d39fd782290117c1b091ac5dfa700a2fbb3
+MISC metadata.xml 352 RMD160 ffdf34658cdb5eeee016af1eebb4ff0462c003ed SHA1 b0fc4e372dc02c88d08a0786693a901d805509a3 SHA256 8d748a544a218b994c3478cd8821991f1af935361c0387c8e05c988f93b2efb4
diff --git a/x11-misc/wbar/files/wbar-2.1.1-fix-warnings.patch b/x11-misc/wbar/files/wbar-2.1.1-fix-warnings.patch
new file mode 100644
index 000000000000..096e44f923ff
--- /dev/null
+++ b/x11-misc/wbar/files/wbar-2.1.1-fix-warnings.patch
@@ -0,0 +1,30 @@
+Fix unused result on fgets() in Run.cc and "format not a string
+literal" on gtk_message_dialog_new() in Functions.cc
+
+These are just warinings, but cause compile failures with -Wall -Werror
+
+Patch by Kevin McCarthy <signals@gentoo.org>
+
+--- src/config/Run.cc
++++ src/config/Run.cc
+@@ -33,7 +33,8 @@
+ if (process)
+ {
+ char spid[50];
+- fgets(spid, sizeof(spid), process);
++ char* tmp;
++ tmp=fgets(spid, sizeof(spid), process);
+ pclose(process);
+
+ pid = atoi(spid);
+--- src/config/Functions.cc
++++ src/config/Functions.cc
+@@ -680,7 +680,7 @@
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_OK,
+- (_("Error save config in ") + filename).c_str());
++ "%s",(_("Error save config in ") + filename).c_str());
+
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
diff --git a/x11-misc/wbar/files/wbar-2.1.1-opt-config.patch b/x11-misc/wbar/files/wbar-2.1.1-opt-config.patch
new file mode 100644
index 000000000000..a33380b675cc
--- /dev/null
+++ b/x11-misc/wbar/files/wbar-2.1.1-opt-config.patch
@@ -0,0 +1,51 @@
+Add --disable-wbar-config to support "gtk" USE flag.
+Setting it will disable building and installing the gtk-based
+config program.
+
+Patch by Kevin McCarthy <signals@gentoo.org>
+
+--- configure.ac
++++ configure.ac
+@@ -60,9 +60,15 @@
+ AC_SUBST(modules_CFLAGS)
+ AC_SUBST(modules_LIBS)
+
+-PKG_CHECK_MODULES(gui_modules, [gtk+-2.0 libglade-2.0])
+-AC_SUBST(gui_modules_CFLAGS)
+-AC_SUBST(gui_modules_LIBS)
++AC_ARG_ENABLE(wbar-config, AS_HELP_STRING([--disable-wbar-config],
++ [build without the GTK+ configuration interface]),[use_wbar_config=$enableval],
++ [use_wbar_config=yes])
++if test "$use_wbar_config" = "yes"; then
++ PKG_CHECK_MODULES(gui_modules, [gtk+-2.0 libglade-2.0])
++ AC_SUBST(gui_modules_CFLAGS)
++ AC_SUBST(gui_modules_LIBS)
++fi
++AM_CONDITIONAL([WBAR],[test "$use_wbar_config" = "yes"])
+
+ CPPFLAGS="${CPPFLAGS} -Wall -Wunused -Werror -g -O2"
+
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -1,6 +1,10 @@
+ CLEANFILES = *~
+
++if WBAR
+ bin_PROGRAMS = wbar wbar-config
++else
++bin_PROGRAMS = wbar
++endif
+
+ wbar_SOURCES = \
+ $(top_srcdir)/src/core/Bar.cc \
+--- Makefile.am
++++ Makefile.am
+@@ -1,4 +1,7 @@
+ CLEANFILES = *~ po/*~
++if WBAR
+ SUBDIRS = src po pixmaps etc share
+-
++else
++SUBDIRS = src po pixmaps etc
++endif
+
diff --git a/x11-misc/wbar/metadata.xml b/x11-misc/wbar/metadata.xml
index 731225048652..a87858fce3e2 100644
--- a/x11-misc/wbar/metadata.xml
+++ b/x11-misc/wbar/metadata.xml
@@ -1,5 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>desktop-misc</herd>
+ <herd>desktop-misc</herd>
+ <maintainer>
+ <email>signals@gentoo.org</email>
+ <name>Kevin McCarthy</name>
+ </maintainer>
+ <use>
+ <flag name="gtk">Enables the gtk-based wbar-config GUI</flag>
+ </use>
</pkgmetadata>
+
diff --git a/x11-misc/wbar/wbar-2.1.1.ebuild b/x11-misc/wbar/wbar-2.1.1.ebuild
new file mode 100644
index 000000000000..a801ed2291b0
--- /dev/null
+++ b/x11-misc/wbar/wbar-2.1.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/wbar/wbar-2.1.1.ebuild,v 1.1 2011/02/24 17:52:50 signals Exp $
+
+EAPI=4
+inherit autotools eutils
+
+DESCRIPTION="A fast, lightweight quick launch bar."
+HOMEPAGE="http://code.google.com/p/wbar/"
+SRC_URI="http://wbar.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk"
+
+RDEPEND="media-libs/imlib2
+ x11-libs/libX11
+ gtk? ( dev-libs/atk
+ dev-libs/glib:2
+ dev-libs/libxml2
+ gnome-base/libglade
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libpng
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ dev-util/intltool"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fix-warnings.patch\
+ "${FILESDIR}"/${P}-opt-config.patch
+ sed -i \
+ -e 's^truetype/dustin/PenguinAttack^corefonts/arial^' \
+ -e 's^openoffice.png^ooffice.png^' \
+ etc/wbar.cfg.in || die "Fixing font in cfg."
+ if ! use gtk; then
+ # Remove wbar-config from default cfg.
+ sed -i -e '5,8d' \
+ etc/wbar.cfg.in || die "Removing wbar-config from cfg"
+ fi
+ eautoreconf
+}
+
+src_configure() {
+ econf --bindir=/usr/bin $(use_enable gtk wbar-config)
+}