From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D23DA1381F4 for ; Fri, 22 Apr 2016 15:30:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85875E086B; Fri, 22 Apr 2016 15:30:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24BE2E086B for ; Fri, 22 Apr 2016 15:30:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 85904340C42 for ; Fri, 22 Apr 2016 15:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B288ACB for ; Fri, 22 Apr 2016 15:30:16 +0000 (UTC) From: "Ian Delaney" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ian Delaney" Message-ID: <1461339003.9046ae2da5fac8aef16e43a4e75b15037923c81f.idella4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libopenshot/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libopenshot/libopenshot-0.1.1.ebuild X-VCS-Directories: media-libs/libopenshot/ X-VCS-Committer: idella4 X-VCS-Committer-Name: Ian Delaney X-VCS-Revision: 9046ae2da5fac8aef16e43a4e75b15037923c81f X-VCS-Branch: master Date: Fri, 22 Apr 2016 15:30:16 +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: 80db5dc5-c200-4b7e-a822-c1ea577c84b0 X-Archives-Hash: 52181fcfe43648024c9127f24fb520f7 commit: 9046ae2da5fac8aef16e43a4e75b15037923c81f Author: Louis Sautier gmail com> AuthorDate: Fri Apr 22 07:24:37 2016 +0000 Commit: Ian Delaney gentoo org> CommitDate: Fri Apr 22 15:30:03 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9046ae2d media-libs/libopenshot: make sure the compiler supports OpenMP Gentoo-Bug: 580710 Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/1321 Signed-off-by: Ian Delaney gentoo.org> media-libs/libopenshot/libopenshot-0.1.1.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/media-libs/libopenshot/libopenshot-0.1.1.ebuild b/media-libs/libopenshot/libopenshot-0.1.1.ebuild index 8253c49..5bc4acc 100644 --- a/media-libs/libopenshot/libopenshot-0.1.1.ebuild +++ b/media-libs/libopenshot/libopenshot-0.1.1.ebuild @@ -6,7 +6,7 @@ EAPI=6 PYTHON_COMPAT=( python3_{4,5} ) -inherit cmake-utils python-single-r1 versionator +inherit cmake-utils python-single-r1 toolchain-funcs versionator DESCRIPTION="Video editing library used by OpenShot" HOMEPAGE="http://www.openshotvideo.com/" @@ -40,6 +40,15 @@ PATCHES=( "${FILESDIR}/${PN}-0.1.0-fix-tests-exit-code.patch" ) S="${WORKDIR}" +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then + eerror "${P} requires a compiler with OpenMP support. Your current" + eerror "compiler does not support it. If you use gcc, you can" + eerror "re-emerge it with the 'openmp' use flag enabled." + die "The current compiler does not support OpenMP" + fi +} + pkg_setup() { use python && python-single-r1_pkg_setup }