pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/mg2a Made the package work on Solaris.
details: https://anonhg.NetBSD.org/pkgsrc/rev/fe8fd9f0de2c
branches: trunk
changeset: 523388:fe8fd9f0de2c
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Jan 07 00:41:29 2007 +0000
description:
Made the package work on Solaris.
diffstat:
editors/mg2a/Makefile | 11 ++++++++---
editors/mg2a/distinfo | 5 +++--
editors/mg2a/patches/patch-af | 6 +++---
editors/mg2a/patches/patch-as | 17 +++++++++++++++++
4 files changed, 31 insertions(+), 8 deletions(-)
diffs (85 lines):
diff -r ac72983b1ebf -r fe8fd9f0de2c editors/mg2a/Makefile
--- a/editors/mg2a/Makefile Sun Jan 07 00:18:43 2007 +0000
+++ b/editors/mg2a/Makefile Sun Jan 07 00:41:29 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/01/07 00:18:43 rillig Exp $
+# $NetBSD: Makefile,v 1.9 2007/01/07 00:41:29 rillig Exp $
DISTNAME= mg2a
PKGNAME= mg2a-1.11
@@ -9,10 +9,15 @@
MAINTAINER= tron%NetBSD.org@localhost
COMMENT= Small, fast, public domain EMACS style editor
+BUILD_TARGET= mg
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
-post-extract:
- cd ${WRKSRC} && ${CP} sys/bsd/Makefile .
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ case ${OPSYS} in \
+ SunOS) cp sys/sysv/Makefile . ;; \
+ *) cp sys/bsd/Makefile . ;; \
+ esac
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mg ${PREFIX}/bin/mg
diff -r ac72983b1ebf -r fe8fd9f0de2c editors/mg2a/distinfo
--- a/editors/mg2a/distinfo Sun Jan 07 00:18:43 2007 +0000
+++ b/editors/mg2a/distinfo Sun Jan 07 00:41:29 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2006/06/30 15:59:58 tron Exp $
+$NetBSD: distinfo,v 1.7 2007/01/07 00:41:29 rillig Exp $
SHA1 (mg2a.tar.Z) = c96f890f217eaacb78117f9c73f1ea3709ca8d3f
RMD160 (mg2a.tar.Z) = 7083ec8b49eb89d1389dabfb915859af2bb40ee1
@@ -8,7 +8,7 @@
SHA1 (patch-ac) = 6ef1d0bc88241756cdd3a66050ebfaaf353edcdb
SHA1 (patch-ad) = d83892a713d75d830f553e58632d2fde55e53cc4
SHA1 (patch-ae) = 025873e653403c6c2141db351bd058c6ed2c2e99
-SHA1 (patch-af) = 23acac8f9fbafd576d6b8a44890688ffe5f216e0
+SHA1 (patch-af) = fa6e22c0d2c12ca349af2887b606954e4e016269
SHA1 (patch-ag) = e8bcbc0cba9cdf989b93d280e108de167281f262
SHA1 (patch-ah) = 1041e9060e70fbe3e483823a4ab38018c8ce2069
SHA1 (patch-ai) = fc3d195c0fb3c68cac29c0d7506068b5bca9a847
@@ -20,3 +20,4 @@
SHA1 (patch-ao) = ebe3ad41e0ad49aa4ea6fe571dbf360af8c70a96
SHA1 (patch-ap) = 49aca14c3ee0b1c3c84f3920eb875ec8700f9128
SHA1 (patch-aq) = 1deef2a00054de186cd73f7d864c5764a41dc2b0
+SHA1 (patch-as) = bcdca9ca43ab34f51a623a5f0f385e62ce7125bf
diff -r ac72983b1ebf -r fe8fd9f0de2c editors/mg2a/patches/patch-af
--- a/editors/mg2a/patches/patch-af Sun Jan 07 00:18:43 2007 +0000
+++ b/editors/mg2a/patches/patch-af Sun Jan 07 00:41:29 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-af,v 1.2 2000/07/10 18:26:54 tron Exp $
+$NetBSD: patch-af,v 1.3 2007/01/07 00:41:30 rillig Exp $
---- Makefile.orig Wed May 31 16:36:29 2000
-+++ Makefile Wed May 31 16:36:31 2000
+--- sys/bsd/Makefile.orig Wed May 31 16:36:29 2000
++++ sys/bsd/Makefile Wed May 31 16:36:31 2000
@@ -17,7 +17,7 @@
# REGEX -- create regular expression functions
#
diff -r ac72983b1ebf -r fe8fd9f0de2c editors/mg2a/patches/patch-as
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/mg2a/patches/patch-as Sun Jan 07 00:41:29 2007 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-as,v 1.1 2007/01/07 00:41:30 rillig Exp $
+
+--- sys/sysv/ttyio.c.orig 1988-07-03 19:51:10.000000000 +0200
++++ sys/sysv/ttyio.c 2007-01-07 01:38:38.616877688 +0100
+@@ -213,10 +213,11 @@ char *s;
+ /*
+ ** This should check the size of the window, and reset if needed.
+ */
+-
+ setttysize()
+ {
+ #ifdef TIOCGWINSZ
++ struct winsize winsize;
++
+ if (ioctl(0, TIOCGWINSZ, (char *) &winsize) == 0) {
+ nrow = winsize . ws_row;
+ ncol = winsize . ws_col;
Home |
Main Index |
Thread Index |
Old Index