summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-12-11 21:02:29 +0000
committermarino <marino@pkgsrc.org>2011-12-11 21:02:29 +0000
commit33c854620faa00c599379e6f39a1fe453b5ddc22 (patch)
treecda01b4f579fdfd00bba1dcf5f496d3104438005
parent9968c95b6ee04de815fe5a0318c9e21c3fcea7c4 (diff)
downloadpkgsrc-33c854620faa00c599379e6f39a1fe453b5ddc22.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.
-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"