pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47079: editors/mg: Fix MASTER_SITES & HOMEPAGE outdated, and Update to mg-20110905.



>Number:         47079
>Category:       pkg
>Synopsis:       editors/mg: Fix MASTER_SITES & HOMEPAGE outdated, and Update 
>to mg-20110905.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 15 08:45:00 +0000 2012
>Originator:     ISIHARA Takanori
>Release:        NetBSD 6.0 RC2
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD ishitPc9.home 6.0_RC2 NetBSD 6.0_RC2 (ISHITPC9) #0: Fri Oct  5 11:27:15 
JST 2012  
root%ishitPc9.home@localhost:/opt/sysbuild/netbsd-6/obj/i386/sys/arch/i386/compile/ISHITPC9
 i386

>Description:
1)
Fix MASTER_SITES & HOMEPAGE outdated Makefile

2)
Update to mg-20110905.

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       .
#       ./Makefile
#       ./DESCR
#       ./distinfo
#       ./PLIST
#       ./patches
#       ./patches/patch-ag
#       ./patches/patch-ab
#       ./patches/patch-ai
#       ./patches/patch-ad
#       ./patches/patch-ah
#       ./patches/patch-af
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# $NetBSD: Makefile,v 1.6 2012/10/11 13:03:38 marino Exp $
X#
X
XDISTNAME=      mg-20110905
XCATEGORIES=    editors
XMASTER_SITES=  http://homepage.boetes.org/software/mg/
X
XMAINTAINER=    abs%NetBSD.org@localhost
XHOMEPAGE=      http://homepage.boetes.org/software/mg/
XCOMMENT=       Small, fast, public domain EMACS style editor
X
XHAS_CONFIGURE= yes
XUSE_NCURSES=   yes # Uses NCURSES internals
XUSE_TOOLS+=    install
XMAKE_ENV+=     prefix=${PREFIX}
X
XINSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
X
XCONFLICTS+=    mg2a-[0-9]*
X
XBUILDLINK_TRANSFORM+=  rm:-Werror
X
XSUBST_CLASSES+=                path
XSUBST_STAGE.path=      pre-configure
XSUBST_MESSAGE.path=    Adjusting path.
XSUBST_FILES.path=      Makefile.in mg.1
XSUBST_SED.path=                -e "s|/usr/local|${PREFIX}/|g"
XSUBST_SED.path+=       -e "s|/usr/share/doc|${PREFIX}/share/doc|g"
XSUBST_SED.path+=       -e "s|/usr/bin/install|${INSTALL}|g"
X
X.include "../../devel/ncurses/buildlink3.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
echo x - ./DESCR
sed 's/^X//' >./DESCR << 'END-of-./DESCR'
XThis is the portable version of the OpenBSD mg editor
X
XMg (mg) is a Public Domain EMACS style editor.  It is "broadly"
Xcompatible with GNU Emacs, the latest creation of Richard M.
XStallman, Chief GNUisance and inventor of Emacs.  GNU Emacs (and other
Xportions of GNU as they are released) are essentially free, (there are
Xhandling charges for obtaining it) and so is Mg.  You may never have
Xto learn another editor.  (But probably will, at least long enough to
Xport Mg...)  Mg was formerly named MicroGnuEmacs, the name change was
Xdone at the request of Richard Stallman.
X
XMg is not associated with the GNU project, and most of it does not
Xhave the copyright restrictions present in GNU Emacs.  (However, some
Xof the system dependent modules and the regular expression module do
Xhave copyright notices.  Look at the source code for exact
Xcopyright restrictions.)  The Mg authors individually may or may not
Xagree with the opinions expressed by Richard Stallman in "The GNU
XManifesto".
X
XThis program is intended to be a small, fast, and portable editor for
Xpeople who can't (or don't want to) run real Emacs for one reason
Xor another.  It is compatible with GNU because there shouldn't be
Xany reason to learn more than one Emacs flavor.
END-of-./DESCR
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
X$NetBSD: distinfo,v 1.5 2011/12/19 00:52:09 dholland Exp $
X
XSHA1 (mg-20110905.tar.gz) = 51d2bac801cab33c9b552c36db5f8637fbbe9363
XRMD160 (mg-20110905.tar.gz) = 721b2a2e9059ddf6ea637dafd205575150b58c8c
XSize (mg-20110905.tar.gz) = 138805 bytes
XSHA1 (patch-ab) = 2deb4c7e78d580434cfedfe9ea23add3b19cc300
XSHA1 (patch-ad) = 735fbcdc5dd0693a9ae3f0da347f5456cf73217e
XSHA1 (patch-af) = 3c36053fe5ad58751b26ea23672f6107d2fa3046
XSHA1 (patch-ag) = f6ac048ea94517fd0c4e3fb9b72045b8eca063fd
XSHA1 (patch-ah) = b18b967789b006d42e9da1c0133ac64bfe8673b3
XSHA1 (patch-ai) = bc9950469e4792867532dcaddba331f07131215c
END-of-./distinfo
echo x - ./PLIST
sed 's/^X//' >./PLIST << 'END-of-./PLIST'
X@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $
Xbin/mg
Xman/man1/mg.1
Xshare/doc/mg/tutorial
END-of-./PLIST
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-ag
sed 's/^X//' >./patches/patch-ag << 'END-of-./patches/patch-ag'
X$NetBSD: patch-ag,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $
X
X--- Makefile.in.orig   2011-09-05 18:59:14.000000000 +0000
X+++ Makefile.in
X@@ -7,20 +7,21 @@
X 
X name=         mg
X 
X-prefix=               /usr/local
X+prefix?=      /usr/pkg/
X bindir=               $(prefix)/bin
X libdir=               $(prefix)/lib
X includedir=   $(prefix)/include
X mandir=               $(prefix)/man
X+docdir=               $(prefix)/share/doc
X 
X 
X CC=           gcc
X CFLAGS?=      -O2 -pipe
X-CFLAGS+=      -g -Wall -Werror -Wno-error=unused-but-set-variable
X-LIBS=                 -lncurses
X+CFLAGS+=      -g -Wall -Werror
X+LIBS+=                -lncurses
X 
X-INSTALL=      /usr/bin/install
X-STRIP=                /usr/bin/strip
X+INSTALL?=     /usr/bin/install
X+STRIP?=               /usr/bin/strip
X 
X 
X OBJS=         autoexec.o \
X@@ -86,8 +87,10 @@ clean:
X install: $(name) $(name).1
X       $(INSTALL) -d $(DESTDIR)$(bindir)
X       $(INSTALL) -d $(DESTDIR)$(mandir)/man1
X+      $(INSTALL) -d $(DESTDIR)$(docdir)/mg
X       $(INSTALL) -m 755 $(name)               $(DESTDIR)$(bindir)/$(name)
X       $(INSTALL) -m 444 $(name).1             
$(DESTDIR)$(mandir)/man1/$(name).1
X+      $(INSTALL) -m 444 tutorial              $(DESTDIR)$(docdir)/mg/tutorial
X 
X install-strip: install
X       $(STRIP) $(DESTDIR)$(bindir)/$(name)
END-of-./patches/patch-ag
echo x - ./patches/patch-ab
sed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab'
X$NetBSD: patch-ab,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $
X
X--- sysdef.h.orig      2011-01-02 23:03:41.000000000 +0000
X+++ sysdef.h
X@@ -31,6 +31,7 @@
X #include <string.h>
X #include <errno.h>
X #include <signal.h>
X+#include <time.h>
X 
X 
X #define       KBLOCK          8192    /* Kill grow.                    */
END-of-./patches/patch-ab
echo x - ./patches/patch-ai
sed 's/^X//' >./patches/patch-ai << 'END-of-./patches/patch-ai'
X$NetBSD: patch-ai,v 1.1 2009/11/26 18:10:14 joerg Exp $
X
X--- configure.orig     2011-09-05 18:36:16.000000000 +0000
X+++ configure
X@@ -163,32 +163,6 @@ else
X     echo 'Fails.'
X fi
X 
X-
X-if [ ! -r /usr/include/term.h ]; then
X-    note 'term.h'
X-    if [ -r /usr/include/ncurses/term.h ]; then
X-      echo "Found in /usr/include/ncurses"
X-      extraflags="$extraflags -I/usr/include/ncurses"
X-    else
X-      for i in pkg local; do
X-          if [ -r /usr/$i/include/term.h ]; then
X-              echo "Found in /usr/$i/include"
X-              extralibs="$extralibs -L/usr/$i/lib"
X-              extraflags="$extraflags -I/usr/$i/include"
X-              break
X-          else
X-              false
X-          fi
X-      done ||
X-      {
X-          echo 'Not found!' >&2
X-          echo 'Do you have the ncurses devel package installed?' >&2
X-          echo 'If you know where term.h is, please email the author!' >&2
X-          exit 1
X-      }
X-    fi
X-fi
X-
X note 'base and dirname'
X if gcc_defines "__GLIBC__" || gcc_defines "__CYGWIN__" ; then
X     echo 'Not present, adding.'
END-of-./patches/patch-ai
echo x - ./patches/patch-ad
sed 's/^X//' >./patches/patch-ad << 'END-of-./patches/patch-ad'
X$NetBSD: patch-ad,v 1.2 2011/12/19 00:52:10 dholland Exp $
X
X- use toupper() correctly
X- suppress initialization warning that sometimes (?) arises with gcc 4.5
X
X--- extend.c.orig      2011-06-18 09:18:54.000000000 +0000
X+++ extend.c
X@@ -445,7 +445,7 @@ dobindkey(KEYMAP *map, const char *func,
X       for (i = 0; *str && i < MAXKEY; i++) {
X               /* XXX - convert numbers w/ strol()? */
X               if (*str == '^' && *(str + 1) !=  '\0') {
X-                      key.k_chars[i] = CCHR(toupper(*++str));
X+                      key.k_chars[i] = CCHR(toupper((unsigned char)*++str));
X               } else if (*str == '\\' && *(str + 1) != '\0') {
X                       switch (*++str) {
X                       case '^':
END-of-./patches/patch-ad
echo x - ./patches/patch-ah
sed 's/^X//' >./patches/patch-ah << 'END-of-./patches/patch-ah'
X$NetBSD: patch-ah,v 1.1 2009/03/11 19:24:41 hasso Exp $
X
X--- fileio.c.orig      2011-09-05 18:26:37.000000000 +0000
X+++ fileio.c
X@@ -14,6 +14,10 @@
X #define       DEFFILEMODE     
(S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
X #endif
X 
X+#ifndef NAME_MAX
X+#define NAME_MAX      MAXNAMLEN
X+#endif
X+
X #include <sys/time.h>
X #include <sys/resource.h>
X #include <sys/wait.h>
X@@ -544,11 +548,7 @@ make_file_list(char *buf)
X        * SV files are fairly short.  For BSD, something more general would
X        * be required.
X        */
X-#ifdef  __CYGWIN__  /* Cygwin uses NAME_MAX for dirents */
X       if (preflen > NFILEN - NAME_MAX)
X-#else
X-      if (preflen > NFILEN - MAXNAMLEN)
X-#endif
X               return (NULL);
X 
X       /* loop over the specified directory, making up the list of files */
END-of-./patches/patch-ah
echo x - ./patches/patch-af
sed 's/^X//' >./patches/patch-af << 'END-of-./patches/patch-af'
X$NetBSD: patch-af,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $
X
X--- grep.c.orig        2011-01-02 22:57:56.000000000 +0000
X+++ grep.c
X@@ -152,7 +152,7 @@ gid(int f, int n)
X       /* Skip backwards over delimiters we are currently on */
X       while (i > 0) {
X               c = lgetc(curwp->w_dotp, i);
X-              if (isalnum(c) || c == '_')
X+              if (isalnum((unsigned char)c) || c == '_')
X                       break;
X 
X               i--;
X@@ -161,14 +161,14 @@ gid(int f, int n)
X       /* Skip the symbol itself */
X       for (; i > 0; i--) {
X               c = lgetc(curwp->w_dotp, i - 1);
X-              if (!isalnum(c) && c != '_')
X+              if (!isalnum((unsigned char)c) && c != '_')
X                       break;
X       }
X       /* Fill the symbol in cprompt[] */
X       for (j = 0; j < sizeof(cprompt) - 1 && i < llength(curwp->w_dotp);
X           j++, i++) {
X               c = lgetc(curwp->w_dotp, i);
X-              if (!isalnum(c) && c != '_')
X+              if (!isalnum((unsigned char)c) && c != '_')
X                       break;
X               cprompt[j] = c;
X       }
END-of-./patches/patch-af
exit




Home | Main Index | Thread Index | Old Index