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 B0D67138334 for ; Wed, 21 Aug 2019 19:03:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1B79E0918; Wed, 21 Aug 2019 19:03:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 96490E0918 for ; Wed, 21 Aug 2019 19:03:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 287F134A0AB for ; Wed, 21 Aug 2019 19:03:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D14E74D for ; Wed, 21 Aug 2019 19:03:49 +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: <1566414215.ebd7fc118c9f57434fb1fe19bf6e70db3f86f13e.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-4.0.1-r1.ebuild X-VCS-Directories: media-libs/assimp/ X-VCS-Committer: slis X-VCS-Committer-Name: Slawek Lis X-VCS-Revision: ebd7fc118c9f57434fb1fe19bf6e70db3f86f13e X-VCS-Branch: master Date: Wed, 21 Aug 2019 19:03:49 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 99badf8a-a463-4578-8641-ccd568dc06c2 X-Archives-Hash: 9fe4de2e89a3089da278f2306e3d7a51 commit: ebd7fc118c9f57434fb1fe19bf6e70db3f86f13e Author: Slawomir Lis gentoo org> AuthorDate: Wed Aug 21 19:03:14 2019 +0000 Commit: Slawek Lis gentoo org> CommitDate: Wed Aug 21 19:03:35 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebd7fc11 media-libs/assimp: Strict aliasing error fix Closes: https://bugs.gentoo.org/677392 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Slawek Lis gentoo.org> media-libs/assimp/assimp-4.0.1-r1.ebuild | 67 ++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/media-libs/assimp/assimp-4.0.1-r1.ebuild b/media-libs/assimp/assimp-4.0.1-r1.ebuild new file mode 100644 index 00000000000..0e4e53c3572 --- /dev/null +++ b/media-libs/assimp/assimp-4.0.1-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +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 ~arm64 ~x86" +IUSE="samples static test tools" +SLOT="0" + +RDEPEND=" + dev-libs/boost:= + sys-libs/zlib:=[minizip] + samples? ( + media-libs/freeglut + virtual/opengl + x11-libs/libX11 + ) + tools? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + media-libs/devil + virtual/opengl + ) +" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}/findassimp-3.3.1.patch" + "${FILESDIR}/${P}-qt-5.11.0.patch" + "${FILESDIR}/${P}-disabletest.patch" # bug 659122 +) + +src_configure() { + append-flags -fno-strict-aliasing + local mycmakeargs=( + -DASSIMP_BUILD_SAMPLES=$(usex samples) + -DASSIMP_BUILD_STATIC_LIB=$(usex static) + -DASSIMP_BUILD_TESTS=$(usex test) + -DASSIMP_BUILD_ASSIMP_TOOLS=$(usex tools) + -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 +}