summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-10-23 11:41:25 +0000
committerobache <obache@pkgsrc.org>2013-10-23 11:41:25 +0000
commit937df42aa56c1b3b867cd764e4952e3ce38854c8 (patch)
tree0de7fdbef9531acee5632f4e2bca56a470a50a81 /converters
parent01ae04f89df4c6eed5e097a544e97e2c396edd28 (diff)
downloadpkgsrc-937df42aa56c1b3b867cd764e4952e3ce38854c8.tar.gz
Import pyzy-0.1.0 as converters/pyzy.
This is the Chinese PinYin / Bopomofo (a.k.a Zhuying) conversion library. You can easily write an application which handles the Chinese with it.
Diffstat (limited to 'converters')
-rw-r--r--converters/pyzy/DESCR2
-rw-r--r--converters/pyzy/Makefile56
-rw-r--r--converters/pyzy/PLIST9
-rw-r--r--converters/pyzy/buildlink3.mk16
-rw-r--r--converters/pyzy/distinfo8
5 files changed, 91 insertions, 0 deletions
diff --git a/converters/pyzy/DESCR b/converters/pyzy/DESCR
new file mode 100644
index 00000000000..cce4360e4c2
--- /dev/null
+++ b/converters/pyzy/DESCR
@@ -0,0 +1,2 @@
+This is the Chinese PinYin / Bopomofo (a.k.a Zhuying) conversion library.
+You can easily write an application which handles the Chinese with it.
diff --git a/converters/pyzy/Makefile b/converters/pyzy/Makefile
new file mode 100644
index 00000000000..eac20ec1672
--- /dev/null
+++ b/converters/pyzy/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.1 2013/10/23 11:41:25 obache Exp $
+
+DISTNAME= pyzy-0.1.0
+CATEGORIES= converters chinese
+MASTER_SITES= http://pyzy.googlecode.com/files/
+DISTFILES= ${DEFAULT_DISTFILES} ${DBTAR}
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://code.google.com/p/pyzy/
+COMMENT= Chinese PinYin and Bopomofo conversion library
+LICENSE= gnu-lgpl-v2.1
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+PKGCONFIG_OVERRIDE+= pyzy-1.0.pc.in
+
+CONFIGURE_ARGS+= --disable-db-android
+CONFIGURE_ARGS+= --enable-db-open-phrase
+
+# taken from ${WRKSRC}/data/db/open-phrase/Makefile.am
+DBVER= 1.0.0
+DBTAR= pyzy-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
+
+.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
+CONFIGURE_ARGS+= --enable-boost
+CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-headers}
+.include "../../devel/boost-headers/buildlink3.mk"
+SUBST_CLASSES+= shared_ptr
+SUBST_STAGE.shared_ptr= post-configure
+SUBST_FILES.shared_ptr= src/*.h
+SUBST_SED.shared_ptr= -e 's,std::shared_ptr,boost::shared_ptr,g'
+.endif
+
+.include "../../inputmethod/ibus/bad-env-usage.mk"
+BUILDLINK_API_DEPENDS.glib2+= glib2>=2.24.0
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/pyzy/PLIST b/converters/pyzy/PLIST
new file mode 100644
index 00000000000..f82a4369bdd
--- /dev/null
+++ b/converters/pyzy/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2013/10/23 11:41:25 obache Exp $
+include/pyzy-1.0/PyZy/Const.h
+include/pyzy-1.0/PyZy/InputContext.h
+include/pyzy-1.0/PyZy/Variant.h
+lib/libpyzy-1.0.la
+lib/pkgconfig/pyzy-1.0.pc
+share/pyzy/db/create_index.sql
+share/pyzy/db/open-phrase.db
+share/pyzy/phrases.txt
diff --git a/converters/pyzy/buildlink3.mk b/converters/pyzy/buildlink3.mk
new file mode 100644
index 00000000000..781c8c27903
--- /dev/null
+++ b/converters/pyzy/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/10/23 11:41:25 obache Exp $
+#
+
+BUILDLINK_TREE+= pyzy
+
+.if !defined(PYZY_BUILDLINK3_MK)
+PYZY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.pyzy+= pyzy>=0.1.0
+BUILDLINK_PKGSRCDIR.pyzy?= ../../converters/pyzy
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+.endif # PYZY_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -pyzy
diff --git a/converters/pyzy/distinfo b/converters/pyzy/distinfo
new file mode 100644
index 00000000000..59b6d81024d
--- /dev/null
+++ b/converters/pyzy/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2013/10/23 11:41:25 obache Exp $
+
+SHA1 (pyzy-0.1.0.tar.gz) = ffe67a455a537c8ed8a0d138eb014945cd982927
+RMD160 (pyzy-0.1.0.tar.gz) = 26cf64a977b030456bd74cca40fc9c9f476f7b7d
+Size (pyzy-0.1.0.tar.gz) = 1571946 bytes
+SHA1 (pyzy-database-1.0.0.tar.bz2) = e38a148a772e9909facda66b2d579e17b94cccbe
+RMD160 (pyzy-database-1.0.0.tar.bz2) = 1679567f31c20a235577f02175df38e16a05e7de
+Size (pyzy-database-1.0.0.tar.bz2) = 9977983 bytes