summaryrefslogtreecommitdiff
path: root/editors/ng
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-10-19 23:54:37 +0000
committerhubertf <hubertf@pkgsrc.org>2000-10-19 23:54:37 +0000
commitee295e31af28c61e2c9d3e92c0a4164528fbfe75 (patch)
tree34bc7886eb4930232ee0a00b3b08266cf07dc024 /editors/ng
parent5731bb36334b53da1188323feea5ac1681d528fc (diff)
downloadpkgsrc-ee295e31af28c61e2c9d3e92c0a4164528fbfe75.tar.gz
Ng is a very light weight Emacs clone editor, written in C.
It doesn't have Lisp(that means very limited customization is available). Since you can invoke it very quickly (compared with real GNU Emacs), it is useful in dealing with changing small file a bit. Ng(Nihongo Micro Gnu Emacs) is a Mg(Micro Gnu Emacs)'s japanese port. Ng supports EUC, JIS and SJIS code. Ng also have (rather simple) C-mode. It is also very useful even if you don't need Japanese support. Submitted in PR 11240 by Jun Ebihara <jun@soum.co.jp>
Diffstat (limited to 'editors/ng')
-rw-r--r--editors/ng/Makefile46
-rw-r--r--editors/ng/files/md53
-rw-r--r--editors/ng/files/patch-sum3
-rw-r--r--editors/ng/patches/patch-aa24
-rw-r--r--editors/ng/pkg/COMMENT1
-rw-r--r--editors/ng/pkg/DESCR11
-rw-r--r--editors/ng/pkg/PLIST11
7 files changed, 99 insertions, 0 deletions
diff --git a/editors/ng/Makefile b/editors/ng/Makefile
new file mode 100644
index 00000000000..88ff1e7a621
--- /dev/null
+++ b/editors/ng/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/19 23:54:37 hubertf Exp $
+
+DISTNAME= ng-1.4
+CATEGORIES= editors japanese
+MASTER_SITES= http://ha3.seikyou.ne.jp/home/amura/archives/ng/
+
+MAINTAINER= fk200329@fsinet.or.jp
+HOMEPAGE= http://ha3.seikyou.ne.jp/home/amura/ng/
+
+
+.include "../../mk/bsd.prefs.mk" # for USE_CANNA
+
+.if !defined(USE_CANNA)
+USE_CANNA= YES
+.endif
+
+.if ${USE_CANNA} == "YES"
+DEPENDS= Canna-lib-3.5b2:../../japanese/canna-lib
+.endif
+
+WRKSRC= ${WRKDIR}/ng
+ALL_TARGET= ng
+MAKEFLAGS+= USE_CANNA=${USE_CANNA}
+
+post-patch:
+.if ${USE_CANNA} != "YES"
+ @(cd ${WRKSRC}; ${MV} config.h config.h.orig )
+ @(cd ${WRKSRC}; ${SED} -e "s/#define CANNA/#undef CANNA/" config.h.orig > config.h )
+.endif
+ @(cd ${WRKSRC}; ${LN} -s sys/bsd/Makefile . )
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ng ${PREFIX}/bin/
+
+post-install:
+ ${MKDIR} ${PREFIX}/share/doc/ng
+ ${INSTALL_DATA} ${WRKSRC}/docs/Ng.FAQ ${PREFIX}/share/doc/ng/Ng.FAQ.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/Ng.doc ${PREFIX}/share/doc/ng/Ng.doc.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/Ng.ref ${PREFIX}/share/doc/ng/Ng.ref.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/Ng.tut ${PREFIX}/share/doc/ng/Ng.tut.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/README.Ng ${PREFIX}/share/doc/ng/README.Ng.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/README.SKG ${PREFIX}/share/doc/ng/README.SKG.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.new ${PREFIX}/share/doc/ng/CHANGES.new.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.doc ${PREFIX}/share/doc/ng/CHANGES.doc.euc-jp
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/editors/ng/files/md5 b/editors/ng/files/md5
new file mode 100644
index 00000000000..b3a15083874
--- /dev/null
+++ b/editors/ng/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/10/19 23:54:37 hubertf Exp $
+
+MD5 (ng-1.4.tar.gz) = 83fd519100b78ba0f6809ba4899b1863
diff --git a/editors/ng/files/patch-sum b/editors/ng/files/patch-sum
new file mode 100644
index 00000000000..14062465d55
--- /dev/null
+++ b/editors/ng/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/10/19 23:54:37 hubertf Exp $
+
+MD5 (patch-aa) = ac1465c83276ecef6ff371b395c6b005
diff --git a/editors/ng/patches/patch-aa b/editors/ng/patches/patch-aa
new file mode 100644
index 00000000000..a660a218b1c
--- /dev/null
+++ b/editors/ng/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/10/19 23:54:37 hubertf Exp $
+
+--- sys/bsd/Makefile.orig Tue Jun 27 10:48:02 2000
++++ sys/bsd/Makefile Thu Sep 7 06:02:02 2000
+@@ -8,14 +8,17 @@
+ # Modified for Ng 1.0 by Shigeki Yoshida (shige@csk.CO.JP) 1990.01.29
+
+ SYS = bsd
+-LIBS = -L/usr/pkg/lib -lcanna -ltermcap
++LIBS = -L${PREFIX}/lib -ltermcap
++.if ${USE_CANNA} == "YES"
++LIBS += -lcanna
++.endif
+ # CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
+ # get passed to lint.
+ #
+ # Now, compile time options are defined in a "config.h".
+ #
+ CDEFS =
+-CFLAGS = -O2 -I/usr/pkg/include $(CDEFS)
++CFLAGS = -O2 -I${PREFIX}/include $(CDEFS)
+
+ # If your machine don't have an alloca(), please define ALLOCA.
+ #ALLOCA = alloca.o
diff --git a/editors/ng/pkg/COMMENT b/editors/ng/pkg/COMMENT
new file mode 100644
index 00000000000..2d4e67d23e1
--- /dev/null
+++ b/editors/ng/pkg/COMMENT
@@ -0,0 +1 @@
+Very light Emacs-clone with japanese support
diff --git a/editors/ng/pkg/DESCR b/editors/ng/pkg/DESCR
new file mode 100644
index 00000000000..c148f693a26
--- /dev/null
+++ b/editors/ng/pkg/DESCR
@@ -0,0 +1,11 @@
+Ng is a very light weight Emacs clone editor, written in C.
+It doesn't have Lisp(that means very limited customization
+is available). Since you can invoke it very quickly
+(compared with real GNU Emacs), it is useful in dealing with
+changing small file a bit.
+
+Ng(Nihongo Micro Gnu Emacs) is a Mg(Micro Gnu Emacs)'s
+japanese port. Ng supports EUC, JIS and SJIS code.
+Ng also have (rather simple) C-mode.
+
+It is also very useful even if you don't need Japanese support.
diff --git a/editors/ng/pkg/PLIST b/editors/ng/pkg/PLIST
new file mode 100644
index 00000000000..7d6cde3db52
--- /dev/null
+++ b/editors/ng/pkg/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/19 23:54:37 hubertf Exp $
+bin/ng
+share/doc/ng/CHANGES.doc.euc-jp
+share/doc/ng/CHANGES.new.euc-jp
+share/doc/ng/Ng.FAQ.euc-jp
+share/doc/ng/Ng.doc.euc-jp
+share/doc/ng/Ng.ref.euc-jp
+share/doc/ng/Ng.tut.euc-jp
+share/doc/ng/README.Ng.euc-jp
+share/doc/ng/README.SKG.euc-jp
+@dirrm share/doc/ng