Initial import of x11-plugins/wmmenu, version 1.2. Closes bug #74712
authorMichele Noberasco <s4t4n@gentoo.org>
Wed, 22 Dec 2004 11:13:29 +0000 (11:13 +0000)
committerMichele Noberasco <s4t4n@gentoo.org>
Wed, 22 Dec 2004 11:13:29 +0000 (11:13 +0000)
x11-plugins/wmmenu/ChangeLog [new file with mode: 0644]
x11-plugins/wmmenu/Manifest [new file with mode: 0644]
x11-plugins/wmmenu/files/digest-wmmenu-1.2 [new file with mode: 0644]
x11-plugins/wmmenu/files/wmmenu-1.2-Makefile.patch [new file with mode: 0644]
x11-plugins/wmmenu/files/wmmenu-1.2-support-libdockapp-0.5.0.patch [new file with mode: 0644]
x11-plugins/wmmenu/metadata.xml [new file with mode: 0644]
x11-plugins/wmmenu/wmmenu-1.2.ebuild [new file with mode: 0644]

diff --git a/x11-plugins/wmmenu/ChangeLog b/x11-plugins/wmmenu/ChangeLog
new file mode 100644 (file)
index 0000000..bceafde
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for x11-plugins/wmmenu
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmenu/ChangeLog,v 1.1 2004/12/22 11:13:29 s4t4n Exp $
+
+*wmmenu-1.2 (22 Dec 2004)
+
+  22 Dec 2004; Michele Noberasco <s4t4n@gentoo.org> wmmenu-1.2.ebuild:
+  Initial import. Thanks to Matt Taylor. Closes #74712.
diff --git a/x11-plugins/wmmenu/Manifest b/x11-plugins/wmmenu/Manifest
new file mode 100644 (file)
index 0000000..330e635
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 0d24eff5f4af23d9a670b64b6290472e wmmenu-1.2.ebuild 1049
+MD5 a1c0fb78cf3c3e1e87b41585a77930c5 ChangeLog 362
+MD5 62ba71d3b2fa785a4cbd5d47fdbd0eb6 metadata.xml 165
+MD5 5477a4c7105bb065b867046de221b6f4 files/wmmenu-1.2-Makefile.patch 918
+MD5 75ce08b9efb5328f48a500ee9adc66e2 files/wmmenu-1.2-support-libdockapp-0.5.0.patch 506
+MD5 662859fc24714fd26e0abc75f154b3dc files/digest-wmmenu-1.2 61
diff --git a/x11-plugins/wmmenu/files/digest-wmmenu-1.2 b/x11-plugins/wmmenu/files/digest-wmmenu-1.2
new file mode 100644 (file)
index 0000000..3be339f
--- /dev/null
@@ -0,0 +1 @@
+MD5 0cc8970ff54182a08fe848d65546f70f wmmenu-1.2.tar.gz 32845
diff --git a/x11-plugins/wmmenu/files/wmmenu-1.2-Makefile.patch b/x11-plugins/wmmenu/files/wmmenu-1.2-Makefile.patch
new file mode 100644 (file)
index 0000000..26a8419
--- /dev/null
@@ -0,0 +1,28 @@
+--- wmmenu/Makefile~   2002-03-23 07:51:36 -0500
++++ wmmenu/Makefile    2004-12-16 19:44:36 -0500
+@@ -4,7 +4,7 @@
+ ETCDIR = $(prefix)/etc
+ 
+ # comment out both lines to get the old, Xpm-only, version
+-GDKPIXBUF = 1
++#GDKPIXBUF = 1
+ #GDKPIXBUF2 = 1
+ 
+ XROOT = /usr/X11R6
+@@ -19,14 +19,14 @@
+ 
+ # If you want to use gdk-pixbuf-2.0, pass GDKPIXBUF2=1 to make command
+ ifdef GDKPIXBUF2
+-PIXBUF_CFG = /opt/gtk2/bin/pkg-config gdk-pixbuf-xlib-2.0
++PIXBUF_CFG = pkg-config gdk-pixbuf-xlib-2.0
+ PIXBUF_DEF = -DWITH_GDKPIXBUF
+ PIXBUF_INC := $(shell $(PIXBUF_CFG) --cflags)
+ PIXBUF_LIB := -rdynamic -L$(shell $(PIXBUF_CFG) --variable=prefix)/lib -lgdk_pixbuf_xlib-2.0
+ endif
+ 
+ CC = gcc #-g
+-CFLAGS = -pipe $(CPPFLAGS) -O2
++CFLAGS = $(CPPFLAGS) ${EXTRACFLAGS}
+ CPPFLAGS = -MMD -ansi -pedantic -Wall $(INCDIRS) $(DEFINES)
+ INCDIRS = -I$(DAROOT)/include -I$(XROOT)/include $(PIXBUF_INC)
+ DEFINES = -DETCDIR='"$(ETCDIR)"' $(PIXBUF_DEF)
diff --git a/x11-plugins/wmmenu/files/wmmenu-1.2-support-libdockapp-0.5.0.patch b/x11-plugins/wmmenu/files/wmmenu-1.2-support-libdockapp-0.5.0.patch
new file mode 100644 (file)
index 0000000..ffc8d27
--- /dev/null
@@ -0,0 +1,14 @@
+--- wmmenu/wmmenu.c~   2002-03-10 05:41:12 -0500
++++ wmmenu/wmmenu.c    2004-12-16 18:30:52 -0500
+@@ -18,8 +18,9 @@
+ 
+     DAParseArguments (Options_Argc, Options_Argv, NULL, 0,
+         "wmmenu", VERSION) ;
+-    DAInitialize (NULL, (char*)Menu_GetTitle (), 48, 48, argc, argv) ;
+-
++    DAOpenDisplay (NULL, argc, argv) ;
++    DACreateIcon((char*)Menu_GetTitle (), 48, 48, argc, argv);
++    
+     Pixmaps_LoadMenu () ;
+     Pixmaps_LoadTile () ;
+     /* needs tile to be loaded before to have autoscale work */
diff --git a/x11-plugins/wmmenu/metadata.xml b/x11-plugins/wmmenu/metadata.xml
new file mode 100644 (file)
index 0000000..b1a9efc
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>desktop-dock</herd>
+</pkgmetadata>
diff --git a/x11-plugins/wmmenu/wmmenu-1.2.ebuild b/x11-plugins/wmmenu/wmmenu-1.2.ebuild
new file mode 100644 (file)
index 0000000..df2e99f
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmmenu/wmmenu-1.2.ebuild,v 1.1 2004/12/22 11:13:29 s4t4n Exp $
+
+inherit eutils
+
+IUSE="gnome"
+S=${WORKDIR}/${PN}
+DESCRIPTION="WindowMaker DockApp: Provides a popup menu of icons like in AfterStep, as a dockable application."
+SRC_URI="http://www.fcoutant.freesurf.fr/download/${P}.tar.gz"
+HOMEPAGE="http://www.fcoutant.freesurf.fr/wmmenu.html"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+DEPEND="virtual/x11
+       >=x11-libs/libdockapp-0.5.0-r1
+       gnome? ( media-libs/gdk-pixbuf )"
+
+src_unpack()
+{
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${P}-support-libdockapp-0.5.0.patch
+       epatch ${FILESDIR}/${P}-Makefile.patch
+}
+
+src_compile()
+{
+       GDKPIXBUF=""
+       if use gnome; then
+               GDKPIXBUF="GDKPIXBUF=1"
+       fi
+
+       emake ${GDKPIXBUF} EXTRACFLAGS="${CFLAGS}" || die "Compilation failed"
+}
+
+src_install ()
+{
+       dobin wmmenu
+       doman wmmenu.1
+       dodoc COPYING README TODO example/apps example/defaults example/extract_icon_back
+}