-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The package contains an implementation of the draft "Desktop Menu Specification" from freedesktop.org for GNOME: http://www.freedesktop.org/Standards/menu-spec Also contained here are the GNOME menu layout configuration files, .directory files and assorted menu related utility programs. ok aja@
- Loading branch information
Showing
7 changed files
with
345 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# $OpenBSD: Makefile,v 1.1.1.1 2011/05/14 08:27:47 jasper Exp $ | ||
|
||
SHARED_ONLY= Yes | ||
|
||
COMMENT= implementation of the FreeDesktop Desktop Menu Spec | ||
|
||
GNOME_PROJECT= gnome-menus | ||
GNOME_VERSION= 3.0.1 | ||
|
||
SHARED_LIBS += gnome-menu 5.2 # .6.13 | ||
|
||
# GPLv2/LGPLv2 | ||
PERMIT_PACKAGE_CDROM= Yes | ||
PERMIT_PACKAGE_FTP= Yes | ||
PERMIT_DISTFILES_CDROM= Yes | ||
PERMIT_DISTFILES_FTP= Yes | ||
|
||
WANTLIB += m pcre util z glib-2.0 gio-2.0 gmodule-2.0 gobject-2.0 | ||
WANTLIB += gthread-2.0 ${MODPY_WANTLIB} | ||
|
||
MODULES= devel/gettext \ | ||
lang/python \ | ||
x11/gnome | ||
|
||
DESKTOP_FILES= Yes | ||
|
||
BUILD_DEPENDS= ${RUN_DEPENDS} | ||
RUN_DEPENDS= devel/gobject-introspection | ||
LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \ | ||
devel/glib2 | ||
|
||
CONFIGURE_ARGS+= --enable-introspection | ||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ | ||
LDFLAGS="-L${LOCALBASE}/lib" | ||
|
||
pre-configure: | ||
${SUBST_CMD} ${WRKSRC}/layout/applications.menu | ||
|
||
post-install: | ||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-menus | ||
mv ${WRKINST}${SYSCONFDIR}/* ${PREFIX}/share/examples/gnome-menus | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MD5 (gnome/gnome-menus-3.0.1.tar.bz2) = RNQoakg20z8znQEGIo8QiA== | ||
RMD160 (gnome/gnome-menus-3.0.1.tar.bz2) = 3pFtSIffmkM+uFiqq/Hvka8s0y0= | ||
SHA1 (gnome/gnome-menus-3.0.1.tar.bz2) = 4g0rTG7ToZMkEUpb/374ngWMcH0= | ||
SHA256 (gnome/gnome-menus-3.0.1.tar.bz2) = V5wRnCbzd4H2ZwjoZ+pFs8N1ibO2nlsy0z6b25RBZfA= | ||
SIZE (gnome/gnome-menus-3.0.1.tar.bz2) = 474839 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$OpenBSD: patch-layout_applications_menu,v 1.1.1.1 2011/05/14 08:27:47 jasper Exp $ | ||
--- layout/applications.menu.orig Mon Jan 7 23:27:42 2008 | ||
+++ layout/applications.menu Wed Feb 6 11:18:13 2008 | ||
@@ -8,8 +8,8 @@ | ||
|
||
<!-- Scan legacy dirs first, as later items take priority --> | ||
<KDELegacyDirs/> | ||
- <LegacyDir>/etc/X11/applnk</LegacyDir> | ||
- <LegacyDir>/usr/share/gnome/apps</LegacyDir> | ||
+ <LegacyDir>${LOCALBASE}/share/applnk</LegacyDir> | ||
+ <LegacyDir>${LOCALBASE}/share/gnome/apps</LegacyDir> | ||
|
||
<!-- Read standard .directory and .desktop file locations --> | ||
<DefaultAppDirs/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
$OpenBSD: patch-libmenu_gmenu-tree_c,v 1.1.1.1 2011/05/14 08:27:47 jasper Exp $ | ||
|
||
Set default menu to gnome-applications.menu if XDG_MENU_PREFIX is not set. | ||
|
||
--- libmenu/gmenu-tree.c.orig Tue Mar 30 01:54:53 2010 | ||
+++ libmenu/gmenu-tree.c Tue Apr 20 17:06:31 2010 | ||
@@ -23,6 +23,7 @@ | ||
|
||
#include <string.h> | ||
#include <errno.h> | ||
+#include <stdlib.h> | ||
|
||
#include "menu-layout.h" | ||
#include "menu-monitor.h" | ||
@@ -540,16 +541,13 @@ gmenu_tree_canonicalize_path (GMenuTree *tree) | ||
{ | ||
gmenu_tree_remove_menu_file_monitors (tree); | ||
|
||
- if (strcmp (tree->basename, "applications.menu") == 0 && | ||
- g_getenv ("XDG_MENU_PREFIX")) | ||
- { | ||
- char *prefixed_basename; | ||
- prefixed_basename = g_strdup_printf ("%s%s", | ||
- g_getenv ("XDG_MENU_PREFIX"), | ||
- tree->basename); | ||
- canonicalize_basename (tree, prefixed_basename); | ||
- g_free (prefixed_basename); | ||
- } | ||
+ setenv ("XDG_MENU_PREFIX", "gnome-", 0); | ||
+ char *prefixed_basename; | ||
+ prefixed_basename = g_strdup_printf ("%s%s", | ||
+ g_getenv ("XDG_MENU_PREFIX"), | ||
+ tree->basename); | ||
+ canonicalize_basename (tree, prefixed_basename); | ||
+ g_free (prefixed_basename); | ||
|
||
if (!tree->canonical) | ||
canonicalize_basename (tree, tree->basename); | ||
@@ -1923,18 +1921,15 @@ load_parent_merge_file (GMenuTree *tree, | ||
found = FALSE; | ||
menu_file = g_strconcat (menu_name, ".menu", NULL); | ||
|
||
- if (strcmp (menu_file, "applications.menu") == 0 && | ||
- g_getenv ("XDG_MENU_PREFIX")) | ||
- { | ||
- char *prefixed_basename; | ||
- prefixed_basename = g_strdup_printf ("%s%s", | ||
- g_getenv ("XDG_MENU_PREFIX"), | ||
- menu_file); | ||
- found = load_parent_merge_file_from_basename (tree, loaded_menu_files, | ||
- layout, prefixed_basename, | ||
- canonical_basedir); | ||
- g_free (prefixed_basename); | ||
- } | ||
+ setenv ("XDG_MENU_PREFIX", "gnome-", 0); | ||
+ char *prefixed_basename; | ||
+ prefixed_basename = g_strdup_printf ("%s%s", | ||
+ g_getenv ("XDG_MENU_PREFIX"), | ||
+ menu_file); | ||
+ found = load_parent_merge_file_from_basename (tree, loaded_menu_files, | ||
+ layout, prefixed_basename, | ||
+ canonical_basedir); | ||
+ g_free (prefixed_basename); | ||
|
||
if (!found) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$OpenBSD: patch-util-Makefile_in,v 1.1.1.1 2011/05/14 08:27:47 jasper Exp $ | ||
--- util/Makefile.in.orig Tue Apr 26 09:08:11 2011 | ||
+++ util/Makefile.in Sat May 14 01:56:41 2011 | ||
@@ -298,6 +298,7 @@ gnome_menu_spec_test_SOURCES = \ | ||
|
||
gnome_menu_spec_test_LDADD = \ | ||
$(GLIB_LIBS) \ | ||
+ -pthread \ | ||
../libmenu/libgnome-menu.la | ||
|
||
@HAVE_PYTHON_FALSE@pyexampledir = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The package contains an implementation of the draft "Desktop | ||
Menu Specification" from freedesktop.org for GNOME: | ||
|
||
http://www.freedesktop.org/Standards/menu-spec | ||
|
||
Also contained here are the GNOME menu layout configuration | ||
files, .directory files and assorted menu related utility programs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/05/14 08:27:47 jasper Exp $ | ||
bin/gmenu-simple-editor | ||
include/gnome-menus/ | ||
include/gnome-menus/gmenu-tree.h | ||
lib/girepository-1.0/ | ||
lib/girepository-1.0/GMenu-2.0.typelib | ||
lib/libgnome-menu.a | ||
lib/libgnome-menu.la | ||
@lib lib/libgnome-menu.so.${LIBgnome-menu_VERSION} | ||
lib/pkgconfig/libgnome-menu.pc | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/ | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/__init__.py | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/__init__.pyc | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/__init__.pyo | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/config.py | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/config.pyc | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/config.pyo | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/main.py | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/main.pyc | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/main.pyo | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/maindialog.py | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/maindialog.pyc | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/maindialog.pyo | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/menufilewriter.py | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/menufilewriter.pyc | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/menufilewriter.pyo | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/menutreemodel.py | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/menutreemodel.pyc | ||
lib/python${MODPY_VERSION}/site-packages/GMenuSimpleEditor/menutreemodel.pyo | ||
lib/python${MODPY_VERSION}/site-packages/gmenu.a | ||
lib/python${MODPY_VERSION}/site-packages/gmenu.la | ||
lib/python${MODPY_VERSION}/site-packages/gmenu.so | ||
share/applications/gmenu-simple-editor.desktop | ||
share/desktop-directories/ | ||
share/desktop-directories/AudioVideo.directory | ||
share/desktop-directories/Development.directory | ||
share/desktop-directories/Education.directory | ||
share/desktop-directories/Game.directory | ||
share/desktop-directories/Graphics.directory | ||
share/desktop-directories/Hardware.directory | ||
share/desktop-directories/Network.directory | ||
share/desktop-directories/Office.directory | ||
share/desktop-directories/Personal.directory | ||
share/desktop-directories/System-Tools.directory | ||
share/desktop-directories/System.directory | ||
share/desktop-directories/Utility-Accessibility.directory | ||
share/desktop-directories/Utility.directory | ||
share/desktop-directories/X-GNOME-Menu-Applications.directory | ||
share/desktop-directories/X-GNOME-Other.directory | ||
share/examples/gnome-menus/ | ||
share/examples/gnome-menus/xdg/ | ||
@sample ${SYSCONFDIR}/xdg/ | ||
share/examples/gnome-menus/xdg/menus/ | ||
@sample ${SYSCONFDIR}/xdg/menus/ | ||
share/examples/gnome-menus/xdg/menus/applications.menu | ||
@sample ${SYSCONFDIR}/xdg/menus/gnome-applications.menu | ||
share/gir-1.0/ | ||
share/gir-1.0/GMenu-2.0.gir | ||
share/gnome-menus/ | ||
share/gnome-menus/examples/ | ||
share/gnome-menus/examples/gnome-menus-ls.py | ||
share/gnome-menus/ui/ | ||
share/gnome-menus/ui/gmenu-simple-editor.ui | ||
share/locale/af/LC_MESSAGES/gnome-menus.mo | ||
share/locale/an/ | ||
share/locale/an/LC_MESSAGES/ | ||
share/locale/an/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ar/LC_MESSAGES/gnome-menus.mo | ||
share/locale/as/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ast/LC_MESSAGES/gnome-menus.mo | ||
share/locale/be/LC_MESSAGES/gnome-menus.mo | ||
share/locale/be@latin/LC_MESSAGES/gnome-menus.mo | ||
share/locale/bg/LC_MESSAGES/gnome-menus.mo | ||
share/locale/bn/LC_MESSAGES/gnome-menus.mo | ||
share/locale/bn_IN/LC_MESSAGES/gnome-menus.mo | ||
share/locale/br/ | ||
share/locale/br/LC_MESSAGES/ | ||
share/locale/br/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ca/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ca@valencia/LC_MESSAGES/gnome-menus.mo | ||
share/locale/crh/ | ||
share/locale/crh/LC_MESSAGES/ | ||
share/locale/crh/LC_MESSAGES/gnome-menus.mo | ||
share/locale/cs/LC_MESSAGES/gnome-menus.mo | ||
share/locale/cy/LC_MESSAGES/gnome-menus.mo | ||
share/locale/da/LC_MESSAGES/gnome-menus.mo | ||
share/locale/de/LC_MESSAGES/gnome-menus.mo | ||
share/locale/dv/ | ||
share/locale/dv/LC_MESSAGES/ | ||
share/locale/dv/LC_MESSAGES/gnome-menus.mo | ||
share/locale/dz/LC_MESSAGES/gnome-menus.mo | ||
share/locale/el/LC_MESSAGES/gnome-menus.mo | ||
share/locale/en@shaw/LC_MESSAGES/gnome-menus.mo | ||
share/locale/en_CA/LC_MESSAGES/gnome-menus.mo | ||
share/locale/en_GB/LC_MESSAGES/gnome-menus.mo | ||
share/locale/eo/LC_MESSAGES/gnome-menus.mo | ||
share/locale/es/LC_MESSAGES/gnome-menus.mo | ||
share/locale/et/LC_MESSAGES/gnome-menus.mo | ||
share/locale/eu/LC_MESSAGES/gnome-menus.mo | ||
share/locale/fa/LC_MESSAGES/gnome-menus.mo | ||
share/locale/fi/LC_MESSAGES/gnome-menus.mo | ||
share/locale/fr/LC_MESSAGES/gnome-menus.mo | ||
share/locale/fur/ | ||
share/locale/fur/LC_MESSAGES/ | ||
share/locale/fur/LC_MESSAGES/gnome-menus.mo | ||
share/locale/fy/ | ||
share/locale/fy/LC_MESSAGES/ | ||
share/locale/fy/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ga/LC_MESSAGES/gnome-menus.mo | ||
share/locale/gl/LC_MESSAGES/gnome-menus.mo | ||
share/locale/gn/ | ||
share/locale/gn/LC_MESSAGES/ | ||
share/locale/gn/LC_MESSAGES/gnome-menus.mo | ||
share/locale/gu/LC_MESSAGES/gnome-menus.mo | ||
share/locale/gv/ | ||
share/locale/gv/LC_MESSAGES/ | ||
share/locale/gv/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ha/ | ||
share/locale/ha/LC_MESSAGES/ | ||
share/locale/ha/LC_MESSAGES/gnome-menus.mo | ||
share/locale/he/LC_MESSAGES/gnome-menus.mo | ||
share/locale/hi/LC_MESSAGES/gnome-menus.mo | ||
share/locale/hr/LC_MESSAGES/gnome-menus.mo | ||
share/locale/hu/LC_MESSAGES/gnome-menus.mo | ||
share/locale/hy/LC_MESSAGES/gnome-menus.mo | ||
share/locale/id/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ig/ | ||
share/locale/ig/LC_MESSAGES/ | ||
share/locale/ig/LC_MESSAGES/gnome-menus.mo | ||
share/locale/io/ | ||
share/locale/io/LC_MESSAGES/ | ||
share/locale/io/LC_MESSAGES/gnome-menus.mo | ||
share/locale/is/LC_MESSAGES/gnome-menus.mo | ||
share/locale/it/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ja/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ka/LC_MESSAGES/gnome-menus.mo | ||
share/locale/kg/ | ||
share/locale/kg/LC_MESSAGES/ | ||
share/locale/kg/LC_MESSAGES/gnome-menus.mo | ||
share/locale/kk/LC_MESSAGES/gnome-menus.mo | ||
share/locale/kn/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ko/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ku/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ky/ | ||
share/locale/ky/LC_MESSAGES/ | ||
share/locale/ky/LC_MESSAGES/gnome-menus.mo | ||
share/locale/lo/ | ||
share/locale/lo/LC_MESSAGES/ | ||
share/locale/lo/LC_MESSAGES/gnome-menus.mo | ||
share/locale/lt/LC_MESSAGES/gnome-menus.mo | ||
share/locale/lv/LC_MESSAGES/gnome-menus.mo | ||
share/locale/mai/LC_MESSAGES/gnome-menus.mo | ||
share/locale/mg/LC_MESSAGES/gnome-menus.mo | ||
share/locale/mk/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ml/LC_MESSAGES/gnome-menus.mo | ||
share/locale/mn/LC_MESSAGES/gnome-menus.mo | ||
share/locale/mr/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ms/LC_MESSAGES/gnome-menus.mo | ||
share/locale/nb/LC_MESSAGES/gnome-menus.mo | ||
share/locale/nds/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ne/LC_MESSAGES/gnome-menus.mo | ||
share/locale/nl/LC_MESSAGES/gnome-menus.mo | ||
share/locale/nn/LC_MESSAGES/gnome-menus.mo | ||
share/locale/oc/LC_MESSAGES/gnome-menus.mo | ||
share/locale/or/LC_MESSAGES/gnome-menus.mo | ||
share/locale/pa/LC_MESSAGES/gnome-menus.mo | ||
share/locale/pl/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ps/LC_MESSAGES/gnome-menus.mo | ||
share/locale/pt/LC_MESSAGES/gnome-menus.mo | ||
share/locale/pt_BR/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ro/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ru/LC_MESSAGES/gnome-menus.mo | ||
share/locale/rw/LC_MESSAGES/gnome-menus.mo | ||
share/locale/si/LC_MESSAGES/gnome-menus.mo | ||
share/locale/sk/LC_MESSAGES/gnome-menus.mo | ||
share/locale/sl/LC_MESSAGES/gnome-menus.mo | ||
share/locale/sq/LC_MESSAGES/gnome-menus.mo | ||
share/locale/sr/LC_MESSAGES/gnome-menus.mo | ||
share/locale/sr@latin/LC_MESSAGES/gnome-menus.mo | ||
share/locale/sv/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ta/LC_MESSAGES/gnome-menus.mo | ||
share/locale/te/LC_MESSAGES/gnome-menus.mo | ||
share/locale/th/LC_MESSAGES/gnome-menus.mo | ||
share/locale/tr/LC_MESSAGES/gnome-menus.mo | ||
share/locale/ug/LC_MESSAGES/gnome-menus.mo | ||
share/locale/uk/LC_MESSAGES/gnome-menus.mo | ||
share/locale/uz@cyrillic/ | ||
share/locale/uz@cyrillic/LC_MESSAGES/ | ||
share/locale/uz@cyrillic/LC_MESSAGES/gnome-menus.mo | ||
share/locale/vi/LC_MESSAGES/gnome-menus.mo | ||
share/locale/xh/LC_MESSAGES/gnome-menus.mo | ||
share/locale/yo/ | ||
share/locale/yo/LC_MESSAGES/ | ||
share/locale/yo/LC_MESSAGES/gnome-menus.mo | ||
share/locale/zh_CN/LC_MESSAGES/gnome-menus.mo | ||
share/locale/zh_HK/LC_MESSAGES/gnome-menus.mo | ||
share/locale/zh_TW/LC_MESSAGES/gnome-menus.mo | ||
@exec %D/bin/update-desktop-database | ||
@unexec-delete %D/bin/update-desktop-database |