diff --git a/dev-games/surgescript/Manifest b/dev-games/surgescript/Manifest index 759255941f..d6c09ccda3 100644 --- a/dev-games/surgescript/Manifest +++ b/dev-games/surgescript/Manifest @@ -1 +1,2 @@ +DIST surgescript-0.5.4.3.tar.gz 500022 BLAKE2B 08598ad4adbd3cbf841354cde8ef3c9348abd196a828e9a9606b3cfa3b268c68aa7561a95c09692ef0d78d7c497207ddfc176e2528e6ae9a064af229c24e80d6 SHA512 0ffbb464326f019a6b523eca280c75c02f5976c07f61e6507cb46b1b2bf8bf0779b6fbd56c9204aee33ecf0ce513e07be8d5503d3cbd06443205ab57d674a6b3 DIST surgescript-0.5.4.tar.gz 422111 BLAKE2B 88733d7ae350ebc3874d3b0e5ec91a896227b8e03b1c56e1c462bc2dd989c0df7e1ac230b31ac7a187217f32f1059bea7f6661cffc3d32aaf2c9c7db22bd94d4 SHA512 d75f29dd21f73beccee559eef22d75b8502d9de79874a282855bdf872ecd9862a8e0a898699aca42b373a2abdca81d77f15255235c27420a2da417d3970fcaf4 diff --git a/dev-games/surgescript/surgescript-0.5.4.3.ebuild b/dev-games/surgescript/surgescript-0.5.4.3.ebuild new file mode 100644 index 0000000000..16e25a588a --- /dev/null +++ b/dev-games/surgescript/surgescript-0.5.4.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/alemart/surgescript" + SLOT="0" +else + SRC_URI="https://github.com/alemart/surgescript/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + SLOT="0/${PV}" +fi + +DESCRIPTION="scripting language made for opensurge" +HOMEPAGE="https://alemart.github.io/surgescript" +LICENSE="Apache-2.0" + +IUSE="doc" + +BDEPEND="doc? ( + dev-python/mkdocs + dev-python/mkdocs-material )" + +src_compile() { + cmake_src_compile + + if use doc; then + mkdocs build || die "failed to make docs" + HTML_DOCS="site" + fi +} + +src_install() { + cmake_src_install + + mv "${D}"/usr/lib "${D}"/usr/"$(get_libdir)" || die "Failed moving to libdir" +} diff --git a/dev-games/surgescript/surgescript-9999.ebuild b/dev-games/surgescript/surgescript-9999.ebuild index b76cc96106..16e25a588a 100644 --- a/dev-games/surgescript/surgescript-9999.ebuild +++ b/dev-games/surgescript/surgescript-9999.ebuild @@ -8,15 +8,16 @@ inherit cmake if [[ "${PV}" == "9999" ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/alemart/surgescript" + SLOT="0" else SRC_URI="https://github.com/alemart/surgescript/archive/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" + SLOT="0/${PV}" fi DESCRIPTION="scripting language made for opensurge" HOMEPAGE="https://alemart.github.io/surgescript" LICENSE="Apache-2.0" -SLOT="0" IUSE="doc" @@ -32,3 +33,9 @@ src_compile() { HTML_DOCS="site" fi } + +src_install() { + cmake_src_install + + mv "${D}"/usr/lib "${D}"/usr/"$(get_libdir)" || die "Failed moving to libdir" +}