summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 20:15:30 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 20:15:30 +0000
commita5b05b305a8adec8fb98c1fc78b969abb6f7429b (patch)
treeb9955d0d32c2b05ade1810f0bb08609da5e71bcc /japanese
parent- Update MASTER_SITES (add two new ones and remove defunct site). (diff)
Resurrect ng-canna and stage it
Stage ng PR: 193160 Submitted by: Ports fury
Notes
Notes: svn path=/head/; revision=366951
Diffstat (limited to 'japanese')
-rw-r--r--japanese/ng-canna/Makefile15
-rw-r--r--japanese/ng-canna/pkg-descr8
-rw-r--r--japanese/ng/Makefile46
-rw-r--r--japanese/ng/pkg-descr16
4 files changed, 52 insertions, 33 deletions
diff --git a/japanese/ng-canna/Makefile b/japanese/ng-canna/Makefile
new file mode 100644
index 000000000000..caf9bdaab34a
--- /dev/null
+++ b/japanese/ng-canna/Makefile
@@ -0,0 +1,15 @@
+# Created by: HONDA Yasuhiro <honda@kashio.info.mie-u.ac.jp>
+# $FreeBSD$
+
+PKGNAMESUFFIX= -canna
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Lightweight Emacs-clone with Japanese and Canna support
+
+MASTERDIR= ${.CURDIR}/../ng
+
+DESCR= ${.CURDIR}/pkg-descr
+
+OPTIONS_SLAVE= CANNA
+
+.include "${MASTERDIR}/Makefile"
diff --git a/japanese/ng-canna/pkg-descr b/japanese/ng-canna/pkg-descr
new file mode 100644
index 000000000000..b3cd9031065d
--- /dev/null
+++ b/japanese/ng-canna/pkg-descr
@@ -0,0 +1,8 @@
+Ng is very lightweight Emacs-clone text editor. Ng is based on Mg
+version 2a and support Japanese encoding (EUC-JP, SHIFT-JIS, JIS).
+
+This port supports Canna Japanese kana-kanji conversion. If you want
+to use Canna, set environment variable CANNAHOST to the hostname of
+your Canna server.
+
+WWW: http://tt.sakura.ne.jp/~amura/ng/
diff --git a/japanese/ng/Makefile b/japanese/ng/Makefile
index 2c5d3c66ecd0..ea47ee8ccdf9 100644
--- a/japanese/ng/Makefile
+++ b/japanese/ng/Makefile
@@ -5,7 +5,7 @@ PORTNAME= ng
PORTVERSION= 1.4.4
PORTREVISION= 2
CATEGORIES= japanese editors
-MASTER_SITES= http://tomato.sakura.ne.jp/~amura/archives/ng/
+MASTER_SITES= http://tt.sakura.ne.jp/~amura/archives/ng/
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= ng-1.4.4-replace_bug.patch
@@ -13,39 +13,37 @@ PATCHFILES= ng-1.4.4-replace_bug.patch
MAINTAINER?= ports@FreeBSD.org
COMMENT?= Light Emacs-clone with Japanese support
-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LIBS}"
-LIBS= -ltermcap
-
+MAKEFILE= sys/sysv/Makefile
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
ALL_TARGET= ng
+CFLAGS+= -Wno-error=return-type
+LDFLAGS+= -ltermcap
+
DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME}
-MYPORTDOCS= CHANGES.1_3 CHANGES.doc Ng.FAQ Ng.doc Ng.ref Ng.tut \
- README.Ng README.SKG
-PORTDOCS= ${MYPORTDOCS:C/$/.euc-jp/}
+CONFLICTS= ng-devel-[0-9]*
+PORTDOCS= ${MYPORTDOCS:C/$/.euc-jp/}
PLIST_FILES= bin/ng
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_CANNA)
-LIB_DEPENDS+= libcanna.so:${PORTSDIR}/japanese/canna-lib
+OPTIONS_DEFINE= CANNA DOCS
-CFLAGS+= -I${LOCALBASE}/include -DCANNA
-LIBS+= -L${LOCALBASE}/lib -lcanna
-.endif
+CANNA_DESC= Canna support
+CANNA_LIB_DEPENDS= libcanna.so:${PORTSDIR}/japanese/canna-lib
+CANNA_CFLAGS= -I${LOCALBASE}/include -DCANNA
+CANNA_LDFLAGS= -L${LOCALBASE}/lib -lcanna
-post-patch:
- @(cd ${WRKSRC}; ${LN} -sf sys/sysv/Makefile . )
+MYPORTDOCS= CHANGES.1_3 CHANGES.doc Ng.FAQ Ng.doc Ng.ref Ng.tut \
+ README.Ng README.SKG
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ng ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for file in ${MYPORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}/${file}.euc-jp
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ng \
+ ${STAGEDIR}${PREFIX}/bin)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in ${MYPORTDOCS}
+ (cd ${WRKSRC}/docs && ${INSTALL_DATA} ${i} \
+ ${STAGEDIR}${DOCSDIR}/${i:S/$/.euc-jp/})
.endfor
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/japanese/ng/pkg-descr b/japanese/ng/pkg-descr
index 2cffa25c798a..400e3abd6f59 100644
--- a/japanese/ng/pkg-descr
+++ b/japanese/ng/pkg-descr
@@ -1,13 +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 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.
+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.
-WWW: http://tomato.sakura.ne.jp/~amura/ng/
+WWW: http://tt.sakura.ne.jp/~amura/ng/