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