summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Diserholt <albert@diserholt.com>2021-09-23 21:16:33 +0200
committerAlbert Diserholt <albert@diserholt.com>2021-09-23 21:16:33 +0200
commiteb7d0ae94767a3ab564f936d833a77d02ddfc678 (patch)
tree34001a3bc02c5774e7a626302fbfdf6070371d6e /dev-games/aseprite/aseprite-1.2.29.ebuild
parentFix download of pre-built Skia library for aseprite (diff)
downloadDrauthius-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>
Diffstat (limited to 'dev-games/aseprite/aseprite-1.2.29.ebuild')
-rw-r--r--dev-games/aseprite/aseprite-1.2.29.ebuild26
1 files changed, 22 insertions, 4 deletions
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
}