diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/xlogical/xlogical-1.0.7.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/xlogical/xlogical-1.0.7.ebuild')
-rw-r--r-- | games-puzzle/xlogical/xlogical-1.0.7.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/games-puzzle/xlogical/xlogical-1.0.7.ebuild b/games-puzzle/xlogical/xlogical-1.0.7.ebuild new file mode 100644 index 000000000000..b458c13e81eb --- /dev/null +++ b/games-puzzle/xlogical/xlogical-1.0.7.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools versionator eutils games + +MY_PV=$(replace_version_separator 2 '-' ) +MY_P=${PN}-${MY_PV} +DESCRIPTION="SDL logical clone" +HOMEPAGE="http://changeling.ixionstudios.com/xlogical/" +SRC_URI="http://changeling.ixionstudios.com/xlogical/downloads/${MY_P}.tar.bz2 + alt_gfx? ( http://changeling.ixionstudios.com/xlogical/downloads/xlogical_gfx.zip )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="alt_gfx" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-image[jpeg] + media-libs/sdl-mixer[mod]" +DEPEND="${RDEPEND} + alt_gfx? ( app-arch/unzip )" + +S=${WORKDIR}/${PN}-$(get_version_component_range 1-2) + +src_unpack() { + unpack ${MY_P}.tar.bz2 + if use alt_gfx ; then + cd "${S}/images" + unpack xlogical_gfx.zip + fi +} + +src_prepare() { + sed -i '/^CXXFLAGS/d' Makefile.am || die + edos2unix properties.h anim.h exception.h + epatch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-gcc43.patch + mv configure.in configure.ac + eautoreconf +} + +src_install() { + dogamesbin ${PN} + + insinto "${GAMES_DATADIR}"/${PN} + doins -r ${PN}.{properties,levels} music sound images + find "${D}" -name "Makefile*" -exec rm -f '{}' + + + insinto "${GAMES_STATEDIR}"/${PN} + doins ${PN}.scores + fperms 0660 "${GAMES_STATEDIR}"/${PN}/${PN}.scores + + dodoc AUTHORS ChangeLog NEWS README TODO + make_desktop_entry ${PN} "Xlogical" + prepgamesdirs +} |