OpenXcom Forum

Contributions => Builds & Ports => Topic started by: DarkDefender on May 12, 2013, 11:06:52 pm

Title: Gentoo openxcom git ebuild
Post by: DarkDefender on May 12, 2013, 11:06:52 pm
Here is an ebuild for openxcom.
Code: [Select]
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3

inherit git autotools


DESCRIPTION="OpenXcom is an open-source clone of the popular
UFO: Enemy Unknown (X-Com: UFO Defense in USA)"
HOMEPAGE="https://openxcom.org/"
EGIT_REPO_URI="https://github.com/SupSuper/OpenXcom.git"

LICENSE="GPL"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""

DEPEND="media-libs/libsdl
media-libs/sdl-mixer
media-sound/timidity++
media-libs/sdl-gfx
media-libs/sdl-image
dev-cpp/yaml-cpp"
RDEPEND="${DEPEND}"

src_prepare() {
eautoreconf
}
src_compile() {
emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
}

pkg_postinst() {
    einfo "You will need to install the Xcom data files in:"
    einfo "\$XDG_DATA_HOME/openxcomi/data or \$XDG_CONFIG_HOME/openxcom/data"
einfo "see https://www.ufopaedia.org/index.php?title=Installing_(OpenXcom)"
einfo "for more info."
}

Save it as openxcom-9999.ebuild and put it in a local overlay https://wiki.gentoo.org/wiki/Overlay
For example "/usr/local/portage/games-strategy/openxcom" and run "ebuild openxcom-9999.ebuild digest" then you can just emerge it like usual.
Title: Re: Gentoo openxcom git ebuild
Post by: winterheart on May 12, 2013, 11:29:26 pm
  I already added ebuild for 0.9 to gamerlay overlay, based on cmake.

Just layman -a gamerlay and you will get it.
Title: Re: Gentoo openxcom git ebuild
Post by: DarkDefender on May 13, 2013, 12:02:08 am
Ah, ok. Supsuper, just write that the openxcom ebuild is in the gamerlay overlay on the downloads page.