diff options
author | Albert Diserholt <albert@diserholt.com> | 2021-09-23 21:16:33 +0200 |
---|---|---|
committer | Albert Diserholt <albert@diserholt.com> | 2021-09-23 21:16:33 +0200 |
commit | eb7d0ae94767a3ab564f936d833a77d02ddfc678 (patch) | |
tree | 34001a3bc02c5774e7a626302fbfdf6070371d6e | |
parent | Fix download of pre-built Skia library for aseprite (diff) | |
download | Drauthius-eb7d0ae94767a3ab564f936d833a77d02ddfc678.tar.gz Drauthius-eb7d0ae94767a3ab564f936d833a77d02ddfc678.tar.bz2 Drauthius-eb7d0ae94767a3ab564f936d833a77d02ddfc678.zip |
Add desktop icon for aseprite
Patch supplied by vaartis.
Signed-off-by: Albert Diserholt <albert@diserholt.com>
-rw-r--r-- | dev-games/aseprite/Manifest | 2 | ||||
-rw-r--r-- | dev-games/aseprite/aseprite-1.2.29.ebuild | 26 |
2 files changed, 23 insertions, 5 deletions
diff --git a/dev-games/aseprite/Manifest b/dev-games/aseprite/Manifest index 4fc7aa0..4962eeb 100644 --- a/dev-games/aseprite/Manifest +++ b/dev-games/aseprite/Manifest @@ -13,4 +13,4 @@ DIST aseprite-skia-m81-b607b32047-x86.zip 33398654 BLAKE2B b312f09d54e81b1b77c81 EBUILD aseprite-1.1.13.ebuild 3008 BLAKE2B 7419fdaaa1d9506d841ec9c0af3fa04b930afa98373accff9c9d6ee150d9e2ff3c64e670a800c1e40a118f608b2a6f362a779637c397f77a90802a97eef9557d SHA512 58cb3df2e8b33502021b90adde0459004507c9809ee4e0a06f5ddcbefef3c9758cd7374e7f529309a1c876a98e8983305e18f7f9344350221470a7bcebe9ce49 EBUILD aseprite-1.2.21.ebuild 2189 BLAKE2B c01a0b8b93e6840a60066bfbab19ce275bfd67c0ed5957876d33b3d9afe491b2fb7192bb5b8a57deac7b5df5f933027128d877949e0c9f01c23f17292ae78f67 SHA512 ae8f1833c4041c6aa6bb7b34e15788095d0ec1bb63f8e7aed5cce8219cee1966bd48d794d4cf497b9f6d6877a132676d2d57c3bf31152d5b28b7081dfd20be72 EBUILD aseprite-1.2.28.ebuild 2189 BLAKE2B c01a0b8b93e6840a60066bfbab19ce275bfd67c0ed5957876d33b3d9afe491b2fb7192bb5b8a57deac7b5df5f933027128d877949e0c9f01c23f17292ae78f67 SHA512 ae8f1833c4041c6aa6bb7b34e15788095d0ec1bb63f8e7aed5cce8219cee1966bd48d794d4cf497b9f6d6877a132676d2d57c3bf31152d5b28b7081dfd20be72 -EBUILD aseprite-1.2.29.ebuild 2189 BLAKE2B c01a0b8b93e6840a60066bfbab19ce275bfd67c0ed5957876d33b3d9afe491b2fb7192bb5b8a57deac7b5df5f933027128d877949e0c9f01c23f17292ae78f67 SHA512 ae8f1833c4041c6aa6bb7b34e15788095d0ec1bb63f8e7aed5cce8219cee1966bd48d794d4cf497b9f6d6877a132676d2d57c3bf31152d5b28b7081dfd20be72 +EBUILD aseprite-1.2.29.ebuild 2673 BLAKE2B 7442d8d8ea89284efeac197ce89c18cf1b2f29daf4cbf21491e458d91d29ae82fcae215780c032f740469f18f036f1dfdf789986e5a2b495a67c5e9d887b90d4 SHA512 89c71e0560227a79957c47996fdbfb8308baa67230c7b365e9faaf7fa65dffe3963c5bc7ab48fec7e20c61c92920740c60b8da41d157adaa6dc49ac64b891c41 diff --git a/dev-games/aseprite/aseprite-1.2.29.ebuild b/dev-games/aseprite/aseprite-1.2.29.ebuild index 71183c6..45f0adb 100644 --- a/dev-games/aseprite/aseprite-1.2.29.ebuild +++ b/dev-games/aseprite/aseprite-1.2.29.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=7 -inherit cmake-utils toolchain-funcs +inherit cmake-utils toolchain-funcs xdg-utils DESCRIPTION="Animated sprite editor & pixel art tool" HOMEPAGE="http://www.aseprite.org" @@ -34,7 +34,9 @@ KEYWORDS="~amd64 ~x86" IUSE=" debug memleak - webp" + webp + kde +" RDEPEND=" app-arch/libarchive @@ -51,7 +53,10 @@ RDEPEND=" sys-libs/zlib virtual/jpeg:= x11-libs/libX11 - x11-libs/pixman" + x11-libs/pixman + kde? ( + kde-apps/thumbnailers + )" DOCS=( EULA.txt docs/ase-file-specs.md @@ -67,6 +72,9 @@ src_unpack() { src_prepare() { cmake-utils_src_prepare + + sed -i "s:Icon=aseprite:Icon=${EPREFIX}/usr/share/aseprite/data/icons/ase256.png:" "${S}/src/desktop/linux/aseprite.desktop" || die + sed -i "s:#!/usr/bin/sh:#!/bin/env sh:" "${S}/src/desktop/linux/aseprite-thumbnailer" || die } src_configure() { @@ -87,6 +95,8 @@ src_configure() { -DUSE_SHARED_FREETYPE=ON -DUSE_SHARED_HARFBUZZ=ON -DUSE_SHARED_WEBP=ON + -DWITH_DESKTOP_INTEGRATION=ON + -DWITH_QT_THUMBNAILER="$(usex kde)" -DWITH_WEBP_SUPPORT="$(usex webp)" -DENABLE_MEMLEAK="$(usex memleak)" -DSKIA_DIR="${S}/skia" @@ -97,4 +107,12 @@ src_configure() { pkg_postinst() { ewarn "Aseprite is for personal use only. You may not distribute it." + + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update } |