diff options
author | Akinori Hattori <hattya@gentoo.org> | 2017-08-23 23:16:16 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2017-08-23 23:25:33 +0900 |
commit | c9b20734472173803e155d644ff03d042bc7f52d (patch) | |
tree | 5fd0658deb7b1dd4fcbe70483034920ed3f86a57 /app-i18n/opencc/opencc-9999.ebuild | |
parent | dev-lang/php: new versions 7.1.8 and 7.2.0_beta3. (diff) | |
download | gentoo-c9b20734472173803e155d644ff03d042bc7f52d.tar.gz gentoo-c9b20734472173803e155d644ff03d042bc7f52d.tar.bz2 gentoo-c9b20734472173803e155d644ff03d042bc7f52d.zip |
app-i18n/opencc: tidy
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/opencc/opencc-9999.ebuild')
-rw-r--r-- | app-i18n/opencc/opencc-9999.ebuild | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/app-i18n/opencc/opencc-9999.ebuild b/app-i18n/opencc/opencc-9999.ebuild index 8664a59261c8..f98b89451355 100644 --- a/app-i18n/opencc/opencc-9999.ebuild +++ b/app-i18n/opencc/opencc-9999.ebuild @@ -9,15 +9,14 @@ if [[ "${PV}" == "9999" ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/BYVoid/OpenCC" +else + inherit vcs-snapshot + + SRC_URI="https://github.com/BYVoid/${PN^^[oc]}/archive/ver.${PV}.tar.gz -> ${P}.tar.gz" fi -DESCRIPTION="Project for conversion between Traditional and Simplified Chinese" +DESCRIPTION="Libraries for conversion between Traditional and Simplified Chinese" HOMEPAGE="https://github.com/BYVoid/OpenCC" -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" @@ -25,13 +24,14 @@ KEYWORDS="" IUSE="doc" DEPEND="doc? ( app-doc/doxygen )" -RDEPEND="" -if [[ "${PV}" != "9999" ]]; then - S="${WORKDIR}/OpenCC-ver.${PV}" -fi +DOCS="AUTHORS *.md" -DOCS=(AUTHORS NEWS.md README.md) +src_prepare() { + sed -i "s|\${DIR_SHARE_OPENCC}/doc|share/doc/${PF}|" doc/CMakeLists.txt + + cmake-utils_src_prepare +} src_configure() { local mycmakeargs=( @@ -39,15 +39,5 @@ src_configure() { -DBUILD_SHARED_LIBS=ON -DENABLE_GTEST=OFF ) - cmake-utils_src_configure } - -src_install() { - cmake-utils_src_install - - if use doc; then - mv "${ED}usr/share/opencc/doc/html" "${ED}usr/share/doc/${P}/html" || die - rmdir "${ED}usr/share/opencc/doc" || die - fi -} |