From eecc21b9cec4e69235cad99c9aef89b480cd15d7 Mon Sep 17 00:00:00 2001 From: mezz Date: Thu, 26 Apr 2007 19:31:03 +0000 Subject: share/gnome/ -> share/, I didn't touch for ${LOCALBASE}/share/gnome/apps yet. I already have added in my note to do a double check on this to make sure if it will be share/apps/ or share/gnome/apps/ for GNOME1 stuff. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8649 df743ca5-7f9a-e211-a948-0013205c9059 --- x11/gnome-menus/Makefile | 58 ++++ x11/gnome-menus/distinfo | 3 + x11/gnome-menus/files/KDE.directory | 5 + x11/gnome-menus/files/patch-Makefile.in | 11 + .../files/patch-layout::applications.menu | 357 +++++++++++++++++++++ .../files/patch-layout::preferences.menu | 41 +++ ...imple-editor_GMenuSimpleEditor_menutreemodel.py | 20 ++ x11/gnome-menus/pkg-descr | 14 + x11/gnome-menus/pkg-plist | 178 ++++++++++ 9 files changed, 687 insertions(+) create mode 100644 x11/gnome-menus/Makefile create mode 100644 x11/gnome-menus/distinfo create mode 100644 x11/gnome-menus/files/KDE.directory create mode 100644 x11/gnome-menus/files/patch-Makefile.in create mode 100644 x11/gnome-menus/files/patch-layout::applications.menu create mode 100644 x11/gnome-menus/files/patch-layout::preferences.menu create mode 100644 x11/gnome-menus/files/patch-simple-editor_GMenuSimpleEditor_menutreemodel.py create mode 100644 x11/gnome-menus/pkg-descr create mode 100644 x11/gnome-menus/pkg-plist (limited to 'x11') diff --git a/x11/gnome-menus/Makefile b/x11/gnome-menus/Makefile new file mode 100644 index 000000000..7f7a513f1 --- /dev/null +++ b/x11/gnome-menus/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: gnome-menus +# Date created: 30 November 2004 +# Whom: Joe Marcus Clarke +# +# $FreeBSD$ +# $MCom: ports/x11/gnome-menus/Makefile,v 1.50 2007/03/12 22:36:46 marcus Exp $ +# + +PORTNAME= gnome-menus +PORTVERSION= 2.18.0 +PORTREVISION= 1 +CATEGORIES= x11 gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Implementation of the FreeDesktop Desktop Menu Spec + +USE_GETTEXT= yes +USE_BZIP2= yes +USE_XLIB= yes +USE_GMAKE= yes +USE_GNOME= gnomeprefix gnomehack intlhack gnomevfs2 ltverhack +USE_AUTOTOOLS= libtool:15 +USE_PYTHON= yes +USE_LDCONFIG= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +.include + +.if exists(${LOCALBASE}/lib/libfam.so) || !defined(WITHOUT_FAM) +USE_FAM= yes +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|applications.menu||' \ + ${WRKSRC}/layout/Makefile.in + @${REINPLACE_CMD} -e 's|applications.menu|gnome-applications.menu|' \ + ${WRKSRC}/util/test-menu-spec.c + @${REINPLACE_CMD} -e 's|/usr/share/gnome|${LOCALBASE}/share/gnome|g' \ + ${WRKSRC}/layout/applications.menu \ + ${WRKSRC}/layout/settings.menu + @${SED} -e 's|/usr/local|${LOCALBASE}|g' \ + < ${FILESDIR}/KDE.directory > ${WRKSRC}/KDE.directory + @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g ; \ + s|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/simple-editor/GMenuSimpleEditor/menutreemodel.py + +post-install: + @${MKDIR} ${PREFIX}/share/desktop-directories + @${INSTALL_DATA} ${WRKSRC}/layout/applications.menu \ + ${PREFIX}/etc/xdg/menus/gnome-applications.menu + @${INSTALL_DATA} ${WRKSRC}/KDE.directory \ + ${PREFIX}/share/desktop-directories + +.include diff --git a/x11/gnome-menus/distinfo b/x11/gnome-menus/distinfo new file mode 100644 index 000000000..752542ac9 --- /dev/null +++ b/x11/gnome-menus/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/gnome-menus-2.18.0.tar.bz2) = 746f336d4fd427cb2db1691bc53a49d4 +SHA256 (gnome2/gnome-menus-2.18.0.tar.bz2) = f73372cb9f895ae4cee35d56868fcee3e3182aea52f20ce29ffb2aaf86403f1d +SIZE (gnome2/gnome-menus-2.18.0.tar.bz2) = 434900 diff --git a/x11/gnome-menus/files/KDE.directory b/x11/gnome-menus/files/KDE.directory new file mode 100644 index 000000000..d8cacb750 --- /dev/null +++ b/x11/gnome-menus/files/KDE.directory @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=KDE +Comment=Some comment about KDE menu +Icon=/usr/local/share/icons/default.kde/48x48/apps/kmenu.png +Type=Directory diff --git a/x11/gnome-menus/files/patch-Makefile.in b/x11/gnome-menus/files/patch-Makefile.in new file mode 100644 index 000000000..621e0233c --- /dev/null +++ b/x11/gnome-menus/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Mon Jul 24 15:57:52 2006 ++++ Makefile.in Mon Jul 24 15:58:05 2006 +@@ -244,7 +244,7 @@ sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + NULL = +-@HAVE_PYTHON_TRUE@PYTHON_SUBDIRS = python simple-editor ++@HAVE_PYTHON_TRUE@PYTHON_SUBDIRS = python + ALL_SUBDIRS = \ + po \ + libmenu \ diff --git a/x11/gnome-menus/files/patch-layout::applications.menu b/x11/gnome-menus/files/patch-layout::applications.menu new file mode 100644 index 000000000..a3644747b --- /dev/null +++ b/x11/gnome-menus/files/patch-layout::applications.menu @@ -0,0 +1,357 @@ +--- layout/applications.menu.orig Wed Mar 9 11:49:53 2005 ++++ layout/applications.menu Fri Mar 25 11:45:09 2005 +@@ -6,24 +6,26 @@ + Applications + Applications.directory + +- +- +- /etc/X11/applnk ++ + /usr/share/gnome/apps + + + + + +- +- +- + + + Accessories + Accessories.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Utility + + System +@@ -38,6 +40,12 @@ + Accessibility.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Accessibility + + Settings +@@ -52,6 +60,12 @@ + Development.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Development + + emacs.desktop +@@ -64,6 +78,12 @@ + Edutainment.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Education + + +@@ -75,6 +95,12 @@ + Games.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Game + + +@@ -86,6 +112,12 @@ + Graphics.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Graphics + + +@@ -97,6 +129,12 @@ + Internet.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Network + + +@@ -108,6 +146,12 @@ + Multimedia.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + AudioVideo + + +@@ -119,6 +163,12 @@ + Office.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Office + + +@@ -130,6 +180,12 @@ + System-Tools.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + System + Settings + +@@ -143,11 +199,204 @@ + + + ++ ++ ++ Qt ++ KDE ++ ++ + Application + Core + Settings + + + ++ ++ ++ ++ ++ ++ ++ ++ KDE ++ KDE.directory ++ ++ ++ ++ Accessories ++ Accessories.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ Utility ++ ++ System ++ ++ ++ ++ ++ ++ ++ ++ Accessibility ++ Accessibility.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ Accessibility ++ ++ Settings ++ ++ ++ ++ ++ ++ ++ ++ Development ++ Development.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ Development ++ ++ ++ ++ ++ ++ ++ Edutainment ++ Edutainment.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ Education ++ ++ ++ ++ ++ ++ ++ Games ++ Games.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ Game ++ ++ ++ ++ ++ ++ ++ Graphics ++ Graphics.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ Graphics ++ ++ ++ ++ ++ ++ ++ Internet ++ Internet.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ Network ++ ++ ++ ++ ++ ++ ++ Multimedia ++ Multimedia.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ AudioVideo ++ ++ ++ ++ ++ ++ ++ Office ++ Office.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ ++ Office ++ ++ ++ ++ ++ ++ ++ ++ System ++ System-Tools.directory ++ ++ ++ ++ Qt ++ KDE ++ ++ System ++ Settings ++ ++ ++ ++ ++ ++ ++ Other ++ Other.directory ++ ++ ++ ++ ++ Qt ++ KDE ++ ++ Application ++ Core ++ Settings ++ ++ ++ ++ + + diff --git a/x11/gnome-menus/files/patch-layout::preferences.menu b/x11/gnome-menus/files/patch-layout::preferences.menu new file mode 100644 index 000000000..705e0e6cd --- /dev/null +++ b/x11/gnome-menus/files/patch-layout::preferences.menu @@ -0,0 +1,41 @@ +--- layout/preferences.menu.orig Tue Feb 13 04:18:01 2007 ++++ layout/preferences.menu Tue Feb 13 16:54:35 2007 +@@ -9,12 +9,15 @@ + + + +- +- +- + + + ++ ++ ++ Qt ++ KDE ++ ++ + Settings + + +@@ -36,10 +39,19 @@ + Settings-Accessibility.directory + + ++ ++ ++ Qt ++ KDE ++ ++ + Settings + Accessibility + + + ++ ++ ++ + + diff --git a/x11/gnome-menus/files/patch-simple-editor_GMenuSimpleEditor_menutreemodel.py b/x11/gnome-menus/files/patch-simple-editor_GMenuSimpleEditor_menutreemodel.py new file mode 100644 index 000000000..de35a4839 --- /dev/null +++ b/x11/gnome-menus/files/patch-simple-editor_GMenuSimpleEditor_menutreemodel.py @@ -0,0 +1,20 @@ +--- simple-editor/GMenuSimpleEditor/menutreemodel.py.orig Mon Apr 11 05:36:04 2005 ++++ simple-editor/GMenuSimpleEditor/menutreemodel.py Tue Sep 6 11:04:46 2005 +@@ -29,7 +29,7 @@ + if os.environ.has_key ("XDG_CONFIG_DIRS"): + conf_dirs = os.environ["XDG_CONFIG_DIRS"] + if not conf_dirs: +- conf_dirs = "/etc/xdg" ++ conf_dirs = "%%LOCALBASE%%/etc/xdg" + + for conf_dir in conf_dirs.split (":"): + menu_file_path = os.path.join (conf_dir, "menus", menu_file) +@@ -51,7 +51,7 @@ + if os.environ.has_key ("XDG_DATA_DIRS"): + data_dirs = os.environ["XDG_DATA_DIRS"] + if not data_dirs: +- data_dirs = "/usr/local/share/:/usr/share/" ++ data_dirs = "%%LOCALBASE%%/share/:%%X11BASE%%/share/" + + for data_dir in data_dirs.split (":"): + retval = load_icon_from_path (os.path.join (data_dir, "pixmaps", icon_value)) diff --git a/x11/gnome-menus/pkg-descr b/x11/gnome-menus/pkg-descr new file mode 100644 index 000000000..7b27b4e2e --- /dev/null +++ b/x11/gnome-menus/pkg-descr @@ -0,0 +1,14 @@ +This package is free software and is part of the +GNOME project. + +The package contains an implementation of the draft "Desktop +Menu Specification" from freedesktop.org: + + 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. + +-- gnome-menus README + +WWW: http://www.freedesktop.org/Standards/menu-spec diff --git a/x11/gnome-menus/pkg-plist b/x11/gnome-menus/pkg-plist new file mode 100644 index 000000000..0c62b6b62 --- /dev/null +++ b/x11/gnome-menus/pkg-plist @@ -0,0 +1,178 @@ +bin/gnome-menu-spec-test +etc/xdg/menus/gnome-applications.menu +etc/xdg/menus/preferences.menu +etc/xdg/menus/settings.menu +include/gnome-menus/gmenu-tree.h +lib/libgnome-menu.a +lib/libgnome-menu.la +lib/libgnome-menu.so +lib/libgnome-menu.so.2 +%%PYTHON_SITELIBDIR%%/gmenu.a +%%PYTHON_SITELIBDIR%%/gmenu.la +%%PYTHON_SITELIBDIR%%/gmenu.so +libdata/pkgconfig/libgnome-menu.pc +share/desktop-directories/Accessibility.directory +share/desktop-directories/Accessories.directory +share/desktop-directories/Applications.directory +share/desktop-directories/Desktop.directory +share/desktop-directories/Development.directory +share/desktop-directories/Education.directory +share/desktop-directories/Games.directory +share/desktop-directories/Graphics.directory +share/desktop-directories/Hardware.directory +share/desktop-directories/Internet.directory +share/desktop-directories/InternetAndNetwork.directory +share/desktop-directories/KDE.directory +share/desktop-directories/LookAndFeel.directory +share/desktop-directories/Multimedia.directory +share/desktop-directories/Office.directory +share/desktop-directories/Other.directory +share/desktop-directories/Personal.directory +share/desktop-directories/Preferences.directory +share/desktop-directories/Settings-Accessibility.directory +share/desktop-directories/Settings.directory +share/desktop-directories/System-Settings.directory +share/desktop-directories/System-Tools.directory +share/desktop-directories/System.directory +share/locale/ar/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/LC_MESSAGES/gnome-menus.mo +share/locale/ca/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/dz/LC_MESSAGES/gnome-menus.mo +share/locale/el/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/gl/LC_MESSAGES/gnome-menus.mo +share/locale/gn/LC_MESSAGES/gnome-menus.mo +share/locale/gu/LC_MESSAGES/gnome-menus.mo +share/locale/he/LC_MESSAGES/gnome-menus.mo +share/locale/hi/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/it/LC_MESSAGES/gnome-menus.mo +share/locale/ja/LC_MESSAGES/gnome-menus.mo +share/locale/ka/LC_MESSAGES/gnome-menus.mo +share/locale/ko/LC_MESSAGES/gnome-menus.mo +share/locale/ku/LC_MESSAGES/gnome-menus.mo +share/locale/ky/LC_MESSAGES/gnome-menus.mo +share/locale/lt/LC_MESSAGES/gnome-menus.mo +share/locale/lv/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/ne/LC_MESSAGES/gnome-menus.mo +share/locale/nl/LC_MESSAGES/gnome-menus.mo +share/locale/nn/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/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/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@Latn/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/vi/LC_MESSAGES/gnome-menus.mo +share/locale/xh/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 +@dirrm share/desktop-directories +@dirrm include/gnome-menus +@dirrmtry etc/xdg/menus +@dirrmtry etc/xdg +@dirrmtry share/locale/zh_TW/LC_MESSAGES +@dirrmtry share/locale/zh_TW +@dirrmtry share/locale/zh_HK/LC_MESSAGES +@dirrmtry share/locale/zh_HK +@dirrmtry share/locale/zh_CN/LC_MESSAGES +@dirrmtry share/locale/zh_CN +@dirrmtry share/locale/xh/LC_MESSAGES +@dirrmtry share/locale/xh +@dirrmtry share/locale/uk/LC_MESSAGES +@dirrmtry share/locale/uk +@dirrmtry share/locale/ug/LC_MESSAGES +@dirrmtry share/locale/ug +@dirrmtry share/locale/te/LC_MESSAGES +@dirrmtry share/locale/te +@dirrmtry share/locale/sr/LC_MESSAGES +@dirrmtry share/locale/sr +@dirrmtry share/locale/sl/LC_MESSAGES +@dirrmtry share/locale/sl +@dirrmtry share/locale/sk/LC_MESSAGES +@dirrmtry share/locale/sk +@dirrmtry share/locale/rw/LC_MESSAGES +@dirrmtry share/locale/rw +@dirrmtry share/locale/ro/LC_MESSAGES +@dirrmtry share/locale/ro +@dirrmtry share/locale/pt/LC_MESSAGES +@dirrmtry share/locale/pt +@dirrmtry share/locale/pl/LC_MESSAGES +@dirrmtry share/locale/pl +@dirrmtry share/locale/nn/LC_MESSAGES +@dirrmtry share/locale/nn +@dirrmtry share/locale/ne/LC_MESSAGES +@dirrmtry share/locale/ne +@dirrmtry share/locale/mr/LC_MESSAGES +@dirrmtry share/locale/mr +@dirrmtry share/locale/mg/LC_MESSAGES +@dirrmtry share/locale/mg +@dirrmtry share/locale/ky/LC_MESSAGES +@dirrmtry share/locale/ky +@dirrmtry share/locale/ku/LC_MESSAGES +@dirrmtry share/locale/ku +@dirrmtry share/locale/ko/LC_MESSAGES +@dirrmtry share/locale/ko +@dirrmtry share/locale/hy/LC_MESSAGES +@dirrmtry share/locale/hy +@dirrmtry share/locale/gn/LC_MESSAGES +@dirrmtry share/locale/gn +@dirrmtry share/locale/gl/LC_MESSAGES +@dirrmtry share/locale/gl +@dirrmtry share/locale/fi/LC_MESSAGES +@dirrmtry share/locale/fi +@dirrmtry share/locale/el/LC_MESSAGES +@dirrmtry share/locale/el +@dirrmtry share/locale/dz/LC_MESSAGES +@dirrmtry share/locale/dz +@dirrmtry share/locale/cs/LC_MESSAGES +@dirrmtry share/locale/cs +@dirrmtry share/locale/ca/LC_MESSAGES +@dirrmtry share/locale/ca +@dirrmtry share/locale/bn_IN/LC_MESSAGES +@dirrmtry share/locale/bn_IN +@dirrmtry share/locale/be@latin/LC_MESSAGES +@dirrmtry share/locale/be@latin +@dirrmtry share/locale/be/LC_MESSAGES +@dirrmtry share/locale/be -- cgit v1.2.3