summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authormarino <marino>2011-12-11 21:02:29 +0000
committermarino <marino>2011-12-11 21:02:29 +0000
commit7c90e359de97a89a5a3b31af0b896a8c4982ed1d (patch)
treecda01b4f579fdfd00bba1dcf5f496d3104438005 /editors
parent2e612b25b76017c1f71cfc8a7059c613cd66dcab (diff)
downloadpkgsrc-7c90e359de97a89a5a3b31af0b896a8c4982ed1d.tar.gz
editors/emacs-nox11: Update emacs.desktop to launch in Terminal
Tweak behavior of emacs-nox11 launched from gnome or kde desktop. This change makes emacs-nox11 always get launched inside a terminal from those desktops.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs-nox11/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/editors/emacs-nox11/Makefile b/editors/emacs-nox11/Makefile
index e7cd9d64def..1aac32d90b3 100644
--- a/editors/emacs-nox11/Makefile
+++ b/editors/emacs-nox11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2010/06/01 21:47:00 minskim Exp $
+# $NetBSD: Makefile,v 1.32 2011/12/11 21:02:29 marino Exp $
PKGNAME= ${DISTNAME:S/-/-nox11-/}
@@ -15,4 +15,11 @@ CONFIGURE_ARGS+= --without-dbus --without-m17n-flt --without-otf \
--without-gif --without-jpeg --without-png \
--without-tiff --without-xpm
+## Update emacs.desktop to launch emacs-nox11 in Terminal
+SUBST_CLASSES+= term
+SUBST_STAGE.term= post-patch
+SUBST_MESSAGE.term= Enabling desktop launch in Terminal
+SUBST_FILES.term= etc/emacs.desktop
+SUBST_SED.term= -e 's,^Terminal=.*,Terminal=true,'
+
.include "../../mk/bsd.pkg.mk"