pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors editors/xemacs{,-current} - Install an xemacs....
details: https://anonhg.NetBSD.org/pkgsrc/rev/aa40fcfb6b36
branches: trunk
changeset: 439663:aa40fcfb6b36
user: hauke <hauke%pkgsrc.org@localhost>
date: Thu Sep 24 11:51:47 2020 +0000
description:
editors/xemacs{,-current} - Install an xemacs.desktop file, which makes
XEmacs more easily available to X11 desktop applications.
diffstat:
editors/xemacs-current/Makefile | 17 +++++++++++++++--
editors/xemacs-current/Makefile.common | 11 ++++++++++-
editors/xemacs-current/PLIST | 4 +++-
editors/xemacs/Makefile | 13 +++++++++++--
editors/xemacs/Makefile.common | 9 ++++++++-
editors/xemacs/PLIST | 4 +++-
editors/xemacs/files/xemacs.desktop | 12 ++++++++++++
7 files changed, 62 insertions(+), 8 deletions(-)
diffs (181 lines):
diff -r 2bcce145e18f -r aa40fcfb6b36 editors/xemacs-current/Makefile
--- a/editors/xemacs-current/Makefile Thu Sep 24 11:21:40 2020 +0000
+++ b/editors/xemacs-current/Makefile Thu Sep 24 11:51:47 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.104 2020/08/31 18:09:26 wiz Exp $
+# $NetBSD: Makefile,v 1.105 2020/09/24 11:51:48 hauke Exp $
PKGNAME= ${DISTNAME}
-PKGREVISION= 12
+PKGREVISION= 13
COMMENT= *BETA* XEmacs text editor version ${PKGVERSION_NOREV}
# extra options for x11 support, not for sharing with xemacs-current-nox11
@@ -11,5 +11,18 @@
PKG_SUGGESTED_OPTIONS+= x11
.include "options.mk"
+
+LIBDIR= ${PREFIX}/lib/${DISTNAME}
+
+SUBST_CLASSES+= desktop-file
+SUBST_STAGE.desktop-file= pre-configure
+SUBST_MESSAGE.desktop-file= Fixing paths in XEmacs desktop file
+SUBST_VARS.desktop-file= PREFIX LIBDIR
+SUBST_FILES.desktop-file= etc/xemacs.desktop
+
+INSTALLATION_DIRS+= share/applications
+
.include "Makefile.common"
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 2bcce145e18f -r aa40fcfb6b36 editors/xemacs-current/Makefile.common
--- a/editors/xemacs-current/Makefile.common Thu Sep 24 11:21:40 2020 +0000
+++ b/editors/xemacs-current/Makefile.common Thu Sep 24 11:51:47 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.15 2020/01/26 17:31:08 rillig Exp $
+# $NetBSD: Makefile.common,v 1.16 2020/09/24 11:51:48 hauke Exp $
#
# used by editors/xemacs-current/Makefile
# used by editors/xemacs-current-nox11/Makefile
@@ -58,6 +58,15 @@
CPPFLAGS+= -DTERMINFO
.endif
+.if !empty(PKG_OPTIONS:Mx11)
+post-extract:
+ cp ${.CURDIR}/../../editors/xemacs/files/xemacs.desktop ${WRKSRC}/etc/
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/etc/xemacs.desktop \
+ ${DESTDIR}${PREFIX}/share/applications/
+.endif
+
.include "../../databases/gdbm/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
diff -r 2bcce145e18f -r aa40fcfb6b36 editors/xemacs-current/PLIST
--- a/editors/xemacs-current/PLIST Thu Sep 24 11:21:40 2020 +0000
+++ b/editors/xemacs-current/PLIST Thu Sep 24 11:51:47 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.24 2017/11/17 14:17:17 hauke Exp $
+@comment $NetBSD: PLIST,v 1.25 2020/09/24 11:51:48 hauke Exp $
bin/ellcc
bin/gnuattach
bin/gnuclient
@@ -694,6 +694,7 @@
lib/${DISTNAME}/etc/xemacs-icon2.xpm
lib/${DISTNAME}/etc/xemacs-icon3.xpm
lib/${DISTNAME}/etc/xemacs.1
+${PLIST.x11}lib/${DISTNAME}/etc/xemacs.desktop
lib/${DISTNAME}/etc/xemacs.xbm
lib/${DISTNAME}/etc/xemacs.xpm
lib/${DISTNAME}/lisp/ChangeLog
@@ -1252,5 +1253,6 @@
lib/${DISTNAME}/lisp/x-win-sun.elc
lib/${DISTNAME}/lisp/x-win-xfree86.el
lib/${DISTNAME}/lisp/x-win-xfree86.elc
+${PLIST.x11}share/applications/xemacs.desktop
@pkgdir lib/xemacs/site-lisp
@pkgdir lib/xemacs/site-modules
diff -r 2bcce145e18f -r aa40fcfb6b36 editors/xemacs/Makefile
--- a/editors/xemacs/Makefile Thu Sep 24 11:21:40 2020 +0000
+++ b/editors/xemacs/Makefile Thu Sep 24 11:51:47 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.130 2020/08/31 18:09:26 wiz Exp $
+# $NetBSD: Makefile,v 1.131 2020/09/24 11:51:47 hauke Exp $
PKGNAME= ${DISTNAME}
-PKGREVISION= 12
+PKGREVISION= 13
COMMENT= XEmacs text editor version 21.4
# extra options for x11 support, not for sharing with xemacs-current-nox11
@@ -12,6 +12,15 @@
.include "options.mk"
+SUBST_CLASSES+= desktop-file
+SUBST_STAGE.desktop-file= pre-configure
+SUBST_MESSAGE.desktop-file= Fixing paths in XEmacs desktop file
+SUBST_VARS.desktop-file= PREFIX LIBDIR
+SUBST_FILES.desktop-file= etc/xemacs.desktop
+
+INSTALLATION_DIRS+= share/applications
+
.include "Makefile.common"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 2bcce145e18f -r aa40fcfb6b36 editors/xemacs/Makefile.common
--- a/editors/xemacs/Makefile.common Thu Sep 24 11:21:40 2020 +0000
+++ b/editors/xemacs/Makefile.common Thu Sep 24 11:51:47 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.34 2020/01/26 17:31:08 rillig Exp $
+# $NetBSD: Makefile.common,v 1.35 2020/09/24 11:51:47 hauke Exp $
#
# used by editors/xemacs-nox11/Makefile
# used by editors/xemacs/Makefile
@@ -95,6 +95,9 @@
post-extract:
cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s/
+.if !empty(PKG_OPTIONS:Mx11)
+ cp ${FILESDIR}/xemacs.desktop ${WRKSRC}/etc/
+.endif
pre-build:
rm -f ${WRKSRC}/etc/ctags.1.orig
@@ -105,6 +108,10 @@
.if defined(MANZ)
find ${DESTDIR}${LIBDIR} -name "*.el" -type f -print | xargs ${GZIP_CMD}
.endif
+.if !empty(PKG_OPTIONS:Mx11)
+ ${INSTALL_DATA} ${WRKSRC}/etc/xemacs.desktop \
+ ${DESTDIR}${PREFIX}/share/applications/
+.endif
.include "../../databases/gdbm/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
diff -r 2bcce145e18f -r aa40fcfb6b36 editors/xemacs/PLIST
--- a/editors/xemacs/PLIST Thu Sep 24 11:21:40 2020 +0000
+++ b/editors/xemacs/PLIST Thu Sep 24 11:51:47 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.21 2015/02/15 13:13:24 hauke Exp $
+@comment $NetBSD: PLIST,v 1.22 2020/09/24 11:51:47 hauke Exp $
bin/${DISTNAME}
bin/ellcc
bin/gnuattach
@@ -393,6 +393,7 @@
lib/${DISTNAME}/etc/xemacs-icon3.xpm
lib/${DISTNAME}/etc/xemacs-ja.1
lib/${DISTNAME}/etc/xemacs.1
+${PLIST.x11}lib/${DISTNAME}/etc/xemacs.desktop
lib/${DISTNAME}/etc/xemacs.xbm
lib/${DISTNAME}/etc/xemacs.xpm
lib/${DISTNAME}/${MACHINE_GNU_PLATFORM}/DOC
@@ -1264,6 +1265,7 @@
man/man1/xemacs-ctags.1
man/man1/xemacs-etags.1
man/man1/xemacs.1
+${PLIST.x11}share/applications/xemacs.desktop
@pkgdir lib/${DISTNAME}/${MACHINE_GNU_PLATFORM}/modules
@pkgdir lib/xemacs/site-modules
@pkgdir lib/xemacs/site-lisp
diff -r 2bcce145e18f -r aa40fcfb6b36 editors/xemacs/files/xemacs.desktop
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/xemacs/files/xemacs.desktop Thu Sep 24 11:51:47 2020 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: xemacs.desktop,v 1.1 2020/09/24 11:51:47 hauke Exp $
+
+[Desktop Entry]
+Type=Application
+Name=XEmacs
+GenericName=Advanced Text Editor
+Comment=Highly customizable open source text editor and application development system
+MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
+Exec=@PREFIX@/bin/xemacs %F
+Icon=@LIBDIR@/etc/xemacs-icon.xpm
+Categories=Development;Office;System;Utility
+StartupWMClass=XEmacs
Home |
Main Index |
Thread Index |
Old Index