1 |
commit: 990682531e4094824f0ba2986193f6876d41e7f0 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 21 21:18:23 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 21 21:55:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99068253 |
7 |
|
8 |
media-libs/ptex: 2.3.2 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-libs/ptex/Manifest | 1 + |
14 |
media-libs/ptex/files/ptex-2.3.2-cxx11.patch | 22 ++++++++++++++++ |
15 |
media-libs/ptex/ptex-2.3.2.ebuild | 39 ++++++++++++++++++++++++++++ |
16 |
3 files changed, 62 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/ptex/Manifest b/media-libs/ptex/Manifest |
19 |
index f7c5d0f3e48..439468d5e6e 100644 |
20 |
--- a/media-libs/ptex/Manifest |
21 |
+++ b/media-libs/ptex/Manifest |
22 |
@@ -1,2 +1,3 @@ |
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 |
+DIST ptex-2.3.2.tar.gz 308550 BLAKE2B 7b3145dbf9d2c13140c3f20ed606ee911deed3c38fd30adfbb01b58c3af5794dbd4e0fa1fbab6e8ae83556a0ffec725bf077271abf752f1271ed721ca200a1ff SHA512 dbc557dc5e1761204ee3483af9bf4ff1504cbd7955e0405dc27a51f7182e2445e41db086b2792c2491aa2cbaddc74e523170a4b3d25e44d332123d5b7081f4b9 |
26 |
|
27 |
diff --git a/media-libs/ptex/files/ptex-2.3.2-cxx11.patch b/media-libs/ptex/files/ptex-2.3.2-cxx11.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..f35372b7c63 |
30 |
--- /dev/null |
31 |
+++ b/media-libs/ptex/files/ptex-2.3.2-cxx11.patch |
32 |
@@ -0,0 +1,22 @@ |
33 |
+--- a/CMakeLists.txt 2019-03-08 18:39:47.000000000 +0100 |
34 |
++++ b/CMakeLists.txt 2019-05-21 23:20:50.964082298 +0200 |
35 |
+@@ -5,19 +5,6 @@ |
36 |
+ option(PTEX_BUILD_SHARED_LIBS "Enable building Ptex shared libraries" ON) |
37 |
+ option(PRMAN_15_COMPATIBLE_PTEX "Enable PRMan 15 compatibility" OFF) |
38 |
+ |
39 |
+-if (DEFINED ENV{CXXFLAGS_STD}) |
40 |
+- if ($ENV{CXXFLAGS_STD} STREQUAL "c++17") |
41 |
+- set(CMAKE_CXX_STANDARD 17) |
42 |
+- elseif ($ENV{CXXFLAGS_STD} STREQUAL "c++14") |
43 |
+- set(CMAKE_CXX_STANDARD 14) |
44 |
+- elseif ($ENV{CXXFLAGS_STD} STREQUAL "c++11") |
45 |
+- set(CMAKE_CXX_STANDARD 11) |
46 |
+- else () |
47 |
+- set(CMAKE_CXX_STANDARD 98) |
48 |
+- endif () |
49 |
+-else () |
50 |
+- set(CMAKE_CXX_STANDARD 98) |
51 |
+-endif () |
52 |
+ set(CMAKE_CXX_EXTENSIONS OFF) |
53 |
+ set(CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS ON) |
54 |
+ set(CMAKE_INSTALL_MESSAGE LAZY) # Silence "Up-to-date:" install messages |
55 |
|
56 |
diff --git a/media-libs/ptex/ptex-2.3.2.ebuild b/media-libs/ptex/ptex-2.3.2.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..b9d0f650ba9 |
59 |
--- /dev/null |
60 |
+++ b/media-libs/ptex/ptex-2.3.2.ebuild |
61 |
@@ -0,0 +1,39 @@ |
62 |
+# Copyright 1999-2019 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=7 |
66 |
+ |
67 |
+inherit cmake-utils |
68 |
+ |
69 |
+DESCRIPTION="Per-Face Texture Mapping for Production Rendering" |
70 |
+HOMEPAGE="http://ptex.us/" |
71 |
+SRC_URI="https://github.com/wdas/ptex/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="BSD" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
+IUSE="static-libs" |
77 |
+ |
78 |
+BDEPEND="app-doc/doxygen" |
79 |
+RDEPEND="sys-libs/zlib" |
80 |
+DEPEND="${RDEPEND}" |
81 |
+ |
82 |
+RESTRICT="test" |
83 |
+ |
84 |
+PATCHES=( "${FILESDIR}/${P}-cxx11.patch" ) |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ # https://github.com/wdas/ptex/issues/41 |
88 |
+ cat <<-EOF > version || die |
89 |
+ ${PV} |
90 |
+ EOF |
91 |
+ cmake-utils_src_prepare |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ local mycmakeargs=( |
96 |
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}/html" |
97 |
+ -DPTEX_BUILD_STATIC_LIBS=$(usex static-libs) |
98 |
+ ) |
99 |
+ cmake-utils_src_configure |
100 |
+} |