Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
# $NetBSD: Makefile,v 1.19 2013/05/09 07:40:01 adam Exp $
|
||||
# $NetBSD: Makefile,v 1.22 2013/10/23 12:39:55 obache Exp $
|
||||
#
|
||||
|
||||
DISTNAME= ibus-pinyin-1.4.0
|
||||
PKGREVISION= 4
|
||||
DISTNAME= ibus-pinyin-1.5.0
|
||||
CATEGORIES= inputmethod chinese
|
||||
MASTER_SITES= http://ibus.googlecode.com/files/
|
||||
DISTFILES= ${DEFAULT_DISTFILES} ${DBTAR}
|
||||
|
||||
MAINTAINER= obache@NetBSD.org
|
||||
HOMEPAGE= http://code.google.com/p/ibus/
|
||||
@@ -18,34 +16,18 @@ USE_PKGLOCALEDIR= yes
|
||||
USE_LANGUAGES= c c++
|
||||
USE_TOOLS+= pkg-config gmake intltool msgfmt
|
||||
|
||||
# taken from ${WRKSRC}/data/db/open-phrase/Makefile.in
|
||||
DBVER= 1.2.99
|
||||
DBTAR= pinyin-database-${DBVER}.tar.bz2
|
||||
|
||||
post-extract:
|
||||
${RUN} cd ${WRKSRC}/data/db/open-phrase; \
|
||||
mkdir -p db; \
|
||||
mv ${WRKDIR}/db/main.db db/open-phrase.db; \
|
||||
touch ${DBTAR} stamp-db
|
||||
|
||||
SUBST_CLASSES+= epython
|
||||
SUBST_STAGE.epython= pre-configure
|
||||
SUBST_FILES.epython= setup/ibus-setup-pinyin.in
|
||||
SUBST_SED.epython= -e 's;exec python;exec ${PYTHONBIN};g'
|
||||
|
||||
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
|
||||
CONFIGURE_ARGS+= --disable-db-android
|
||||
CONFIGURE_ARGS+= --enable-db-open-phrase
|
||||
|
||||
.include "options.mk"
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
.include "../../mk/compiler.mk"
|
||||
|
||||
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
|
||||
. include "../../devel/libuuid/buildlink3.mk"
|
||||
.endif
|
||||
|
||||
.if (!empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-9]*)) || !empty(PKGSRC_COMPILER:Mclang)
|
||||
CONFIGURE_ARGS+= --disable-boost
|
||||
.else
|
||||
@@ -60,6 +42,7 @@ SUBST_SED.shared_ptr= -e 's,std::shared_ptr,boost::shared_ptr,g'
|
||||
|
||||
.include "../../inputmethod/ibus/bad-env-usage.mk"
|
||||
|
||||
.include "../../converters/pyzy/buildlink3.mk"
|
||||
.include "../../databases/sqlite3/buildlink3.mk"
|
||||
.include "../../inputmethod/ibus/buildlink3.mk"
|
||||
.include "../../lang/python/application.mk"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@comment $NetBSD: PLIST,v 1.2 2012/04/22 14:02:50 obache Exp $
|
||||
@comment $NetBSD: PLIST,v 1.4 2013/10/30 11:30:36 obache Exp $
|
||||
libexec/ibus-engine-pinyin
|
||||
libexec/ibus-setup-pinyin
|
||||
share/applications/ibus-setup-bopomofo.desktop
|
||||
share/applications/ibus-setup-pinyin.desktop
|
||||
${PLIST.lua}share/ibus-pinyin/base.lua
|
||||
share/ibus-pinyin/db/create_index.sql
|
||||
share/ibus-pinyin/db/english.db
|
||||
share/ibus-pinyin/db/open-phrase.db
|
||||
share/ibus-pinyin/icons/chinese.svg
|
||||
share/ibus-pinyin/icons/english.svg
|
||||
share/ibus-pinyin/icons/full-punct.svg
|
||||
@@ -24,6 +24,7 @@ share/ibus-pinyin/setup/version.py
|
||||
share/ibus-pinyin/setup/version.pyc
|
||||
share/ibus-pinyin/setup/version.pyo
|
||||
share/ibus/component/pinyin.xml
|
||||
share/locale/fr/LC_MESSAGES/ibus-pinyin.mo
|
||||
share/locale/ru/LC_MESSAGES/ibus-pinyin.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/ibus-pinyin.mo
|
||||
share/locale/zh_HK/LC_MESSAGES/ibus-pinyin.mo
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
$NetBSD: distinfo,v 1.3 2012/04/22 14:02:50 obache Exp $
|
||||
$NetBSD: distinfo,v 1.5 2013/10/30 11:30:36 obache Exp $
|
||||
|
||||
SHA1 (ibus-pinyin-1.4.0.tar.gz) = 499ceb4d3bec5614f88322b8e7695c04586b63e9
|
||||
RMD160 (ibus-pinyin-1.4.0.tar.gz) = b1c540225e2204ebade5cfa527305898807c4dbf
|
||||
Size (ibus-pinyin-1.4.0.tar.gz) = 1813003 bytes
|
||||
SHA1 (pinyin-database-1.2.99.tar.bz2) = e38a148a772e9909facda66b2d579e17b94cccbe
|
||||
RMD160 (pinyin-database-1.2.99.tar.bz2) = 1679567f31c20a235577f02175df38e16a05e7de
|
||||
Size (pinyin-database-1.2.99.tar.bz2) = 9977983 bytes
|
||||
SHA1 (ibus-pinyin-1.5.0.tar.gz) = 40abf915bb2599189d8fd76f456ce399edfa4184
|
||||
RMD160 (ibus-pinyin-1.5.0.tar.gz) = 9137f3e40971bd819fbaaf1715779a538d20a90c
|
||||
Size (ibus-pinyin-1.5.0.tar.gz) = 692516 bytes
|
||||
SHA1 (patch-lua_lmyoslib.c) = 7934c67df6134085f5a429ad678e1bfa89c65be8
|
||||
SHA1 (patch-lua_lua-plugin.h) = 51fbb077a8f0c528101dbdaafcbac9702dde334f
|
||||
SHA1 (patch-src_PYUtil.h) = 93e289e83abaec2fef6cd5a7cf924cd3bb6a20ad
|
||||
|
||||
20
inputmethod/ibus-pinyin/patches/patch-lua_lmyoslib.c
Normal file
20
inputmethod/ibus-pinyin/patches/patch-lua_lmyoslib.c
Normal file
@@ -0,0 +1,20 @@
|
||||
$NetBSD: patch-lua_lmyoslib.c,v 1.1 2013/10/30 11:30:37 obache Exp $
|
||||
|
||||
* for Lua 5.2 API change
|
||||
|
||||
--- lua/lmyoslib.c.orig 2012-06-01 15:47:06.000000000 +0000
|
||||
+++ lua/lmyoslib.c
|
||||
@@ -20,6 +20,13 @@
|
||||
#include "lualib.h"
|
||||
|
||||
|
||||
+#ifdef LUA_VERSION_NUM
|
||||
+# if (LUA_VERSION_NUM >= 502)
|
||||
+#undef luaL_register
|
||||
+#define luaL_register(L,n,f) \
|
||||
+ { if ((n) == NULL) luaL_setfuncs(L,f,0); else luaL_newlib(L,f); }
|
||||
+# endif
|
||||
+#endif
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
27
inputmethod/ibus-pinyin/patches/patch-lua_lua-plugin.h
Normal file
27
inputmethod/ibus-pinyin/patches/patch-lua_lua-plugin.h
Normal file
@@ -0,0 +1,27 @@
|
||||
$NetBSD: patch-lua_lua-plugin.h,v 1.1 2013/10/30 11:30:37 obache Exp $
|
||||
|
||||
* for Lua-5.1 and 5.2 API change
|
||||
|
||||
--- lua/lua-plugin.h.orig 2012-07-09 14:32:10.000000000 +0000
|
||||
+++ lua/lua-plugin.h
|
||||
@@ -29,6 +29,20 @@
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
+#ifdef LUA_VERSION_NUM
|
||||
+# if (LUA_VERSION_NUM >= 501)
|
||||
+#undef lua_open
|
||||
+#define lua_open luaL_newstate
|
||||
+# endif
|
||||
+# if (LUA_VERSION_NUM >= 502)
|
||||
+#undef lua_objlen
|
||||
+#define lua_objlen lua_rawlen
|
||||
+#undef luaL_register
|
||||
+#define luaL_register(L,n,f) \
|
||||
+ { if ((n) == NULL) luaL_setfuncs(L,f,0); else luaL_newlib(L,f); }
|
||||
+# endif
|
||||
+#endif
|
||||
+
|
||||
#define LUA_IMELIBNAME "ime"
|
||||
LUALIB_API int (luaopen_ime) (lua_State * L);
|
||||
LUALIB_API int (luaopen_myos) (lua_State * L);
|
||||
Reference in New Issue
Block a user