diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-i18n/pyzy | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-i18n/pyzy')
-rw-r--r-- | app-i18n/pyzy/Manifest | 2 | ||||
-rw-r--r-- | app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch | 15 | ||||
-rw-r--r-- | app-i18n/pyzy/metadata.xml | 17 | ||||
-rw-r--r-- | app-i18n/pyzy/pyzy-0.1.0-r1.ebuild | 52 | ||||
-rw-r--r-- | app-i18n/pyzy/pyzy-0.1.0.ebuild | 51 |
5 files changed, 137 insertions, 0 deletions
diff --git a/app-i18n/pyzy/Manifest b/app-i18n/pyzy/Manifest new file mode 100644 index 000000000000..cd1fa6d00548 --- /dev/null +++ b/app-i18n/pyzy/Manifest @@ -0,0 +1,2 @@ +DIST pyzy-0.1.0.tar.gz 1571946 SHA256 fe468a4372473d85a56f05d55b14f0e0201fde6f9336a1a2322cf79421c84d9a SHA512 42477152ffd6a2f7ce0e8f920d98e9dc9c7fc32fe9e93a2a4de75c791e70d0f08c30eca0244dc2b87981f6bfc4e635234d62720aa19358c8f80a84e0c371c662 WHIRLPOOL 8cba6d647ee9f4e4f3ee22922245fc9b67fab779ea4381793eece9171d6f0cb4d0f325cc2ac1c4ce7ff6f47d383f6c02d0b866dcfbdc841b6f84ee6dff6fe0fe +DIST pyzy-database-1.0.0.tar.bz2 9977983 SHA256 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 SHA512 5a7248870407f7f92c418ada49a275062325f2eb33a7eb4b91492e4b706ae70ba931b04377a758ce429fa64cd22e8bee2ac4279d4f205bbce406248eda1decf7 WHIRLPOOL 07043adf9d83eb40b1a53409a31b3711f041e2b4dd5cf3f8c2034c129c31270fd37f2e53ecf2da5503562cf103ccb0a4487fa606928ac38a8775e90ff376ce3a diff --git a/app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch b/app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch new file mode 100644 index 000000000000..1b6dca68d695 --- /dev/null +++ b/app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch @@ -0,0 +1,15 @@ +Don't download database file on make phrase. +The database file will be downloaded by ebuild script instead. +diff -urN pyzy-0.1.0.orig/data/db/open-phrase/Makefile.am pyzy-0.1.0/data/db/open-phrase/Makefile.am +--- pyzy-0.1.0.orig/data/db/open-phrase/Makefile.am 2012-09-05 13:23:24.151736716 +0900 ++++ pyzy-0.1.0/data/db/open-phrase/Makefile.am 2012-09-05 14:18:57.144553548 +0900 +@@ -30,9 +30,6 @@ + DBTAR = pyzy-database-$(DBVER).tar.bz2 + + $(DBTAR): +- $(AM_V_GEN) \ +- wget http://pyzy.googlecode.com/files/$(DBTAR) || \ +- ( $(RM) $@; exit 1) + + stamp-db: $(DBTAR) + $(AM_V_GEN) \ diff --git a/app-i18n/pyzy/metadata.xml b/app-i18n/pyzy/metadata.xml new file mode 100644 index 000000000000..977e6e010cd0 --- /dev/null +++ b/app-i18n/pyzy/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>cjk</herd> + <maintainer> + <email>dlan@gentoo.org</email> + <name>Yixun Lan</name> + </maintainer> + <use> + <flag name="boost">Enable support for <pkg>dev-libs/boost</pkg></flag> + <flag name="doc">Enable support for documents</flag> + <flag name="opencc">Use <pkg>app-i18n/opencc</pkg> for input</flag> + </use> + <upstream> + <remote-id type="github">pyzy/pyzy</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-i18n/pyzy/pyzy-0.1.0-r1.ebuild b/app-i18n/pyzy/pyzy-0.1.0-r1.ebuild new file mode 100644 index 000000000000..20d04d2ea06a --- /dev/null +++ b/app-i18n/pyzy/pyzy-0.1.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-any-r1 autotools + +PY_DATABASE=${PN}-database-1.0.0 +DESCRIPTION="The Chinese PinYin and Bopomofo conversion library" +HOMEPAGE="https://github.com/pyzy/pyzy" +SRC_URI="https://pyzy.googlecode.com/files/${P}.tar.gz + https://pyzy.googlecode.com/files/${PY_DATABASE}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="boost doc opencc test" + +RDEPEND="dev-libs/glib:2 + dev-db/sqlite:3 + sys-apps/util-linux + boost? ( dev-libs/boost ) + opencc? ( app-i18n/opencc )" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + doc? ( app-doc/doxygen )" + +# Currently it fails to build test code +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch + mv ../db ./data/db/open-phrase/ || die + eautoreconf +} + +src_configure() { + econf \ + --enable-db-open-phrase \ + --enable-db-android \ + $(use_enable boost) \ + $(use_enable opencc) \ + $(use_enable test tests) +} + +src_install() { + default + use doc && dohtml -r docs/html/* +} diff --git a/app-i18n/pyzy/pyzy-0.1.0.ebuild b/app-i18n/pyzy/pyzy-0.1.0.ebuild new file mode 100644 index 000000000000..daf9fdca3a06 --- /dev/null +++ b/app-i18n/pyzy/pyzy-0.1.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils python autotools + +PY_DATABASE=${PN}-database-1.0.0 +DESCRIPTION="The Chinese PinYin and Bopomofo conversion library" +HOMEPAGE="https://github.com/pyzy/pyzy" +SRC_URI="https://pyzy.googlecode.com/files/${P}.tar.gz + https://pyzy.googlecode.com/files/${PY_DATABASE}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="boost doc opencc test" + +RDEPEND="dev-libs/glib:2 + dev-db/sqlite:3 + sys-apps/util-linux + boost? ( dev-libs/boost ) + opencc? ( app-i18n/opencc )" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +# Currently it fails to build test code +RESTRICT="test" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch + mv ../db ./data/db/open-phrase/ || die + python_convert_shebangs 2 "${S}"/data/db/android/create_db.py + eautoreconf +} + +src_configure() { + econf \ + --enable-db-open-phrase \ + --enable-db-android \ + $(use_enable boost) \ + $(use_enable opencc) \ + $(use_enable test tests) +} + +src_install() { + default + use doc && dohtml -r docs/html/* +} |