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 BCE82138330 for ; Tue, 6 Sep 2016 07:03:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7B4DE0852; Tue, 6 Sep 2016 07:03:03 +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 4F940E0852 for ; Tue, 6 Sep 2016 07:03:03 +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 D2AE933D3C5 for ; Tue, 6 Sep 2016 07:03:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8925C7D3 for ; Tue, 6 Sep 2016 07:02:59 +0000 (UTC) From: "Slawek Lis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Slawek Lis" Message-ID: <1473145354.f8601c9036718d6d4722694c8d36b97bd417d8d0.slis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/assimp/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/assimp/assimp-3.2-r3.ebuild X-VCS-Directories: media-libs/assimp/ X-VCS-Committer: slis X-VCS-Committer-Name: Slawek Lis X-VCS-Revision: f8601c9036718d6d4722694c8d36b97bd417d8d0 X-VCS-Branch: master Date: Tue, 6 Sep 2016 07:02:59 +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: 910beec1-616e-4c1f-8993-de768258ad52 X-Archives-Hash: 9f3ecbd8b40c35724ab3ccabf4274ebf commit: f8601c9036718d6d4722694c8d36b97bd417d8d0 Author: Slawomir Lis gentoo org> AuthorDate: Tue Sep 6 07:02:34 2016 +0000 Commit: Slawek Lis gentoo org> CommitDate: Tue Sep 6 07:02:34 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8601c90 media-libs/assimp: install Findassimp cmake module As reported in bug 592892 there is need to install Findassimp.cmake file in target system Reported-by: Grygoriy I. Fuchedzhy gmail.com> Package-Manager: portage-2.3.0 media-libs/assimp/assimp-3.2-r3.ebuild | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/media-libs/assimp/assimp-3.2-r3.ebuild b/media-libs/assimp/assimp-3.2-r3.ebuild new file mode 100644 index 00000000..69d5b6a --- /dev/null +++ b/media-libs/assimp/assimp-3.2-r3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils versionator multilib + +DESCRIPTION="Importer library to import assets from 3D files" +HOMEPAGE="https://github.com/assimp/assimp" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+boost samples static test tools" +SLOT="0" + +RDEPEND=" + boost? ( dev-libs/boost ) + samples? ( x11-libs/libX11 virtual/opengl media-libs/freeglut ) + sys-libs/zlib +" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest ) +" + +src_prepare() { + epatch "${FILESDIR}/test-cmakelists.patch" + epatch "${FILESDIR}/findassimp.patch" +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_build samples ASSIMP_SAMPLES) \ + $(cmake-utils_use_build tools ASSIMP_TOOLS) \ + $(cmake-utils_use_build static STATIC_LIB) \ + $(cmake-utils_use_enable !boost BOOST_WORKAROUND) \ + $(cmake-utils_use_build test TESTS) + -DCMAKE_DEBUG_POSTFIX="" + -DASSIMP_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)/" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /usr/share/cmake/Modules + doins cmake-modules/Findassimp.cmake +} + +src_test() { + "${BUILD_DIR}/test/unit" || die +}