Gentoo Archives: gentoo-commits

From: Albert Diserholt <albert@×××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/Drauthius:master commit in: dev-games/aseprite/, dev-games/aseprite/files/
Date: Sat, 17 Jul 2021 16:17:07
Message-Id: 1626538600.b92c3a3dd4f0b3c0385b00a09a8230a676962536.albert@gentoo
1 commit: b92c3a3dd4f0b3c0385b00a09a8230a676962536
2 Author: Albert Diserholt <albert <AT> diserholt <DOT> com>
3 AuthorDate: Sat Jul 17 16:16:40 2021 +0000
4 Commit: Albert Diserholt <albert <AT> diserholt <DOT> com>
5 CommitDate: Sat Jul 17 16:16:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/user/Drauthius.git/commit/?id=b92c3a3d
7
8 dev-games/aseprite-1.2.28
9
10 Signed-off-by: Albert Diserholt <albert <AT> diserholt.com>
11
12 dev-games/aseprite/Manifest | 5 ++
13 dev-games/aseprite/aseprite-1.2.28.ebuild | 95 ++++++++++++++++++++++
14 .../files/aseprite-1.2.28-system_libarchive.patch | 90 ++++++++++++++++++++
15 .../files/aseprite-1.2.28-system_libwebp.patch | 41 ++++++++++
16 4 files changed, 231 insertions(+)
17
18 diff --git a/dev-games/aseprite/Manifest b/dev-games/aseprite/Manifest
19 index 8ad48f1..b32b64b 100644
20 --- a/dev-games/aseprite/Manifest
21 +++ b/dev-games/aseprite/Manifest
22 @@ -2,11 +2,16 @@ AUX aseprite-1.2.21-system_libarchive.patch 3563 BLAKE2B 478a69322ec4cf6b7588b8f
23 AUX aseprite-1.2.21-system_libwebp.patch 1595 BLAKE2B 5bd386fae6723de0d6068b25d8ba75eedf1ebc4abd94d91325dbc856752eb67c7d851a3a02976b6d048cec4c0d57b5d16007b83fdc32285355b7e94fc0930010 SHA512 14d3ab4c345046cf91e6237825456ef94703f334e1fd9fc6d09a4606c89ea04518e12fdc20956638a60fc42302fca5f47beb73fa3318a3ba4e78f3cac35527cb
24 AUX aseprite-1.2.27-system_libarchive.patch 3563 BLAKE2B 478a69322ec4cf6b7588b8f1dbd85b1eae0a327c87b400b1061197ff09274843703a480efd8a34d8ca77cd22402b8ae2ab2eaa52741e3a72ab73fd3de6bed84f SHA512 9f378d07b44cc5234022ba1b96608a648dbbcca2e07946025642cb9c7daf507072b203b4f97815dab2913977527d3c5b0e8883c2ad2da51cb2551adf6f7840ab
25 AUX aseprite-1.2.27-system_libwebp.patch 1595 BLAKE2B 5bd386fae6723de0d6068b25d8ba75eedf1ebc4abd94d91325dbc856752eb67c7d851a3a02976b6d048cec4c0d57b5d16007b83fdc32285355b7e94fc0930010 SHA512 14d3ab4c345046cf91e6237825456ef94703f334e1fd9fc6d09a4606c89ea04518e12fdc20956638a60fc42302fca5f47beb73fa3318a3ba4e78f3cac35527cb
26 +AUX aseprite-1.2.28-system_libarchive.patch 3897 BLAKE2B 40afbda3676a2db0ab755b0f748876ec72e980dd758fbe40b15286ff877530d6d44fda503c6fd54f076ac67b6042e5d37a6ae48f40f812ff0251d2a5e6b2b7ee SHA512 f4607555cec237f9889995ff679ac65f94fc230f0d8e1d71ab181b2e25664cb03a218794dcff2b8e7b591658e5160771e1ca7752ca96a0d9a7f607cb00d79496
27 +AUX aseprite-1.2.28-system_libwebp.patch 1595 BLAKE2B 5bd386fae6723de0d6068b25d8ba75eedf1ebc4abd94d91325dbc856752eb67c7d851a3a02976b6d048cec4c0d57b5d16007b83fdc32285355b7e94fc0930010 SHA512 14d3ab4c345046cf91e6237825456ef94703f334e1fd9fc6d09a4606c89ea04518e12fdc20956638a60fc42302fca5f47beb73fa3318a3ba4e78f3cac35527cb
28 DIST Aseprite-v1.1.13-Source.zip 12809688 BLAKE2B e9d6d58cfeb4b07d63945025a31e5a52c2f65e59f01a65bc3ac2f8feef725b2caeef94f542c70132834280c3227a3a1cf7756a708f6970c12d4fd7aca4e646c3 SHA512 b6dd948223885bc9511a8a0f8427540011dc2a6a4ec3448d3461a5661c7de574487e2306024f9522240490b1784a4231818f2790466d106f8b21259c188ca258
29 DIST Aseprite-v1.2.21-Source.zip 24477477 BLAKE2B b497cf5b6ba677eb742e44d2ee5d28c60ba57956ca04989e27ac8623832e08161c1cf0b64a9440c4fecf103e083556404d918a09ca61d7c496fdac7fb927b196 SHA512 17b2570f0114213b86e18f65a943867d72a497245b8f45bf22a23ad6ed32bb016c69391341cc0449c4fbc9d31e6f5d564c48a204df1c9f13488ffb4658393fee
30 DIST Aseprite-v1.2.27-Source.zip 24507948 BLAKE2B 1c321a1762e9e0dfa0982f77f37520f4f0b6c61a9bf96956b20137a61cbd066953bd3304dfc32df25922a24c7700c1ac5af2324ec07ac96505edf283d564e9f7 SHA512 6f8cdc64ac79c61c40c41f9f7f78ff5a3705087d818fd64cc2a56f7c9d8ae12aa5d201ea341cc75b1062fe0b467d89304da4f019c7d8b1d95203f5377e10ef94
31 +DIST Aseprite-v1.2.28-Source.zip 24622259 BLAKE2B 5231c9beec00e18b57ed8f39a78d3b54ee1504f6c162c49ba2eee73e62f033dfa4d10015b10f97f858c1d015ee7085bf52a326cd9ae2fe3c2afe7cefbc94eb2b SHA512 97d5cd3aa1dc578f73430b5fc5b45f8e10390010652aa4dab7cebf34fd3bd071544b1bfe03dbdeaa97b960c1ea70e3d66dc28e53a8a79bdf8bcf48f92852ee16
32 DIST aseprite-1.2.21-skia-m81-b607b32047.zip 35390542 BLAKE2B f5f5bc6d237c92a302dd593cb91f02904426d342a5c1484589e9ac3444e226637791c5ae951a7406adf4a75a192009aa19beee0f36c4563e10cd32b6b4c6768e SHA512 6c417f289cc1874aefc4dc08ce2edf055c50106c9351476eafe2d554296e9075046eb726465c58097b0a894e2a709f9830208c44eb6c3c7f6ad53cc7d24e70ce
33 DIST aseprite-1.2.27-skia-m81-b607b32047.zip 35390542 BLAKE2B f5f5bc6d237c92a302dd593cb91f02904426d342a5c1484589e9ac3444e226637791c5ae951a7406adf4a75a192009aa19beee0f36c4563e10cd32b6b4c6768e SHA512 6c417f289cc1874aefc4dc08ce2edf055c50106c9351476eafe2d554296e9075046eb726465c58097b0a894e2a709f9830208c44eb6c3c7f6ad53cc7d24e70ce
34 +DIST aseprite-1.2.28-skia-m81-b607b32047.zip 35390542 BLAKE2B f5f5bc6d237c92a302dd593cb91f02904426d342a5c1484589e9ac3444e226637791c5ae951a7406adf4a75a192009aa19beee0f36c4563e10cd32b6b4c6768e SHA512 6c417f289cc1874aefc4dc08ce2edf055c50106c9351476eafe2d554296e9075046eb726465c58097b0a894e2a709f9830208c44eb6c3c7f6ad53cc7d24e70ce
35 EBUILD aseprite-1.1.13.ebuild 3008 BLAKE2B 7419fdaaa1d9506d841ec9c0af3fa04b930afa98373accff9c9d6ee150d9e2ff3c64e670a800c1e40a118f608b2a6f362a779637c397f77a90802a97eef9557d SHA512 58cb3df2e8b33502021b90adde0459004507c9809ee4e0a06f5ddcbefef3c9758cd7374e7f529309a1c876a98e8983305e18f7f9344350221470a7bcebe9ce49
36 EBUILD aseprite-1.2.21.ebuild 2085 BLAKE2B 09cb7e751d1282315f663c26dcac8a4a21bced2957fdb2850cb56febdf0d623e4fbc83a183f66f996622951a98991297a8dabf3a37835765e4d85fe884b7c522 SHA512 96f319dbc563f5665800466df743ec4a481831f259e98280a43737f67769fb9facc83206d51c8ba1f84fdaf82271fc88063b549f03dab4366ceb2d5e59a42a97
37 EBUILD aseprite-1.2.27.ebuild 2085 BLAKE2B 09cb7e751d1282315f663c26dcac8a4a21bced2957fdb2850cb56febdf0d623e4fbc83a183f66f996622951a98991297a8dabf3a37835765e4d85fe884b7c522 SHA512 96f319dbc563f5665800466df743ec4a481831f259e98280a43737f67769fb9facc83206d51c8ba1f84fdaf82271fc88063b549f03dab4366ceb2d5e59a42a97
38 +EBUILD aseprite-1.2.28.ebuild 2085 BLAKE2B 09cb7e751d1282315f663c26dcac8a4a21bced2957fdb2850cb56febdf0d623e4fbc83a183f66f996622951a98991297a8dabf3a37835765e4d85fe884b7c522 SHA512 96f319dbc563f5665800466df743ec4a481831f259e98280a43737f67769fb9facc83206d51c8ba1f84fdaf82271fc88063b549f03dab4366ceb2d5e59a42a97
39
40 diff --git a/dev-games/aseprite/aseprite-1.2.28.ebuild b/dev-games/aseprite/aseprite-1.2.28.ebuild
41 new file mode 100644
42 index 0000000..54db779
43 --- /dev/null
44 +++ b/dev-games/aseprite/aseprite-1.2.28.ebuild
45 @@ -0,0 +1,95 @@
46 +# Copyright 1999-2020 Gentoo Foundation
47 +# Distributed under the terms of the GNU General Public License v2
48 +# $Id$
49 +
50 +EAPI=7
51 +inherit cmake-utils toolchain-funcs
52 +
53 +DESCRIPTION="Animated sprite editor & pixel art tool"
54 +HOMEPAGE="http://www.aseprite.org"
55 +LICENSE="Proprietary"
56 +SLOT="0"
57 +
58 +PATCHES=(
59 + "${FILESDIR}/${P}-system_libarchive.patch"
60 + "${FILESDIR}/${P}-system_libwebp.patch"
61 +)
62 +
63 +SKIA_VERSION="m81-b607b32047"
64 +SKIA_FILE="Skia-Linux-Release-${ARCH/amd64/x64}.zip"
65 +SKIA_BASE_URL="https://github.com/${PN}/skia/releases/download"
66 +SKIA_URI="${SKIA_BASE_URL}/${SKIA_VERSION}/${SKIA_FILE} -> ${P}-skia-${SKIA_VERSION}.zip"
67 +
68 +ASEPRITE_FILE="${PN^}-v${PV//_/-}-Source.zip"
69 +ASEPRITE_URI="https://github.com/${PN}/${PN}/releases/download/v${PV//_/-}/${ASEPRITE_FILE}"
70 +
71 +SRC_URI="${ASEPRITE_URI} ${SKIA_URI}"
72 +KEYWORDS="~amd64 ~x86"
73 +
74 +IUSE="
75 + debug
76 + memleak
77 + webp"
78 +
79 +RDEPEND="
80 + app-arch/libarchive
81 + app-text/cmark
82 + dev-libs/expat
83 + dev-libs/tinyxml
84 + media-libs/freetype:2
85 + >=media-libs/giflib-5.0
86 + media-libs/fontconfig
87 + media-libs/libpng:0
88 + webp? ( media-libs/libwebp )
89 + net-misc/curl
90 + sys-apps/util-linux
91 + sys-libs/zlib
92 + virtual/jpeg:=
93 + x11-libs/libX11
94 + x11-libs/pixman"
95 +
96 +DOCS=( EULA.txt
97 + docs/ase-file-specs.md
98 + docs/LICENSES.md
99 + README.md )
100 +
101 +src_unpack() {
102 + mkdir -p "${P}/skia"
103 + cd "${P}"
104 + unpack "${ASEPRITE_FILE}"
105 + ( cd skia && unpack "${P}-skia-${SKIA_VERSION}.zip" )
106 +}
107 +
108 +src_prepare() {
109 + cmake-utils_src_prepare
110 +}
111 +
112 +src_configure() {
113 + use debug && CMAKE_BUILD_TYPE=Debug || CMAKE_BUILD_TYPE=Release
114 +
115 + local mycmakeargs=(
116 + -DENABLE_UPDATER=OFF
117 + -DFULLSCREEN_PLATFORM=ON
118 + -DUSE_SHARED_CMARK=ON
119 + -DUSE_SHARED_CURL=ON
120 + -DUSE_SHARED_GIFLIB=ON
121 + -DUSE_SHARED_JPEGLIB=ON
122 + -DUSE_SHARED_ZLIB=ON
123 + -DUSE_SHARED_LIBARCHIVE=ON
124 + -DUSE_SHARED_LIBPNG=ON
125 + -DUSE_SHARED_TINYXML=ON
126 + -DUSE_SHARED_PIXMAN=ON
127 + -DUSE_SHARED_FREETYPE=ON
128 + -DUSE_SHARED_HARFBUZZ=ON
129 + -DUSE_SHARED_WEBP=ON
130 + -DWITH_WEBP_SUPPORT="$(usex webp)"
131 + -DENABLE_MEMLEAK="$(usex memleak)"
132 + -DSKIA_DIR="${S}/skia"
133 + )
134 +
135 + cmake-utils_src_configure
136 +}
137 +
138 +pkg_postinst() {
139 + ewarn "Aseprite is for personal use only. You may not distribute it."
140 +}
141
142 diff --git a/dev-games/aseprite/files/aseprite-1.2.28-system_libarchive.patch b/dev-games/aseprite/files/aseprite-1.2.28-system_libarchive.patch
143 new file mode 100644
144 index 0000000..2434840
145 --- /dev/null
146 +++ b/dev-games/aseprite/files/aseprite-1.2.28-system_libarchive.patch
147 @@ -0,0 +1,90 @@
148 +diff --git a/CMakeLists.txt b/CMakeLists.txt
149 +index dae638be8..dd5d17794 100644
150 +--- a/CMakeLists.txt
151 ++++ b/CMakeLists.txt
152 +@@ -60,6 +60,7 @@ option(USE_SHARED_CURL "Use your installed copy of curl" off)
153 + option(USE_SHARED_GIFLIB "Use your installed copy of giflib" off)
154 + option(USE_SHARED_JPEGLIB "Use your installed copy of jpeglib" off)
155 + option(USE_SHARED_ZLIB "Use your installed copy of zlib" off)
156 ++option(USE_SHARED_LIBARCHIVE "Use your installed copy of libarchive" off)
157 + option(USE_SHARED_LIBPNG "Use your installed copy of libpng" off)
158 + option(USE_SHARED_TINYXML "Use your installed copy of tinyxml" off)
159 + option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off)
160 +@@ -202,6 +202,15 @@ else()
161 + endif()
162 + include_directories(${ZLIB_INCLUDE_DIRS})
163 +
164 ++# libarchive
165 ++if(USE_SHARED_LIBARCHIVE)
166 ++ find_library(ARCHIVE_LIBRARIES NAMES archive)
167 ++ find_path(ARCHIVE_INCLUDE_DIRS NAMES archive.h)
168 ++else()
169 ++ add_definitions(-DLIBARCHIVE_STATIC)
170 ++ set(ARCHIVE_LIBRARIES archive_static)
171 ++endif()
172 ++
173 + # libpng
174 + if(USE_SHARED_LIBPNG)
175 + find_package(PNG REQUIRED)
176 +diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
177 +index a9e80d73c..619acac92 100644
178 +--- a/src/app/CMakeLists.txt
179 ++++ b/src/app/CMakeLists.txt
180 +@@ -91,9 +91,6 @@ if(WITH_WEBP_SUPPORT)
181 + add_definitions(-DASEPRITE_WITH_WEBP_SUPPORT)
182 + endif()
183 +
184 +-# libarchive definitions
185 +-add_definitions(-DLIBARCHIVE_STATIC)
186 +-
187 + ######################################################################
188 + # app-lib target
189 +
190 +@@ -551,7 +548,7 @@ target_link_libraries(app-lib
191 + ${FREETYPE_LIBRARIES}
192 + ${HARFBUZZ_LIBRARIES}
193 + json11
194 +- archive_static
195 ++ ${ARCHIVE_LIBRARIES}
196 + fmt
197 + tinyexpr)
198 +
199 +diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
200 +index 596ffa2e4..977816439 100644
201 +--- a/third_party/CMakeLists.txt
202 ++++ b/third_party/CMakeLists.txt
203 +@@ -105,19 +105,21 @@ endif()
204 + add_subdirectory(json11)
205 +
206 + # libarchive
207 +-set(ENABLE_WERROR OFF CACHE BOOL "Treat warnings as errors - default is ON for Debug, OFF otherwise.")
208 +-set(ENABLE_TEST OFF CACHE BOOL "Enable unit and regression tests")
209 +-set(ENABLE_COVERAGE OFF CACHE BOOL "Enable code coverage (GCC only, automatically sets ENABLE_TEST to ON)")
210 +-set(ENABLE_LZMA OFF CACHE BOOL "Enable the use of the system LZMA library if found")
211 +-set(ENABLE_CNG OFF CACHE BOOL "Enable the use of CNG(Crypto Next Generation)")
212 +-set(ENABLE_BZip2 OFF CACHE BOOL "Enable the use of the system BZip2 library if found")
213 +-set(ENABLE_LIBXML2 OFF CACHE BOOL "Enable the use of the system libxml2 library if found")
214 +-set(ENABLE_CAT OFF CACHE BOOL "Enable cat building")
215 +-set(ENABLE_TAR OFF CACHE BOOL "Enable tar building")
216 +-set(ENABLE_CPIO OFF CACHE BOOL "Enable cpio building")
217 +-add_subdirectory(libarchive)
218 +-target_include_directories(archive_static INTERFACE
219 +- $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libarchive/libarchive>)
220 ++if(NOT USE_SHARED_LIBARCHIVE)
221 ++ set(ENABLE_WERROR OFF CACHE BOOL "Treat warnings as errors - default is ON for Debug, OFF otherwise.")
222 ++ set(ENABLE_TEST OFF CACHE BOOL "Enable unit and regression tests")
223 ++ set(ENABLE_COVERAGE OFF CACHE BOOL "Enable code coverage (GCC only, automatically sets ENABLE_TEST to ON)")
224 ++ set(ENABLE_LZMA OFF CACHE BOOL "Enable the use of the system LZMA library if found")
225 ++ set(ENABLE_CNG OFF CACHE BOOL "Enable the use of CNG(Crypto Next Generation)")
226 ++ set(ENABLE_BZip2 OFF CACHE BOOL "Enable the use of the system BZip2 library if found")
227 ++ set(ENABLE_LIBXML2 OFF CACHE BOOL "Enable the use of the system libxml2 library if found")
228 ++ set(ENABLE_CAT OFF CACHE BOOL "Enable cat building")
229 ++ set(ENABLE_TAR OFF CACHE BOOL "Enable tar building")
230 ++ set(ENABLE_CPIO OFF CACHE BOOL "Enable cpio building")
231 ++ add_subdirectory(libarchive)
232 ++ target_include_directories(archive_static INTERFACE
233 ++ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libarchive/libarchive>)
234 ++endif()
235 +
236 + # benchmark
237 + if(ENABLE_BENCHMARKS)
238
239 diff --git a/dev-games/aseprite/files/aseprite-1.2.28-system_libwebp.patch b/dev-games/aseprite/files/aseprite-1.2.28-system_libwebp.patch
240 new file mode 100644
241 index 0000000..896e03e
242 --- /dev/null
243 +++ b/dev-games/aseprite/files/aseprite-1.2.28-system_libwebp.patch
244 @@ -0,0 +1,41 @@
245 +diff -uNr a/CMakeLists.txt b/CMakeLists.txt
246 +--- a/CMakeLists.txt 2020-03-06 18:47:37.000000000 +0100
247 ++++ b/CMakeLists.txt 2020-04-14 09:25:00.270728334 +0200
248 +@@ -66,6 +66,7 @@
249 + option(USE_SHARED_PIXMAN "Use your installed copy of pixman" off)
250 + option(USE_SHARED_FREETYPE "Use shared FreeType library" off)
251 + option(USE_SHARED_HARFBUZZ "Use shared HarfBuzz library" off)
252 ++option(USE_SHARED_WEBP "Use your installed copy of webp" off)
253 + option(ENABLE_ASEPRITE_EXE "Compile main Aseprite executable" on)
254 + option(ENABLE_MEMLEAK "Enable memory-leaks detector (only for developers)" off)
255 + option(ENABLE_NEWS "Enable the news in Home tab" on)
256 +@@ -229,9 +230,14 @@
257 +
258 + # libwebp
259 + if(WITH_WEBP_SUPPORT)
260 +- set(WEBP_LIBRARIES webp webpdemux libwebpmux)
261 +- set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src)
262 +- include_directories(${WEBP_INCLUDE_DIR})
263 ++ if(USE_SHARED_WEBP)
264 ++ find_library(WEBP_LIBRARIES NAMES webp)
265 ++ find_path(WEBP_INCLUDE_DIRS NAMES decode.h PATH_SUFFIXES webp)
266 ++ else()
267 ++ set(WEBP_LIBRARIES webp webpdemux libwebpmux)
268 ++ set(WEBP_INCLUDE_DIR ${LIBWEBP_DIR}/src)
269 ++ include_directories(${WEBP_INCLUDE_DIR})
270 ++ endif()
271 + endif()
272 +
273 + # tinyxml
274 +diff -uNr a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
275 +--- a/third_party/CMakeLists.txt 2019-10-24 01:54:06.000000000 +0200
276 ++++ b/third_party/CMakeLists.txt 2020-04-14 09:22:20.799744576 +0200
277 +@@ -32,7 +32,7 @@
278 + add_subdirectory(giflib)
279 + endif()
280 +
281 +-if(WITH_WEBP_SUPPORT)
282 ++if(WITH_WEBP_SUPPORT AND NOT USE_SHARED_WEBP)
283 + set(WEBP_BUILD_EXTRAS OFF CACHE BOOL "Build extras.")
284 + add_subdirectory(libwebp)
285 + endif()