public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Albert Diserholt" <albert@diserholt.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/user/Drauthius:master commit in: dev-games/aseprite/
Date: Thu, 23 Sep 2021 19:17:44 +0000 (UTC)	[thread overview]
Message-ID: <1632424593.eb7d0ae94767a3ab564f936d833a77d02ddfc678.albert@gentoo> (raw)

commit:     eb7d0ae94767a3ab564f936d833a77d02ddfc678
Author:     Albert Diserholt <albert <AT> diserholt <DOT> com>
AuthorDate: Thu Sep 23 19:16:33 2021 +0000
Commit:     Albert Diserholt <albert <AT> diserholt <DOT> com>
CommitDate: Thu Sep 23 19:16:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/user/Drauthius.git/commit/?id=eb7d0ae9

Add desktop icon for aseprite

Patch supplied by vaartis.

Signed-off-by: Albert Diserholt <albert <AT> diserholt.com>

 dev-games/aseprite/Manifest               |  2 +-
 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
 }


             reply	other threads:[~2021-09-23 19:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 19:17 Albert Diserholt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-24 17:38 [gentoo-commits] repo/user/Drauthius:master commit in: dev-games/aseprite/ Albert Diserholt
2021-09-12 14:11 Albert Diserholt
2018-01-21 12:34 Albert Diserholt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1632424593.eb7d0ae94767a3ab564f936d833a77d02ddfc678.albert@gentoo \
    --to=albert@diserholt.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox