Gentoo Archives: gentoo-commits

From: Jonathan Scruggs <dracwyrm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/ptex/, media-libs/ptex/files/
Date: Wed, 15 Aug 2018 20:08:52
Message-Id: 1534363697.cf90a26960bf46cafe077d8eee562044ac4d8dd1.dracwyrm@gentoo
1 commit: cf90a26960bf46cafe077d8eee562044ac4d8dd1
2 Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 15 17:35:27 2018 +0000
4 Commit: Jonathan Scruggs <dracwyrm <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 15 20:08:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf90a269
7
8 media-libs/ptex: bump to version 2.3.0
9
10 Restrict tests as not fixed upstream:
11 Closes: https://bugs.gentoo.org/646006
12
13 media-libs/ptex/Manifest | 1 +
14 media-libs/ptex/files/ptex-2.3.0-cxx11.patch | 12 ++++++++++
15 media-libs/ptex/ptex-2.3.0.ebuild | 33 ++++++++++++++++++++++++++++
16 3 files changed, 46 insertions(+)
17
18 diff --git a/media-libs/ptex/Manifest b/media-libs/ptex/Manifest
19 index a49cd522665..f7c5d0f3e48 100644
20 --- a/media-libs/ptex/Manifest
21 +++ b/media-libs/ptex/Manifest
22 @@ -1 +1,2 @@
23 DIST ptex-2.1.28.tar.gz 305327 BLAKE2B 4a91b08ae326e8ed8d420022c693ea60cb21908380b8c49a7672771686f9dd2ef05151b7d43755bc63ab6624db772c2b53d1ffdcdea9c1dff7627cc3fe0f3b15 SHA512 ddce3c79f14d196e550c1e8a5b371482f88190cd667a2e2aa84601de1639f7cabb8571c1b3a49b48df46ce550d27088a00a67b1403c3bfec2ed73437c3dca3e8
24 +DIST ptex-2.3.0.tar.gz 306462 BLAKE2B 790e3623ce6ebae2dfd8884d8e19e62395c54432289d88bdcf3a01c8ae1ef752ca88869357ac1e4657d59f1ca73d311a3fb9a08efe4e145ca259eff93d8a3b6a SHA512 2d9d320e4205236a4eff05ec3c67d085624809ebefa89fa3b943d18a8b2b6a5f61c022a4cc4363a7c6ceccfb9eac4f8738dff2e90a3355814f2c4ff096c09992
25
26 diff --git a/media-libs/ptex/files/ptex-2.3.0-cxx11.patch b/media-libs/ptex/files/ptex-2.3.0-cxx11.patch
27 new file mode 100644
28 index 00000000000..f0b60009137
29 --- /dev/null
30 +++ b/media-libs/ptex/files/ptex-2.3.0-cxx11.patch
31 @@ -0,0 +1,12 @@
32 +diff -purN a/CMakeLists.txt b/CMakeLists.txt
33 +--- a/CMakeLists.txt 2016-04-04 18:14:05.000000000 +0100
34 ++++ b/CMakeLists.txt 2017-02-13 22:59:10.000000000 +0000
35 +@@ -16,7 +16,7 @@ else ()
36 + endif ()
37 +
38 + if (NOT WIN32)
39 +- set(CMAKE_CXX_FLAGS "-std=c++98 -Wall -Wextra -pedantic ${CMAKE_CXX_FLAGS}")
40 ++ set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -pedantic ${CMAKE_CXX_FLAGS}")
41 + endif ()
42 +
43 + if(MSVC)
44
45 diff --git a/media-libs/ptex/ptex-2.3.0.ebuild b/media-libs/ptex/ptex-2.3.0.ebuild
46 new file mode 100644
47 index 00000000000..b3cec3d387b
48 --- /dev/null
49 +++ b/media-libs/ptex/ptex-2.3.0.ebuild
50 @@ -0,0 +1,33 @@
51 +# Copyright 1999-2018 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=6
55 +
56 +inherit cmake-utils
57 +
58 +DESCRIPTION="Per-Face Texture Mapping for Production Rendering"
59 +HOMEPAGE="http://ptex.us/"
60 +SRC_URI="https://github.com/wdas/ptex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
61 +
62 +LICENSE="BSD"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~x86"
65 +IUSE="static-libs"
66 +
67 +RDEPEND="sys-libs/zlib:="
68 +DEPEND="${RDEPEND}
69 + app-doc/doxygen"
70 +
71 +RESTRICT="test"
72 +
73 +PATCHES=(
74 + "${FILESDIR}/${P}-cxx11.patch"
75 +)
76 +
77 +src_configure() {
78 + local mycmakeargs=(
79 + -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/html"
80 + -DPTEX_BUILD_STATIC_LIBS=$(usex static-libs)
81 + )
82 + cmake-utils_src_configure
83 +}