From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B5A5138359 for ; Sat, 26 Sep 2020 10:57:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7DEA2E07FE; Sat, 26 Sep 2020 10:57:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5FDEDE07FE for ; Sat, 26 Sep 2020 10:57:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2817F33E362 for ; Sat, 26 Sep 2020 10:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C37A5EC for ; Sat, 26 Sep 2020 10:57:45 +0000 (UTC) From: "Stefan Ott" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Stefan Ott" Message-ID: <1601117676.35a5376e0439fbcfa037d1518f2904c80a191a09.StefanOtt@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/grafx2/, media-gfx/grafx2/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-gfx/grafx2/Manifest media-gfx/grafx2/files/grafx2-desktop-file.patch media-gfx/grafx2/grafx2-2.7.2978.ebuild X-VCS-Directories: media-gfx/grafx2/ media-gfx/grafx2/files/ X-VCS-Committer: StefanOtt X-VCS-Committer-Name: Stefan Ott X-VCS-Revision: 35a5376e0439fbcfa037d1518f2904c80a191a09 X-VCS-Branch: dev Date: Sat, 26 Sep 2020 10:57:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 84fe0ea9-a284-4763-b930-76fc4fb83786 X-Archives-Hash: e4d5c6833ee52406f1a092060c6f6872 commit: 35a5376e0439fbcfa037d1518f2904c80a191a09 Author: Stefan Ott desire ch> AuthorDate: Sat Sep 26 10:54:03 2020 +0000 Commit: Stefan Ott desire ch> CommitDate: Sat Sep 26 10:54:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35a5376e media-gfx/grafx2: new package Signed-off-by: Stefan Ott desire.ch> media-gfx/grafx2/Manifest | 1 + media-gfx/grafx2/files/grafx2-desktop-file.patch | 15 ++++++ media-gfx/grafx2/grafx2-2.7.2978.ebuild | 69 ++++++++++++++++++++++++ 3 files changed, 85 insertions(+) diff --git a/media-gfx/grafx2/Manifest b/media-gfx/grafx2/Manifest new file mode 100644 index 00000000..39b36d2b --- /dev/null +++ b/media-gfx/grafx2/Manifest @@ -0,0 +1 @@ +DIST grafx2-2.7.2978-src.tgz 1104727 BLAKE2B 7ae308ea7ce3dd10966e85353111c890931a56c9bc496c4d956d89db9609e4e472280df1202e85494929979ee080a7c5daf07b629ed7002291448c87a7547cf6 SHA512 ed8d92b51cf71ee139b7c21206a088ba056642debcbbc6e650bdab9547b53159251d842eb4c5ea46b18859c0f333bad66ed60e4b91d58bacd7f02022ead7a61e diff --git a/media-gfx/grafx2/files/grafx2-desktop-file.patch b/media-gfx/grafx2/files/grafx2-desktop-file.patch new file mode 100644 index 00000000..8b623545 --- /dev/null +++ b/media-gfx/grafx2/files/grafx2-desktop-file.patch @@ -0,0 +1,15 @@ +diff -Naur grafx2.orig/misc/unix/grafx2.desktop grafx2/misc/unix/grafx2.desktop +--- grafx2.orig/misc/unix/grafx2.desktop 2020-03-03 20:32:57.000000000 +0100 ++++ grafx2/misc/unix/grafx2.desktop 2020-09-26 04:04:31.315093477 +0200 +@@ -1,9 +1,9 @@ + [Desktop Entry] + Name=GrafX2 + Comment=Deluxe Paint Clone +-Exec=grafx2 %f ++Exec=grafx2-sdl %f + Terminal=false + Type=Application + Icon=grafx2 +-Categories=Application;Graphics; ++Categories=Graphics; + MimeType=image/lbm;image/iff;image/pcx;image/tga;image/gif;image/bmp;image/x-icon;image/png; diff --git a/media-gfx/grafx2/grafx2-2.7.2978.ebuild b/media-gfx/grafx2/grafx2-2.7.2978.ebuild new file mode 100644 index 00000000..fb9aa1b4 --- /dev/null +++ b/media-gfx/grafx2/grafx2-2.7.2978.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg-utils + +DESCRIPTION="A pixelart-oriented painting program" +HOMEPAGE="http://www.pulkomandy.tk/projects/GrafX2" +SRC_URI="http://www.pulkomandy.tk/projects/GrafX2/downloads/${P}-src.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ttf lua" + +PATCHES=( + "${FILESDIR}/${PN}-desktop-file.patch" +) + +DEPEND="media-libs/libsdl + media-libs/sdl-image + media-libs/freetype + media-libs/libpng + ttf? ( media-libs/sdl-ttf ) + lua? ( >=dev-lang/lua-5.1.0 )" +RDEPEND="" + +src_unpack() +{ + unpack ${P}-src.tgz && mv ${PN} ${P} +} + +src_prepare() +{ + eapply ${PATCHES} + + eapply_user + + cd ${WORKDIR}/${P}/src/ + sed -i s/lua5\.1/lua/g Makefile +} + +src_compile() +{ + use ttf || MYCNF="NOTTF=1" + use lua || MYCNF="${MYCNF} NOLUA=1" + + cd ${WORKDIR}/${P}/src/ + emake ${MYCNF} || die "emake failed" +} + +src_install() +{ + cd ${WORKDIR}/${P}/src/ + emake ${MYCNF} DESTDIR="${D}" PREFIX="/usr" install || die "Install failed" +} + +pkg_postinst() +{ + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() +{ + xdg_desktop_database_update + xdg_icon_cache_update +}