Gentoo Archives: gentoo-commits

From: Philip Miess <Phil_miess@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/superposition:master commit in: games-roguelike/gnomoria/
Date: Mon, 02 Jul 2018 21:04:16
Message-Id: 1530565501.cd5693aaa4519d70a344330f70694589645889f4.Phil_miess@gentoo
1 commit: cd5693aaa4519d70a344330f70694589645889f4
2 Author: Philip Miess <Philip_Miess <AT> yahoo <DOT> com>
3 AuthorDate: Mon Jul 2 21:05:01 2018 +0000
4 Commit: Philip Miess <Phil_miess <AT> yahoo <DOT> com>
5 CommitDate: Mon Jul 2 21:05:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/user/superposition.git/commit/?id=cd5693aa
7
8 add gnomoria
9
10 games-roguelike/gnomoria/Manifest | 3 +
11 games-roguelike/gnomoria/gnomoria-1.ebuild | 95 ++++++++++++++++++++++++++++++
12 games-roguelike/gnomoria/metadata.xml | 22 +++++++
13 3 files changed, 120 insertions(+)
14
15 diff --git a/games-roguelike/gnomoria/Manifest b/games-roguelike/gnomoria/Manifest
16 new file mode 100644
17 index 0000000..663bd26
18 --- /dev/null
19 +++ b/games-roguelike/gnomoria/Manifest
20 @@ -0,0 +1,3 @@
21 +DIST gnomoria-022316-bin 189578890 BLAKE2B f6b41968a0842ee7b9c47798fbcbc37aef1dc96937744d244edc140f0396cff49bf82d0f0e0539040c989bae2562a307fd28a14a2b6d1879fb5f854e10831bad SHA512 42ee53e31ab8b89d016dc7a0e38c34373c20f81beef6de21ba87d2a5e302d20f96b27bee2fcd5b20a25ac16e2d7d274f9c4cc15513e392b9edf2b96fa7585b47
22 +EBUILD gnomoria-1.ebuild 1952 BLAKE2B 1dd3ec8c9e97bff3573090f61c681242d1ecec422b1a547f9da18774cd2d2f7fda5961efd14a461df218c82ad7ee7d8b7a89aa5b3c9679a1be1553220c0bc53b SHA512 9fd33f9546dc854588893de718eac61dab6beffde24d30e70d84128e554754bfec21d40366f0a2423be7fe041958c23ca306e41513aa3b4d8e458cdc06f0cf00
23 +MISC metadata.xml 1293 BLAKE2B 3abd67f650e73d476b04e6daf4ac20e1ac70212c8dcf4880f560232cdf3d1815edea53d63c660cf3559ecba3c24c98e52ff0eb593ccbe8f2c0391b74b6a57f44 SHA512 608545a9b490bff07614133944e0aab93399759eb007a5ea3b3396798a461dd50922a68cca7a19df87794084f505fdde23ac875f189883c0e5c153dcec9929f6
24
25 diff --git a/games-roguelike/gnomoria/gnomoria-1.ebuild b/games-roguelike/gnomoria/gnomoria-1.ebuild
26 new file mode 100644
27 index 0000000..0b4bf20
28 --- /dev/null
29 +++ b/games-roguelike/gnomoria/gnomoria-1.ebuild
30 @@ -0,0 +1,95 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit unpacker eutils gnome2-utils
37 +
38 +DESCRIPTION="Gnomoria is a sandbox village management game"
39 +HOMEPAGE="http://www.gnomoria.com"
40 +SRC_URI="gnomoria-022316-bin"
41 +
42 +LICENSE="all-rights-reserved"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="system-libs"
46 +RESTRICT="bindist fetch"
47 +
48 +MYGAMEDIR=/opt/${PN}
49 +DEPEND="app-arch/unzip"
50 +RDEPEND="${DEPEND}
51 +system-libs? (
52 + app-arch/p7zip
53 + dev-lang/mono
54 + media-libs/libsdl2[sound]
55 + media-libs/sdl2-image[jpeg,png]
56 + media-libs/openal
57 + media-libs/libvorbis
58 + media-libs/libtheora
59 +)"
60 +
61 +S="${WORKDIR}/data"
62 +
63 +pkg_nofetch() {
64 + einfo "Please buy & download ${SRC_URI} from:"
65 + einfo " https://www.humblebundle.com/store"
66 + einfo "and move it to ${DISTDIR}"
67 +}
68 +
69 +src_unpack() {
70 + unpack_zip ${A}
71 +}
72 +
73 +src_configure() { :; }
74 +src_compile() { :; }
75 +
76 +src_install() {
77 + local arch=x86
78 + use amd64 && arch=x86_64
79 +
80 + insinto ${MYGAMEDIR}
81 + exeinto ${MYGAMEDIR}
82 + doexe "Gnomoria.bin.${arch}"
83 + doins -r "Content" FNA.dll FNA.dll.config "Mod Files" gnomorialib.dll
84 + if use system-libs ; then
85 + if use amd64 ; then
86 + mv lib64 lib64.orig
87 + mkdir lib64
88 + mv lib64.orig/libmojoshader.so lib64
89 + ln -s /usr/bin/7za lib64/7za
90 + doins lib64
91 + else
92 + mv lib lib.orig
93 + mkdir lib
94 + mv lib.orig/libmojoshader.so lib
95 + ln -s /usr/bin/7za lib/7za
96 + doins lib
97 + fi
98 + else
99 + doins -r Mono.Posix.dll System.Core.dll System.Drawing.dll System.Xml.dll mscorlib.dll Mono.Security.dll System.Configuration.dll System.Data.dll System.Security.dll System.dll mono
100 + if use amd64 ; then
101 + doins lib64
102 + else
103 + doins lib
104 + fi
105 + fi
106 +
107 + newicon -s 512 Gnomoria.png ${PN}.png
108 + make_wrapper ${PN} "${MYGAMEDIR}/Gnomoria.bin.${arch}" "${MYGAMEDIR}"
109 + make_desktop_entry "${PN}" "Gnomoria" "${PN}" "Game"
110 +
111 + domenu ${PN}
112 +
113 +}
114 +
115 +pkg_preinst() {
116 + gnome2_icon_savelist
117 +}
118 +
119 +pkg_postinst() {
120 + gnome2_icon_cache_update
121 +}
122 +
123 +pkg_postrm() {
124 + gnome2_icon_cache_update
125 +}
126
127 diff --git a/games-roguelike/gnomoria/metadata.xml b/games-roguelike/gnomoria/metadata.xml
128 new file mode 100644
129 index 0000000..543c928
130 --- /dev/null
131 +++ b/games-roguelike/gnomoria/metadata.xml
132 @@ -0,0 +1,22 @@
133 +<?xml version="1.0" encoding="UTF-8"?>
134 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
135 +<pkgmetadata>
136 +<maintainer type="person">
137 +<email>phil_miess@××××××××××.com</email>
138 +</maintainer>
139 +<longdescription lang="en">
140 +Gnomoria is a sandbox village management game where you help lead a small group of gnomes, who have set out on their own, to thrive into a bustling kingdom! Anything you see can be broken down and rebuilt elsewhere. Craft items, build structures, set traps and dig deep underground in search of precious resources to help your gnomes survive the harsh lands. Build your kingdom and stockpile wealth to attract wandering gnomads to your cause, but be wary of also attracting enemies!
141 +Key Features:
142 +
143 +Procedurally generated world - Every game is different
144 +Fully destructible environment - Everything can be mined, dug, chopped and rebuilt or used for crafting
145 +Open sandbox gameplay - Play how you want - manage a peaceful town or build up military and fend off invasions.
146 +Crafting - Tons of items to craft at different workshops
147 +Mechanisms - Construct elaborate contraptions using parts like hatches, levers, steam engines
148 +</longdescription>
149 +<use>
150 + <flag name="system-libs">
151 + Use the systems libraries instead of the bundled ones
152 + </flag>
153 +</use>
154 +</pkgmetadata>