svn commit: r330799 - in head/x11-wm: . lxmed lxmed/files
Rusmir Dusko
nemysis at FreeBSD.org
Fri Oct 18 23:43:36 UTC 2013
Author: nemysis
Date: Fri Oct 18 23:43:34 2013
New Revision: 330799
URL: http://svnweb.freebsd.org/changeset/ports/330799
Log:
LXMenuEditor is a small, simple, free, open source, easy to use application
that allows you to customize the LXDE menu.
LXMenuEditor is very useful for people that want to create their own,
customized menus for LXDE.
This editor can also be used to customize GNOME's main menu and menus
of other enviroments, although it's specially designed for the LXDE environment.
WWW: http://lxmed.sourceforge.net/
PR: ports/175936
Submitted by: nemysis (self)
Approved by: pawel (mentor)
Added:
head/x11-wm/lxmed/
head/x11-wm/lxmed/Makefile (contents, props changed)
head/x11-wm/lxmed/distinfo (contents, props changed)
head/x11-wm/lxmed/files/
head/x11-wm/lxmed/files/lxmed.sh.in (contents, props changed)
head/x11-wm/lxmed/files/pc-su (contents, props changed)
head/x11-wm/lxmed/pkg-descr (contents, props changed)
head/x11-wm/lxmed/pkg-plist (contents, props changed)
Modified:
head/x11-wm/Makefile
Modified: head/x11-wm/Makefile
==============================================================================
--- head/x11-wm/Makefile Fri Oct 18 23:42:09 2013 (r330798)
+++ head/x11-wm/Makefile Fri Oct 18 23:43:34 2013 (r330799)
@@ -109,6 +109,7 @@
SUBDIR += libdockapp
SUBDIR += libwraster
SUBDIR += lwm
+ SUBDIR += lxmed
SUBDIR += lxsession
SUBDIR += matwm2
SUBDIR += mcwm
Added: head/x11-wm/lxmed/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/lxmed/Makefile Fri Oct 18 23:43:34 2013 (r330799)
@@ -0,0 +1,48 @@
+# Created by: Rusmir Dusko <nemysis at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= lxmed
+PORTVERSION= 20120515
+CATEGORIES= x11-wm java
+MASTER_SITES= SF/${PORTNAME}/
+DIST_SUBDIR= java
+
+MAINTAINER= nemysis at FreeBSD.org
+COMMENT= LXDE Main Menu Editor
+
+LICENSE= GPLv3
+
+RUN_DEPENDS= gksu:${PORTSDIR}/sysutils/gksu
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_JAVA= yes
+JAVA_VERSION= 1.6+
+NO_BUILD= yes
+
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
+SUB_FILES= ${PORTNAME}.sh
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/opt/lxmed/${PORTNAME}.png|${PREFIX}/share/pixmaps/${PORTNAME}.png|' \
+ -e 's|Main Menu Editor|${COMMENT}|g' \
+ ${WRKSRC}/content/${PORTNAME}.desktop
+ @(cd ${WRKSRC}/content/ && ${CP} -a ${PORTNAME}.desktop ${PORTNAME}-root.desktop)
+ @${REINPLACE_CMD} -e 's|Exec=lxmed|Exec=${DATADIR}/pc-su ${PORTNAME}|' \
+ -e 's|${COMMENT}|${COMMENT} (as root)|g' \
+ ${WRKSRC}/content/${PORTNAME}-root.desktop
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${CP} -a ${FILESDIR}/pc-su ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/content/LXMenuEditor.jar ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/content/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+
+.for d in ${PORTNAME}.desktop ${PORTNAME}-root.desktop
+ ${INSTALL_DATA} ${WRKSRC}/content/${d} ${STAGEDIR}${DESKTOPDIR}
+.endfor
+
+.include <bsd.port.mk>
Added: head/x11-wm/lxmed/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/lxmed/distinfo Fri Oct 18 23:43:34 2013 (r330799)
@@ -0,0 +1,2 @@
+SHA256 (java/lxmed-20120515.tar.gz) = 156318768dc4440fdf851cb7eeedfa96678382eca05ce52a8766936ab5d10cca
+SIZE (java/lxmed-20120515.tar.gz) = 80181
Added: head/x11-wm/lxmed/files/lxmed.sh.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/lxmed/files/lxmed.sh.in Fri Oct 18 23:43:34 2013 (r330799)
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+export JAVA_VERSION="%%JAVA_VERSION%%"
+
+cd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" \
+-Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/LXMenuEditor.jar" "${@}"
Added: head/x11-wm/lxmed/files/pc-su
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/lxmed/files/pc-su Fri Oct 18 23:43:34 2013 (r330799)
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Wrapper script which finds the right "su" program
+# to use for graphical root execution
+
+if [ `id -r -u` != "0" ] ; then
+ VARS="`echo $@`"
+
+ # Try qsudo first, should always be the default
+ which qsudo >/dev/null 2>/dev/null
+ if [ $? -eq 0 ] ; then
+ qsudo $VARS
+ exit $?
+ fi
+
+ # Now try gksu
+ which gksu >/dev/null 2>/dev/null
+ if [ $? -eq 0 ] ; then
+ gksu -a "$VARS"
+ exit $?
+ fi
+
+ # Lastly we have kdesu
+ which kdesu >/dev/null 2>/dev/null
+ if [ $? -eq 0 ] ; then
+ kdesu -t -c "$VARS"
+ exit $?
+ fi
+
+ # If no utility could be found...
+ echo "No graphical switch-user utility found!"
+ exit 1
+else
+ ${@}
+fi
Added: head/x11-wm/lxmed/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/lxmed/pkg-descr Fri Oct 18 23:43:34 2013 (r330799)
@@ -0,0 +1,10 @@
+LXMenuEditor is a small, simple, free, open source, easy to use application
+that allows you to customize the LXDE menu.
+
+LXMenuEditor is very useful for people that want to create their own,
+customized menus for LXDE.
+
+This editor can also be used to customize GNOME's main menu and menus
+of other enviroments, although it's specially designed for the LXDE environment.
+
+WWW: http://lxmed.sourceforge.net/
Added: head/x11-wm/lxmed/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/lxmed/pkg-plist Fri Oct 18 23:43:34 2013 (r330799)
@@ -0,0 +1,8 @@
+bin/lxmed
+share/applications/lxmed-root.desktop
+share/applications/lxmed.desktop
+%%DATADIR%%/LXMenuEditor.jar
+%%DATADIR%%/pc-su
+share/pixmaps/lxmed.png
+ at dirrm %%DATADIR%%
+ at dirrmtry share/applications
More information about the svn-ports-head
mailing list