1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Update to 2.0.7.

o Fix version schema.  So bump PORTEPOCH.
o Fix build on 4.x on 2.0.7.  So remove files/patch-nkf.c
This commit is contained in:
Norikatsu Shigemura 2006-07-02 12:51:09 +00:00
parent f26c197646
commit b507acd1b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=166757
4 changed files with 14 additions and 57 deletions

View File

@ -6,18 +6,18 @@
#
PORTNAME= nkf
PORTVERSION= 2.06
DISTVERSION= a
PORTVERSION= 2.0.7
PORTEPOCH= 1
CATEGORIES?= japanese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
MASTER_SITE_SUBDIR= ${PORTNAME}/19481
MASTER_SITE_SUBDIR= ${PORTNAME}/20770
PKGNAMEPREFIX?= ja-
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//:S/./-/}${DISTVERSION}
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
MAINTAINER= nork@FreeBSD.org
COMMENT?= Network Kanji code conversion Filter
WRKSRC?= ${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//:S/./-/}
WRKSRC?= ${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//g}
.if ${PKGNAMEPREFIX} != "ja-p5-"
MAN1= nkf.1

View File

@ -1,3 +1,3 @@
MD5 (nkf206a.tar.gz) = f4b07268b238ac85551e2777fa2c3836
SHA256 (nkf206a.tar.gz) = 8b0e93dcc1270a13cd7fc74d65f636f036de554c1f46e93629cf5a932650ea49
SIZE (nkf206a.tar.gz) = 244822
MD5 (nkf207.tar.gz) = af11dcd3fe71d67831c020e3bfd5073b
SHA256 (nkf207.tar.gz) = 71d2ba992df209a00bb1dca45e3336729dc16e51b71526bd20f897cc6127a275
SIZE (nkf207.tar.gz) = 150501

View File

@ -1,8 +1,8 @@
--- Makefile.orig Mon Mar 27 21:46:57 2006
+++ Makefile Sat May 6 22:40:48 2006
--- Makefile.orig Mon Jun 19 23:04:35 2006
+++ Makefile Sun Jul 2 21:44:28 2006
@@ -1,17 +1,27 @@
-CC = cc
-CFLAGS = -O -Wall
-CFLAGS = -O
+PREFIX?= /usr/local
+CC?= cc
+CFLAGS?= -O -Wall
@ -14,9 +14,9 @@
+PERL?= perl
+RM?= rm -rf
+INSTALL?= /usr/bin/install
+BSD_INSTALL_PROGRAM?= ${INSTALL} -s -o root -g wheel -m 555
+BSD_INSTALL_MAN?= ${INSTALL} -o root -g wheel -m 444
VERSION = 206
+BSD_INSTALL_PROGRAM?= ${INSTALL} -s -o root -g wheel -m 555
+BSD_INSTALL_MAN?= ${INSTALL} -o root -g wheel -m 444
VERSION = 207
nkf : nkf.c config.h utf8tbl.o
$(CC) $(CFLAGS) -o nkf nkf.c utf8tbl.o

View File

@ -1,43 +0,0 @@
--- nkf.c.orig Mon Mar 27 21:46:58 2006
+++ nkf.c Sun May 7 22:37:16 2006
@@ -3323,9 +3323,9 @@
void (*f)PROTO((int c2,int c1));
int c;
{
+ int shift = 20;
const char *hex = "0123456789ABCDEF";
c &= 0x00FFFFFF;
- int shift = 20;
while(shift >= 0){
if(c >= 1<<shift){
while(shift >= 0){
@@ -3417,6 +3417,7 @@
c = unicode_subchar;
(*oconv)((c>>8)&0xFF, c&0xFF);
return;
+#if 0
int shift = 16;
while(shift >= 0){
if(c >= 1<<shift){
@@ -3429,10 +3430,13 @@
}
}
return;
+#endif
}
#endif
#ifdef UTF8_OUTPUT_ENABLE
+extern const unsigned short *const x0212_to_utf8_2bytes[];
+
int
e2w_conv(c2, c1)
int c2, c1;
@@ -3449,7 +3453,6 @@
if(ms_ucs_map_f == UCS_MAP_ASCII&& c2 == 0x8F22 && c1 == 0x43){
return 0xA6;
}
- extern const unsigned short *const x0212_to_utf8_2bytes[];
c2 = (c2&0x7f) - 0x21;
if (0<=c2 && c2<sizeof_euc_to_utf8_2bytes)
p = x0212_to_utf8_2bytes[c2];