Initial import
This commit is contained in:
2
dev-games/godot/Manifest
Normal file
2
dev-games/godot/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST godot-2.1.4.tar.gz 14811915 SHA256 07cf3b01367d5ea53805f144bc60711bd79efb53f1f88d57d6a706e6944de8d7 SHA512 6557197b3aabc2dab5d583cab7a76fd5591c0a89347a10ec1cf370230e57fdbca792f99d69456a3d03ba6f22865464771e81505cb39c2b4e9f3c0b82ea9d2e5b WHIRLPOOL 84435db4a9ca758623bb9fbb7c43ba432f2c17e43ffdc49df5f72c77acc47bbf47ee0dec8872a4ecd86d75158fdd632d1bca1672e41a14616fab4f9ec3fcdc87
|
||||
EBUILD godot-2.1.4.ebuild 2713 SHA256 a9db6d0146fdf4d2bcd8daf1b9eeaf48d7eeeae907dca3bef1ca5656b7edb515 SHA512 8adc87f6c93951222cb82ec2457d11675533a148a545496dce1d2a5d90d201e373c796e1b51d8794afb1bb5ec61613c484a1d862c893b1dd40c5cc5fe976ebe2 WHIRLPOOL 0df0de90d0a7c117f7ae0a916314588c2a3f7b57ea88b73a27bc631f0820c95f6065c2614fe5b0e90b1314d0ae7f0b86578415d5a1c865cd16319879fd65e8b7
|
||||
112
dev-games/godot/godot-2.1.4.ebuild
Normal file
112
dev-games/godot/godot-2.1.4.ebuild
Normal file
@@ -0,0 +1,112 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils scons-utils
|
||||
|
||||
DESCRIPTION="A advanced, feature packed, multi-platform 2D and 3D game engine."
|
||||
HOMEPAGE="http://www.godotengine.org"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/godotengine/godot.git"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/godotengine/godot/archive/${PV}-stable.tar.gz -> ${P}.tar.gz"
|
||||
RESTRICT="primaryuri"
|
||||
KEYWORDS="amd64 x86"
|
||||
S="${WORKDIR}/${PN}-${PV}-stable"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="+freetype llvm +openssl +png pulseaudio theora udev +vorbis +xml"
|
||||
|
||||
DEPEND="
|
||||
>=app-arch/bzip2-1.0.6-r6
|
||||
>=app-arch/lz4-0_p120
|
||||
>=app-arch/xz-utils-5.0.8
|
||||
>=dev-libs/json-c-0.11-r1
|
||||
>=media-libs/alsa-lib-1.0.28
|
||||
>=media-libs/flac-1.3.1-r1
|
||||
>=media-libs/libogg-1.3.1
|
||||
>=media-libs/libsndfile-1.0.25-r1
|
||||
>=media-libs/mesa-10.2.8[gles2]
|
||||
>=net-libs/libasyncns-0.8-r3
|
||||
>=sys-apps/attr-2.4.47-r1
|
||||
>=sys-apps/tcp-wrappers-7.6.22-r1
|
||||
>=sys-apps/util-linux-2.25.2-r2
|
||||
>=sys-devel/gcc-4.6.4:*[cxx]
|
||||
>=sys-libs/gdbm-1.11
|
||||
>=sys-libs/glibc-2.20-r2
|
||||
>=sys-libs/glibc-2.20-r2
|
||||
>=sys-libs/libcap-2.22-r2
|
||||
>=sys-libs/zlib-1.2.8-r1
|
||||
>=x11-libs/libX11-1.6.2
|
||||
>=x11-libs/libXcursor-1.1.14
|
||||
>=x11-libs/libXinerama-1.1.3
|
||||
freetype? ( >=media-libs/freetype-2.5.3-r1:2 )
|
||||
llvm? ( >=sys-devel/llvm-3.6.0[clang] )
|
||||
openssl? ( >=dev-libs/openssl-1.0.1j:0 )
|
||||
png? ( >=media-libs/libpng-1.6.16:0= )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-5.0-r7 )
|
||||
theora? ( media-libs/libtheora )
|
||||
udev? ( virtual/udev )
|
||||
virtual/glu
|
||||
vorbis? ( >=media-libs/libvorbis-1.3.4 )
|
||||
xml? ( >=dev-libs/expat-2.1.0-r3 )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
MYSCONS=(
|
||||
CC="$(tc-getCC)"
|
||||
builtin_zlib=no
|
||||
colored=yes
|
||||
platform=x11
|
||||
freetype=$(usex freetype)
|
||||
openssl=$(usex openssl)
|
||||
png=$(usex png)
|
||||
pulseaudio=$(usex pulseaudio)
|
||||
theora=$(usex theora)
|
||||
udev=$(usex udev)
|
||||
use_llvm=$(usex llvm)
|
||||
vorbis=$(usex vorbis)
|
||||
xml=$(usex xml)
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons "${MYSCONS[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newicon icon.svg ${PN}.svg
|
||||
dobin bin/godot.*
|
||||
if [[ "${ARCH}" == "amd64" ]]; then
|
||||
if use llvm; then
|
||||
make_desktop_entry godot.x11.tools.64.llvm Godot
|
||||
with_desktop_entry=1
|
||||
else
|
||||
make_desktop_entry godot.x11.tools.64 Godot
|
||||
with_desktop_entry=1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${ARCH}" == "x86" ]]; then
|
||||
if use llvm; then
|
||||
make_desktop_entry godot.x11.tools.32.llvm Godot
|
||||
with_desktop_entry=1
|
||||
else
|
||||
make_desktop_entry godot.x11.tools.32 Godot
|
||||
with_desktop_entry=1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! [[ "${with_desktop_entry}" == "1" ]]; then
|
||||
elog "Couldn't detect running architecture to create a desktop file."
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user