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 8E05D138334 for ; Tue, 21 May 2019 21:55:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB4F0E0855; Tue, 21 May 2019 21:55:30 +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 9D5E6E0855 for ; Tue, 21 May 2019 21:55:30 +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 829D9344D74 for ; Tue, 21 May 2019 21:55:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 33BF9326 for ; Tue, 21 May 2019 21:55:28 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1558475704.990682531e4094824f0ba2986193f6876d41e7f0.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/ptex/, media-libs/ptex/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/ptex/Manifest media-libs/ptex/files/ptex-2.3.2-cxx11.patch media-libs/ptex/ptex-2.3.2.ebuild X-VCS-Directories: media-libs/ptex/ media-libs/ptex/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 990682531e4094824f0ba2986193f6876d41e7f0 X-VCS-Branch: master Date: Tue, 21 May 2019 21:55:28 +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: 00379f89-330e-49ec-81d9-9835493a0ddf X-Archives-Hash: fd5db4b7b0d36a2219dfadd51e13cc19 commit: 990682531e4094824f0ba2986193f6876d41e7f0 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue May 21 21:18:23 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue May 21 21:55:04 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99068253 media-libs/ptex: 2.3.2 version bump Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> media-libs/ptex/Manifest | 1 + media-libs/ptex/files/ptex-2.3.2-cxx11.patch | 22 ++++++++++++++++ media-libs/ptex/ptex-2.3.2.ebuild | 39 ++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/media-libs/ptex/Manifest b/media-libs/ptex/Manifest index f7c5d0f3e48..439468d5e6e 100644 --- a/media-libs/ptex/Manifest +++ b/media-libs/ptex/Manifest @@ -1,2 +1,3 @@ DIST ptex-2.1.28.tar.gz 305327 BLAKE2B 4a91b08ae326e8ed8d420022c693ea60cb21908380b8c49a7672771686f9dd2ef05151b7d43755bc63ab6624db772c2b53d1ffdcdea9c1dff7627cc3fe0f3b15 SHA512 ddce3c79f14d196e550c1e8a5b371482f88190cd667a2e2aa84601de1639f7cabb8571c1b3a49b48df46ce550d27088a00a67b1403c3bfec2ed73437c3dca3e8 DIST ptex-2.3.0.tar.gz 306462 BLAKE2B 790e3623ce6ebae2dfd8884d8e19e62395c54432289d88bdcf3a01c8ae1ef752ca88869357ac1e4657d59f1ca73d311a3fb9a08efe4e145ca259eff93d8a3b6a SHA512 2d9d320e4205236a4eff05ec3c67d085624809ebefa89fa3b943d18a8b2b6a5f61c022a4cc4363a7c6ceccfb9eac4f8738dff2e90a3355814f2c4ff096c09992 +DIST ptex-2.3.2.tar.gz 308550 BLAKE2B 7b3145dbf9d2c13140c3f20ed606ee911deed3c38fd30adfbb01b58c3af5794dbd4e0fa1fbab6e8ae83556a0ffec725bf077271abf752f1271ed721ca200a1ff SHA512 dbc557dc5e1761204ee3483af9bf4ff1504cbd7955e0405dc27a51f7182e2445e41db086b2792c2491aa2cbaddc74e523170a4b3d25e44d332123d5b7081f4b9 diff --git a/media-libs/ptex/files/ptex-2.3.2-cxx11.patch b/media-libs/ptex/files/ptex-2.3.2-cxx11.patch new file mode 100644 index 00000000000..f35372b7c63 --- /dev/null +++ b/media-libs/ptex/files/ptex-2.3.2-cxx11.patch @@ -0,0 +1,22 @@ +--- a/CMakeLists.txt 2019-03-08 18:39:47.000000000 +0100 ++++ b/CMakeLists.txt 2019-05-21 23:20:50.964082298 +0200 +@@ -5,19 +5,6 @@ + option(PTEX_BUILD_SHARED_LIBS "Enable building Ptex shared libraries" ON) + option(PRMAN_15_COMPATIBLE_PTEX "Enable PRMan 15 compatibility" OFF) + +-if (DEFINED ENV{CXXFLAGS_STD}) +- if ($ENV{CXXFLAGS_STD} STREQUAL "c++17") +- set(CMAKE_CXX_STANDARD 17) +- elseif ($ENV{CXXFLAGS_STD} STREQUAL "c++14") +- set(CMAKE_CXX_STANDARD 14) +- elseif ($ENV{CXXFLAGS_STD} STREQUAL "c++11") +- set(CMAKE_CXX_STANDARD 11) +- else () +- set(CMAKE_CXX_STANDARD 98) +- endif () +-else () +- set(CMAKE_CXX_STANDARD 98) +-endif () + set(CMAKE_CXX_EXTENSIONS OFF) + set(CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS ON) + set(CMAKE_INSTALL_MESSAGE LAZY) # Silence "Up-to-date:" install messages diff --git a/media-libs/ptex/ptex-2.3.2.ebuild b/media-libs/ptex/ptex-2.3.2.ebuild new file mode 100644 index 00000000000..b9d0f650ba9 --- /dev/null +++ b/media-libs/ptex/ptex-2.3.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="Per-Face Texture Mapping for Production Rendering" +HOMEPAGE="http://ptex.us/" +SRC_URI="https://github.com/wdas/ptex/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +BDEPEND="app-doc/doxygen" +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND}" + +RESTRICT="test" + +PATCHES=( "${FILESDIR}/${P}-cxx11.patch" ) + +src_prepare() { + # https://github.com/wdas/ptex/issues/41 + cat <<-EOF > version || die + ${PV} + EOF + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/html" + -DPTEX_BUILD_STATIC_LIBS=$(usex static-libs) + ) + cmake-utils_src_configure +}