Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2013 02:11:37 GMT
From:      Henry Hu <henry.hu.sh@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176021: [patch] chinese/libchewing: update to 0.3.4
Message-ID:  <201302110211.r1B2BbTC031920@red.freebsd.org>
Resent-Message-ID: <201302110220.r1B2K09U082727@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176021
>Category:       ports
>Synopsis:       [patch] chinese/libchewing: update to 0.3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 02:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Henry Hu
>Release:        FreeBSD 9.1
>Organization:
Columbia University
>Environment:
FreeBSD home.henryhu.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1 r244163M: Wed Dec 12 20:37:07 EST 2012     root@home.henryhu.net:/usr/obj/usr/src/sys/MYKERNEL  amd64
>Description:
Update chinese/libchewing to 0.3.4

* Master site changed to Google Code
* Patches to install data into PREFIX/share/chewing

Patch created and tested by me and Zhihao Yuan(lichray@gmail.com)

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: chinese/libchewing/Makefile
===================================================================
--- chinese/libchewing/Makefile	(revision 310983)
+++ chinese/libchewing/Makefile	(working copy)
@@ -1,24 +1,25 @@
-# New ports collection makefile for:	libchewing
-# Date created:		5 Sep 2004
-# Whom:			Kuang-che Wu <kcwu@csie.org>
-#
+# Created by: Kuang-che Wu <kcwu@csie.org>
 # $FreeBSD$
-#
 
 PORTNAME=	libchewing
-PORTVERSION=	0.3.3
+PORTVERSION=	0.3.4
 CATEGORIES=	chinese textproc
-MASTER_SITES=	http://chewing.csie.net/download/libchewing/
+MASTER_SITES=	GOOGLE_CODE
 
 MAINTAINER=	clsung@FreeBSD.org
 COMMENT=	The Chewing intelligent phonetic input method library
 
-USE_GNOME=	gnomehack pkgconfig
+INFO=		libchewing
+
+USE_GMAKE=	yes
+USE_GNOME=	gnomehack
+USE_PKGCONFIG=	yes
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USE_BZIP2=	yes
 
 DATADIR=	${PREFIX}/share/chewing
+PROJECTHOST=	chewing
 
 .include <bsd.port.pre.mk>
 
Index: chinese/libchewing/distinfo
===================================================================
--- chinese/libchewing/distinfo	(revision 310983)
+++ chinese/libchewing/distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (libchewing-0.3.3.tar.bz2) = 72a0de12b86c4d5f6468a68d88c736227ff16fa7a915f8595ffe5a31cae95eae
-SIZE (libchewing-0.3.3.tar.bz2) = 1798134
+SHA256 (libchewing-0.3.4.tar.bz2) = f940734d514d52f0375cb1afa5d4d7536a93fd8ff0c3ce4a002ab1698dd07ff6
+SIZE (libchewing-0.3.4.tar.bz2) = 1926898
Index: chinese/libchewing/files/patch-data_Makefile.in
===================================================================
--- chinese/libchewing/files/patch-data_Makefile.in	(revision 0)
+++ chinese/libchewing/files/patch-data_Makefile.in	(working copy)
@@ -0,0 +1,11 @@
+--- data/Makefile.in.orig	2013-02-10 19:20:34.000000000 -0500
++++ data/Makefile.in	2013-02-10 19:20:40.000000000 -0500
+@@ -261,7 +261,7 @@
+ 	tsi.src \
+ 	$(NULL)
+ 
+-chewing_datadir = $(pkglibdir)
++chewing_datadir = $(datadir)/chewing
+ chewing_data_DATA = \
+ 	$(static_tables) \
+ 	$(datas) \
Index: chinese/libchewing/files/patch-plat_path.c
===================================================================
--- chinese/libchewing/files/patch-plat_path.c	(revision 0)
+++ chinese/libchewing/files/patch-plat_path.c	(working copy)
@@ -0,0 +1,15 @@
+--- src/porting_layer/src/plat_path.c.orig	2013-02-10 19:57:20.000000000 -0500
++++ src/porting_layer/src/plat_path.c	2013-02-10 19:57:35.000000000 -0500
+@@ -37,10 +37,10 @@
+ 		home = getenv( "HOME" );
+ 		if ( home ) {
+ 			snprintf( path, path_len, "%s/.chewing" SEARCH_PATH_SEP
+-				LIBDIR "/libchewing", home );
++				DATADIR "/chewing", home );
+ 		} else {
+ 			// No HOME ?
+-			strncpy( path, SEARCH_PATH_SEP LIBDIR "/libchewing", path_len );
++			strncpy( path, SEARCH_PATH_SEP DATADIR "/chewing", path_len );
+ 		}
+ 	}
+ 
Index: chinese/libchewing/files/patch-src_porting_layer_Makefile.in
===================================================================
--- chinese/libchewing/files/patch-src_porting_layer_Makefile.in	(revision 0)
+++ chinese/libchewing/files/patch-src_porting_layer_Makefile.in	(working copy)
@@ -0,0 +1,10 @@
+--- src/porting_layer/src/Makefile.in.orig	2013-02-10 19:59:20.000000000 -0500
++++ src/porting_layer/src/Makefile.in	2013-02-10 19:59:33.000000000 -0500
+@@ -113,6 +113,7 @@
+ AM_CFLAGS = @AM_CFLAGS@
+ AM_CPPFLAGS = \
+ 	-DLIBDIR=\"@libdir@\" \
++	-DDATADIR=\"@datadir@\" \
+ 	$(NULL)
+ 
+ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302110211.r1B2BbTC031920>