41 lines
941 B
Bash
41 lines
941 B
Bash
|
|
# Copyright 2019 Gentoo Authors
|
||
|
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
|
||
|
|
EAPI=7
|
||
|
|
|
||
|
|
inherit cmake-utils git-r3
|
||
|
|
|
||
|
|
DESCRIPTION="A lightweight, fast and extensible game server for Minecraft"
|
||
|
|
HOMEPAGE="https://cuberite.org/"
|
||
|
|
|
||
|
|
EGIT_REPO_URI="https://github.com/cuberite/cuberite.git"
|
||
|
|
EGIT_BRANCH="master"
|
||
|
|
EGIT_COMMIT="7d512f21913b3ed7dee2a025fdc1dea77a08d83b"
|
||
|
|
|
||
|
|
LICENSE="APACHE-2.0"
|
||
|
|
SLOT="0"
|
||
|
|
KEYWORDS="amd64 ~x86"
|
||
|
|
IUSE=""
|
||
|
|
|
||
|
|
DEPEND=""
|
||
|
|
RDEPEND="${DEPEND}"
|
||
|
|
BDEPEND=""
|
||
|
|
|
||
|
|
#CMAKE_MAKEFILE_GENERATOR="emake"
|
||
|
|
CMAKE_IN_SOURCE_BUILD="yes"
|
||
|
|
|
||
|
|
src_prepare() {
|
||
|
|
sed -i 's/-Weverything -Werror//' SetFlags.cmake || die "sed failed"
|
||
|
|
sed -i 's/-Werror -Wall//' lib/jsoncpp/CMakeLists.txt || die "sed in jsoncpp failed"
|
||
|
|
sed -i 's/-Werror//' src/WorldStorage/CMakeLists.txt || die "sed in WorldStorage failed"
|
||
|
|
cmake-utils_src_prepare
|
||
|
|
}
|
||
|
|
|
||
|
|
src_configure() {
|
||
|
|
local mycmakeargs=(
|
||
|
|
-DCMAKE_BUILD_TYPE=Release
|
||
|
|
)
|
||
|
|
cmake-utils_src_configure
|
||
|
|
}
|
||
|
|
|