From d329af229d9d97817d45e560640b5a60b27caab6 Mon Sep 17 00:00:00 2001 From: miwi Date: Fri, 18 May 2012 04:40:24 +0000 Subject: XDG-Menu is a ROX panel applet that displays applications menu button. Menu is builds to fit the XDG Menu Specification published by freedesktop.org. WWW: http://xdg-menu.sourceforge.net/ PR: ports/167693 Submitted by: nemysis@gmx.ch --- misc/Makefile | 1 + misc/xdg-menu/Makefile | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ misc/xdg-menu/distinfo | 2 ++ misc/xdg-menu/pkg-descr | 4 ++++ misc/xdg-menu/pkg-plist | 35 +++++++++++++++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 misc/xdg-menu/Makefile create mode 100644 misc/xdg-menu/distinfo create mode 100644 misc/xdg-menu/pkg-descr create mode 100644 misc/xdg-menu/pkg-plist (limited to 'misc') diff --git a/misc/Makefile b/misc/Makefile index c39d45968809..26e6bda62a7f 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -562,6 +562,7 @@ SUBDIR += xd SUBDIR += xdelta SUBDIR += xdelta3 + SUBDIR += xdg-menu SUBDIR += xfce4-appfinder SUBDIR += xfce4-artwork SUBDIR += xfce4-weather-plugin diff --git a/misc/xdg-menu/Makefile b/misc/xdg-menu/Makefile new file mode 100644 index 000000000000..c0d76ea2b184 --- /dev/null +++ b/misc/xdg-menu/Makefile @@ -0,0 +1,55 @@ +# New Ports collection makefile for: XDG-Menu +# Date created: 2012-05-07 +# Whom: nemysis@gmx.ch +# +# $FreeBSD$ +# + +PORTNAME= menu +PORTVERSION= 1.5 +CATEGORIES= misc +MASTER_SITES= SF/xdg-menu/xdg-menu/${PORTVERSION} +PKGNAMEPREFIX= xdg- +DISTNAME= XDG-Menu-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= nemysis@gmx.ch +COMMENT= A ROX panel applet that displays an applications menu button + +LICENSE= GPLv2 + +RUN_DEPENDS= ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \ + ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \ + ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus + +WRKSRC= ${WRKDIR}/XDG-Menu +DATADIR= ${PREFIX}/apps/XDG-Menu + +FETCH_ARGS?= -Fpr +USE_PYTHON= yes +ALL_TARGET= +NO_BUILD= yes + +OPTIONS= ROX "Enable ROX panel applet support" no + +.include + +.if defined(WITHOUT_ROX) +post-patch: + @${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' ${WRKSRC}/AppRun + @${ECHO_MSG} + @${ECHO_MSG} "You have not enabled ROX panel applet support" + @${ECHO_MSG} + @${FIND} ${WRKSRC} -name "*.bak" -delete +.endif + +do-install: +# Scripts + @${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\ + ./AppRun\n" > ${WRKDIR}/xdg-menu.sh + @${INSTALL_SCRIPT} ${WRKDIR}/xdg-menu.sh ${PREFIX}/bin/xdg-menu +# Executable and Data + ${MKDIR} ${DATADIR} + @cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR} + +.include diff --git a/misc/xdg-menu/distinfo b/misc/xdg-menu/distinfo new file mode 100644 index 000000000000..9f07e829c261 --- /dev/null +++ b/misc/xdg-menu/distinfo @@ -0,0 +1,2 @@ +SHA256 (XDG-Menu-1.5.tgz) = 5cd62f3421032c4b619b80fde7e7cdc3230409489762e5c05ffd82d7c9c28478 +SIZE (XDG-Menu-1.5.tgz) = 32377 diff --git a/misc/xdg-menu/pkg-descr b/misc/xdg-menu/pkg-descr new file mode 100644 index 000000000000..37de2af35921 --- /dev/null +++ b/misc/xdg-menu/pkg-descr @@ -0,0 +1,4 @@ +XDG-Menu is a ROX panel applet that displays applications menu button. +Menu is builds to fit the XDG Menu Specification published by freedesktop.org. + +WWW: http://xdg-menu.sourceforge.net/ diff --git a/misc/xdg-menu/pkg-plist b/misc/xdg-menu/pkg-plist new file mode 100644 index 000000000000..183d3455f148 --- /dev/null +++ b/misc/xdg-menu/pkg-plist @@ -0,0 +1,35 @@ +apps/XDG-Menu/.DirIcon +apps/XDG-Menu/AppInfo.xml +apps/XDG-Menu/AppRun +apps/XDG-Menu/AppletRun +apps/XDG-Menu/Help/COPYING +apps/XDG-Menu/Help/ChangeLog +apps/XDG-Menu/Help/README +apps/XDG-Menu/Help/README.ru +apps/XDG-Menu/Help/TODO +apps/XDG-Menu/Makefile +apps/XDG-Menu/Messages/XDG-Menu.pot +apps/XDG-Menu/Messages/it.gmo +apps/XDG-Menu/Messages/it.po +apps/XDG-Menu/Messages/opts2po.py +apps/XDG-Menu/Messages/ru.gmo +apps/XDG-Menu/Messages/ru.po +apps/XDG-Menu/Messages/uk.gmo +apps/XDG-Menu/Messages/uk.po +apps/XDG-Menu/Options.xml +apps/XDG-Menu/findrox.py +apps/XDG-Menu/python/config.py +apps/XDG-Menu/python/ctxmenu.py +apps/XDG-Menu/python/dndsource.py +apps/XDG-Menu/python/i18n.py +apps/XDG-Menu/python/imagemenu.py +apps/XDG-Menu/python/main.py +apps/XDG-Menu/python/roxmenu.py +apps/XDG-Menu/python/xdgmenu.py +bin/xdg-menu +@dirrmtry share/applications +@dirrm apps/XDG-Menu/python +@dirrm apps/XDG-Menu/Messages +@dirrm apps/XDG-Menu/Help +@dirrm apps/XDG-Menu +@dirrmtry apps -- cgit