1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2025-12-28 09:22:33 +01:00
Files
gryf-overlay/media-gfx/grafx2/grafx2-9999.ebuild

58 lines
1.3 KiB
Bash

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit subversion
DESCRIPTION="Bitmap paint program inspired by Deluxe Paint and Brilliance"
HOMEPAGE="https://code.google.com/p/grafx2/"
ESVN_REPO_URI="svn://pulkomandy.tk/GrafX2/trunk"
LICENSE="GNU GPL v2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="lua truetype"
DEPEND=">=media-libs/libsdl-1.2
>=sys-devel/make-3.80
>=media-libs/sdl-image-1.2
>=media-libs/libpng-1.4
truetype? ( media-libs/sdl-ttf )
lua? ( >=dev-lang/lua-5.1 )"
RDEPEND="${DEPEND}"
src_compile() {
cd src
sed -i 's/-liconv//' Makefile
make || die
}
src_install() {
make DESTDIR="${D}" install || die
dodoc doc/*
dobin bin/grafx2
insinto /usr/share/${PN}/fonts
doins share/grafx2/fonts/*.{png,gif,ttf}
if use lua; then
insinto /usr/share/${PN}/scripts
doins share/grafx2/scripts/*.lua
for dn in brush demo libs palette picture; do
insinto /usr/share/${PN}/scripts/samples_2.4/${dn}
doins share/grafx2/scripts/samples_2.4/${dn}/*.lua
done
insinto /usr/share/${PN}/scripts/samples_2.4/demo/brush
doins share/grafx2/scripts/samples_2.4/demo/brush/*.lua
fi
insinto /usr/share/${PN}/skins
doins share/grafx2/skins/*.{png,gif}
insinto /usr/share/${PN}
doins share/grafx2/*.{png,gif,ini}
}