summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2012-09-01 10:42:58 +0000
committerBen de Groot <yngwin@gentoo.org>2012-09-01 10:42:58 +0000
commit0d12bee30934d2a25bc15f82fe74a255db7c8d52 (patch)
tree00736adb6d95af324f18b1133cda9de7cad30949 /app-i18n
parentUpdate to support prefix, fix bug #351219, thanks to the people involved (diff)
downloadgentoo-2-0d12bee30934d2a25bc15f82fe74a255db7c8d52.tar.gz
gentoo-2-0d12bee30934d2a25bc15f82fe74a255db7c8d52.tar.bz2
gentoo-2-0d12bee30934d2a25bc15f82fe74a255db7c8d52.zip
Initial commit. Ebuild from gentoo-zh overlay, polished by dlan and me.
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/librime/ChangeLog9
-rw-r--r--app-i18n/librime/Manifest4
-rw-r--r--app-i18n/librime/files/librime-data-option.patch27
-rw-r--r--app-i18n/librime/librime-0.9.2.ebuild40
-rw-r--r--app-i18n/librime/metadata.xml18
5 files changed, 98 insertions, 0 deletions
diff --git a/app-i18n/librime/ChangeLog b/app-i18n/librime/ChangeLog
new file mode 100644
index 000000000000..1ee2cc54e339
--- /dev/null
+++ b/app-i18n/librime/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-i18n/librime
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/librime/ChangeLog,v 1.1 2012/09/01 10:42:58 yngwin Exp $
+
+*librime-0.9.2 (01 Sep 2012)
+
+ 01 Sep 2012; Ben de Groot <yngwin@gentoo.org>
+ +files/librime-data-option.patch, +librime-0.9.2.ebuild, +metadata.xml:
+ Initial commit. Ebuild from gentoo-zh overlay, polished by dlan and me.
diff --git a/app-i18n/librime/Manifest b/app-i18n/librime/Manifest
new file mode 100644
index 000000000000..f7de7448afaa
--- /dev/null
+++ b/app-i18n/librime/Manifest
@@ -0,0 +1,4 @@
+AUX librime-data-option.patch 1073 SHA256 d9a0885c53055ffa6e75399df1cfa405d7be21061e65de9085839cc3a2c6146f SHA512 84b3c45d897f4f07bf8755f569315f44969d53787ab7b47044fb0050995093b5d9fbe86e875bd635d116639809a2def88a16bdb0e11ec9b298c09dca7ee0060a WHIRLPOOL 068904363e65618b0fb17c8dc7640a86ec9b3e1d0baced2939e61b957304124b9d251ad2a45d17b8c7886544f2e14ff7f2d9f218007808bfc4513a23c17abb3e
+DIST librime-0.9.2.tar.gz 2303954 SHA256 90478a24f8635d8edb2b37f02e80a3b9358df32e0feab1c4b0e41fa51fda99f9 SHA512 62af91db5e52640551e970f4ad17622cd5629f360320bd4618e574890b3d380b5576a612b767fcfa2689f89cc1704bf79c300eb3733e2efda01c14c4449421fb WHIRLPOOL 9ed5fd3cbe4a213f5662a49fb46316756ffb34495cccd292ac5c2a2f757d69a978682d4e8d60aec8cca6e20257672197a27c5e901ef6b6fa5d5bed982efd0099
+EBUILD librime-0.9.2.ebuild 872 SHA256 cd9edaba17dc9d2cf865ea4acf5f734b36b78278b55e74d713fdbacb9e50e353 SHA512 2bec91c4d50871173a93d82257a2257ebee44cdf6a7b8cb160af5619a98d9f6261a4e5fe5d3d24914960a205bf984545fb02af410fb3dbf90d4b22c9389e310c WHIRLPOOL 89aa409d89c45de0866ca4901673cf6865569b5efba79e2d23ec1b89d18ce141f9535cb451cfe1235b8f47c52307785a15948a895819378920839048d1cb39b9
+MISC metadata.xml 550 SHA256 920e86b29ced653a5668fe43874ecb7b5488a7250794946c50a8807c7e1d04d4 SHA512 e051bdb788af3b12bb7ce24c748c5feb062fe8e4ef758e8145c3796ba102448ae0f4b066e8e41f80edec2f7a7e6104acf403d517d32de7affde108e18855f81a WHIRLPOOL 6900820e584c25ec8235ccd25056714a42c7740ffb5f75080713e305bfb3ca38fcc7bd915c228ace8a860ff585c7372d28ba66a60ed46463ead35330d6b1b5b3
diff --git a/app-i18n/librime/files/librime-data-option.patch b/app-i18n/librime/files/librime-data-option.patch
new file mode 100644
index 000000000000..d618f2f5e9fc
--- /dev/null
+++ b/app-i18n/librime/files/librime-data-option.patch
@@ -0,0 +1,27 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9027f82..e67b0f0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -8,6 +8,7 @@ set(LIBRIME_VERSION 0.9.2)
+ set(LIBRIME_SOVERSION 0)
+
+ option(BUILD_STATIC "Build static version of Rime" OFF)
++option(BUILD_DATA "Build data for Rime" OFF)
+
+ if(WIN32)
+ set(EXT ".exe")
+@@ -107,12 +108,14 @@ if (NOT BUILD_STATIC)
+ install(FILES ${PROJECT_BINARY_DIR}/rime.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+ install(FILES cmake/RimeConfig.cmake DESTINATION share/cmake/rime)
+ # data files
++ if (BUILD_DATA)
+ install(FILES ${PROJECT_SOURCE_DIR}/data/default.yaml DESTINATION ${pkgdatadir})
+ install(FILES ${PROJECT_SOURCE_DIR}/data/essay.kct DESTINATION ${pkgdatadir})
+ file(GLOB preset_schema ${PROJECT_SOURCE_DIR}/data/preset/*.yaml)
+ install(FILES ${preset_schema} DESTINATION ${pkgdatadir})
+ file(GLOB supplement_schema ${PROJECT_SOURCE_DIR}/data/supplement/*.yaml)
+ install(FILES ${supplement_schema} DESTINATION ${pkgdatadir})
++ endif(NOT BUILD_DATA)
+ endif (NOT BUILD_STATIC)
+
+ add_subdirectory(src) \ No newline at end of file
diff --git a/app-i18n/librime/librime-0.9.2.ebuild b/app-i18n/librime/librime-0.9.2.ebuild
new file mode 100644
index 000000000000..fea05520d2a1
--- /dev/null
+++ b/app-i18n/librime/librime-0.9.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/librime/librime-0.9.2.ebuild,v 1.1 2012/09/01 10:42:58 yngwin Exp $
+
+EAPI=4
+
+inherit cmake-utils multilib vcs-snapshot
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="https://github.com/lotem/${PN}/tarball/rime-${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+RDEPEND="app-i18n/opencc
+ dev-cpp/glog
+ dev-cpp/yaml-cpp
+ dev-db/kyotocabinet
+ >=dev-libs/boost-1.46.0
+ sys-libs/zlib
+ x11-proto/xproto"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # patch the cmake system to make it disable data resource build
+ epatch "${FILESDIR}"/${PN}-data-option.patch
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build static-libs STATIC)
+ -DBUILD_DATA=OFF
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ )
+ cmake-utils_src_configure
+}
+
diff --git a/app-i18n/librime/metadata.xml b/app-i18n/librime/metadata.xml
new file mode 100644
index 000000000000..b0c809c038eb
--- /dev/null
+++ b/app-i18n/librime/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dennis.yxun@gmail.com</email>
+ <name>Lan Yixun (dlan)</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>