Created
May 16, 2016 02:33
-
-
Save mischief/7be9399fd3c1a6e4cedc09f6d2287584 to your computer and use it in GitHub Desktop.
cataclysm ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 1999-2016 Gentoo Foundation | |
| # Distributed under the terms of the GNU General Public License v2 | |
| # $Id$ | |
| EAPI=5 | |
| inherit games versionator | |
| DESCRIPTION="Cataclysm - Dark Days Ahead" | |
| HOMEPAGE="http://en.cataclysmdda.com/" | |
| MY_PN="Cataclysm-DDA" | |
| MY_P="${MY_PN}-${MY_PV}" | |
| S="${WORKDIR}/${MY_P}" | |
| if [[ ${PV} == *9999* ]]; then | |
| inherit git-2 | |
| EGIT_REPO_URI="git://github.com/CleverRaven/${MY_PN}.git | |
| https://github.com/CleverRaven/${MY_PN}.git" | |
| EGIT_BRANCH="master" | |
| KEYWORDS="" | |
| SRC_URI="" | |
| else | |
| inherit vcs-snapshot | |
| KEYWORDS="~amd64 ~x86" | |
| MY_PV="$(get_major_version).$(get_after_major_version | tr a-z A-Z)" | |
| SRC_URI="https://github.com/CleverRaven/${MY_PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" | |
| fi | |
| LICENSE="CC-BY-SA-3.0" | |
| SLOT="0" | |
| KEYWORDS="amd64" | |
| IUSE="debug" | |
| RDEPEND="sys-libs/ncurses" | |
| DEPEND="${RDEPEND} | |
| dev-util/astyle" | |
| src_compile() { | |
| emake PREFIX=/usr RELEASE=$(usex debug '' 1) | |
| } | |
| src_install() { | |
| emake PREFIX=/usr RELEASE=$(usex debug '' 1) DESTDIR="${D}" install | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment