diff options
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 -} |