Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/aseprite/
Date: Thu, 18 Aug 2022 07:06:31
Message-Id: 1660806377.4e16b0db623eae10d737ed4b64dca59dd2056d0a.juippis@gentoo
1 commit: 4e16b0db623eae10d737ed4b64dca59dd2056d0a
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 1 12:35:05 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 18 07:06:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e16b0db
7
8 dev-games/aseprite: drop 1.2.35
9
10 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/26695
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 dev-games/aseprite/Manifest | 1 -
15 dev-games/aseprite/aseprite-1.2.35.ebuild | 207 ------------------------------
16 2 files changed, 208 deletions(-)
17
18 diff --git a/dev-games/aseprite/Manifest b/dev-games/aseprite/Manifest
19 index 845e01117739..e2144df40ea9 100644
20 --- a/dev-games/aseprite/Manifest
21 +++ b/dev-games/aseprite/Manifest
22 @@ -1,4 +1,3 @@
23 DIST Aseprite-v1.1.9-Source.zip 11746265 BLAKE2B fa16be059a7bb3b83705c56e7e93cbbb71676617a8d0798f0e481b09199ae069b85826615f8609acabb10a4e9a9da0857f2f99b03c2b913f26eee6d4dfdc0f0a SHA512 44c5878c67e69d2510c862e8f6869d727aa47b3d23d41d4e7318eca54c6d72fc5f89e72c70c160ce6da78fa091e11eedefa74e0273dc4cea59b2fe16c8851d9e
24 -DIST Aseprite-v1.2.35-Source.zip 61972632 BLAKE2B f9e24d04a19756f65041cb9c96a4142fe5078a4f6d8b48f69e79501822ff8a5070f350cf9016e5500fec5aeb82d4d8eb2c8d8b42a73fd8bc73aecab185d002fe SHA512 2577a683516adc9c601300da15e9099d6fa698fec32f4b62ce95c46412c1dd26b0538cc23996e0a1060ac4a4de47c2538124c4a01ade375f3b4efcbc99fbbdc8
25 DIST Aseprite-v1.2.37-Source.zip 61977600 BLAKE2B f904e5f2a296fa5dae6dedb7b32d5249a8cda64e3b545057e9c033e3e428f050ee128b4f96098a655d871339a77b48d7be58fdad8edffd252d8bbd7b80d0db5f SHA512 c846a6bd6f11bea18e49146cac735a165c6ab7ca63f76b3dfaf7c1f64ddc6719804bfbb340e05ecb75a171b12db9a6a0444b26782d31a84cc810b7266843b0e9
26 DIST skia-m102-3338e90707323d2cd3a150276acb9f39933deee2.gh.tar.gz 53944562 BLAKE2B 9da3e8386cd7a18a6ee9362743bee4146c41038af8868a6f5e8a2dce468e4dc4669b488861d117da8d1bd8461b2ad47bfc300774a33a84153bca345d63a929a7 SHA512 9ae0032ee3861ce4958af6eb7047273d28b1faa3823576ef568e3c7faed7f49a9976540a72c3fa38234a4ae6319ac381324eff807938f9763781fd33ad67d075
27
28 diff --git a/dev-games/aseprite/aseprite-1.2.35.ebuild b/dev-games/aseprite/aseprite-1.2.35.ebuild
29 deleted file mode 100644
30 index 701559c4ea4b..000000000000
31 --- a/dev-games/aseprite/aseprite-1.2.35.ebuild
32 +++ /dev/null
33 @@ -1,207 +0,0 @@
34 -# Copyright 1999-2022 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=8
38 -
39 -inherit cmake desktop ninja-utils toolchain-funcs xdg-utils
40 -
41 -SKIA_VER="m102"
42 -# Last commit in ${SKIA_VER} feature branch
43 -# Don't use skia.googlesource.com, it produces non-reproducible tarballs
44 -SKIA_REV="3338e90707323d2cd3a150276acb9f39933deee2"
45 -
46 -DESCRIPTION="Animated sprite editor & pixel art tool"
47 -HOMEPAGE="https://www.aseprite.org"
48 -SRC_URI="https://github.com/aseprite/aseprite/releases/download/v${PV}/Aseprite-v${PV}-Source.zip
49 - https://github.com/google/skia/archive/${SKIA_REV}.tar.gz -> skia-${SKIA_VER}-${SKIA_REV}.gh.tar.gz"
50 -
51 -# See https://github.com/aseprite/aseprite#license
52 -LICENSE="Aseprite-EULA"
53 -SLOT="0"
54 -KEYWORDS="~amd64 ~x86"
55 -
56 -IUSE="kde test webp"
57 -RESTRICT="bindist mirror !test? ( test )"
58 -
59 -RDEPEND="
60 - app-arch/libarchive:=
61 - app-text/cmark:=
62 - dev-cpp/json11
63 - dev-libs/tinyxml
64 - media-libs/freetype
65 - media-libs/giflib:=
66 - media-libs/harfbuzz:=
67 - media-libs/libjpeg-turbo:=
68 - media-libs/libpng:=
69 - net-misc/curl
70 - sys-libs/zlib:=
71 - virtual/opengl
72 - x11-libs/libX11
73 - x11-libs/libXcursor
74 - x11-libs/libxcb:=
75 - kde? (
76 - dev-qt/qtcore:5
77 - dev-qt/qtgui:5
78 - kde-frameworks/kio:5
79 - )
80 - webp? ( media-libs/libwebp:= )"
81 -DEPEND="${RDEPEND}"
82 -BDEPEND="
83 - test? ( dev-cpp/gtest )
84 - app-arch/unzip
85 - dev-util/gn
86 - virtual/pkgconfig"
87 -
88 -DOCS=(
89 - docs/ase-file-specs.md
90 - docs/gpl-palette-extension.md
91 - README.md
92 -)
93 -
94 -S="${WORKDIR}"
95 -
96 -PATCHES=(
97 - "${FILESDIR}/skia-${SKIA_VER}_remove_angle2.patch"
98 - "${FILESDIR}/${P}_check_colorSpace.patch"
99 - "${FILESDIR}/${P}_shared_libarchive.patch"
100 - "${FILESDIR}/${P}_shared_json11.patch"
101 - "${FILESDIR}/${P}_shared_webp.patch"
102 - "${FILESDIR}/${P}_laf_fixes.patch"
103 -)
104 -
105 -src_prepare() {
106 - cmake_src_prepare
107 - # Skia: remove custom optimizations
108 - sed -i -e 's:"\/\/gn\/skia\:optimize",::g' \
109 - "skia-${SKIA_REV}/gn/BUILDCONFIG.gn" || die
110 - # Aseprite: don't install tga bundled library
111 - sed -i -e '/install/d' src/tga/CMakeLists.txt || die
112 - # Aseprite: don't use bundled gtest
113 - sed -i -e '/add_subdirectory(googletest)/d' \
114 - laf/third_party/CMakeLists.txt || die
115 - # Fix shebang in thumbnailer
116 - sed -i -e 's:#!/usr/bin/sh:#!/bin/sh:' \
117 - src/desktop/linux/aseprite-thumbnailer || die
118 -}
119 -
120 -src_configure() {
121 - einfo "Skia configuration"
122 - cd "${WORKDIR}/skia-${SKIA_REV}" || die
123 -
124 - tc-export AR CC CXX
125 -
126 - passflags() {
127 - local _f _x
128 - _f=( ${1} )
129 - _x="[$(printf '"%s", ' "${_f[@]}")]"
130 - myconf_gn+=( ${2}="${_x}" )
131 - }
132 -
133 - local myconf_gn=(
134 - ar=\"${AR}\"
135 - cc=\"${CC}\"
136 - cxx=\"${CXX}\"
137 -
138 - is_official_build=true
139 - is_component_build=false
140 - is_debug=false
141 -
142 - skia_use_egl=false
143 - skia_use_dawn=false
144 - skia_use_dng_sdk=false
145 - skia_use_metal=false
146 - skia_use_sfntly=false
147 - skia_use_wuffs=false
148 -
149 - skia_enable_pdf=false
150 - skia_enable_svg=false
151 - skia_use_expat=false
152 - skia_use_ffmpeg=false
153 - skia_use_fontconfig=false
154 - skia_use_freetype=true
155 - skia_use_gl=true
156 - skia_use_harfbuzz=true
157 - skia_use_icu=false
158 - skia_use_libjpeg_turbo_decode=true
159 - skia_use_libjpeg_turbo_encode=true
160 - skia_use_libpng_decode=true
161 - skia_use_libpng_encode=true
162 - skia_use_libwebp_decode=$(usex webp true false)
163 - skia_use_libwebp_encode=$(usex webp true false)
164 - skia_use_lua=false
165 - skia_use_vulkan=false
166 - skia_use_x11=false
167 - skia_use_xps=false
168 - skia_use_zlib=true
169 - )
170 -
171 - passflags "${CFLAGS}" extra_cflags_c
172 - passflags "${CXXFLAGS}" extra_cflags_cc
173 - passflags "${LDFLAGS}" extra_ldflags
174 - myconf_gn="${myconf_gn[@]}"
175 - set -- gn gen --args="${myconf_gn% }" out/Static
176 - echo "$@"
177 - "$@" || die
178 -
179 - einfo "Aseprite configuration"
180 - cd "${WORKDIR}" || die
181 -
182 - local mycmakeargs=(
183 - -DENABLE_CCACHE=OFF
184 - -DENABLE_DESKTOP_INTEGRATION=ON
185 - -DENABLE_STEAM=OFF
186 - -DENABLE_TESTS="$(usex test)"
187 - -DENABLE_QT_THUMBNAILER="$(usex kde)"
188 - -DENABLE_UPDATER=OFF
189 - -DENABLE_UI=ON
190 - -DENABLE_WEBP="$(usex webp)"
191 - -DLAF_WITH_EXAMPLES=OFF
192 - -DLAF_WITH_TESTS="$(usex test)"
193 - -DFULLSCREEN_PLATFORM=ON
194 - -DSKIA_DIR="${WORKDIR}/skia-${SKIA_REV}/"
195 - -DSKIA_LIBRARY_DIR="${WORKDIR}/skia-${SKIA_REV}/out/Static/"
196 - -DSKIA_LIBRARY="${WORKDIR}/skia-${SKIA_REV}/out/Static/libskia.a"
197 - -DSKSHAPER_LIBRARY="${WORKDIR}/skia-${SKIA_REV}/out/Static/libskshaper.a"
198 - -DUSE_SHARED_CMARK=ON
199 - -DUSE_SHARED_CURL=ON
200 - -DUSE_SHARED_FREETYPE=ON
201 - -DUSE_SHARED_GIFLIB=ON
202 - -DUSE_SHARED_HARFBUZZ=ON
203 - -DUSE_SHARED_JPEGLIB=ON
204 - -DUSE_SHARED_JSON11=ON
205 - -DUSE_SHARED_LIBARCHIVE=ON
206 - -DUSE_SHARED_LIBPNG=ON
207 - -DUSE_SHARED_PIXMAN=ON
208 - -DUSE_SHARED_TINYXML=ON
209 - -DUSE_SHARED_WEBP=ON
210 - -DUSE_SHARED_ZLIB=ON
211 - )
212 - cmake_src_configure
213 -}
214 -
215 -src_compile() {
216 - einfo "Skia compilation"
217 - cd "${WORKDIR}/skia-${SKIA_REV}" || die
218 - eninja -C out/Static
219 -
220 - einfo "Aseprite compilation"
221 - cd "${WORKDIR}" || die
222 - cmake_src_compile
223 -}
224 -
225 -src_install() {
226 - newicon -s 64 "${S}/data/icons/ase64.png" "${PN}.png"
227 - cmake_src_install
228 -}
229 -
230 -pkg_postinst() {
231 - xdg_desktop_database_update
232 - xdg_icon_cache_update
233 - xdg_mimeinfo_database_update
234 -}
235 -
236 -pkg_postrm() {
237 - xdg_desktop_database_update
238 - xdg_icon_cache_update
239 - xdg_mimeinfo_database_update
240 -}