Merge updates from master

This commit is contained in:
Repository mirror & CI
2020-09-26 12:36:04 +00:00
4 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST grafx2-2.7.2978-src.tgz 1104727 BLAKE2B 7ae308ea7ce3dd10966e85353111c890931a56c9bc496c4d956d89db9609e4e472280df1202e85494929979ee080a7c5daf07b629ed7002291448c87a7547cf6 SHA512 ed8d92b51cf71ee139b7c21206a088ba056642debcbbc6e650bdab9547b53159251d842eb4c5ea46b18859c0f333bad66ed60e4b91d58bacd7f02022ead7a61e

View File

@@ -0,0 +1,16 @@
diff --git a/misc/unix/grafx2.desktop b/misc/unix/grafx2.desktop
index 9718f06..892e7b2 100644
--- a/misc/unix/grafx2.desktop
+++ b/misc/unix/grafx2.desktop
@@ -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;

View File

@@ -0,0 +1,52 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit xdg
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"
# Test phase fails: make: *** [Makefile:1146: ../bin/tests-sdl] Error 1
RESTRICT="test"
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 )
"
S="${WORKDIR}/${PN}/src/"
src_prepare() {
pushd ../
eapply ${PATCHES}
eapply_user
popd
sed -i s/lua5\.1/lua/g Makefile || die
}
src_compile() {
use ttf || MYCNF="NOTTF=1"
use lua || MYCNF="${MYCNF} NOLUA=1"
emake ${MYCNF} || die "emake failed"
}
src_install() {
emake ${MYCNF} DESTDIR="${D}" PREFIX="/usr" install || die "Install failed"
}

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<use>
<flag name="ttf">Install TTF Fonts</flag>
</use>
</pkgmetadata>