summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2021-07-21 15:58:35 +0000
committerhauke <hauke@pkgsrc.org>2021-07-21 15:58:35 +0000
commit070313cf10b9e033cb0efb34789f233d2c3981fb (patch)
treeea7bcb15e0e8f5892aacad59569433f42d6e8a0e /editors
parent675d36fa63acb6667fdcf217be4fdc3ae0fe5743 (diff)
downloadpkgsrc-070313cf10b9e033cb0efb34789f233d2c3981fb.tar.gz
The pkgsrc framework has become more strict, and registering fonts for
installation per FONTS_DIRS.x11 will mandate an X11 dependency. At this point, only the x-symbol package is concerned. Since it needs to be able to cope with a non-graphical console anyway, we install it unconditionally, skip the PLIST dance, and just depend the font registration on X11 availabiluty.
Diffstat (limited to 'editors')
-rw-r--r--editors/xemacs-packages/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/editors/xemacs-packages/Makefile b/editors/xemacs-packages/Makefile
index 1d86e270b6e..b853d238eea 100644
--- a/editors/xemacs-packages/Makefile
+++ b/editors/xemacs-packages/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.76 2021/05/24 19:52:09 wiz Exp $
+# $NetBSD: Makefile,v 1.77 2021/07/21 15:58:35 hauke Exp $
DISTNAME= xemacs-packages
PKGNAME= xemacs-packages-1.18
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_XEMACS:=${XEMACSPKG_PATH}/}
@@ -166,9 +166,18 @@ XEPKGDIR= lib/xemacs/xemacs-packages
INSTALLATION_DIRS+= ${XEPKGDIR}
+PKG_OPTIONS_VAR= PKG_OPTIONS.xemacs-packages
+PKG_SUPPORTED_OPTIONS+= x11
+PKG_SUGGESTED_OPTIONS+= x11
+
+.include "../../mk/bsd.options.mk"
+
+# Only attemppt to register fonts if we have X11 support
+.if !empty(PKG_OPTIONS:Mx11)
FONTS_DIRS.x11+= ${PREFIX}/${XEPKGDIR}/etc/x-symbol/fonts
FONTS_DIRS.x11+= ${PREFIX}/${XEPKGDIR}/etc/x-symbol/origfonts
FONTS_DIRS.x11+= ${PREFIX}/${XEPKGDIR}/etc/x-symbol/pcf
+.endif
REPLACE_PERL= etc/bbdb/bbdb-areacode-split.pl
REPLACE_PERL+= etc/bbdb/bbdb-cid.pl
@@ -233,8 +242,11 @@ pre-configure:
${CHMOD} ugo-x ${WRKSRC}/lisp/erc/ChangeLog.2005.upstream
${FIND} ${WRKSRC} -type f -and -perm -100 \
-and \( -name "*.el" -or -name "*.gif" -or -name "*.jar" \) \
- -exec ${CHMOD} ugo-x \{\} \;
+ -exec ${CHMOD} ugo-x \{\} \+
@${ECHO_MSG} "done"
+.if empty(PKG_OPTIONS:Mx11)
+ ${RM} ${WRKSRC}/etc/x-symbol/pcf/fonts.dir
+.endif
@${ECHO_MSG} "Re-compiling patched elisp files ... "
for ff in `cat ${PATCHDIR}/*.el | awk '/^\\+\\+\\+/ { print $$2 }'` ; do \
${RM} -f ${WRKSRC}/$${ff}.orig ; \