diff options
Diffstat (limited to 'app-i18n')
-rw-r--r-- | app-i18n/opencc/Manifest | 1 | ||||
-rw-r--r-- | app-i18n/opencc/opencc-1.0.5.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/app-i18n/opencc/Manifest b/app-i18n/opencc/Manifest index df3b997f88e7..2a8ba3f00c2f 100644 --- a/app-i18n/opencc/Manifest +++ b/app-i18n/opencc/Manifest @@ -1 +1,2 @@ DIST opencc-1.0.4.tar.gz 1597309 SHA256 0553b7461ebd379d118d45d7f40f8a6e272750115bdbc49267595a05ee3481ac SHA512 682cc621fddb6495f26675863faefe7c9f584d2c60676cee0a3ff2120828a09a5e71671f5537030c2cc874f55b7f22af70d9d376f17b83e30cb04dcd5f6bba8a WHIRLPOOL 964180d27db85df6ffb4310ea6cae7b6c294c163bce68d05a5a21e8e736be6c11b44f8a2a856481b47e14c8c1104d244fc294259cbfa2f3160912743ac933cd6 +DIST opencc-1.0.5.tar.gz 1598354 SHA256 1ce1649ba280cfc88bb76e740be5f54b29a9c034400c97a3ae211c37d7030705 SHA512 3fbefbafe5c3c2491032158577ab97b5a3edf6ea98a03a7250deba082b72c3112ad4a3396d1a469936ec32e1d141f0a2236001c2891ac9c793add2b082596cc1 WHIRLPOOL eea817748d94c973f39c527d86359dd6710157b340ad906c85123129dee34f300d17dd9cc3d851d749c6651e9743ae0ff612009130de06c0ac97fd3fca409b9e diff --git a/app-i18n/opencc/opencc-1.0.5.ebuild b/app-i18n/opencc/opencc-1.0.5.ebuild new file mode 100644 index 000000000000..b8a9dfd27d32 --- /dev/null +++ b/app-i18n/opencc/opencc-1.0.5.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils multilib eutils vcs-snapshot + +DESCRIPTION="Libraries 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" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="doc static-libs" + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="" + +DOCS="AUTHORS NEWS.md README.md" + +#PATCHES=( +# "${FILESDIR}"/${PN}-1.0.4-cmake-libdir.patch +#) + +src_configure() { + local mycmakeargs=( + -DBUILD_DOCUMENTATION=$(usex doc) + -DBUILD_SHARED_LIBS=ON + -DENABLE_GTEST=OFF + -DCMAKE_INSTALL_LIBDIR="${EPREFIX}"/usr/$(get_libdir) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + use static-libs || find "${ED}" -name '*.la' -o -name '*.a' -exec rm {} + +} |