summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen-overlay@occam.eroen.eu>2017-06-21 00:27:37 +0200
committereroen <eroen-overlay@occam.eroen.eu>2017-06-21 00:27:37 +0200
commit1dbadd50401da78ba4f801ad12960412dc411f2b (patch)
tree7884e1ad9deffb91490ee039fe2ec4bd906b4b8c
parentdwarf-fortress - drop multilib, revbump to override gentoo (diff)
downloaderoen-1dbadd50401da78ba4f801ad12960412dc411f2b.tar.gz
eroen-1dbadd50401da78ba4f801ad12960412dc411f2b.tar.bz2
eroen-1dbadd50401da78ba4f801ad12960412dc411f2b.zip
dfhack - hackily enable ruby22
-rw-r--r--games-util/dfhack/dfhack-0.43.05.1-r1.ebuild (renamed from games-util/dfhack/dfhack-0.43.05.1.ebuild)13
1 files changed, 8 insertions, 5 deletions
diff --git a/games-util/dfhack/dfhack-0.43.05.1.ebuild b/games-util/dfhack/dfhack-0.43.05.1-r1.ebuild
index b2df8b8..da37c78 100644
--- a/games-util/dfhack/dfhack-0.43.05.1.ebuild
+++ b/games-util/dfhack/dfhack-0.43.05.1-r1.ebuild
@@ -33,7 +33,7 @@ CMAKE_REMOVE_MODULES_LIST="FindCurses FindDoxygen CMakeVS10FindMake"
LICENSE="ZLIB MIT BSD-2 BSD CC-BY-SA-3.0"
SLOT="0"
-IUSE=""
+IUSE="ruby"
# dfhack bundles lua (5.3 as of 0.43.05-alpha1)
HDEPEND="
@@ -48,12 +48,11 @@ LIBRARY_DEPEND="
DEPEND="${LIBRARY_DEPEND}
${HDEPEND}"
RDEPEND="${LIBRARY_DEPEND}
+ ruby? ( dev-lang/ruby:2.2 )
~games-roguelike/dwarf-fortress-$df_PV"
PATCHES=( "$FILESDIR"/dfhack-$PV )
-QA_PREBUILT="opt/dfhack/hack/libruby.so"
-
src_unpack() {
git-r3_src_unpack
if [[ -n $xml_EGIT_COMMIT ]]; then
@@ -64,6 +63,9 @@ src_unpack() {
src_prepare() {
default
+ sed -e "s:libruby\.so:libruby22.so:" \
+ -i plugins/ruby/ruby.cpp || die
+
local install="\${HOME}/.dwarf-fortress-${df_PV}_dfhack" exe="./libs/Dwarf_Fortress"
sed -e "s:^install=.*:install=${install}:" \
-e "s:^exe=.*:exe=\"${exe}\":" \
@@ -81,9 +83,10 @@ src_configure() {
-DDFHACK_PLUGIN_DESTINATION=/opt/dfhack/hack/plugins
-DDFHACK_LIBRARY_DESTINATION=/opt/dfhack/hack
-DDFHACK_RUBY_DESTINATION=/opt/dfhack/hack/ruby
- -DBUILD_RUBY=OFF # TODO: downloads libruby.so
+ -DBUILD_RUBY=$(usex ruby)
+ -DDOWNLOAD_RUBY=OFF
-DBUILD_DEV_PLUGINS=ON
- -DBUILD_SKELETON=ON
+ -DBUILD_SKELETON=OFF
)
cmake-utils_src_configure