ports/90196: Update port: japanese/kanjipad to 2.0.0

KATO Tsuguru tkato432 at yahoo.com
Sat Dec 10 17:10:18 UTC 2005


>Number:         90196
>Category:       ports
>Synopsis:       Update port: japanese/kanjipad to 2.0.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 10 17:10:08 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p13 i386
>Organization:
>Environment:
>Description:
- Update to version 2.0.0

Remove file:
files/patch-Makefile
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/japanese/kanjipad/Makefile japanese/kanjipad/Makefile
--- /usr/ports/japanese/kanjipad/Makefile	Mon Oct 10 14:52:58 2005
+++ japanese/kanjipad/Makefile	Mon Dec  5 02:56:34 2005
@@ -6,21 +6,32 @@
 #
 
 PORTNAME=	kanjipad
-PORTVERSION=	1.2.1
-PORTREVISION=	1
+PORTVERSION=	2.0.0
 CATEGORIES=	japanese x11
-MASTER_SITES=	ftp://ftp.gtk.org/pub/users/otaylor/kanjipad/
+MASTER_SITES=	http://fishsoup.net/software/kanjipad/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Japanese Handwriting recognition
 
 USE_X_PREFIX=	yes
-USE_XLIB=	yes
-USE_GNOME=	gtk12
+USE_GNOME=	gtk20
 USE_PERL5=	yes
+USE_GMAKE=	yes
+MAKE_ARGS=	OPTIMIZE="${CFLAGS}" PREFIX="${PREFIX}" \
+		GTKINC="`pkg-config --cflags gtk+-2.0`"
 
-post-install:
-	strip ${PREFIX}/bin/kanjipad
-	strip ${PREFIX}/bin/kpengine
+PORTDOCS=	README
+PLIST_FILES=	bin/kanjipad bin/kpengine %%DATADIR%%/jdata.dat
+PLIST_DIRS=	%%DATADIR%%
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/kanjipad ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/kpengine ${PREFIX}/bin
+	@${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/jdata.dat ${DATADIR}
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/japanese/kanjipad/distinfo japanese/kanjipad/distinfo
--- /usr/ports/japanese/kanjipad/distinfo	Fri Nov 25 13:36:42 2005
+++ japanese/kanjipad/distinfo	Mon Dec  5 02:48:21 2005
@@ -1,3 +1,3 @@
-MD5 (kanjipad-1.2.1.tar.gz) = df12d493b4bdb3defdff3d790b689b74
-SHA256 (kanjipad-1.2.1.tar.gz) = e04279e645bacda0f8fdb42883d730ec62adb354d150b913144c2c9ae84d4f1e
-SIZE (kanjipad-1.2.1.tar.gz) = 74287
+MD5 (kanjipad-2.0.0.tar.gz) = bdfe75534322840b3ff566e0a91c472d
+SHA256 (kanjipad-2.0.0.tar.gz) = 28272f61ec09c607a3578e3626e9e4fd43d1d9d1e21cb64328745766d00ee9e1
+SIZE (kanjipad-2.0.0.tar.gz) = 75930
diff -urN /usr/ports/japanese/kanjipad/files/patch-Makefile japanese/kanjipad/files/patch-Makefile
--- /usr/ports/japanese/kanjipad/files/patch-Makefile	Thu Apr  4 01:11:01 2002
+++ japanese/kanjipad/files/patch-Makefile	Thu Jan  1 09:00:00 1970
@@ -1,24 +0,0 @@
---- Makefile.orig	Sat Mar 30 17:12:23 2002
-+++ Makefile	Sat Mar 30 17:12:10 2002
-@@ -1,10 +1,10 @@
- OPTIMIZE=-g -Wall
- #OPTIMIZE=-O2 
- 
--GTKLIBS=`gtk-config --libs`
--GTKINC=`gtk-config --cflags`
-+GTKLIBS=`$(GTK_CONFIG) --libs`
-+GTKINC=`$(GTK_CONFIG) --cflags`
- 
--PREFIX=/usr/local
-+#PREFIX=/usr/local
- DATADIR=$(PREFIX)/share
- 
- # location in which binaries are installed
-@@ -17,7 +17,7 @@
- ####### No editing should be needed below here ##########
- 
- OBJS = kpengine.o scoring.o util.o
--CFLAGS = $(OPTIMIZE) $(GTKINC) -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"$(LIBDIR)\"
-+CFLAGS += $(OPTIMIZE) $(GTKINC) -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"$(LIBDIR)\"
- 
- all: kpengine kanjipad jdata.dat
diff -urN /usr/ports/japanese/kanjipad/pkg-descr japanese/kanjipad/pkg-descr
--- /usr/ports/japanese/kanjipad/pkg-descr	Thu Apr  4 01:10:58 2002
+++ japanese/kanjipad/pkg-descr	Mon Dec  5 03:04:40 2005
@@ -1,8 +1,9 @@
-KanjiPad - Japanese Handwriting recognition - By Owen Taylor <otaylor at gtk.org>
+KanjiPad - Japanese Handwriting recognition
 
 KanjiPad is a very simple program for handwriting recognition -
 The user draws a character into the box, then requests translation.
 The best candidates are displayed along the right hand side of
 the window and can be selected for pasting into other programs.
 
-WWW: http://www.gtk.org/~otaylor/kanjipad/
+Author: Owen Taylor <otaylor at fishsoup.net>
+WWW: http://fishsoup.net/software/kanjipad/
diff -urN /usr/ports/japanese/kanjipad/pkg-plist japanese/kanjipad/pkg-plist
--- /usr/ports/japanese/kanjipad/pkg-plist	Thu Apr  4 01:10:58 2002
+++ japanese/kanjipad/pkg-plist	Thu Jan  1 09:00:00 1970
@@ -1,4 +0,0 @@
-bin/kanjipad
-bin/kpengine
-share/kanjipad/jdata.dat
- at dirrm share/kanjipad
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list