summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2008-01-22 10:27:15 +0000
committerJakub Moc <jakub@gentoo.org>2008-01-22 10:27:15 +0000
commit49d29bf144860d9235b13093638094daa0ccc79d (patch)
tree87d5350e4d43abeb2b54f27bd31dbf9562a80979 /x11-misc
parentsys-fs/unionfs-utils: Added block of sys-fs/unionfs (diff)
downloadsunrise-49d29bf144860d9235b13093638094daa0ccc79d.tar.gz
sunrise-49d29bf144860d9235b13093638094daa0ccc79d.tar.bz2
sunrise-49d29bf144860d9235b13093638094daa0ccc79d.zip
x11-misc/marchfluxmenu: New ebuild, Bug 205838
svn path=/sunrise/; revision=5489
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/marchfluxmenu/ChangeLog9
-rw-r--r--x11-misc/marchfluxmenu/Manifest5
-rw-r--r--x11-misc/marchfluxmenu/files/marchfluxmenu-1.2-gentoo.patch152
-rw-r--r--x11-misc/marchfluxmenu/marchfluxmenu-1.2.ebuild60
-rw-r--r--x11-misc/marchfluxmenu/metadata.xml5
5 files changed, 231 insertions, 0 deletions
diff --git a/x11-misc/marchfluxmenu/ChangeLog b/x11-misc/marchfluxmenu/ChangeLog
new file mode 100644
index 000000000..42080dd3b
--- /dev/null
+++ b/x11-misc/marchfluxmenu/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for x11-misc/marchfluxmenu
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 22 Jan 2008; Jakub Moc <jakub@gentoo.org>
+ +files/marchfluxmenu-1.2-gentoo.patch, +metadata.xml,
+ +marchfluxmenu-1.2.ebuild:
+ New ebuild, Bug 205838
+
diff --git a/x11-misc/marchfluxmenu/Manifest b/x11-misc/marchfluxmenu/Manifest
new file mode 100644
index 000000000..669b51598
--- /dev/null
+++ b/x11-misc/marchfluxmenu/Manifest
@@ -0,0 +1,5 @@
+AUX marchfluxmenu-1.2-gentoo.patch 6595 RMD160 81be2db6466b055beecee509a37999c7c9682320 SHA1 4f923bbe5152947fc9ac15385848f9cbb4efcb00 SHA256 4e88d828ee8272768fe3a5c5377b416e8d2adb021a73025f9319273c6ef5e405
+DIST mfm-1.2.tar.gz 53853 RMD160 6110e2ed7e97b06010f3c4381dcca9cf6fe0e198 SHA1 6b2cfefaa69a339f4d90922c42f18e8135477734 SHA256 ede215386471fda416fed99a5cc45b345fa39af36bf39ba40c01df8ae1e20874
+EBUILD marchfluxmenu-1.2.ebuild 1392 RMD160 187d3e5eb7d6a74db01c8164b5cc1a5d7e702158 SHA1 147678ab4378bc6a9533c096f7e04a9262440296 SHA256 4ac6409c478f354fa538ecd9e4647c29c9faab819104cdbd0ee1d33a9fb80f1f
+MISC ChangeLog 278 RMD160 774ec55cee85312a49ea3c38828f0432ee406cb7 SHA1 49878370198da45df44bdbfcc4e29743fe14c218 SHA256 1527a1bb53253bfa63f0977cccb5c41d8db306c99e8d558bc136fde54e61c04f
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/x11-misc/marchfluxmenu/files/marchfluxmenu-1.2-gentoo.patch b/x11-misc/marchfluxmenu/files/marchfluxmenu-1.2-gentoo.patch
new file mode 100644
index 000000000..1372e7348
--- /dev/null
+++ b/x11-misc/marchfluxmenu/files/marchfluxmenu-1.2-gentoo.patch
@@ -0,0 +1,152 @@
+--- main.py.orig 2007-11-14 12:17:36.000000000 +0100
++++ main.py 2008-01-22 10:27:43.000000000 +0100
+@@ -50,7 +50,7 @@
+
+
+ ## Default icon for apps with no icons!
+- return '~/.marchfluxmenu/icons/application-default-icon.png'
++ return '/usr/share/marchfluxmenu/icons/application-default-icon.png'
+
+ class ExecMenuItem:
+ def __init__(self, label, command, icon, submenu):
+@@ -122,16 +122,16 @@
+ ## Variables Defined :
+ #############################
+
+-m8 = SubMenuItem('Sound & Video','~/.marchfluxmenu/icons/applications-multimedia.png',[])
+-m7 = SubMenuItem('Programming','~/.marchfluxmenu/icons/applications-development.png',[])
+-m1 = SubMenuItem('Education','~/.marchfluxmenu/icons/applications-education.png',[])
+-m2 = SubMenuItem('Games','~/.marchfluxmenu/icons/applications-games.png',[])
+-m3 = SubMenuItem('Graphics','~/.marchfluxmenu/icons/applications-graphics.png',[])
+-m4 = SubMenuItem('Internet','~/.marchfluxmenu/icons/applications-internet.png',[])
+-m5 = SubMenuItem('Office','~/.marchfluxmenu/icons/applications-office.png',[])
+-m9 = SubMenuItem('System Tools','~/.marchfluxmenu/icons/applications-system.png',[])
+-m0 = SubMenuItem('Accessories','~/.marchfluxmenu/icons/applications-accessories.png',[])
+-m6 = SubMenuItem('Others','~/.marchfluxmenu/icons/applications-other.png',[])
++m8 = SubMenuItem('Sound & Video','/usr/share/marchfluxmenu/icons/applications-multimedia.png',[])
++m7 = SubMenuItem('Programming','/usr/share/marchfluxmenu/icons/applications-development.png',[])
++m1 = SubMenuItem('Education','/usr/share/marchfluxmenu/icons/applications-education.png',[])
++m2 = SubMenuItem('Games','/usr/share/marchfluxmenu/icons/applications-games.png',[])
++m3 = SubMenuItem('Graphics','/usr/share/marchfluxmenu/icons/applications-graphics.png',[])
++m4 = SubMenuItem('Internet','/usr/share/marchfluxmenu/icons/applications-internet.png',[])
++m5 = SubMenuItem('Office','/usr/share/marchfluxmenu/icons/applications-office.png',[])
++m9 = SubMenuItem('System Tools','/usr/share/marchfluxmenu/icons/applications-system.png',[])
++m0 = SubMenuItem('Accessories','/usr/share/marchfluxmenu/icons/applications-accessories.png',[])
++m6 = SubMenuItem('Others','/usr/share/marchfluxmenu/icons/applications-other.png',[])
+
+ #submenu_list = [m0,m1,m2,m3,m4,m5,m7,m8,m9,m6]
+
+--- mfmdaemon.orig 2007-11-09 13:58:22.000000000 +0100
++++ mfmdaemon 2008-01-22 10:32:27.000000000 +0100
+@@ -2,7 +2,7 @@
+
+ ## Variables
+ DIRECTORY=/usr/share/applications/ # Directory to watch for changes
+-PROGRAM=~/.marchfluxmenu/trigger.py # Initiation!
++PROGRAM=@@PYDIR@@/marchfluxmenu/trigger.py # Initiation!
+
+
+ start_count=`ls $DIRECTORY | wc -l`
+@@ -19,7 +19,7 @@
+ if [ "$start_count" -gt "$count" ] # Package Removed
+ then
+ #sleep 1
+- exec python ~/.marchfluxmenu/onremove.py &
++ exec python @@PYDIR@@/marchfluxmenu/onremove.py &
+
+
+ start_count=$count
+@@ -29,7 +29,7 @@
+ if [ "$start_count" -lt "$count" ] # Package Installed
+ then
+ #sleep 1
+- exec python ~/.marchfluxmenu/onadd.py &
++ exec python @@PYDIR@@/marchfluxmenu/onadd.py &
+
+
+ start_count=$count
+--- mfm_generate.py.orig 2007-11-11 19:58:01.000000000 +0100
++++ mfm_generate.py 2008-01-22 10:34:11.000000000 +0100
+@@ -24,7 +24,7 @@
+ string += ExecMenuItem('Web Browser', 'firefox', IconFind('firefox.png'), '').GenerateMenuLine()
+ string += ExecMenuItem('Terminal', 'xterm', IconFind('term.png'), '').GenerateMenuLine()
+ string +=''' [separator] (--------)
+- [submenu] (Settings) {settings} <~/.marchfluxmenu/icons/preferences-system.png>
++ [submenu] (Settings) {settings} </usr/share/marchfluxmenu/icons/preferences-system.png>
+ [config] (Fluxbox Menu)
+ [reconfig] (Reload Config)
+ [restart] (Restart Fluxbox)
+@@ -39,10 +39,10 @@
+ string += m.body
+ string += '\n'
+
+-string += '[separator] (tag end)\n' + '[exit] (Exit) <~/.marchfluxmenu/icons/exit.png>\n'+ '[end]\n'
++string += '[separator] (tag end)\n' + '[exit] (Exit) </usr/share/marchfluxmenu/icons/exit.png>\n'+ '[end]\n'
+
+ #print string
+-filename = os.path.expanduser('~/.fluxbox/menu')
++filename = os.path.expanduser('/usr/share/fluxbox/menu')
+ f = file(filename,'w')
+ f.write(string)
+ f.close()
+--- installer.orig 2007-11-11 20:16:35.000000000 +0100
++++ installer 2008-01-22 10:43:57.000000000 +0100
+@@ -17,33 +17,20 @@
+ echo '-----------------------------------'
+ echo 'This will rewrite your current fluxbox menu.'
+ echo 'You can find a backup called menu.mfm.bak under ~/.fluxbox'
+- mkdir ~/.marchfluxmenu 2>/dev/null
+- cp -R ../marchfluxmenu/. ~/.marchfluxmenu/ 2>/dev/null
+ mv ~/.fluxbox/menu ~/.fluxbox/menu.mfm.bak 2>/dev/null
+ touch ~/.fluxbox/menu 2>/dev/null
+- exec python ~/.marchfluxmenu/mfm_generate.py & 2>/dev/null
+- #sed '/bash/ i\~/.marchfluxmenu/./mfmdaemon &' ~/.fluxbox/startup > temp
+- #mv temp ~/.fluxbox/startup
+- ~/.marchfluxmenu/./mfmdaemon & 2>/dev/null
++ exec python @@PYDIR@@/marchfluxmenu/mfm_generate.py & 2>/dev/null
+
+ echo '-----------------------------------'
+ echo 'Installation Complete'
+ echo '-----------------------------------'
+- echo 'Please add the line :'
+- echo ' ~/.marchfluxmenu/./mfmdaemon & '
++ echo 'Please see mfmdaemon example script and'
++ echo 'put to somewhere under your $PATH and add the line'
++ echo ' mfmdaemon & '
+ echo 'to your fluxbox startup file if you want Marchfluxmenu'
+ echo 'to function everytime fluxbox starts (RECOMMENDED)'
+ echo '-----------------------------------'
+
+ exit 1
+
+-
+-
+-
+-
+-
+-
+-
+-
+-
+-fi
+\ No newline at end of file
++fi
+--- README.orig 2007-11-10 19:07:26.000000000 +0100
++++ README 2008-01-22 10:50:51.000000000 +0100
+@@ -12,13 +12,10 @@
+ --------------------
+
+ Marchfluxmenu is written in python, which you need to have in your system.
+-To run the GUI menu editor, fluxMenu, you'll also need pygtk.
+
+-Get the tarball, untar it and run the installer script there.
+-This will create a ~/.marchfluxmenu directory where the program will be 'installed'.The installer also generates a new fluxbox menu. The current menu will be backed up as ~/.fluxbox/menu.mfm.bak
+-The mfmdaemon is also started by the installer.
++Running marchfluxmenu generates a new fluxbox menu. The current menu will be backed up as ~/.fluxbox/menu.mfm.bak
+ You might want to add the 'daemon' to your fluxbox startup file as well, if you want it to run everytime fluxbox starts (Recommended!).
+-Just add the line
+- ~/.marchfluxmenu/.mfmdaemon &
++Just copy the example script somewhere under $PATH and add the line
++ mfmdaemon &
+ at the appropriate place of ~/.fluxbox/startup
+
diff --git a/x11-misc/marchfluxmenu/marchfluxmenu-1.2.ebuild b/x11-misc/marchfluxmenu/marchfluxmenu-1.2.ebuild
new file mode 100644
index 000000000..080998420
--- /dev/null
+++ b/x11-misc/marchfluxmenu/marchfluxmenu-1.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils python multilib
+
+MY_PN="mfm"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="An attempt to have the fluxbox menu emulate the Gnome (or XFCE) menu, in both looks and functionality."
+HOMEPAGE="http://code.google.com/p/marchfluxmenu/"
+SRC_URI="http://marchfluxmenu.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/python"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ python_version
+ sed -i -e "s:@@PYDIR@@:/usr/$(get_libdir)/python${PYVER}/site-packages:g" \
+ installer mfmdaemon || die "failed to fix paths"
+}
+
+src_compile() {
+ einfo "Nothing to compile, installing..."
+}
+
+src_install() {
+ dodoc README mfmdaemon
+
+ insinto /usr/share/${PN}
+ doins -r icons
+
+ newbin installer ${PN}
+ rm -rf COPYING README icons installer main.pyc mfmdaemon
+
+ python_version
+ insinto /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+ doins *
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize "${ROOT}"usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+
+ elog "Now just run ${PN} as user to generate your fluxbox menu."
+ elog "See README in /usr/share/doc/${PF} for more information on usage."
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}
diff --git a/x11-misc/marchfluxmenu/metadata.xml b/x11-misc/marchfluxmenu/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/x11-misc/marchfluxmenu/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>