[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
jvim-canna + onew-canna
こんにちは、久保です。
Canna-lib-3.5b2にDEPENDするようにした、jvim-canna packageです。
NetBSD-current/pkgsrc/japanese/canna-libを持って来て、make packageした
ら、以下のメッセージが表示されました。
pkg_create: can't stat `${PREFIX}/include/canna/RK.h'
pkg_create: can't stat `${PREFIX}/include/canna/jrkanji.h'
とりあえず、pkg/PLIST中のDICT_DIRやPREFIXを書き換えてmake packageしたの
ですが、pkg_createなどをcurrentのやつに入れ換えるといいんでしょうか。
-- jvim-canna
# 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:
#
# jvim-canna
# jvim-canna/Makefile
# jvim-canna/pkg
# jvim-canna/pkg/PLIST
# jvim-canna/pkg/DESCR
# jvim-canna/pkg/COMMENT
# jvim-canna/files
# jvim-canna/files/md5
# jvim-canna/patches
# jvim-canna/patches/patch-aa
#
echo c - jvim-canna
mkdir -p jvim-canna > /dev/null 2>&1
echo x - jvim-canna/Makefile
sed 's/^X//' >jvim-canna/Makefile << 'END-of-jvim-canna/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= jvim2.0r+onew2.2.10
XPKGNAME= ja-jvim-canna-2.0r
XCATEGORIES= japanese editors
XMASTER_SITES+= ftp://ftp.lab.kdd.co.jp/Japan/onew/
XMASTER_SITES+= ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
X
XMAINTAINER= tech-pkg-ja@jp.NetBSD.ORG
XHOMEPAGE= NONE
X
XJPDEF= -DONEW
XJPLIB= -lonew-canna -lcanna
X
XDEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib
XDEPENDS+= ja-onew-canna-2.2.10:../../japanese/onew-canna
X
XWRKSRC= ${WRKDIR}/jvim2.0r
X
Xpre-build:
X cd ${WRKSRC}/src; \
X ${SED} -e 's,%LOCALBASE%,${LOCALBASE},g' \
X -e 's,%X11BASE%,${X11BASE},g' \
X ./makefile.junx > Makefile
X
Xdo-build:
X cd ${WRKSRC}/src; make NetBSD 'JPDEF=${JPDEF}' 'JPLIB=${JPLIB}'
X
Xdo-install:
X cd ${WRKSRC}/src; make install
X
Xpost-install:
X for file in jcat jgrep jfold jvim; do \
X strip ${LOCALBASE}/bin/$$file; \
X done
X
X.include "../../mk/bsd.pkg.mk"
END-of-jvim-canna/Makefile
echo c - jvim-canna/pkg
mkdir -p jvim-canna/pkg > /dev/null 2>&1
echo x - jvim-canna/pkg/PLIST
sed 's/^X//' >jvim-canna/pkg/PLIST << 'END-of-jvim-canna/pkg/PLIST'
X@comment $NetBSD$
Xbin/jcat
Xbin/jfold
Xbin/jgrep
Xbin/jview
Xbin/jvim
Xlib/jvim.hlp
Xman/man1/jcat.1.gz
Xman/man1/jcat.man
Xman/man1/jfold.1.gz
Xman/man1/jfold.man
Xman/man1/jgrep.1.gz
Xman/man1/jgrep.man
Xman/man1/jvim.1.gz
END-of-jvim-canna/pkg/PLIST
echo x - jvim-canna/pkg/DESCR
sed 's/^X//' >jvim-canna/pkg/DESCR << 'END-of-jvim-canna/pkg/DESCR'
XJVim is a text editor that is upwards compatible to vi. It can be used
Xto edit any ASCII and Japanese(EUC or JIS) text. It is especially
Xuseful for editing programs.
X
XThis package is built with Japanese support, using Canna as default.
X
XThere are a lot of enhancements above vi: multi level undo, command
Xline editing, filename completion, on line help, quoting, etc.. Read
Xdifference.doc for a summary of the differences between vi and Vim.
X
X-- S. Taoka
X<taoka@infonets.hiroshima-u.ac.jp>
END-of-jvim-canna/pkg/DESCR
echo x - jvim-canna/pkg/COMMENT
sed 's/^X//' >jvim-canna/pkg/COMMENT << 'END-of-jvim-canna/pkg/COMMENT'
XJapanized Vim (with Canna)
END-of-jvim-canna/pkg/COMMENT
echo c - jvim-canna/files
mkdir -p jvim-canna/files > /dev/null 2>&1
echo x - jvim-canna/files/md5
sed 's/^X//' >jvim-canna/files/md5 << 'END-of-jvim-canna/files/md5'
X$NetBSD$
X
XMD5 (jvim2.0r+onew2.2.10.tar.gz) = 42e04a80f3dbdfca4fbe8b9e634d1380
END-of-jvim-canna/files/md5
echo c - jvim-canna/patches
mkdir -p jvim-canna/patches > /dev/null 2>&1
echo x - jvim-canna/patches/patch-aa
sed 's/^X//' >jvim-canna/patches/patch-aa << 'END-of-jvim-canna/patches/patch-aa'
X$NetBSD$
X
X--- ./src/makefile.junx.orig Mon Jul 3 05:54:33 1995
X+++ ./src/makefile.junx Thu Nov 11 00:49:05 1999
X@@ -15,12 +15,12 @@
X #
X #>>>>> choose Japanese Kanji code
X #JPCODE = -DJP=\".NN\"
X-#JPCODE = -DJP=\".EE\"
X+JPCODE = -DJP=\".EE\"
X #JPCODE = -DJP=\".NN\" -DJPFEP
X
X #>>>>> ONEW specific options
X-JPDEF = -DONEW -DWNN_ISDIR # Wnn + Canna / Onew
X-JPLIB = -lonew -ljd -lcanna # Wnn + Canna / Onew
X+#JPDEF = -DONEW -DWNN_ISDIR # Wnn + Canna / Onew
X+#JPLIB = -lonew -ljd -lcanna # Wnn + Canna / Onew
X #JPDEF = -DONEW # Canna / Onew
X #JPLIB = -lonew -lcanna # Canna / Onew
X #JPDEF = -DONEW -DWNN_ISDIR # Wnn / Onew
X@@ -47,7 +47,13 @@
X -L/usr/X386/lib \
X -L/usr/local/X11R5/lib \
X -L/usr/local/lib \
X- -L/usr/lib
X+ -L/usr/lib \
X+ -L/usr/pkg/lib \
X+ -L/usr/X11R6/lib
X+
X+INSTALL= /usr/bin/install -c -m
X+GZIP= /usr/bin/gzip -c
X+
X ######################################################################
X
X all:
X@@ -191,6 +197,7 @@
X @echo 'NetBSD'
X $(MAKE) $(TARGET) \
X 'MACHINE = -DBSD_UNIX' \
X+ 'LIBS = -ltermcap -lcompat' \
X 'CC = gcc -O2 -Wall'
X
X AIX3.2:
X@@ -368,7 +375,7 @@
X JGREP = jgrep
X
X ### Prefix for location of files
X-PREFIX = /usr/local/jvim2.0
X+PREFIX = /usr/pkg
X
X ### Location of binary
X BINLOC = $(PREFIX)/bin
X@@ -489,28 +496,35 @@
X install:
X @$(CSH) -f -c "if (! -d $(PREFIX)) mkdir $(PREFIX)"
X @$(CSH) -f -c "if (! -d $(BINLOC)) mkdir $(BINLOC)"
X- cp $(JVIM) $(BINLOC)
X- chmod $(BINMOD) $(BINLOC)/$(JVIM)
X+
X+ $(INSTALL) $(BINMOD) $(JVIM) $(BINLOC)
X+
X @$(CSH) -f -c "cd $(BINLOC); if (! -f jview) ln -s $(JVIM) jview"
X- cp $(JGREP) $(BINLOC)
X- chmod $(BINMOD) $(BINLOC)/$(JGREP)
X- cp $(JCAT) $(BINLOC)
X- chmod $(BINMOD) $(BINLOC)/$(JCAT)
X- cp $(JFOLD) $(BINLOC)
X- chmod $(BINMOD) $(BINLOC)/$(JFOLD)
X+
X+ $(INSTALL) $(BINMOD) $(JGREP) $(BINLOC)
X+ $(INSTALL) $(BINMOD) $(JCAT) $(BINLOC)
X+ $(INSTALL) $(BINMOD) $(JFOLD) $(BINLOC)
X+
X @$(CSH) -f -c "if (! -d $(MANDIR)) mkdir $(MANDIR)"
X @$(CSH) -f -c "if (! -d $(MANLOC)) mkdir $(MANLOC)"
X- cp ../doc/$(MANFILE) $(MANLOC)
X- chmod $(MANMOD) $(MANLOC)/$(MANFILE)
X- cp ../doc/$(JGREP).1 ../doc/$(JGREP).man $(MANLOC)
X- chmod $(MANMOD) $(MANLOC)/$(JGREP).1 $(MANLOC)/$(JGREP).man
X- cp ../doc/$(JCAT).1 ../doc/$(JCAT).man $(MANLOC)
X- chmod $(MANMOD) $(MANLOC)/$(JCAT).1 $(MANLOC)/$(JCAT).man
X- cp ../doc/$(JFOLD).1 ../doc/$(JFOLD).man $(MANLOC)
X- chmod $(MANMOD) $(MANLOC)/$(JFOLD).1 $(MANLOC)/$(JFOLD).man
X+
X+ $(GZIP) ../doc/$(MANFILE) > /tmp/$(MANFILE).gz
X+ $(INSTALL) $(MANMOD) /tmp/$(MANFILE).gz $(MANLOC)
X+
X+ $(GZIP) ../doc/$(JGREP).1 > /tmp/$(JGREP).1.gz
X+ $(INSTALL) $(MANMOD) /tmp/$(JGREP).1.gz $(MANLOC)
X+ $(INSTALL) $(MANMOD) ../doc/$(JGREP).man $(MANLOC)
X+
X+ $(GZIP) ../doc/$(JCAT).1 > /tmp/$(JCAT).1.gz
X+ $(INSTALL) $(MANMOD) /tmp/$(JCAT).1.gz $(MANLOC)
X+ $(INSTALL) $(MANMOD) ../doc/$(JCAT).man $(MANLOC)
X+
X+ $(GZIP) ../doc/$(JFOLD).1 > /tmp/$(JFOLD).1.gz
X+ $(INSTALL) $(MANMOD) /tmp/$(JFOLD).1.gz $(MANLOC)
X+ $(INSTALL) $(MANMOD) ../doc/$(JFOLD).man $(MANLOC)
X+
X @$(CSH) -f -c "if (! -d $(HELPLOC)) mkdir $(HELPLOC)"
X- cp ../doc/$(HELPFILE) $(HELPLOC)
X- chmod $(HELPMOD) $(HELPLOC)/$(HELPFILE)
X+ $(INSTALL) $(HELPMOD) ../doc/$(HELPFILE) $(HELPLOC)
X @chmod 755 $(PREFIX) $(BINLOC) $(MANLOC) $(HELPLOC)
X @echo "Installed with $(MDOMAIN)"
X
END-of-jvim-canna/patches/patch-aa
exit
-- onew-canna
# 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:
#
# onew-canna
# onew-canna/Makefile
# onew-canna/pkg
# onew-canna/pkg/PLIST
# onew-canna/pkg/COMMENT
# onew-canna/pkg/DESCR
# onew-canna/files
# onew-canna/files/md5
# onew-canna/files/ONEW_CONF-canna
# onew-canna/patches
# onew-canna/patches/patch-aa
# onew-canna/patches/patch-ab
#
echo c - onew-canna
mkdir -p onew-canna > /dev/null 2>&1
echo x - onew-canna/Makefile
sed 's/^X//' >onew-canna/Makefile << 'END-of-onew-canna/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= jvim2.0r+onew2.2.10
XPKGNAME= ja-onew-canna-2.2.10
XCATEGORIES= japanese
XMASTER_SITES+= ftp://ftp.lab.kdd.co.jp/Japan/onew/
XMASTER_SITES+= ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
X
XMAINTAINER= tech-pkg-ja@jp.NetBSD.ORG
XHOMEPAGE= NONE
X
XDEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib
X
XWRKSRC= ${WRKDIR}/onew
XONEW_CONF= ${FILESDIR}/ONEW_CONF-canna
XLIBNAME= libonew-canna.a
XDOCDIR= ${LOCALBASE}/share/doc/ja-onew-canna
X
Xpost-patch:
X ${SED} -e 's,%LOCALBASE%,${LOCALBASE},g' \
X -e 's,%X11BASE%,${X11BASE},g' \
X ${ONEW_CONF} > ${WRKSRC}/ONEW_CONF
Xdo-build:
X cd ${WRKSRC}; make Makefile.go; make -f Makefile.go
X
Xdo-install:
X ${INSTALL} -m 444 ${WRKSRC}/libonew.a ${LOCALBASE}/lib/${LIBNAME}
X ${INSTALL} -m 444 ${WRKSRC}/README.ONEW ${DOCDIR}
X
X.include "../../mk/bsd.pkg.mk"
END-of-onew-canna/Makefile
echo c - onew-canna/pkg
mkdir -p onew-canna/pkg > /dev/null 2>&1
echo x - onew-canna/pkg/PLIST
sed 's/^X//' >onew-canna/pkg/PLIST << 'END-of-onew-canna/pkg/PLIST'
X@comment $NetBSD$
Xlib/libonew-canna.a
Xshare/doc/ja-onew-canna
END-of-onew-canna/pkg/PLIST
echo x - onew-canna/pkg/COMMENT
sed 's/^X//' >onew-canna/pkg/COMMENT << 'END-of-onew-canna/pkg/COMMENT'
XA library for Japanese Input Method Canna
END-of-onew-canna/pkg/COMMENT
echo x - onew-canna/pkg/DESCR
sed 's/^X//' >onew-canna/pkg/DESCR << 'END-of-onew-canna/pkg/DESCR'
XONEW is a library for using Japanese Input Method Canna,
XWnn4, or Wnn6.
X
XThis is for Canna.
X
X-- S. Taoka
X<taoka@infonets.hiroshima-u.ac.jp>
END-of-onew-canna/pkg/DESCR
echo c - onew-canna/files
mkdir -p onew-canna/files > /dev/null 2>&1
echo x - onew-canna/files/md5
sed 's/^X//' >onew-canna/files/md5 << 'END-of-onew-canna/files/md5'
X$NetBSD$
X
XMD5 (jvim2.0r+onew2.2.10.tar.gz) = 42e04a80f3dbdfca4fbe8b9e634d1380
END-of-onew-canna/files/md5
echo x - onew-canna/files/ONEW_CONF-canna
sed 's/^X//' >onew-canna/files/ONEW_CONF-canna << 'END-of-onew-canna/files/ONEW_CONF-canna'
XCANNAINC = -I%LOCALBASE%/include
XCANNAOBJ = Canna.o CannaRk.o
XCANNALIB = -L%LOCALBASE%/lib -lcanna -lcompat
XCANNA_RKPATH = '".:$$HOME:%LOCALBASE%/share/canna/dic"'
XCANNA_RKTAB = '"default.cbp"'
XRKKLIBS = $(CANNALIB)
XRKKOBJS = $(CANNAOBJ)
XONEW_ENGINE= '"canna/canna"'
END-of-onew-canna/files/ONEW_CONF-canna
echo c - onew-canna/patches
mkdir -p onew-canna/patches > /dev/null 2>&1
echo x - onew-canna/patches/patch-aa
sed 's/^X//' >onew-canna/patches/patch-aa << 'END-of-onew-canna/patches/patch-aa'
X$NetBSD$
X
X--- sys/sys.h.orig Mon Nov 15 12:12:32 1999
X+++ sys/sys.h Mon Nov 15 12:13:09 1999
X@@ -30,7 +30,8 @@
X || defined(MACH) \
X || defined(NeXT) \
X || defined(bsdi) \
X- || defined(__FreeBSD__)
X+ || defined(__FreeBSD__) \
X+ || defined(__NetBSD__)
X #define USE_SGTTY
X #define HAS_SELECT
X #endif
X@@ -69,7 +70,7 @@
X #define READYCC(fp) (fp->_egptr - fp->_gptr)
X #endif
X #else
X-#if defined(bsdi) || defined(__FreeBSD__)
X+#if defined(bsdi) || defined(__FreeBSD__) || defined(__NetBSD__)
X #define READYCC(fp) (fp->_r)
X #else
X #define READYCC(fp) (fp->_cnt)
END-of-onew-canna/patches/patch-aa
echo x - onew-canna/patches/patch-ab
sed 's/^X//' >onew-canna/patches/patch-ab << 'END-of-onew-canna/patches/patch-ab'
X$NetBSD$
X
X--- conf.c.orig Thu Jun 23 11:42:33 1994
X+++ conf.c Mon Sep 14 15:48:41 1998
X@@ -220,7 +220,8 @@
X #define IR(func) (romkan_select() ? func : 0)
X #define ONEWromkan_ready(rkpath) IR((*RP->rk_ready)(rkpath))
X #define ONEWromkan_modesw(mode) IR((*RP->rk_modesw)(mode))
X-#define ONEWromkan_clear() IR((*RP->rk_gotch)())
X+/*#define ONEWromkan_clear() IR((*RP->rk_gotch)())*/
X+#define ONEWromkan_clear() IR((*RP->rk_clear)())
X #define ONEWromkan_getc() IR((*RP->rk_getc)())
X #define ONEWromkan_next() IR((*RP->rk_next)())
X #define ONEWromkan_dispmode() IR((*RP->rk_dispmode)())
END-of-onew-canna/patches/patch-ab
exit
--
ぷにお (目指せ!1日1パッケージ)
http://www.dd.iij4u.or.jp/%7Epunio/NetBSD/
ftp://matrix.NSJ.CO.JP/NetBSD/privpkg/