1 |
commit: f22fcde397eaf46ea7d5f14b087c839766f64d1a |
2 |
Author: Chris Reffett <creffett <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 30 20:29:37 2016 +0000 |
4 |
Commit: Chris Reffett <creffett <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 20:29:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f22fcde3 |
7 |
|
8 |
games-roguelike/dwarf-fortress: Version bump. |
9 |
|
10 |
Gentoo-Bug: 589026 |
11 |
|
12 |
Package-Manager: portage-2.3.0_rc1 |
13 |
RepoMan-Options: --force |
14 |
|
15 |
games-roguelike/dwarf-fortress/Manifest | 2 + |
16 |
.../dwarf-fortress/dwarf-fortress-0.43.05.ebuild | 85 ++++++++++++++++++++++ |
17 |
games-roguelike/dwarf-fortress/files/Makefile | 4 +- |
18 |
.../files/{Makefile => Makefile.native} | 10 +-- |
19 |
.../dwarf-fortress/files/dwarf-fortress | 2 +- |
20 |
5 files changed, 93 insertions(+), 10 deletions(-) |
21 |
|
22 |
diff --git a/games-roguelike/dwarf-fortress/Manifest b/games-roguelike/dwarf-fortress/Manifest |
23 |
index e842aac..eda79ad 100644 |
24 |
--- a/games-roguelike/dwarf-fortress/Manifest |
25 |
+++ b/games-roguelike/dwarf-fortress/Manifest |
26 |
@@ -1,2 +1,4 @@ |
27 |
DIST df_40_24_linux.tar.bz2 12921246 SHA256 da37c6263a679123e6ac57fe0dd6def11f1d61efee3c5913de09495c88ce9234 SHA512 2242e471b7dbc996e819e2f74b2bbfda30a9a301755bc025ddcccdffdd3afe2e48bbedca31a332283ef829d023069398e57d6a87e26c582ddbce4a67ff7fd755 WHIRLPOOL 03cb652a2564d2b0c809be8252f7754d893f69ac1b95124ea108ed0fde9ac742c498d9e369339775695861e430a2ded0741b018f85551d48731730f98303dc69 |
28 |
DIST df_42_06_linux.tar.bz2 13857747 SHA256 03df8e73bf81e4f7bec9e789a83f8bd20b0b968d73131e4051e005db13fec99f SHA512 dfeb1406dcbd74091170eee4392c8eb876516d723b17e8aa291cab5b670be9fca4e22122788656e37afc03cd0e827e42b8cd27bc148d32639ebb7b8b7fa2bbf4 WHIRLPOOL d8fd93e9d90b4bee942c9a3751d1d03180157e4ecf406cf1cf31441946588990b2385a0b8d376f2a5386d7514d28b7ba5a6fbd2879e3a1e87124d902759909c3 |
29 |
+DIST df_43_05_linux.tar.bz2 11580594 SHA256 856c13170e8beefb5419ae71ee26c85db9716b3ebd4c7348aa44b896bd490be4 SHA512 502e6bac0bdd5586fb6b4e1117caf144a0336a7eed3ed9350ec316e4a286e309a15e0738517c0dd7d32f182984c501c7a8756e942d3dde9fb87f72b153f38e7a WHIRLPOOL 2ba6091c575eb7e2ca282e2192c0ca30ee48bfea473a0537acabfe33b2b7e848d1057f65409f9cc4aa2ec42f3c2dc7fef22139d3b2a788a84e71338a2c767ba1 |
30 |
+DIST df_43_05_linux32.tar.bz2 12158550 SHA256 0334e6b35ecc36949f5c60ffc1eb46fade3365b55a44f2e11fd4ae799ba7819a SHA512 d0446ddb5c37ee45ade36b18b815595e8d7bfd9749af4ecd2f25b45859d797a9da70f2344e2c58544feafc7df06882ade8a10534c37754359747c0d37f084b7c WHIRLPOOL 899d8739847cb37cb636453e7a728a0ae9765958fd77828e7f099b1f4b7a4bdaae0fee93121ddc81a0f2bf5ab4292380c9edb405dc5ed64d3d3cecf26f5f23c7 |
31 |
|
32 |
diff --git a/games-roguelike/dwarf-fortress/dwarf-fortress-0.43.05.ebuild b/games-roguelike/dwarf-fortress/dwarf-fortress-0.43.05.ebuild |
33 |
new file mode 100644 |
34 |
index 0000000..e22ed52 |
35 |
--- /dev/null |
36 |
+++ b/games-roguelike/dwarf-fortress/dwarf-fortress-0.43.05.ebuild |
37 |
@@ -0,0 +1,85 @@ |
38 |
+# Copyright 1999-2016 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+# $Id$ |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+inherit versionator |
45 |
+ |
46 |
+MY_PV=$(replace_all_version_separators _ "$(get_version_component_range 2-)") |
47 |
+MY_PN=df |
48 |
+MY_P=${MY_PN}_${MY_PV} |
49 |
+ |
50 |
+DESCRIPTION="A single-player fantasy game" |
51 |
+HOMEPAGE="http://www.bay12games.com/dwarves" |
52 |
+SRC_URI="amd64? ( http://www.bay12games.com/dwarves/${MY_P}_linux.tar.bz2 ) |
53 |
+ x86? ( http://www.bay12games.com/dwarves/${MY_P}_linux32.tar.bz2 )" |
54 |
+ |
55 |
+LICENSE="free-noncomm BSD BitstreamVera" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~x86 -*" |
58 |
+IUSE="debug" |
59 |
+ |
60 |
+RDEPEND="media-libs/glew:0 |
61 |
+ media-libs/libsdl[joystick,video] |
62 |
+ media-libs/sdl-image[png] |
63 |
+ media-libs/sdl-ttf |
64 |
+ sys-libs/zlib |
65 |
+ virtual/glu |
66 |
+ x11-libs/gtk+:2" |
67 |
+# Yup, libsndfile, openal and ncurses are only needed at compile-time; the code |
68 |
+# dlopens them at runtime if requested. |
69 |
+DEPEND="${RDEPEND} |
70 |
+ media-libs/libsndfile |
71 |
+ media-libs/openal |
72 |
+ sys-libs/ncurses[unicode] |
73 |
+ virtual/pkgconfig" |
74 |
+ |
75 |
+S=${WORKDIR}/${MY_PN}_linux |
76 |
+ |
77 |
+gamesdir="/opt/${PN}" |
78 |
+QA_PREBUILT="${gamesdir#/}/libs/Dwarf_Fortress" |
79 |
+RESTRICT="strip" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ rm -f libs/*.so* || die |
83 |
+ sed -i -e '1i#include <cmath>' g_src/ttf_manager.cpp || die |
84 |
+ default |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ tc-export CXX PKG_CONFIG |
89 |
+ CXXFLAGS+=" -D$(use debug || echo N)DEBUG" |
90 |
+} |
91 |
+ |
92 |
+src_compile() { |
93 |
+ emake -f "${FILESDIR}/Makefile.native" |
94 |
+ sed -e "s:^gamesdir=.*:gamesdir=${gamesdir}:" "${FILESDIR}/dwarf-fortress" > dwarf-fortress || die |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ # install data-files and libs |
99 |
+ insinto "${gamesdir}" |
100 |
+ doins -r raw data libs |
101 |
+ |
102 |
+ # install our wrapper |
103 |
+ dobin dwarf-fortress |
104 |
+ |
105 |
+ # install docs |
106 |
+ dodoc README.linux *.txt |
107 |
+ |
108 |
+ fperms 755 "${gamesdir}"/libs/Dwarf_Fortress |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ elog "System-wide Dwarf Fortress has been installed to ${gamesdir}. This is" |
113 |
+ elog "symlinked to ~/.dwarf-fortress when dwarf-fortress is run." |
114 |
+ elog "For more information on what exactly is replaced, see /usr/bin/dwarf-fortress." |
115 |
+ elog "Note: This means that the primary entry point is /usr/bin/dwarf-fortress." |
116 |
+ elog "Do not run ${gamesdir}/libs/Dwarf_Fortress." |
117 |
+ elog |
118 |
+ elog "Optional runtime dependencies:" |
119 |
+ elog "Install sys-libs/ncurses[unicode] for [PRINT_MODE:TEXT]" |
120 |
+ elog "Install media-libs/openal and media-libs/libsndfile for audio output" |
121 |
+ elog "Install media-libs/libsdl[opengl] for the OpenGL PRINT_MODE settings" |
122 |
+} |
123 |
|
124 |
diff --git a/games-roguelike/dwarf-fortress/files/Makefile b/games-roguelike/dwarf-fortress/files/Makefile |
125 |
index 66e6401..856670b 100644 |
126 |
--- a/games-roguelike/dwarf-fortress/files/Makefile |
127 |
+++ b/games-roguelike/dwarf-fortress/files/Makefile |
128 |
@@ -1,4 +1,4 @@ |
129 |
-# Copyright 2014-2015 Alex Xu (Hello71) |
130 |
+# Copyright 2014-2016 Alex Xu (Hello71) |
131 |
# Distributed under the terms of the GNU General Public License v2 |
132 |
|
133 |
PKG_CONFIG ?= pkg-config |
134 |
@@ -11,7 +11,7 @@ SRCS := g_src/basics.cpp g_src/command_line.cpp g_src/enabler.cpp \ |
135 |
g_src/music_and_sound_openal.cpp g_src/random.cpp g_src/textlines.cpp \ |
136 |
g_src/enabler_input.cpp g_src/KeybindingScreen.cpp \ |
137 |
g_src/win32_compat.cpp g_src/textures.cpp g_src/resize++.cpp \ |
138 |
- g_src/renderer_offscreen.cpp g_src/ttf_manager.cpp |
139 |
+ g_src/renderer_offscreen.cpp g_src/ttf_manager.cpp g_src/ViewBase.cpp |
140 |
OBJS := $(SRCS:.cpp=.o) |
141 |
|
142 |
BLIBS := ncursesw openal sndfile |
143 |
|
144 |
diff --git a/games-roguelike/dwarf-fortress/files/Makefile b/games-roguelike/dwarf-fortress/files/Makefile.native |
145 |
similarity index 68% |
146 |
copy from games-roguelike/dwarf-fortress/files/Makefile |
147 |
copy to games-roguelike/dwarf-fortress/files/Makefile.native |
148 |
index 66e6401..85383e5 100644 |
149 |
--- a/games-roguelike/dwarf-fortress/files/Makefile |
150 |
+++ b/games-roguelike/dwarf-fortress/files/Makefile.native |
151 |
@@ -1,23 +1,19 @@ |
152 |
-# Copyright 2014-2015 Alex Xu (Hello71) |
153 |
+# Copyright 2014-2016 Alex Xu (Hello71) |
154 |
# Distributed under the terms of the GNU General Public License v2 |
155 |
|
156 |
-PKG_CONFIG ?= pkg-config |
157 |
-PKG_CONFIG_PATH ?= /usr/lib32/pkgconfig:/usr/lib/pkgconfig |
158 |
-PKG_CONFIG := PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) |
159 |
- |
160 |
SRCS := g_src/basics.cpp g_src/command_line.cpp g_src/enabler.cpp \ |
161 |
g_src/files.cpp g_src/find_files_posix.cpp g_src/graphics.cpp \ |
162 |
g_src/init.cpp g_src/interface.cpp g_src/keybindings.cpp \ |
163 |
g_src/music_and_sound_openal.cpp g_src/random.cpp g_src/textlines.cpp \ |
164 |
g_src/enabler_input.cpp g_src/KeybindingScreen.cpp \ |
165 |
g_src/win32_compat.cpp g_src/textures.cpp g_src/resize++.cpp \ |
166 |
- g_src/renderer_offscreen.cpp g_src/ttf_manager.cpp |
167 |
+ g_src/renderer_offscreen.cpp g_src/ttf_manager.cpp g_src/ViewBase.cpp |
168 |
OBJS := $(SRCS:.cpp=.o) |
169 |
|
170 |
BLIBS := ncursesw openal sndfile |
171 |
LIBS := glew glu gtk+-2.0 sdl SDL_image SDL_ttf zlib |
172 |
CXXFLAGS ?= -O2 -pipe -Wall -Wextra |
173 |
-CXXFLAGS += -m32 $(shell $(PKG_CONFIG) --cflags $(BLIBS) $(LIBS)) -Dunix -Dlinux -fPIC -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 |
174 |
+CXXFLAGS += $(shell $(PKG_CONFIG) --cflags $(BLIBS) $(LIBS)) -Dunix -Dlinux -fPIC -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 |
175 |
LDLIBS := $(shell $(PKG_CONFIG) --libs $(LIBS)) |
176 |
|
177 |
LG := libs/libgraphics.so |
178 |
|
179 |
diff --git a/games-roguelike/dwarf-fortress/files/dwarf-fortress b/games-roguelike/dwarf-fortress/files/dwarf-fortress |
180 |
index 8594e0b..23b9c34 100644 |
181 |
--- a/games-roguelike/dwarf-fortress/files/dwarf-fortress |
182 |
+++ b/games-roguelike/dwarf-fortress/files/dwarf-fortress |
183 |
@@ -10,7 +10,7 @@ do_install() { |
184 |
cp -rsn "$gamesdir"/* "$install"/ |
185 |
} |
186 |
|
187 |
-if [[ -d "$install" ]]; then |
188 |
+if [ -d "$install" ]; then |
189 |
# delete dangling symlinks |
190 |
find -L "$install/" -type l -delete |
191 |
# ignore "are the same file" errors |