Bug 170008 - [UPDATE] chinese/sunpinyin to the latest git version
Summary: [UPDATE] chinese/sunpinyin to the latest git version
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-19 23:30 UTC by lichray
Modified: 2012-07-20 00:40 UTC (History)
0 users

See Also:


Attachments
sunpinyin-r2-2.patch (4.22 KB, patch)
2012-07-19 23:30 UTC, lichray
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lichray 2012-07-19 23:30:09 UTC
	
	The git repo is at https://github.com/sunpinyin/sunpinyin .

	This version contains some changes required by the coming fcitx-sunpinyin, so please handle this PR ASAP. Thanks.

	Changes:
	 * The plugin support is disabled by default (from upstream, and unused by our ports tree).

	IMPORTANT:
	   The distfile was hosted by wen@, but I can't find him recently. So I added my university link to the MASTER_SITES. Please host the distfile for me instead (replace LOCAL/wen with yours) and be sure to REMOVE my university link before you commit this!
Comment 1 Xin LI freebsd_committer freebsd_triage 2012-07-20 00:09:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->delphij

Take.
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-07-20 00:36:07 UTC
Author: delphij
Date: Thu Jul 19 23:35:57 2012
New Revision: 301199
URL: http://svn.freebsd.org/changeset/ports/301199

Log:
  Update to 2.0.4 RC 2
  
  PR:		ports/170008
  Submitted by:	Zhihao Yuan <lichray gmail com> (maintainer)

Modified:
  head/chinese/sunpinyin/Makefile
  head/chinese/sunpinyin/distinfo
  head/chinese/sunpinyin/files/patch-SConstruct
  head/chinese/sunpinyin/pkg-plist

Modified: head/chinese/sunpinyin/Makefile
==============================================================================
--- head/chinese/sunpinyin/Makefile	Thu Jul 19 23:08:41 2012	(r301198)
+++ head/chinese/sunpinyin/Makefile	Thu Jul 19 23:35:57 2012	(r301199)
@@ -6,9 +6,10 @@
 #
 
 PORTNAME=	sunpinyin
-DISTVERSION=	2.0.4rc1
+DISTVERSION=	2.0.4rc2
 CATEGORIES=	chinese devel
 MASTER_SITES=	LOCAL/wen:1 \
+		http://students.cs.niu.edu/~z1565938/distfiles/:1 \
 		${MASTER_SITE_GOOGLE_CODE}:1 \
 		http://open-gram.googlecode.com/files/:2
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:1 \
@@ -21,7 +22,7 @@ COMMENT=	A statistical language model ba
 LICENSE=	LGPL21 CDDL
 LICENSE_COMB=	dual
 
-LIB_DEPENDS=	sqlite3.8:${PORTSDIR}/databases/sqlite3
+LIB_DEPENDS=	sqlite3:${PORTSDIR}/databases/sqlite3
 BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkg-config
 
 LICENSE_FILE_LGPL21=	${WRKSRC}/LGPL.LICENSE

Modified: head/chinese/sunpinyin/distinfo
==============================================================================
--- head/chinese/sunpinyin/distinfo	Thu Jul 19 23:08:41 2012	(r301198)
+++ head/chinese/sunpinyin/distinfo	Thu Jul 19 23:35:57 2012	(r301199)
@@ -1,5 +1,5 @@
-SHA256 (sunpinyin-2.0.4rc1.tar.xz) = e8d752ca3fdf475cb097e71dfae3fbf7e118c373a3ea98d3742fc12ae838594e
-SIZE (sunpinyin-2.0.4rc1.tar.xz) = 969976
+SHA256 (sunpinyin-2.0.4rc2.tar.xz) = 075d80b5159362bc2fd4b5fece3db6de72658ccebf58ea96a91b3b13da5752d7
+SIZE (sunpinyin-2.0.4rc2.tar.xz) = 970072
 SHA256 (lm_sc.t3g.arpa.tar.bz2) = 5fcbb6264befd03a75fad1301b8804a8df52972b2ea91045c7f2613904bbc6c7
 SIZE (lm_sc.t3g.arpa.tar.bz2) = 36280876
 SHA256 (dict.utf8.tar.bz2) = d0bcbc5b7005823e69c490a178d456d476069c640bf292028282e9a94d784418

Modified: head/chinese/sunpinyin/files/patch-SConstruct
==============================================================================
--- head/chinese/sunpinyin/files/patch-SConstruct	Thu Jul 19 23:08:41 2012	(r301198)
+++ head/chinese/sunpinyin/files/patch-SConstruct	Thu Jul 19 23:35:57 2012	(r301199)
@@ -1,28 +1,28 @@
---- SConstruct.orig	2011-02-17 21:39:52.000000000 -0600
-+++ SConstruct	2011-11-10 03:04:39.833952104 -0600
-@@ -150,9 +150,13 @@ def CreateEnvironment():
-         tar = 'gtar'
-         make = 'gmake'
+--- SConstruct.orig	2012-07-17 23:25:59.000000000 -0500
++++ SConstruct	2012-07-17 23:40:11.633113871 -0500
+@@ -176,10 +176,12 @@ def CreateEnvironment():
  
--    return Environment(ENV=os.environ, CFLAGS=cflags, CXXFLAGS=cflags,
--                       TAR=tar, MAKE=make, WGET=wget,
--                       CPPPATH=['.'] + allinc())
-+    env = Environment(**ARGUMENTS)
+     libln_builder = Builder(action='ln -s ${SOURCE.name} ${TARGET.name}',
+                             chdir=True)
+-    env = Environment(ENV=os.environ, CFLAGS=cflags, CXXFLAGS=cflags,
+-                      TAR=tar, MAKE=make, WGET=wget,
+-                      CPPPATH=['.'] + allinc(),
+-                      tools=['default', 'textfile'])
++    env = Environment(tools=['default', 'textfile'], **ARGUMENTS)
 +    env['ENV'] = os.environ
 +    env['TAR'] = tar
 +    env['MAKE'] = make
 +    env['CPPPATH'] = ['.'] + allinc()
 +
-+    return env
+     env.Append(BUILDERS={'InstallAsSymlink': libln_builder})
+     return env
  
- def PassVariables(envvar, env):
-     for (x, y) in envvar:
-@@ -382,7 +386,7 @@ def DoInstall():
-                         (install_path, libname, libname_link))
+@@ -420,7 +422,7 @@ def DoInstall():
+                                  lib_target_bin),
              ]
  
--    lib_pkgconfig_target = env.Install(libdir+'/pkgconfig',
-+    lib_pkgconfig_target = env.Install(env['PREFIX']+'/libdata/pkgconfig',
+-    lib_pkgconfig_target = env.Install(os.path.join(libdir, 'pkgconfig'),
++    lib_pkgconfig_target = env.Install(os.path.join(env['PREFIX'], 'libdata/pkgconfig'),
                                         ['sunpinyin-2.0.pc'])
      libdata_target = env.Install(libdatadir,
                                   ['data/lm_sc.t3g',

Modified: head/chinese/sunpinyin/pkg-plist
==============================================================================
--- head/chinese/sunpinyin/pkg-plist	Thu Jul 19 23:08:41 2012	(r301198)
+++ head/chinese/sunpinyin/pkg-plist	Thu Jul 19 23:35:57 2012	(r301199)
@@ -8,7 +8,6 @@ include/sunpinyin-2.0/ime-core/imi_keys.
 include/sunpinyin-2.0/ime-core/imi_option_event.h
 include/sunpinyin-2.0/ime-core/imi_option_keys.h
 include/sunpinyin-2.0/ime-core/imi_options.h
-include/sunpinyin-2.0/ime-core/imi_plugin.h
 include/sunpinyin-2.0/ime-core/imi_uiobjects.h
 include/sunpinyin-2.0/ime-core/imi_view.h
 include/sunpinyin-2.0/ime-core/imi_view_classic.h
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Xin LI freebsd_committer freebsd_triage 2012-07-20 00:36:42 UTC
State Changed
From-To: open->closed

Committed, thanks!