From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/aseprite/
Date: Wed, 25 Mar 2020 11:17:32 +0000 (UTC) [thread overview]
Message-ID: <1585135024.c149a54e7b304b1d98a1a55e3a9f51f4d95aeff8.juippis@gentoo> (raw)
commit: c149a54e7b304b1d98a1a55e3a9f51f4d95aeff8
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Tue Mar 17 19:51:11 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Mar 25 11:17:04 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c149a54e
dev-games/aseprite: fix #660534
Update mimeinfo and desktop databases on pkg_postinst() and pkg_postrm()
phases.
Closes: https://bugs.gentoo.org/660534
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-games/aseprite/aseprite-1.1.7-r1.ebuild | 111 ++++++++++++++++++++++++++++
1 file changed, 111 insertions(+)
diff --git a/dev-games/aseprite/aseprite-1.1.7-r1.ebuild b/dev-games/aseprite/aseprite-1.1.7-r1.ebuild
new file mode 100644
index 00000000000..0a36ff657e7
--- /dev/null
+++ b/dev-games/aseprite/aseprite-1.1.7-r1.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake desktop flag-o-matic
+
+DESCRIPTION="Animated sprite editor & pixel art tool"
+HOMEPAGE="https://www.aseprite.org"
+SRC_URI="https://github.com/aseprite/aseprite/releases/download/v${PV}/Aseprite-v${PV}-Source.zip"
+
+# See https://github.com/aseprite/aseprite#credits
+# Some bundled third-party packages built-in:
+# gtest duktape modp_b64 simpleini
+LICENSE="BSD GPL-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="bundled-libs debug kde gtk3 test webp"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ !bundled-libs? ( media-libs/allegro:0[X,png] )
+ gtk3? ( dev-cpp/gtkmm:3.0 )
+ kde? (
+ dev-qt/qtcore:5
+ kde-frameworks/kio:5
+ )
+ webp? ( media-libs/libwebp )
+ dev-libs/tinyxml
+ media-libs/freetype
+ media-libs/giflib:=
+ media-libs/libpng:0=
+ net-misc/curl
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/libX11
+ x11-libs/pixman"
+BDEPEND="
+ app-arch/unzip
+ gtk3? ( virtual/pkgconfig )
+ webp? ( virtual/pkgconfig )"
+
+DOCS=( docs/files/ase.txt
+ docs/files/fli.txt
+ docs/files/msk.txt
+ docs/files/pic.txt
+ docs/files/picpro.txt
+ README.md )
+
+S="${WORKDIR}"
+
+PATCHES=( "${FILESDIR}/${P}_type-punned_pointer.patch" )
+
+src_prepare() {
+ cmake_src_prepare
+
+ # Fix to make flag-o-matic work.
+ if use debug ; then
+ sed -i '/-DNDEBUG/d' CMakeLists.txt || die
+ fi
+ # Fix shebang in thumbnailer
+ sed -i -e 's:#!/usr/bin/sh:#!/bin/sh:' desktop/aseprite-thumbnailer || die
+}
+
+src_configure() {
+ use debug && append-cppflags -DDEBUGMODE -D_DEBUG
+
+ local mycmakeargs=(
+ -DENABLE_UPDATER=OFF
+ -DFULLSCREEN_PLATFORM=ON
+ -DUSE_SHARED_ALLEGRO4=$(usex !bundled-libs)
+ -DUSE_SHARED_CURL=ON
+ -DUSE_SHARED_FREETYPE=ON
+ -DUSE_SHARED_GIFLIB=ON
+ -DUSE_SHARED_JPEGLIB=ON
+ -DUSE_SHARED_LIBLOADPNG=ON
+ -DUSE_SHARED_LIBPNG=ON
+ -DUSE_SHARED_PIXMAN=ON
+ -DUSE_SHARED_TINYXML=ON
+ -DUSE_SHARED_ZLIB=ON
+ -DUSE_SHARED_LIBWEBP=ON
+ -DWITH_DESKTOP_INTEGRATION=ON
+ -DWITH_GTK_FILE_DIALOG_SUPPORT="$(usex gtk3)"
+ -DWITH_QT_THUMBNAILER="$(usex kde)"
+ -DWITH_WEBP_SUPPORT="$(usex webp)"
+ -DENABLE_TESTS="$(usex test)"
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ newicon -s 64 "${S}/data/icons/ase64.png" "${PN}.png"
+ cmake_src_install
+}
+
+pkg_postinst() {
+ if use !bundled-libs ; then
+ ewarn "Aseprite has been built with system-wide Allegro 4."
+ ewarn "Please note that you will not be able to resize the main window."
+ ewarn "For resizing support enable USE-flag bundled-libs and rebuild package."
+ fi
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
next reply other threads:[~2020-03-25 11:17 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 11:17 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-01 9:01 [gentoo-commits] repo/gentoo:master commit in: dev-games/aseprite/ Joonas Niilola
2025-01-01 4:30 Sam James
2024-12-31 19:20 Andreas Sturmlechner
2024-12-31 19:20 Andreas Sturmlechner
2024-04-16 19:13 Joonas Niilola
2024-04-16 14:18 Joonas Niilola
2024-04-11 21:34 Sam James
2024-01-07 0:20 Conrad Kostecki
2023-02-20 9:36 Sam James
2022-12-23 20:49 Arthur Zamarin
2022-12-23 20:46 Arthur Zamarin
2022-11-28 7:12 Joonas Niilola
2022-08-18 7:06 Joonas Niilola
2022-08-18 7:06 Joonas Niilola
2022-07-29 7:15 Joonas Niilola
2022-07-26 14:22 Joonas Niilola
2022-07-26 12:14 Joonas Niilola
2022-07-23 9:13 Joonas Niilola
2022-07-23 9:13 Joonas Niilola
2022-02-27 21:41 Andreas Sturmlechner
2021-06-20 22:57 Sam James
2021-06-20 22:57 Sam James
2021-05-23 16:53 Andreas Sturmlechner
2021-02-14 20:04 Andreas Sturmlechner
2020-05-27 9:43 Andreas Sturmlechner
2020-03-25 11:17 Joonas Niilola
2020-03-25 11:17 Joonas Niilola
2020-03-25 11:17 Joonas Niilola
2020-03-25 11:17 Joonas Niilola
2018-10-19 8:51 Michał Górny
2017-08-22 21:41 Michał Górny
2017-01-09 17:50 Göktürk Yüksek
2016-12-04 22:32 Patrice Clement
2016-12-04 22:32 Patrice Clement
2016-07-14 1:22 Göktürk Yüksek
2016-07-13 8:53 Patrice Clement
2016-05-05 22:13 Patrice Clement
2016-04-21 20:12 Patrice Clement
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=1585135024.c149a54e7b304b1d98a1a55e3a9f51f4d95aeff8.juippis@gentoo \
--to=juippis@gentoo.org \
--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