mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-28 17:32:32 +01:00
64 lines
1.3 KiB
Bash
64 lines
1.3 KiB
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI=6
|
|
|
|
inherit git-r3
|
|
|
|
RECOIL_P="recoil-4.3.2"
|
|
|
|
DESCRIPTION="Bitmap paint program inspired by Deluxe Paint and Brilliance"
|
|
HOMEPAGE="http://grafx2.chez.com/"
|
|
SRC_URI="mirror://sourceforge/recoil/${RECOIL_P}.tar.gz"
|
|
EGIT_REPO_URI="https://gitlab.com/GrafX2/grafX2.git/"
|
|
|
|
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_unpack() {
|
|
git-r3_src_unpack
|
|
default
|
|
mv "${WORKDIR}"/${RECOIL_P} "${S}/3rdparty"
|
|
}
|
|
|
|
src_compile() {
|
|
cd src
|
|
make || die
|
|
}
|
|
|
|
src_install() {
|
|
make DESTDIR="${D}" install || die
|
|
dodoc doc/{COMPILING.txt,gpl-2.0.txt,PF_fonts.txt,quickstart.rtf,README.txt}
|
|
dodoc doc/original_docs/*
|
|
mv bin/grafx2-sdl bin/grafx2
|
|
dobin bin/grafx2
|
|
|
|
insinto /usr/share/${PN}/fonts
|
|
doins share/grafx2/fonts/*.{png,gif,ttf}
|
|
|
|
if use lua; then
|
|
for dirname in $(find share/grafx2/scripts -type d -print);
|
|
do
|
|
insinto /usr/${dirname}
|
|
doins ${dirname}/*.lua
|
|
|
|
done
|
|
fi
|
|
|
|
insinto /usr/share/${PN}/skins
|
|
doins share/grafx2/skins/*.{png,gif}
|
|
insinto /usr/share/${PN}
|
|
doins share/grafx2/*.{png,gif,ini}
|
|
}
|