summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2018-02-08 09:43:32 +0000
committerhauke <hauke@pkgsrc.org>2018-02-08 09:43:32 +0000
commitd8e0aaa618b01bef53aae65425aec0623cef8f9d (patch)
tree217c57fe198aa5a219036078a4f101c140ac0f77 /cad
parent11e070d1b6bcf5f8a6b453334b19627bae6c75dc (diff)
downloadpkgsrc-d8e0aaa618b01bef53aae65425aec0623cef8f9d.tar.gz
Get rid of spurious error message when started from a window manager
Install man page
Diffstat (limited to 'cad')
-rw-r--r--cad/xcircuit/Makefile5
-rw-r--r--cad/xcircuit/PLIST4
-rw-r--r--cad/xcircuit/distinfo3
-rw-r--r--cad/xcircuit/patches/patch-lib_tcl_xcircuit.sh.in16
4 files changed, 23 insertions, 5 deletions
diff --git a/cad/xcircuit/Makefile b/cad/xcircuit/Makefile
index 46b5f5a1257..3be9a79a52c 100644
--- a/cad/xcircuit/Makefile
+++ b/cad/xcircuit/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.45 2018/02/07 11:58:31 hauke Exp $
+# $NetBSD: Makefile,v 1.46 2018/02/08 09:43:32 hauke Exp $
DISTNAME= xcircuit-3.9.72
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= cad graphics
MASTER_SITES= http://opencircuitdesign.com/xcircuit/archive/
EXTRACT_SUFX= .tgz
@@ -37,6 +37,7 @@ post-extract:
${TOUCH} ${WRKSRC}/menudep.h
post-install:
+ ${INSTALL_DATA} ${WRKSRC}/lib/xcircuit.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/examples/*.* ${DESTDIR}${PREFIX}/${EGDIR}
${INSTALL_DATA} ${WRKSRC}/examples/xcircuitrc ${DESTDIR}${PREFIX}/${EGDIR}
diff --git a/cad/xcircuit/PLIST b/cad/xcircuit/PLIST
index 94b61932757..41bab08157f 100644
--- a/cad/xcircuit/PLIST
+++ b/cad/xcircuit/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2018/02/07 11:58:31 hauke Exp $
+@comment $NetBSD: PLIST,v 1.9 2018/02/08 09:43:32 hauke Exp $
bin/xcircuit
lib/xcircuit-3.9/analog.lps
lib/xcircuit-3.9/analoglib2.lps
@@ -124,6 +124,7 @@ lib/xcircuit-3.9/xcircuit.so
lib/xcircuit-3.9/xcircuit.tcl
lib/xcircuit-3.9/xcstartup.tcl
lib/xcircuit-3.9/xspice.lps
+man/man1/xcircuit.1
share/examples/xcircuit/FlareLED.ps
share/examples/xcircuit/USAflag.ps
share/examples/xcircuit/analog1.ps
@@ -147,4 +148,3 @@ share/examples/xcircuit/vcoblock.ps
share/examples/xcircuit/xc_remote.sh
share/examples/xcircuit/xcclock.ps
share/examples/xcircuit/xcircuitrc
-@pkgdir man/man1
diff --git a/cad/xcircuit/distinfo b/cad/xcircuit/distinfo
index a90317a0369..fa9e99c00c4 100644
--- a/cad/xcircuit/distinfo
+++ b/cad/xcircuit/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2018/02/07 11:58:31 hauke Exp $
+$NetBSD: distinfo,v 1.20 2018/02/08 09:43:32 hauke Exp $
SHA1 (xcircuit-3.9.72.tgz) = d08137afb8f990e1b06aa842f1e80c0e00d8c0d7
RMD160 (xcircuit-3.9.72.tgz) = abb7eb3ffb1bfcd2c515537d43f4ba240c6f1508
@@ -6,3 +6,4 @@ SHA512 (xcircuit-3.9.72.tgz) = daaca69bdd29f5ffb345498ca15dc5a46c478a4e9cea50724
Size (xcircuit-3.9.72.tgz) = 1620798 bytes
SHA1 (patch-aa) = 40e5caea7f6e6294eebff214f47aa9dc01498133
SHA1 (patch-ab) = 8c4d87dbd67b302f530b4f09201c82fcbec22dd5
+SHA1 (patch-lib_tcl_xcircuit.sh.in) = 0c9882162bdd1cbd7f43d2e4aa2f329f3f91f958
diff --git a/cad/xcircuit/patches/patch-lib_tcl_xcircuit.sh.in b/cad/xcircuit/patches/patch-lib_tcl_xcircuit.sh.in
new file mode 100644
index 00000000000..5de993983f7
--- /dev/null
+++ b/cad/xcircuit/patches/patch-lib_tcl_xcircuit.sh.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_tcl_xcircuit.sh.in,v 1.1 2018/02/08 09:43:32 hauke Exp $
+
+TERM may be empty, resulting in a spurious
+[: cygwin: unexpected operator
+
+--- lib/tcl/xcircuit.sh.in.orig 2014-05-17 14:15:47.000000000 +0000
++++ lib/tcl/xcircuit.sh.in
+@@ -11,7 +11,7 @@ XCIRCUIT_WISH=WISH_EXE
+ export XCIRCUIT_WISH
+
+ # Hacks for Cygwin
+-if [ ${TERM:=""} = "cygwin" ]; then
++if [ x${TERM:=""} = x"cygwin" ]; then
+ export PATH=$PATH:TCLLIBDIR
+ export DISPLAY=${DISPLAY:=":0"}
+ fi