From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 847451396D1 for ; Wed, 23 Aug 2017 14:25:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5B6CE0D39; Wed, 23 Aug 2017 14:25:52 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A374DE0D77 for ; Wed, 23 Aug 2017 14:25:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8A401341878 for ; Wed, 23 Aug 2017 14:25:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0163A7FDB for ; Wed, 23 Aug 2017 14:25:50 +0000 (UTC) From: "Akinori Hattori" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Akinori Hattori" Message-ID: <1503498334.2bc8db79ebabd401fb909b8834d7cb723e510495.hattya@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/opencc/files/, app-i18n/opencc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/opencc/files/opencc-test.patch app-i18n/opencc/opencc-1.0.4.ebuild app-i18n/opencc/opencc-1.0.5.ebuild app-i18n/opencc/opencc-9999.ebuild X-VCS-Directories: app-i18n/opencc/ app-i18n/opencc/files/ X-VCS-Committer: hattya X-VCS-Committer-Name: Akinori Hattori X-VCS-Revision: 2bc8db79ebabd401fb909b8834d7cb723e510495 X-VCS-Branch: master Date: Wed, 23 Aug 2017 14:25:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c92cb6c3-2132-40f5-ac60-10d70a8f93f0 X-Archives-Hash: 8af9f3e24c5db9745e5f0cb2496224e8 commit: 2bc8db79ebabd401fb909b8834d7cb723e510495 Author: Akinori Hattori gentoo org> AuthorDate: Wed Aug 23 14:23:46 2017 +0000 Commit: Akinori Hattori gentoo org> CommitDate: Wed Aug 23 14:25:34 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bc8db79 app-i18n/opencc: enable tests Package-Manager: Portage-2.3.6, Repoman-2.3.1 app-i18n/opencc/files/opencc-test.patch | 11 +++++++++++ app-i18n/opencc/opencc-1.0.4.ebuild | 9 ++++++--- app-i18n/opencc/opencc-1.0.5.ebuild | 5 +++-- app-i18n/opencc/opencc-9999.ebuild | 5 +++-- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/app-i18n/opencc/files/opencc-test.patch b/app-i18n/opencc/files/opencc-test.patch new file mode 100644 index 00000000000..dd6e91b984d --- /dev/null +++ b/app-i18n/opencc/files/opencc-test.patch @@ -0,0 +1,11 @@ +--- a/src/PhraseExtractTest.cpp ++++ b/src/PhraseExtractTest.cpp +@@ -16,6 +16,8 @@ + * limitations under the License. + */ + ++#include ++ + #include "PhraseExtract.hpp" + #include "TestUtils.hpp" + diff --git a/app-i18n/opencc/opencc-1.0.4.ebuild b/app-i18n/opencc/opencc-1.0.4.ebuild index fa655b4ac0e..139e1b4bf18 100644 --- a/app-i18n/opencc/opencc-1.0.4.ebuild +++ b/app-i18n/opencc/opencc-1.0.4.ebuild @@ -12,18 +12,21 @@ SRC_URI="https://github.com/BYVoid/${PN^^[oc]}/archive/ver.${PV}.tar.gz -> ${P}. LICENSE="Apache-2.0" SLOT="0/2" KEYWORDS="amd64 hppa ppc ppc64 x86" -IUSE="doc" +IUSE="doc test" DEPEND="doc? ( app-doc/doxygen )" DOCS="AUTHORS *.md" -PATCHES=( "${FILESDIR}"/${P}-cmake-libdir.patch ) +PATCHES=( + "${FILESDIR}"/${P}-cmake-libdir.patch + "${FILESDIR}"/${PN}-test.patch +) src_configure() { local mycmakeargs=( -DBUILD_DOCUMENTATION=$(usex doc) -DBUILD_SHARED_LIBS=ON - -DENABLE_GTEST=OFF + -DENABLE_GTEST=$(usex test) ) cmake-utils_src_configure } diff --git a/app-i18n/opencc/opencc-1.0.5.ebuild b/app-i18n/opencc/opencc-1.0.5.ebuild index 93e6c7c9ffe..72a714fbc0c 100644 --- a/app-i18n/opencc/opencc-1.0.5.ebuild +++ b/app-i18n/opencc/opencc-1.0.5.ebuild @@ -21,11 +21,12 @@ HOMEPAGE="https://github.com/BYVoid/OpenCC" LICENSE="Apache-2.0" SLOT="0/2" KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" -IUSE="doc" +IUSE="doc test" DEPEND="doc? ( app-doc/doxygen )" DOCS="AUTHORS *.md" +PATCHES=( "${FILESDIR}"/${PN}-test.patch ) src_prepare() { sed -i "s|\${DIR_SHARE_OPENCC}/doc|share/doc/${PF}|" doc/CMakeLists.txt @@ -37,7 +38,7 @@ src_configure() { local mycmakeargs=( -DBUILD_DOCUMENTATION=$(usex doc) -DBUILD_SHARED_LIBS=ON - -DENABLE_GTEST=OFF + -DENABLE_GTEST=$(usex test) ) cmake-utils_src_configure } diff --git a/app-i18n/opencc/opencc-9999.ebuild b/app-i18n/opencc/opencc-9999.ebuild index f98b8945135..9ec1cbd5d8b 100644 --- a/app-i18n/opencc/opencc-9999.ebuild +++ b/app-i18n/opencc/opencc-9999.ebuild @@ -21,11 +21,12 @@ HOMEPAGE="https://github.com/BYVoid/OpenCC" LICENSE="Apache-2.0" SLOT="0/2" KEYWORDS="" -IUSE="doc" +IUSE="doc test" DEPEND="doc? ( app-doc/doxygen )" DOCS="AUTHORS *.md" +PATCHES=( "${FILESDIR}"/${PN}-test.patch ) src_prepare() { sed -i "s|\${DIR_SHARE_OPENCC}/doc|share/doc/${PF}|" doc/CMakeLists.txt @@ -37,7 +38,7 @@ src_configure() { local mycmakeargs=( -DBUILD_DOCUMENTATION=$(usex doc) -DBUILD_SHARED_LIBS=ON - -DENABLE_GTEST=OFF + -DENABLE_GTEST=$(usex test) ) cmake-utils_src_configure }