diff options
author | Ben de Groot <yngwin@gentoo.org> | 2012-09-01 10:46:21 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2012-09-01 10:46:21 +0000 |
commit | 23d2ec05fd4411eb18915c3c3a6fc09d18aa34b8 (patch) | |
tree | 53f4a4f8aa4f0e46a3d90cf7a00cb7212992d695 /app-i18n | |
parent | Update to support prefix, fix bug #351219, thanks to the people involved (diff) | |
download | historical-23d2ec05fd4411eb18915c3c3a6fc09d18aa34b8.tar.gz historical-23d2ec05fd4411eb18915c3c3a6fc09d18aa34b8.tar.bz2 historical-23d2ec05fd4411eb18915c3c3a6fc09d18aa34b8.zip |
Initial commit. Ebuild from gentoo-zh overlay, polished by dlan and me.
Package-Manager: portage-2.2.0_alpha123/cvs/Linux x86_64
Diffstat (limited to 'app-i18n')
-rw-r--r-- | app-i18n/librime/ChangeLog | 9 | ||||
-rw-r--r-- | app-i18n/librime/Manifest | 4 | ||||
-rw-r--r-- | app-i18n/librime/files/librime-data-option.patch | 27 | ||||
-rw-r--r-- | app-i18n/librime/librime-0.9.2.ebuild | 40 | ||||
-rw-r--r-- | app-i18n/librime/metadata.xml | 18 | ||||
-rw-r--r-- | app-i18n/rime-data/ChangeLog | 9 | ||||
-rw-r--r-- | app-i18n/rime-data/Manifest | 4 | ||||
-rw-r--r-- | app-i18n/rime-data/files/Makefile | 25 | ||||
-rw-r--r-- | app-i18n/rime-data/metadata.xml | 18 | ||||
-rw-r--r-- | app-i18n/rime-data/rime-data-0.9.2.ebuild | 23 |
10 files changed, 177 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> diff --git a/app-i18n/rime-data/ChangeLog b/app-i18n/rime-data/ChangeLog new file mode 100644 index 000000000000..c5cb7639f3fa --- /dev/null +++ b/app-i18n/rime-data/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for app-i18n/rime-data +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/rime-data/ChangeLog,v 1.1 2012/09/01 10:46:21 yngwin Exp $ + +*rime-data-0.9.2 (01 Sep 2012) + + 01 Sep 2012; Ben de Groot <yngwin@gentoo.org> +files/Makefile, +metadata.xml, + +rime-data-0.9.2.ebuild: + Initial commit. Ebuild from gentoo-zh overlay, polished by dlan and me. diff --git a/app-i18n/rime-data/Manifest b/app-i18n/rime-data/Manifest new file mode 100644 index 000000000000..1206804dfb84 --- /dev/null +++ b/app-i18n/rime-data/Manifest @@ -0,0 +1,4 @@ +AUX Makefile 514 SHA256 69375b97ab497bda2d855bb5e074913bad7aed0d1897ed3be80b82e1b75cb5cb SHA512 868ee9feb17884078e2f6738fc1bad44d66dea43105ba71f4b5a1ed0ecf26829bbce1571cf96fd3c05a8c384044978b846174fc070b0ee8d2c7ea4c2db72a42c WHIRLPOOL 1185f12aec58ffadc051148abb02e7a49e63a78f98426515da1b590abe1a57f9ea75180ef49e99373fa2f0ac20af95ef1f804513bfabdacabc34e4cb3e61913f +DIST rime-data-0.9.2.tar.gz 4964478 SHA256 ce50b947b95116bdc7006476fa46a55121a260257a135257d1229dedf63fc5e8 SHA512 738a3a8119971582cbfd8a3d25f58af3f13d1fc63722b429e1446033843219ec1f4725799d2b41926f8c16af06c2260e2d2409bb669e463d21b824ee5eb5f45b WHIRLPOOL 1843ca41e27da1695e73da8cb8fd83bc8a3aca0b818dac0621b546460828ce07ca6a60e04ab30c8760d35dabac0c6074998e9acd3f7e71de5e90d5fc57099de0 +EBUILD rime-data-0.9.2.ebuild 489 SHA256 e995ba154d1a28951543cf18e5123bb1d7fdc68bd64c53f8fcb799b6cc1c3bac SHA512 1a414a20bf8b9fccda574d323e7824bb86f7ecebdfb702c850285ddbb6fe417ecbf1340f845048c33917e1ab17001b355deb97d8a443ffe03f1d6ff03147a3f5 WHIRLPOOL 3a5295716e9614c828f22da4f1ce9a7873b36fccdf4da2efecd01e7ba8cae365020395a631888cdfcc353b897281259451a9a41c675d07ff8e6a4c961fa8e142 +MISC metadata.xml 550 SHA256 920e86b29ced653a5668fe43874ecb7b5488a7250794946c50a8807c7e1d04d4 SHA512 e051bdb788af3b12bb7ce24c748c5feb062fe8e4ef758e8145c3796ba102448ae0f4b066e8e41f80edec2f7a7e6104acf403d517d32de7affde108e18855f81a WHIRLPOOL 6900820e584c25ec8235ccd25056714a42c7740ffb5f75080713e305bfb3ca38fcc7bd915c228ace8a860ff585c7372d28ba66a60ed46463ead35330d6b1b5b3 diff --git a/app-i18n/rime-data/files/Makefile b/app-i18n/rime-data/files/Makefile new file mode 100644 index 000000000000..7e34c3f90975 --- /dev/null +++ b/app-i18n/rime-data/files/Makefile @@ -0,0 +1,25 @@ +ifeq (${SRCDIR},) + SRCDIR=$(shell pwd) +endif +DATA:=${SRCDIR}/data + +ifeq (${PREFIX},) + PREFIX=/usr +endif +ifeq (${RIME_DATA_DIR},) + RIME_DATA_DIR=/share/rime-data +endif + +all: + @echo "building rime data" + @mkdir -p ${DATA} + @cp default.yaml ${DATA} + @cp essay.kct ${DATA} + @cp supplement/*.yaml ${DATA} + @cp preset/*.yaml ${DATA} + rime_deployer --build ${DATA} + +install: + @echo "installing rime data" + @install -d ${DESTDIR}${PREFIX}${RIME_DATA_DIR} + @install -m 644 ${DATA}/* ${DESTDIR}${PREFIX}${RIME_DATA_DIR} diff --git a/app-i18n/rime-data/metadata.xml b/app-i18n/rime-data/metadata.xml new file mode 100644 index 000000000000..b0c809c038eb --- /dev/null +++ b/app-i18n/rime-data/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> diff --git a/app-i18n/rime-data/rime-data-0.9.2.ebuild b/app-i18n/rime-data/rime-data-0.9.2.ebuild new file mode 100644 index 000000000000..56bcff2e14d2 --- /dev/null +++ b/app-i18n/rime-data/rime-data-0.9.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/rime-data/rime-data-0.9.2.ebuild,v 1.1 2012/09/01 10:46:21 yngwin Exp $ + +EAPI=4 + +inherit vcs-snapshot + +DESCRIPTION="Data resources for Rime Input Method Engine" +HOMEPAGE="http://code.google.com/p/rimeime/" +SRC_URI="https://github.com/lotem/brise/tarball/rime-${PV} -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-i18n/librime" +RDEPEND="${DEPEND}" + +src_prepare() { + cp ${FILESDIR}/Makefile ${S} || die +} |