Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/icc_examin/files/, media-gfx/icc_examin/
Date: Sat, 14 Oct 2017 18:53:19
Message-Id: 1508007175.5e9542668be4e8c216de62295c2975c8cc1310ea.asturm@gentoo
1 commit: 5e9542668be4e8c216de62295c2975c8cc1310ea
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 14 17:29:44 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 14 18:52:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e954266
7
8 media-gfx/icc_examin: Add 0.56_p20171007 snapshot
9
10 - EAPI 6
11 - Switch to cmake
12 - Add missing DEPENDs
13 - Fix HOMEPAGE, DESCRIPTION
14
15 Gentoo-bug: 536646
16 Package-Manager: Portage-2.3.11, Repoman-2.3.3
17
18 media-gfx/icc_examin/Manifest | 1 +
19 .../icc_examin/files/icc-examin-0.56-fltk.patch | 27 +++++++++++
20 .../icc_examin/icc_examin-0.56_p20171007.ebuild | 55 ++++++++++++++++++++++
21 media-gfx/icc_examin/icc_examin-9999.ebuild | 49 +++++++++++--------
22 4 files changed, 112 insertions(+), 20 deletions(-)
23
24 diff --git a/media-gfx/icc_examin/Manifest b/media-gfx/icc_examin/Manifest
25 index ce9479918d5..d02d1acc4d1 100644
26 --- a/media-gfx/icc_examin/Manifest
27 +++ b/media-gfx/icc_examin/Manifest
28 @@ -1 +1,2 @@
29 +DIST icc-examin-0.56_p20171007.tar.gz 724698 SHA256 1a7acd84a9891284d84f025baa37b97823fa6708e4b5b26be5f58d52381d12aa SHA512 79d4e42c0ae389128ee6514892d0019b0cec17466e8d8e47efbc0a5114c0d365732e26a9abb442a3bca3c2e83ede4dca407cad3bf250492a36832f8bdebeb2b6 WHIRLPOOL ef06562d25b172ee9aaef143422e0403a89dd0731a9d33a56fd6a60ac560e6f3e66b1bba14c9980feb6a288b4cff1dc2daf9458ca1034ab1c63140bf24b5ea80
30 DIST icc_examin-0.55.tar.gz 692711 SHA256 6a6036e4724845368c2ade86c3d29e9cf0e09801f704d02f45ed2b2481924bab SHA512 503d932890c747b9111167df360e9deedd985a4cd434610a6c0de42d4d36ff22907c1441485731349661ddab85d39268fcfc69c035601c1066ec9b63566f491a WHIRLPOOL b6014338eb79e3ac2bdbbb7e4f817a49cca0d34e6dc3b10fe74f6bc4cc1c85d57d7b76d53574aebdcb7dff599a1f0ade1f809006ada01977361d59a64ca8d413
31
32 diff --git a/media-gfx/icc_examin/files/icc-examin-0.56-fltk.patch b/media-gfx/icc_examin/files/icc-examin-0.56-fltk.patch
33 new file mode 100644
34 index 00000000000..5e4645a8b0e
35 --- /dev/null
36 +++ b/media-gfx/icc_examin/files/icc-examin-0.56-fltk.patch
37 @@ -0,0 +1,27 @@
38 +From 172889b358d0801da8d2c15196129cd911e3afc1 Mon Sep 17 00:00:00 2001
39 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
40 +Date: Sat, 14 Oct 2017 18:59:20 +0200
41 +Subject: [PATCH] Fix FLTK include and libs
42 +
43 +---
44 + CMakeLists.txt | 4 ++--
45 + 1 file changed, 2 insertions(+), 2 deletions(-)
46 +
47 +diff --git a/CMakeLists.txt b/CMakeLists.txt
48 +index 60ee08a..41f7c61 100644
49 +--- a/CMakeLists.txt
50 ++++ b/CMakeLists.txt
51 +@@ -103,8 +103,8 @@ IF(FLTK_FOUND)
52 + SET( FLTK_ADD_LIBS "fltk_jpeg" )
53 + ENDIF( NOT JPEG_FOUND )
54 + ENDIF(FLTK_FOUND)
55 +-INCLUDE_DIRECTORIES( ${FLTK_INCLUDE_DIRS} )
56 +-LINK_DIRECTORIES( ${FLTK_LIBRARY_DIRS} )
57 ++INCLUDE_DIRECTORIES( ${FLTK_INCLUDE_DIR} )
58 ++LINK_DIRECTORIES( ${FLTK_LIBRARIES} )
59 +
60 + FIND_PACKAGE( OpenGL )
61 + IF(OPENGL_FOUND)
62 +--
63 +2.14.2
64 +
65
66 diff --git a/media-gfx/icc_examin/icc_examin-0.56_p20171007.ebuild b/media-gfx/icc_examin/icc_examin-0.56_p20171007.ebuild
67 new file mode 100644
68 index 00000000000..fd9e3b7ee0e
69 --- /dev/null
70 +++ b/media-gfx/icc_examin/icc_examin-0.56_p20171007.ebuild
71 @@ -0,0 +1,55 @@
72 +# Copyright 1999-2017 Gentoo Foundation
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI=6
76 +
77 +COMMIT=ee9e8cd013766b0df2c5e3b4416f985322b22966
78 +inherit cmake-utils flag-o-matic vcs-snapshot xdg-utils
79 +
80 +DESCRIPTION="Viewer for ICC and CGATS, argyll gamut vrml visualisations and GPU gamma tables"
81 +HOMEPAGE="http://www.oyranos.org/icc-examin/"
82 +SRC_URI="https://github.com/oyranos-cms/${PN/_/-}/tarball/${COMMIT} -> ${P/_/-}.tar.gz"
83 +
84 +LICENSE="GPL-2"
85 +SLOT="0"
86 +KEYWORDS="~amd64 ~x86"
87 +IUSE=""
88 +
89 +RDEPEND="
90 + app-admin/elektra
91 + media-libs/freetype
92 + media-libs/ftgl
93 + media-libs/libXcm[X]
94 + media-libs/oyranos
95 + media-libs/tiff:0
96 + virtual/jpeg:0
97 + virtual/opengl
98 + x11-libs/fltk[opengl]
99 + x11-libs/libX11
100 + x11-libs/libXinerama
101 + x11-libs/libXpm
102 + x11-libs/libXrandr
103 + x11-libs/libXxf86vm
104 +"
105 +DEPEND="${RDEPEND}
106 + sys-devel/gettext
107 + virtual/libintl
108 + virtual/pkgconfig
109 +"
110 +
111 +PATCHES=( "${FILESDIR}/${PN/_/-}-0.56-fltk.patch" )
112 +
113 +S="${WORKDIR}/${P/_/-}"
114 +
115 +src_configure() {
116 + append-cxxflags -fpermissive
117 + cmake-utils_src_configure
118 +}
119 +
120 +pkg_postinst() {
121 + xdg_desktop_database_update
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_desktop_database_update
126 +}
127
128 diff --git a/media-gfx/icc_examin/icc_examin-9999.ebuild b/media-gfx/icc_examin/icc_examin-9999.ebuild
129 index 045fa7a8206..ceb2821c90c 100644
130 --- a/media-gfx/icc_examin/icc_examin-9999.ebuild
131 +++ b/media-gfx/icc_examin/icc_examin-9999.ebuild
132 @@ -1,12 +1,12 @@
133 -# Copyright 1999-2015 Gentoo Foundation
134 +# Copyright 1999-2017 Gentoo Foundation
135 # Distributed under the terms of the GNU General Public License v2
136
137 -EAPI=5
138 +EAPI=6
139
140 -inherit eutils toolchain-funcs git-r3
141 +inherit cmake-utils flag-o-matic git-r3 xdg-utils
142
143 -DESCRIPTION="Viewer for ICC and CGATS profiles, argylls gamut vrml visualisations and GPU gamma tables"
144 -HOMEPAGE="http://www.oyranos.org/wiki/index.php?title=ICC_Examin"
145 +DESCRIPTION="Viewer for ICC and CGATS, argyll gamut vrml visualisations and GPU gamma tables"
146 +HOMEPAGE="http://www.oyranos.org/icc-examin/"
147 EGIT_REPO_URI="https://github.com/oyranos-cms/${PN/_/-}.git"
148
149 LICENSE="GPL-2"
150 @@ -14,30 +14,39 @@ SLOT="0"
151 KEYWORDS=""
152 IUSE=""
153
154 -RDEPEND="app-admin/elektra
155 +RDEPEND="
156 + app-admin/elektra
157 + media-libs/freetype
158 media-libs/ftgl
159 - media-libs/libXcm
160 - =media-libs/oyranos-9999
161 + media-libs/libXcm[X]
162 + media-libs/oyranos
163 media-libs/tiff:0
164 - x11-libs/fltk
165 + virtual/jpeg:0
166 + virtual/opengl
167 + x11-libs/fltk[opengl]
168 x11-libs/libX11
169 x11-libs/libXinerama
170 x11-libs/libXpm
171 x11-libs/libXrandr
172 - x11-libs/libXxf86vm"
173 -
174 + x11-libs/libXxf86vm
175 +"
176 DEPEND="${RDEPEND}
177 - virtual/pkgconfig"
178 + sys-devel/gettext
179 + virtual/libintl
180 + virtual/pkgconfig
181 +"
182
183 -src_prepare() {
184 - epatch "${FILESDIR}"/${PN}-0.55-fix-xrandr-test.patch
185 +PATCHES=( "${FILESDIR}/${PN/_/-}-0.56-fltk.patch" )
186
187 - sed -e '/xdg-icon-resource\|xdg-desktop-menu/d' \
188 - -i makefile.in
189 +src_configure() {
190 + append-cxxflags -fpermissive
191 + cmake-utils_src_configure
192 }
193
194 -src_configure() {
195 - tc-export CC CXX
196 - econf --enable-verbose \
197 - --disable-static
198 +pkg_postinst() {
199 + xdg_desktop_database_update
200 +}
201 +
202 +pkg_postrm() {
203 + xdg_desktop_database_update
204 }