Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 534008 | Differences between
and this patch

Collapse All | Expand All

(-)minetest-0.4.10-r2.ebuild (-4 / +14 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2015 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-action/minetest/minetest-0.4.10-r2.ebuild,v 1.1 2014/09/25 20:13:59 hasufell Exp $
3
# $Header: $
4
4
5
EAPI=5
5
EAPI=5
6
inherit eutils cmake-utils gnome2-utils vcs-snapshot user games
6
inherit eutils cmake-utils gnome2-utils vcs-snapshot user games
Lines 12-18 Link Here
12
LICENSE="LGPL-2.1+ CC-BY-SA-3.0"
12
LICENSE="LGPL-2.1+ CC-BY-SA-3.0"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
14
KEYWORDS="~amd64 ~x86"
15
IUSE="+curl dedicated leveldb luajit nls redis +server +sound +truetype"
15
IUSE="+curl dedicated doc leveldb luajit nls redis +server +sound +truetype"
16
16
17
RDEPEND="dev-db/sqlite:3
17
RDEPEND="dev-db/sqlite:3
18
	sys-libs/zlib
18
	sys-libs/zlib
Lines 38-43 Link Here
38
	redis? ( dev-libs/hiredis )"
38
	redis? ( dev-libs/hiredis )"
39
DEPEND="${RDEPEND}
39
DEPEND="${RDEPEND}
40
	>=dev-games/irrlicht-1.8-r2
40
	>=dev-games/irrlicht-1.8-r2
41
	doc? ( app-doc/doxygen media-gfx/graphviz )
41
	nls? ( sys-devel/gettext )"
42
	nls? ( sys-devel/gettext )"
42
43
43
pkg_setup() {
44
pkg_setup() {
Lines 82-88 Link Here
82
		$(usex dedicated "-DBUILD_SERVER=ON -DBUILD_CLIENT=OFF" "$(cmake-utils_use_build server SERVER) -DBUILD_CLIENT=ON")
83
		$(usex dedicated "-DBUILD_SERVER=ON -DBUILD_CLIENT=OFF" "$(cmake-utils_use_build server SERVER) -DBUILD_CLIENT=ON")
83
		-DCUSTOM_BINDIR="${GAMES_BINDIR}"
84
		-DCUSTOM_BINDIR="${GAMES_BINDIR}"
84
		-DCUSTOM_DOCDIR="/usr/share/doc/${PF}"
85
		-DCUSTOM_DOCDIR="/usr/share/doc/${PF}"
85
		-DCUSTOM_LOCALEDIR="/usr/share/locale"
86
		-DCUSTOM_LOCALEDIR="${GAMES_DATADIR}/${PN}/locale"
86
		-DCUSTOM_SHAREDIR="${GAMES_DATADIR}/${PN}"
87
		-DCUSTOM_SHAREDIR="${GAMES_DATADIR}/${PN}"
87
		$(cmake-utils_use_enable curl CURL)
88
		$(cmake-utils_use_enable curl CURL)
88
		$(cmake-utils_use_enable truetype FREETYPE)
89
		$(cmake-utils_use_enable truetype FREETYPE)
Lines 104-109 Link Here
104
105
105
src_compile() {
106
src_compile() {
106
	cmake-utils_src_compile
107
	cmake-utils_src_compile
108
109
	if use doc ; then
110
		emake -C "${CMAKE_BUILD_DIR}" doc
111
	fi
107
}
112
}
108
113
109
src_install() {
114
src_install() {
Lines 114-119 Link Here
114
		newconfd "${T}"/minetestserver.confd minetest-server
119
		newconfd "${T}"/minetestserver.confd minetest-server
115
	fi
120
	fi
116
121
122
	if use doc ; then
123
		cd "${CMAKE_BUILD_DIR}"/doc || die
124
		dodoc -r html
125
	fi
126
117
	prepgamesdirs
127
	prepgamesdirs
118
}
128
}
119
129

Return to bug 534008