Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Feb 2013 20:54:15 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/175936: [NEW PORT] x11-wm/lxmed: LXDE Main Menu Editor
Message-ID:  <20130207195418.63B88791@hub.freebsd.org>
Resent-Message-ID: <201302072000.r17K00dI080065@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175936
>Category:       ports
>Synopsis:       [NEW PORT] x11-wm/lxmed: LXDE Main Menu Editor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 07 20:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10
>Description:
LXMenuEditor

lxmed is a small, simple, free, open source, easy to use application
that allows you to customize the LXDE menu.

lxmed 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, altough it's specially designed for the LXDE environment.

WWW: http://lxmed.sourceforge.net/

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: new)
>How-To-Repeat:

portlint -A
looks fine.

port test: clean

>Fix:

--- .shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	lxmed
#	lxmed/files
#	lxmed/files/pc-su
#	lxmed/files/lxmed.sh.in
#	lxmed/Makefile
#	lxmed/pkg-descr
#	lxmed/distinfo
#
echo c - lxmed
mkdir -p lxmed > /dev/null 2>&1
echo c - lxmed/files
mkdir -p lxmed/files > /dev/null 2>&1
echo x - lxmed/files/pc-su
sed 's/^X//' >lxmed/files/pc-su << '6bfbd7db770db2c74a9369c2ca175f61'
X#!/bin/sh
X# Wrapper script which finds the right "su" program
X# to use for graphical root execution
X
Xif [ `id -r -u` != "0" ] ; then
X	VARS="`echo $@`"
X	
X	# Try qsu first, should always be the default
X        which qsu >/dev/null 2>/dev/null
X        if [ $? -eq 0 ] ; then
X           qsu $VARS
X           exit $? 
X        fi
X
X	# Now try gksu
X        which gksu >/dev/null 2>/dev/null
X        if [ $? -eq 0 ] ; then
X           gksu -a "$VARS"
X           exit $? 
X        fi
X
X	# Lastly we have kdesu
X        which kdesu >/dev/null 2>/dev/null
X        if [ $? -eq 0 ] ; then
X           kdesu -t -c "$VARS"
X           exit $? 
X        fi
X	
X	# If no utility could be found...
X	echo "No graphical switch-user utility found!"
X	exit 1
Xelse
X	${@}
Xfi
6bfbd7db770db2c74a9369c2ca175f61
echo x - lxmed/files/lxmed.sh.in
sed 's/^X//' >lxmed/files/lxmed.sh.in << '2621300815151400967b9a0fc77475ee'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
Xexport JAVA_VERSION="%%JAVA_VERSION%%"
X
Xcd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" \
X-Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/LXMenuEditor.jar" "${@}"
2621300815151400967b9a0fc77475ee
echo x - lxmed/Makefile
sed 's/^X//' >lxmed/Makefile << '8aec8225461fd6fae6c37e6155a7ec6f'
X# Created by: nemysis@gmx.ch
X# $FreeBSD$
X
XPORTNAME=	lxmed
XPORTVERSION=	20120515
XCATEGORIES=	x11-wm java
XMASTER_SITES=	SF/${PORTNAME}/
XDIST_SUBDIR=	java
X
XMAINTAINER=	nemysis@gmx.ch
XCOMMENT=	LXDE Main Menu Editor
X
XLICENSE=	GPLv3
X
XRUN_DEPENDS=	gksu:${PORTSDIR}/sysutils/gksu
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XUSE_JAVA=	yes
XJAVA_VERSION=	1.6+
XNO_BUILD=	yes
X
XPLIST_FILES=	bin/${PORTNAME} \
X		share/applications/${PORTNAME}-root.desktop \
X		share/applications/${PORTNAME}.desktop \
X		${DATADIR}/LXMenuEditor.jar \
X		${DATADIR}/pc-su \
X		share/pixmaps/${PORTNAME}.png
XPLIST_DIRS=	%%DATADIR%%
XPLIST_DIRSTRY=	share/applications
X
XDATADIR=	${JAVASHAREDIR}/${PORTNAME}
X
XSUB_FILES=	${PORTNAME}.sh
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/opt/lxmed/${PORTNAME}.png|${PREFIX}/share/pixmaps/${PORTNAME}.png|' \
X		-e 's|Main Menu Editor|${COMMENT}|g' \
X		${WRKSRC}/content/${PORTNAME}.desktop
X	@(cd ${WRKSRC}/content/ && ${CP} -a ${PORTNAME}.desktop ${PORTNAME}-root.desktop)
X	@${REINPLACE_CMD} -e 's|Exec=lxmed|Exec=${DATADIR}/pc-su ${PORTNAME}|' \
X		-e 's|${COMMENT}|${COMMENT} (as root)|g' \
X		${WRKSRC}/content/${PORTNAME}-root.desktop
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
X	${MKDIR} ${DATADIR}
X	${CP} -a ${FILESDIR}/pc-su ${DATADIR}/
X	${INSTALL_DATA} ${WRKSRC}/content/LXMenuEditor.jar ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/content/${PORTNAME}.png ${PREFIX}/share/pixmaps/
X	${MKDIR} ${PREFIX}/share/applications
X.for i in ${PORTNAME}.desktop ${PORTNAME}-root.desktop
X	${INSTALL_DATA} ${WRKSRC}/content/${i} ${PREFIX}/share/applications/
X.endfor
X
X.include <bsd.port.mk>
8aec8225461fd6fae6c37e6155a7ec6f
echo x - lxmed/pkg-descr
sed 's/^X//' >lxmed/pkg-descr << 'aad25c8771ad71a89fa36e393e02c33d'
XLXMenuEditor
X
Xlxmed is a small, simple, free, open source, easy to use application
Xthat allows you to customize the LXDE menu.
X
Xlxmed is very useful for people that want to create their own,
Xcustomized menus for LXDE.
X
XThis editor can also be used to customize GNOME's main menu and menus
Xof other enviroments, altough it's specially designed for the LXDE environment.
X
XWWW: http://lxmed.sourceforge.net/
aad25c8771ad71a89fa36e393e02c33d
echo x - lxmed/distinfo
sed 's/^X//' >lxmed/distinfo << '408abe8db601e6fa6286ba97c03532e7'
XSHA256 (java/lxmed-20120515.tar.gz) = 156318768dc4440fdf851cb7eeedfa96678382eca05ce52a8766936ab5d10cca
XSIZE (java/lxmed-20120515.tar.gz) = 80181
408abe8db601e6fa6286ba97c03532e7
exit
--- .shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130207195418.63B88791>