svn commit: r321829 - in head/chinese/libchewing: . files

Cheng-Lung Sung clsung at FreeBSD.org
Thu Jun 27 01:47:20 UTC 2013


Author: clsung
Date: Thu Jun 27 01:47:18 2013
New Revision: 321829
URL: http://svnweb.freebsd.org/changeset/ports/321829

Log:
  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 at gmail.com)
  
  PR:		ports/176021
  Submitted by:	Henry Hu <henry.hu.sh_AT_gmail.com>

Added:
  head/chinese/libchewing/files/
  head/chinese/libchewing/files/patch-data_Makefile.in   (contents, props changed)
  head/chinese/libchewing/files/patch-plat_path.c   (contents, props changed)
  head/chinese/libchewing/files/patch-src_porting_layer_Makefile.in   (contents, props changed)
Modified:
  head/chinese/libchewing/Makefile
  head/chinese/libchewing/distinfo

Modified: head/chinese/libchewing/Makefile
==============================================================================
--- head/chinese/libchewing/Makefile	Thu Jun 27 01:05:57 2013	(r321828)
+++ head/chinese/libchewing/Makefile	Thu Jun 27 01:47:18 2013	(r321829)
@@ -1,24 +1,25 @@
-# New ports collection makefile for:	libchewing
-# Date created:		5 Sep 2004
-# Whom:			Kuang-che Wu <kcwu at csie.org>
-#
+# Created by: Kuang-che Wu <kcwu at 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 at 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>
 

Modified: head/chinese/libchewing/distinfo
==============================================================================
--- head/chinese/libchewing/distinfo	Thu Jun 27 01:05:57 2013	(r321828)
+++ head/chinese/libchewing/distinfo	Thu Jun 27 01:47:18 2013	(r321829)
@@ -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

Added: head/chinese/libchewing/files/patch-data_Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/libchewing/files/patch-data_Makefile.in	Thu Jun 27 01:47:18 2013	(r321829)
@@ -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) \

Added: head/chinese/libchewing/files/patch-plat_path.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/libchewing/files/patch-plat_path.c	Thu Jun 27 01:47:18 2013	(r321829)
@@ -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 );
+ 		}
+ 	}
+ 

Added: head/chinese/libchewing/files/patch-src_porting_layer_Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/libchewing/files/patch-src_porting_layer_Makefile.in	Thu Jun 27 01:47:18 2013	(r321829)
@@ -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@


More information about the svn-ports-all mailing list