X-Git-Url: http://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/7de38569be82fc1fa3082efedee2578ac6ec5e15:/games-engines/onscripter-en/onscripter-en-20110930.ebuild..f4319ed4f614bcf6392e0c64bc3331699a265070:/games-engines/onscripter-en/onscripter-en-20110930-r1.ebuild diff --git a/games-engines/onscripter-en/onscripter-en-20110930.ebuild b/games-engines/onscripter-en/onscripter-en-20110930-r1.ebuild similarity index 62% rename from games-engines/onscripter-en/onscripter-en-20110930.ebuild rename to games-engines/onscripter-en/onscripter-en-20110930-r1.ebuild index 2c0bcf2..ecb1c6a 100644 --- a/games-engines/onscripter-en/onscripter-en-20110930.ebuild +++ b/games-engines/onscripter-en/onscripter-en-20110930-r1.ebuild @@ -1,17 +1,16 @@ -# Copyright © 2015 Nick Bowler -# License GPLv3+: GNU General Public License version 3 or later. +# Copyright © 2015, 2021 Nick Bowler +# License GPLv3+: GNU General Public License version 3 or any later version. +# This is free software: you are free to change and redistribute it. # There is NO WARRANTY, to the extent permitted by law. -EAPI=5 - -inherit base games +EAPI=7 DESCRIPTION="English-language fork of ONScripter: a free clone of NScripter" HOMEPAGE="http://unclemion.com/dev/projects/onscripter-en" # This package has a hard dep on SDL_ttf-2.0.10, fonts do not work with # 2.0.11. Download that release specifically. -SRC_URI="http://unclemion.com/dev/attachments/download/36/$P-src.tar.bz2 +SRC_URI="https://web.archive.org/web/20150801182531/http://unclemion.com/dev/attachments/download/36/$P-src.tar.bz2 https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.10.tar.gz " @@ -19,26 +18,29 @@ LICENSE="GPL-2+ ZLIB" SLOT="0" KEYWORDS="~amd64" -DEPEND="app-arch/bzip2 - media-libs/libsdl +BDEPEND="app-arch/bzip2 + virtual/pkgconfig" +DEPEND="media-libs/libsdl media-libs/sdl-mixer[vorbis] media-libs/sdl-image media-libs/smpeg media-libs/freetype:2 - x11-libs/libXt - " + x11-libs/libXt" RDEPEND=$DEPEND PATCHES=( "$FILESDIR/$P-fix-configure.patch" "$FILESDIR/$PN-respect-CXXFLAGS.patch" - ) +) src_configure() { - einfo "Configuring SDL_ttf" + local pkgconfig=`command -v pkg-config` + + einfo "Configuring SDL_ttf $pkgconfig" cd "$WORKDIR/SDL_ttf-2.0.10" || die econf --prefix="$S/onscrlib" --libdir='${prefix}/lib' \ - --enable-static --disable-shared || die + --enable-static --disable-shared \ + FREETYPE_CONFIG="$pkgconfig freetype2" einfo "Configuring $PN" cd "$S" || die @@ -49,16 +51,14 @@ src_configure() { src_compile() { einfo "Building SDL_ttf" cd "$WORKDIR/SDL_ttf-2.0.10" || die - emake noinst_PROGRAMS= install || die + emake noinst_PROGRAMS= install einfo "Building $PN" cd "$S" || die - base_src_compile + default } src_install() { dodoc README - - dogamesbin onscripter-en - prepgamesdirs + dobin onscripter-en }