ports/90971: [patch] Install a menu entry for sysutils/bpm
"Panagiotis Astithas" <Panagiotis Astithas
past at ebs.gr
Tue Dec 27 09:30:25 UTC 2005
>Number: 90971
>Category: ports
>Synopsis: [patch] Install a menu entry for sysutils/bpm
>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: Tue Dec 27 09:30:06 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Panagiotis Astithas
>Release: FreeBSD 6.0-STABLE i386
>Organization:
EBS Ltd.
>Environment:
System: FreeBSD 6.0-STABLE #4: Thu Dec 22 19:57:57 EET 2005
past at ajax.ebs.gr:/usr/obj/usr/src/sys/AJAX
>Description:
This patch installs a menu entry for sysutils/bpm in GNOME, KDE, etc.
that allows a user to be aware of its existence and able to run it without
using the command line. I invoke it via gnomesu in order to be actually
useful for installing ports right away.
>How-To-Repeat:
>Fix:
--- bpm.patch begins here ---
diff -ruN /usr/ports/sysutils/bpm/Makefile bpm/Makefile
--- /usr/ports/sysutils/bpm/Makefile Thu Dec 8 18:24:32 2005
+++ bpm/Makefile Mon Dec 19 23:41:21 2005
@@ -18,7 +18,7 @@
RUN_DEPENDS= portupgrade:${PORTSDIR}/sysutils/portupgrade
USE_X_PREFIX= yes
-USE_GNOME= gtk20
+USE_GNOME= gtk20 desktopfileutils
USE_REINPLACE= yes
MAKE_ENV+= OSTYPE="${OPSYS}"
@@ -29,5 +29,11 @@
# GnomeVFS needs pthread; bpm may use GnomeVFS (via GtkFileChooser)
@${REINPLACE_CMD} -e 's|^CFLAGS+=|& ${PTHREAD_CFLAGS}|; \
s|^LDLIBS+=|& ${PTHREAD_LIBS}|' ${WRKSRC}/src/Makefile
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/bpm.desktop.in \
+ > ${WRKSRC}/bpm.desktop
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/bpm.desktop ${PREFIX}/share/applications/bpm.desktop
+ @-update-desktop-database
.include <bsd.port.mk>
diff -ruN /usr/ports/sysutils/bpm/files/bpm.desktop.in bpm/files/bpm.desktop.in
--- /usr/ports/sysutils/bpm/files/bpm.desktop.in Thu Jan 1 02:00:00 1970
+++ bpm/files/bpm.desktop.in Tue Dec 20 00:20:46 2005
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Comment=The BSD Ports Manipulator
+Name=BPM
+Exec=gnomesu %%PREFIX%%/bin/bpm
+Encoding=UTF-8
+Terminal=false
+Type=Application
+Icon=%%PREFIX%%/share/bpm/pixmaps/pkg_48.png
+Categories=Application;System;
diff -ruN /usr/ports/sysutils/bpm/pkg-plist bpm/pkg-plist
--- /usr/ports/sysutils/bpm/pkg-plist Tue Aug 24 07:21:59 2004
+++ bpm/pkg-plist Mon Dec 19 23:33:24 2005
@@ -9,6 +9,9 @@
%%DATADIR%%/pixmaps/pkg_48.png
%%DATADIR%%/pixmaps/lock_48.png
share/locale/en_CA/LC_MESSAGES/bpm.mo
+share/applications/bpm.desktop
+ at exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
@dirrm libexec/bpm
@dirrm %%DATADIR%%/pixmaps
@dirrm %%DATADIR%%
+ at unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
--- bpm.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list