commit: d98aef2054800e6990ae49e817579eb50ddd08d2
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Tue Aug 22 10:52:41 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 14:20:14 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d98aef20
app-i18n/opencc: Add live ebuild.
app-i18n/opencc/opencc-1.0.5.ebuild | 16 +++++++++++++++-
.../opencc/{opencc-1.0.5.ebuild => opencc-9999.ebuild} | 18 ++++++++++++++++--
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/app-i18n/opencc/opencc-1.0.5.ebuild
b/app-i18n/opencc/opencc-1.0.5.ebuild
index 3e9033333de..50bab76e2c0 100644
--- a/app-i18n/opencc/opencc-1.0.5.ebuild
+++ b/app-i18n/opencc/opencc-1.0.5.ebuild
@@ -5,9 +5,19 @@ EAPI="6"
inherit cmake-utils
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/BYVoid/OpenCC"
+fi
+
DESCRIPTION="Project for conversion between Traditional and Simplified Chinese"
HOMEPAGE="https://github.com/BYVoid/OpenCC"
-SRC_URI="https://github.com/BYVoid/OpenCC/archive/ver.${PV}.tar.gz ->
${P}.tar.gz"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/BYVoid/OpenCC/archive/ver.${PV}.tar.gz ->
${P}.tar.gz"
+fi
LICENSE="Apache-2.0"
SLOT="0/2"
@@ -17,6 +27,10 @@ IUSE="doc"
DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""
+if [[ "${PV}" != "9999" ]]; then
+ S="${WORKDIR}/OpenCC-ver.${PV}"
+fi
+
DOCS=(AUTHORS NEWS.md README.md)
src_configure() {
diff --git a/app-i18n/opencc/opencc-1.0.5.ebuild
b/app-i18n/opencc/opencc-9999.ebuild
similarity index 69%
copy from app-i18n/opencc/opencc-1.0.5.ebuild
copy to app-i18n/opencc/opencc-9999.ebuild
index 3e9033333de..8664a59261c 100644
--- a/app-i18n/opencc/opencc-1.0.5.ebuild
+++ b/app-i18n/opencc/opencc-9999.ebuild
@@ -5,18 +5,32 @@ EAPI="6"
inherit cmake-utils
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/BYVoid/OpenCC"
+fi
+
DESCRIPTION="Project for conversion between Traditional and Simplified Chinese"
HOMEPAGE="https://github.com/BYVoid/OpenCC"
-SRC_URI="https://github.com/BYVoid/OpenCC/archive/ver.${PV}.tar.gz ->
${P}.tar.gz"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/BYVoid/OpenCC/archive/ver.${PV}.tar.gz ->
${P}.tar.gz"
+fi
LICENSE="Apache-2.0"
SLOT="0/2"
-KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+KEYWORDS=""
IUSE="doc"
DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""
+if [[ "${PV}" != "9999" ]]; then
+ S="${WORKDIR}/OpenCC-ver.${PV}"
+fi
+
DOCS=(AUTHORS NEWS.md README.md)
src_configure() {