summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-rpg/infamousmachine/infamousmachine-1.ebuild')
-rw-r--r--games-rpg/infamousmachine/infamousmachine-1.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/games-rpg/infamousmachine/infamousmachine-1.ebuild b/games-rpg/infamousmachine/infamousmachine-1.ebuild
new file mode 100644
index 0000000..63e9326
--- /dev/null
+++ b/games-rpg/infamousmachine/infamousmachine-1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="A point-and-click adventure about the well intentioned but not-so-brilliant Kelvin, his workplace crush, a crazy scientist, and a hideous time machine that came to ruin everything."
+HOMEPAGE="http://www.infamousmachine.com"
+SRC_URI="infamousmachine_unix_1_0.sh.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=virtual/jre-1.7:*
+ virtual/opengl
+ media-libs/openal
+ app-arch/p7zip"
+RDEPEND="${DEPEND}"
+
+RESTRICT="bindist fetch mirror strip"
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "Please download ${SRC_URI}"
+ einfo "from your personal page in Humble Bundle site"
+ einfo "(http://www.humblebundle.com) and place it in ${DISTDIR}"
+}
+
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ 7zip x infamousmachine_unix_1_0.sh
+}
+
+src_prepare() {
+ rm infamousmachine_unix_1_0.sh
+ rmdir '.install4j\'
+}
+
+src_install() {
+ local dir="/opt/${P}"
+
+ insinto "${dir}"
+ doins InfamousMachine.vmoptions
+ doins InfamousMachine.jar
+ doins .install4j
+
+ exeinto "${dir}"
+ doexe InfamousMachine
+
+ make_wrapper ${PN} ./InfamousMachine "${dir}" "${dir}"
+ newicon .install4j/InfamousMachine.png "${PN}"
+ make_desktop_entry ${PN} "Kelvin and the Infamous Machine" "${PN}" Game
+
+}
+
+