pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/hanzim Improve the error message if an Xserver is...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c9fed92b7024
branches: trunk
changeset: 514993:c9fed92b7024
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Jun 21 18:33:18 2006 +0000
description:
Improve the error message if an Xserver is not running during
installation. Remove the BROKEN_IN tag as there are extenuating
circumstances for why this can't install. Also, remove some useless
shell commands that should be re-added as MAKE_ENV after more testing
is done.
diffstat:
misc/hanzim/Makefile | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diffs (44 lines):
diff -r 2c13c24c0bdb -r c9fed92b7024 misc/hanzim/Makefile
--- a/misc/hanzim/Makefile Wed Jun 21 18:33:14 2006 +0000
+++ b/misc/hanzim/Makefile Wed Jun 21 18:33:18 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2006/05/18 20:29:59 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2006/06/21 18:33:18 jlam Exp $
#
DISTNAME= hanzim-1.3
@@ -11,22 +11,25 @@
HOMEPAGE= http://zakros.ucsd.edu/~arobert/hanzim.html
COMMENT= Chinese character learning-aid program
-BROKEN_IN= pkgsrc-2006Q1
-
WRKSRC= ${WRKDIR}/Hanzim
BUILD_TARGET= hanzim
-pre-install:
- @if [ "$$DISPLAY" = "" ]; then \
- ${ECHO} "${DISTNAME} can only be installed under X11."; \
- exit 1; \
- else \
- ${SETENV} SHELL=${SH:Q}; export LC_CTYPE=en_US.ISO8859-1; \
- fi
+# XXX This is presumably needed during installation according to revision
+# XXX 1.1 of this Makefile, but needs to be tested.
+# XXX
+#MAKE_ENV+= SHELL=${SH:Q} LC_CTYPE=en_US.ISO8859-1
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
+
+pre-install:
+ @if ${TEST} -z "$$DISPLAY"; then \
+ ${ERROR_MSG} "${PKGNAME} runs a binary during installation"; \
+ ${ERROR_MSG} "that requires an Xserver to be running."; \
+ exit 1; \
+ fi
+
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index