diff --git a/japanese/onew-canna/Makefile b/japanese/onew-canna/Makefile new file mode 100644 index 00000000000..7ebecc59c4c --- /dev/null +++ b/japanese/onew-canna/Makefile @@ -0,0 +1,36 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2000/04/29 01:07:13 espie Exp $ + +DISTNAME= jvim2.0r+onew2.2.10 +PKGNAME?= ja-onew-canna-2.2.10 +CATEGORIES= japanese +NEED_VERSION= 1.230 +FAKE= Yes +MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \ + ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/ + +MAINTAINER= espie@cvs.openbsd.org + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +LIB_DEPENDS= canna.1.::japanese/canna + +WRKDIST= ${WRKDIR}/onew +ALL_TARGET= + +ONEW_CONF= ${FILESDIR}/ONEW_CONF-for-canna +LIB_NAME= libonew-canna.a +PORT_DOCDIR= ${PREFIX}/share/doc/ja-onew-canna + +post-patch: + sed -e 's,%PREFIX%,${PREFIX},g' \ + ${ONEW_CONF} > ${WRKSRC}/ONEW_CONF + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libonew.a ${LOCALBASE}/lib/${LIB_NAME} + ${INSTALL_DATA_DIR} ${PORT_DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/README.ONEW ${PORT_DOCDIR} + +.include diff --git a/japanese/onew-canna/files/ONEW_CONF-for-canna b/japanese/onew-canna/files/ONEW_CONF-for-canna new file mode 100644 index 00000000000..95d0a27f92f --- /dev/null +++ b/japanese/onew-canna/files/ONEW_CONF-for-canna @@ -0,0 +1,7 @@ +CANNAINC = -I%PREFIX%/include +CANNAOBJ = Canna.o CannaRk.o +CANNALIB = -L%PREFIX%/lib -lcanna +CANNA_RKPATH = '".:$$HOME:%PREFIX%/lib/canna/dic:/tmp/onew_rktabs/canna"' +RKKLIBS = $(CANNALIB) +RKKOBJS = $(CANNAOBJ) +ONEW_ENGINE = '"canna/canna"' diff --git a/japanese/onew-canna/files/md5 b/japanese/onew-canna/files/md5 new file mode 100644 index 00000000000..47365b876b3 --- /dev/null +++ b/japanese/onew-canna/files/md5 @@ -0,0 +1,3 @@ +MD5 (jvim2.0r+onew2.2.10.tar.gz) = 42e04a80f3dbdfca4fbe8b9e634d1380 +RMD160 (jvim2.0r+onew2.2.10.tar.gz) = be3ec6688e2372032d3d050b681d7ea3e20bc01f +SHA1 (jvim2.0r+onew2.2.10.tar.gz) = 546ad6c34024a9528b25533466242470d2db70c2 diff --git a/japanese/onew-canna/patches/patch-aa b/japanese/onew-canna/patches/patch-aa new file mode 100644 index 00000000000..29d57e485ed --- /dev/null +++ b/japanese/onew-canna/patches/patch-aa @@ -0,0 +1,20 @@ +--- sys/sys.h.orig Wed Jul 29 02:05:15 1998 ++++ sys/sys.h Wed Jul 29 02:04:37 1998 +@@ -30,7 +30,7 @@ + || defined(MACH) \ + || defined(NeXT) \ + || defined(bsdi) \ +- || defined(__FreeBSD__) ++ || defined(__FreeBSD__) || defined(__OpenBSD__) + #define USE_SGTTY + #define HAS_SELECT + #endif +@@ -69,7 +69,7 @@ + #define READYCC(fp) (fp->_egptr - fp->_gptr) + #endif + #else +-#if defined(bsdi) || defined(__FreeBSD__) ++#if defined(bsdi) || defined(__FreeBSD__) || defined(__OpenBSD__) + #define READYCC(fp) (fp->_r) + #else + #define READYCC(fp) (fp->_cnt) diff --git a/japanese/onew-canna/patches/patch-ab b/japanese/onew-canna/patches/patch-ab new file mode 100644 index 00000000000..ed80c5495a1 --- /dev/null +++ b/japanese/onew-canna/patches/patch-ab @@ -0,0 +1,11 @@ +--- sys/regex.c.orig Wed Jul 29 02:05:30 1998 ++++ sys/regex.c Wed Jul 29 02:04:46 1998 +@@ -35,7 +35,7 @@ + #else + #if defined(hpux) \ + || defined(bsdi) \ +- || defined(__FreeBSD__) ++ || defined(__FreeBSD__) || defined(__OpenBSD__) + + #ifdef bsdi + #include diff --git a/japanese/onew-canna/pkg/COMMENT b/japanese/onew-canna/pkg/COMMENT new file mode 100644 index 00000000000..e9afe64513a --- /dev/null +++ b/japanese/onew-canna/pkg/COMMENT @@ -0,0 +1 @@ +library for Japanese Input Method canna diff --git a/japanese/onew-canna/pkg/DESCR b/japanese/onew-canna/pkg/DESCR new file mode 100644 index 00000000000..aae13a768d6 --- /dev/null +++ b/japanese/onew-canna/pkg/DESCR @@ -0,0 +1,4 @@ +ONEW is a library for using Japanese Input Method Canna, Wnn4, or +Wnn6. + +This is the Canna version. diff --git a/japanese/onew-canna/pkg/PLIST b/japanese/onew-canna/pkg/PLIST new file mode 100644 index 00000000000..40e0594d8d4 --- /dev/null +++ b/japanese/onew-canna/pkg/PLIST @@ -0,0 +1,3 @@ +lib/libonew-canna.a +share/doc/ja-onew-canna/README.ONEW +@dirrm share/doc/ja-onew-canna