1
Builds & Ports / Gentoo openxcom git ebuild
« on: May 12, 2013, 11:06:52 pm »
Here is an ebuild for openxcom.
For example "/usr/local/portage/games-strategy/openxcom" and run "ebuild openxcom-9999.ebuild digest" then you can just emerge it like usual.
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/OverlayFor example "/usr/local/portage/games-strategy/openxcom" and run "ebuild openxcom-9999.ebuild digest" then you can just emerge it like usual.