remove, this app is broken and deprecated in several ways:

- still hasn't been ported to the new libgnome-menus api
- hasn't had a real release in two years
- uses old pygobject2 with pygi support, which has been moved to
  py-gobject3 to facilitate other development in the tree.

  (at least gmenu-simple-editor works again..)

  as discussed with aja@
This commit is contained in:
jasper 2011-09-27 10:28:22 +00:00
parent 3130b971b6
commit 5a5baef54b
8 changed files with 0 additions and 379 deletions

View File

@ -1,40 +0,0 @@
# $OpenBSD: Makefile,v 1.39 2011/09/26 14:02:18 jasper Exp $
BROKEN= needs to be adjusted to new libgnome-menus API
COMMENT= easy GNOME menu editing tool
GNOME_PROJECT= alacarte
GNOME_VERSION= 0.12.4
REVISION= 10
CATEGORIES= x11
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
EXTRACT_SUFX= .tar.bz2
MODULES= lang/python \
x11/gnome
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= devel/gettext \
x11/py-gtk2>=2.8.6 \
gnome-panel-*|exo->0.6:x11/gnome/panel
# should be taken care of by the gnome-panel dependency, but our port
# can use exo instead for XFCE users
BUILD_DEPENDS+= x11/gnome/menus
MODGNOME_DESKTOP_FILE= Yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
pre-configure:
${SUBST_CMD} ${WRKSRC}/Alacarte/util.py
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (gnome/alacarte-0.12.4.tar.bz2) = kU+GP2vRUrSrZAfQfYU/RQ==
RMD160 (gnome/alacarte-0.12.4.tar.bz2) = 4LvvifFgPC3i7WDW3gh8NAfwYEA=
SHA1 (gnome/alacarte-0.12.4.tar.bz2) = pEs8O7piXFcNPvf0UfkS5Tf8zts=
SHA256 (gnome/alacarte-0.12.4.tar.bz2) = 9bzNR9lrIu5zz1N9hruQy3t+D3CsaCU/5RJUDlv2SCM=
SIZE (gnome/alacarte-0.12.4.tar.bz2) = 189318

View File

@ -1,55 +0,0 @@
$OpenBSD: patch-Alacarte_MainWindow_py,v 1.2 2011/09/13 07:20:37 ajacoutot Exp $
From 8c33986006604f4fa308c439466f7de9b5c9227a Mon Sep 17 00:00:00 2001
From: Josselin Mouette <joss@debian.org>
Date: Mon, 22 Aug 2011 18:47:47 +0000
Subject: Fix Python error on startup with gnome-menus 2.91.6+
Try gnome-desktop-item-edit, and if not found fallback to exo-desktop-item-edit.
--- Alacarte/MainWindow.py.orig Tue Sep 8 16:24:13 2009
+++ Alacarte/MainWindow.py Tue Sep 13 08:54:29 2011
@@ -71,7 +71,6 @@ class MainWindow:
def run(self):
self.loadMenus()
self.editor.applications.tree.add_monitor(self.menuChanged, None)
- self.editor.settings.tree.add_monitor(self.menuChanged, None)
self.tree.get_object('mainwindow').show_all()
gtk.main()
@@ -295,7 +294,10 @@ class MainWindow:
else:
parent = menus[iter][2]
file_path = os.path.join(util.getUserDirectoryPath(), util.getUniqueFileId('alacarte-made', '.directory'))
- process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
+ try:
+ process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
+ except:
+ process = subprocess.Popen(['exo-desktop-item-edit', file_path], env=os.environ)
gobject.timeout_add(100, self.waitForNewMenuProcess, process, parent.menu_id, file_path)
def on_new_item_button_clicked(self, button):
@@ -308,7 +310,10 @@ class MainWindow:
else:
parent = menus[iter][2]
file_path = os.path.join(util.getUserItemPath(), util.getUniqueFileId('alacarte-made', '.desktop'))
- process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
+ try:
+ process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
+ except:
+ process = subprocess.Popen(['exo-desktop-item-edit', file_path], env=os.environ)
gobject.timeout_add(100, self.waitForNewItemProcess, process, parent.menu_id, file_path)
def on_new_separator_button_clicked(self, button):
@@ -379,7 +384,10 @@ class MainWindow:
self.editor._MenuEditor__addUndo([item,])
if file_path not in self.edit_pool:
self.edit_pool.append(file_path)
- process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
+ try:
+ process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
+ except:
+ process = subprocess.Popen(['exo-desktop-item-edit', file_path], env=os.environ)
gobject.timeout_add(100, self.waitForEditProcess, process, file_path)
def on_menu_tree_cursor_changed(self, treeview):

View File

@ -1,111 +0,0 @@
$OpenBSD: patch-Alacarte_MenuEditor_py,v 1.1 2011/09/13 07:20:37 ajacoutot Exp $
From 8c33986006604f4fa308c439466f7de9b5c9227a Mon Sep 17 00:00:00 2001
From: Josselin Mouette <joss@debian.org>
Date: Mon, 22 Aug 2011 18:47:47 +0000
Subject: Fix Python error on startup with gnome-menus 2.91.6+
--- Alacarte/MenuEditor.py.orig Tue Sep 8 12:04:27 2009
+++ Alacarte/MenuEditor.py Tue Sep 13 08:54:29 2011
@@ -48,22 +48,10 @@ class MenuEditor:
self.applications.dom = xml.dom.minidom.parse(self.applications.path)
self.__remove_whilespace_nodes(self.applications.dom)
- self.settings = Menu()
- self.settings.tree = gmenu.lookup_tree('settings.menu', gmenu.FLAGS_SHOW_EMPTY|gmenu.FLAGS_INCLUDE_EXCLUDED|gmenu.FLAGS_INCLUDE_NODISPLAY|gmenu.FLAGS_SHOW_ALL_SEPARATORS)
- self.settings.visible_tree = gmenu.lookup_tree('settings.menu')
- self.settings.tree.sort_key = gmenu.SORT_DISPLAY_NAME
- self.settings.visible_tree.sort_key = gmenu.SORT_DISPLAY_NAME
- self.settings.path = os.path.join(util.getUserMenuPath(), self.settings.tree.get_menu_file())
- if not os.path.isfile(self.settings.path):
- self.settings.dom = xml.dom.minidom.parseString(util.getUserMenuXml(self.settings.tree))
- else:
- self.settings.dom = xml.dom.minidom.parse(self.settings.path)
- self.__remove_whilespace_nodes(self.settings.dom)
-
self.save(True)
def save(self, from_loading=False):
- for menu in ('applications', 'settings'):
+ for menu in ('applications',):
fd = open(getattr(self, menu).path, 'w')
fd.write(re.sub("\n[\s]*([^\n<]*)\n[\s]*</", "\\1</", getattr(self, menu).dom.toprettyxml().replace('<?xml version="1.0" ?>\n', '')))
fd.close()
@@ -85,7 +73,7 @@ class MenuEditor:
os.unlink(file_path)
def revert(self):
- for name in ('applications', 'settings'):
+ for name in ('applications',):
menu = getattr(self, name)
self.revertTree(menu.tree.root)
path = os.path.join(util.getUserMenuPath(), menu.tree.get_menu_file())
@@ -126,7 +114,7 @@ class MenuEditor:
os.unlink(file_path)
redo.append(redo_path)
#reload DOM to make changes stick
- for name in ('applications', 'settings'):
+ for name in ('applications',):
menu = getattr(self, name)
if not os.path.isfile(menu.path):
menu.dom = xml.dom.minidom.parseString(util.getUserMenuXml(menu.tree))
@@ -150,7 +138,7 @@ class MenuEditor:
os.unlink(file_path)
undo.append(undo_path)
#reload DOM to make changes stick
- for name in ('applications', 'settings'):
+ for name in ('applications',):
menu = getattr(self, name)
if not os.path.isfile(menu.path):
menu.dom = xml.dom.minidom.parseString(util.getUserMenuXml(menu.tree))
@@ -162,7 +150,6 @@ class MenuEditor:
def getMenus(self, parent=None):
if parent == None:
yield self.applications.tree.root
- yield self.settings.tree.root
else:
for menu in parent.get_contents():
if menu.get_type() == gmenu.TYPE_DIRECTORY:
@@ -430,31 +417,13 @@ class MenuEditor:
self.__undo[-1].append(undo_path)
def __getMenu(self, item):
- root = item.get_parent()
- if not root:
- #already at the top
- root = item
- else:
- while True:
- if root.get_parent():
- root = root.get_parent()
- else:
- break
- if root.menu_id == self.applications.tree.root.menu_id:
- return self.applications
- return self.settings
+ return self.applications
def __findMenu(self, menu_id, parent=None):
if parent == None:
- menu = self.__findMenu(menu_id, self.applications.tree.root)
- if menu != None:
- return menu
- else:
- return self.__findMenu(menu_id, self.settings.tree.root)
+ return self.__findMenu(menu_id, self.applications.tree.root)
if menu_id == self.applications.tree.root.menu_id:
return self.applications.tree.root
- if menu_id == self.settings.tree.root.menu_id:
- return self.settings.tree.root
for item in parent.get_contents():
if item.get_type() == gmenu.TYPE_DIRECTORY:
if item.menu_id == menu_id:
@@ -469,8 +438,6 @@ class MenuEditor:
menu = self.__getMenu(item)
if menu == self.applications:
root = self.applications.visible_tree.root
- elif menu == self.settings:
- root = self.settings.visible_tree.root
if item.get_type() == gmenu.TYPE_DIRECTORY:
if self.__findMenu(item.menu_id, root) == None:
return False

View File

@ -1,30 +0,0 @@
$OpenBSD: patch-Alacarte_util_py,v 1.4 2011/01/18 15:21:01 ajacoutot Exp $
--- Alacarte/util.py.orig Tue Oct 3 01:48:07 2006
+++ Alacarte/util.py Mon May 7 21:12:13 2007
@@ -141,7 +141,7 @@ def getItemPath(file_id):
file_path = os.path.join(system_path, 'applications', file_id)
if os.path.isfile(file_path):
return file_path
- file_path = os.path.join('/', 'usr', 'share', 'applications', file_id)
+ file_path = os.path.join('/', '${LOCALBASE}', 'share', 'applications', file_id)
if os.path.isfile(file_path):
return file_path
return False
@@ -166,7 +166,7 @@ def getDirectoryPath(file_id):
file_path = os.path.join(system_path, 'desktop-directories', file_id)
if os.path.isfile(file_path):
return file_path
- file_path = os.path.join('/', 'usr', 'share', 'desktop-directories', file_id)
+ file_path = os.path.join('/', '${LOCALBASE}', 'share', 'desktop-directories', file_id)
if os.path.isfile(file_path):
return file_path
return False
@@ -187,7 +187,7 @@ def getSystemMenuPath(file_name):
file_path = os.path.join(system_path, 'menus', file_name)
if os.path.isfile(file_path):
return file_path
- file_path = os.path.join('/', 'etc', 'xdg', 'menus', file_name)
+ file_path = os.path.join('/', '${SYSCONFDIR}', 'xdg', 'menus', file_name)
if os.path.isfile(file_path):
return file_path
return False

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-data_alacarte_desktop_in_in,v 1.2 2011/09/15 08:06:06 ajacoutot Exp $
From b227c32ba5fe7f15884c26efd47d10950d16720c Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Mon, 22 Aug 2011 18:13:08 +0000
Subject: use startup notification
--- data/alacarte.desktop.in.in.orig Sat Aug 29 11:46:15 2009
+++ data/alacarte.desktop.in.in Thu Sep 15 10:04:34 2011
@@ -4,7 +4,7 @@ _Comment=Change which applications are shown on the ma
Exec=alacarte
Terminal=false
Type=Application
-StartupNotify=false
+StartupNotify=true
Categories=GNOME;Settings;DesktopSettings;
NotShowIn=KDE;
Icon=alacarte

View File

@ -1,4 +0,0 @@
Alacarte is an easy-to-use menu editor for GNOME that can add and edit
new entries and menus. It works with the freedesktop.org menu
specification and should work with any desktop environment that uses the
spec.

View File

@ -1,116 +0,0 @@
@comment $OpenBSD: PLIST,v 1.11 2011/01/18 15:21:01 ajacoutot Exp $
bin/alacarte
lib/python${MODPY_VERSION}/site-packages/Alacarte/
lib/python${MODPY_VERSION}/site-packages/Alacarte/MainWindow.py
lib/python${MODPY_VERSION}/site-packages/Alacarte/MainWindow.pyc
lib/python${MODPY_VERSION}/site-packages/Alacarte/MainWindow.pyo
lib/python${MODPY_VERSION}/site-packages/Alacarte/MenuEditor.py
lib/python${MODPY_VERSION}/site-packages/Alacarte/MenuEditor.pyc
lib/python${MODPY_VERSION}/site-packages/Alacarte/MenuEditor.pyo
lib/python${MODPY_VERSION}/site-packages/Alacarte/__init__.py
lib/python${MODPY_VERSION}/site-packages/Alacarte/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/Alacarte/__init__.pyo
lib/python${MODPY_VERSION}/site-packages/Alacarte/config.py
lib/python${MODPY_VERSION}/site-packages/Alacarte/config.pyc
lib/python${MODPY_VERSION}/site-packages/Alacarte/config.pyo
lib/python${MODPY_VERSION}/site-packages/Alacarte/util.py
lib/python${MODPY_VERSION}/site-packages/Alacarte/util.pyc
lib/python${MODPY_VERSION}/site-packages/Alacarte/util.pyo
share/alacarte/
share/alacarte/alacarte.ui
share/applications/alacarte.desktop
share/icons/hicolor/16x16/apps/alacarte.png
share/icons/hicolor/22x22/apps/alacarte.png
share/icons/hicolor/24x24/apps/alacarte.png
share/icons/hicolor/256x256/apps/alacarte.png
share/icons/hicolor/32x32/apps/alacarte.png
share/icons/hicolor/48x48/apps/alacarte.png
share/locale/ar/LC_MESSAGES/alacarte.mo
share/locale/as/LC_MESSAGES/alacarte.mo
share/locale/ast/LC_MESSAGES/alacarte.mo
share/locale/be/LC_MESSAGES/alacarte.mo
share/locale/be@latin/LC_MESSAGES/alacarte.mo
share/locale/bem/
share/locale/bem/LC_MESSAGES/
share/locale/bem/LC_MESSAGES/alacarte.mo
share/locale/bg/LC_MESSAGES/alacarte.mo
share/locale/bn/LC_MESSAGES/alacarte.mo
share/locale/bn_IN/LC_MESSAGES/alacarte.mo
share/locale/br/LC_MESSAGES/alacarte.mo
share/locale/ca/LC_MESSAGES/alacarte.mo
share/locale/ca@valencia/LC_MESSAGES/alacarte.mo
share/locale/crh/LC_MESSAGES/alacarte.mo
share/locale/cs/LC_MESSAGES/alacarte.mo
share/locale/cy/LC_MESSAGES/alacarte.mo
share/locale/da/LC_MESSAGES/alacarte.mo
share/locale/de/LC_MESSAGES/alacarte.mo
share/locale/dz/LC_MESSAGES/alacarte.mo
share/locale/el/LC_MESSAGES/alacarte.mo
share/locale/en_CA/LC_MESSAGES/alacarte.mo
share/locale/en_GB/LC_MESSAGES/alacarte.mo
share/locale/eo/LC_MESSAGES/alacarte.mo
share/locale/es/LC_MESSAGES/alacarte.mo
share/locale/et/LC_MESSAGES/alacarte.mo
share/locale/eu/LC_MESSAGES/alacarte.mo
share/locale/fa/LC_MESSAGES/alacarte.mo
share/locale/fi/LC_MESSAGES/alacarte.mo
share/locale/fr/LC_MESSAGES/alacarte.mo
share/locale/fur/LC_MESSAGES/alacarte.mo
share/locale/ga/LC_MESSAGES/alacarte.mo
share/locale/gl/LC_MESSAGES/alacarte.mo
share/locale/gu/LC_MESSAGES/alacarte.mo
share/locale/he/LC_MESSAGES/alacarte.mo
share/locale/hi/LC_MESSAGES/alacarte.mo
share/locale/hr/LC_MESSAGES/alacarte.mo
share/locale/hu/LC_MESSAGES/alacarte.mo
share/locale/id/LC_MESSAGES/alacarte.mo
share/locale/io/LC_MESSAGES/alacarte.mo
share/locale/it/LC_MESSAGES/alacarte.mo
share/locale/ja/LC_MESSAGES/alacarte.mo
share/locale/ka/LC_MESSAGES/alacarte.mo
share/locale/kk/LC_MESSAGES/alacarte.mo
share/locale/kn/LC_MESSAGES/alacarte.mo
share/locale/ko/LC_MESSAGES/alacarte.mo
share/locale/ku/LC_MESSAGES/alacarte.mo
share/locale/lt/LC_MESSAGES/alacarte.mo
share/locale/lv/LC_MESSAGES/alacarte.mo
share/locale/mai/LC_MESSAGES/alacarte.mo
share/locale/mg/LC_MESSAGES/alacarte.mo
share/locale/mk/LC_MESSAGES/alacarte.mo
share/locale/ml/LC_MESSAGES/alacarte.mo
share/locale/mn/LC_MESSAGES/alacarte.mo
share/locale/mr/LC_MESSAGES/alacarte.mo
share/locale/nb/LC_MESSAGES/alacarte.mo
share/locale/nds/LC_MESSAGES/alacarte.mo
share/locale/nl/LC_MESSAGES/alacarte.mo
share/locale/nn/LC_MESSAGES/alacarte.mo
share/locale/oc/LC_MESSAGES/alacarte.mo
share/locale/or/LC_MESSAGES/alacarte.mo
share/locale/pa/LC_MESSAGES/alacarte.mo
share/locale/pl/LC_MESSAGES/alacarte.mo
share/locale/ps/LC_MESSAGES/alacarte.mo
share/locale/pt/LC_MESSAGES/alacarte.mo
share/locale/pt_BR/LC_MESSAGES/alacarte.mo
share/locale/ro/LC_MESSAGES/alacarte.mo
share/locale/ru/LC_MESSAGES/alacarte.mo
share/locale/si/LC_MESSAGES/alacarte.mo
share/locale/sk/LC_MESSAGES/alacarte.mo
share/locale/sl/LC_MESSAGES/alacarte.mo
share/locale/sq/LC_MESSAGES/alacarte.mo
share/locale/sr/LC_MESSAGES/alacarte.mo
share/locale/sr@latin/LC_MESSAGES/alacarte.mo
share/locale/sv/LC_MESSAGES/alacarte.mo
share/locale/ta/LC_MESSAGES/alacarte.mo
share/locale/te/LC_MESSAGES/alacarte.mo
share/locale/th/LC_MESSAGES/alacarte.mo
share/locale/tr/LC_MESSAGES/alacarte.mo
share/locale/uk/LC_MESSAGES/alacarte.mo
share/locale/uz@cyrillic/LC_MESSAGES/alacarte.mo
share/locale/vi/LC_MESSAGES/alacarte.mo
share/locale/zh_CN/LC_MESSAGES/alacarte.mo
share/locale/zh_HK/LC_MESSAGES/alacarte.mo
share/locale/zh_TW/LC_MESSAGES/alacarte.mo
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true
@unexec-delete %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true