dev-games/surgescript: add 0.5.5 and use flags

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova 2021-05-26 18:15:52 +05:00
parent 849e5d4180
commit a09de087cf
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
3 changed files with 39 additions and 16 deletions

View File

@ -1,2 +1,2 @@
DIST surgescript-0.5.4.3.tar.gz 500022 BLAKE2B 08598ad4adbd3cbf841354cde8ef3c9348abd196a828e9a9606b3cfa3b268c68aa7561a95c09692ef0d78d7c497207ddfc176e2528e6ae9a064af229c24e80d6 SHA512 0ffbb464326f019a6b523eca280c75c02f5976c07f61e6507cb46b1b2bf8bf0779b6fbd56c9204aee33ecf0ce513e07be8d5503d3cbd06443205ab57d674a6b3
DIST surgescript-0.5.4.4.tar.gz 501298 BLAKE2B b86545dfaea83e7a8387060c90495c51fd150149c7922b741a666a853d83bc4daa1f80d7ef8f2d2563b81f460f207d759d154cf20ae555cdbfe418f9d23c29ef SHA512 76d7d913353803372b7eec7226385f048f249a71e0a06fbdb255fddf411a0d4bf82773511a3db9c132e483d0dbca575dbfd35c5afae98287608fa2405bcc8200
DIST surgescript-0.5.5.tar.gz 504167 BLAKE2B 7537a7e29e2e5ab02c8c503b65c17a50d2fbe8ac0d2fac4d662a7da701559be2ab16c9539dcc5d9b8efd3d273d898e322a7e7a38b6ced78d17fc4178a99e07b9 SHA512 b3b79f36463b9ff91f2f8108d6917961d8aabfbd0693a9e9e275f57faa09022570519c553ceff8db93101058964d76df82448b487ed82c5331598df065fae34a

View File

@ -5,10 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="
dev-python/mkdocs
dev-python/mkdocs-material
"
DOCS_DEPEND="dev-python/mkdocs-material"
inherit cmake python-any-r1 docs
@ -17,15 +14,25 @@ HOMEPAGE="https://alemart.github.io/surgescript"
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/alemart/surgescript.git"
EGIT_REPO_URI="https://github.com/alemart/${PN}.git"
SLOT="0"
else
SRC_URI="https://github.com/alemart/surgescript/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/alemart/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
SLOT="0/${PV}"
SLOT="0/$(ver_cut 1-3)"
fi
LICENSE="Apache-2.0"
IUSE="examples static-libs"
DOCS=( CHANGES.md README.md )
src_configure() {
local mycmakeoptions=(
-DWANT_STATIC=$(usex static-libs)
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
@ -34,5 +41,7 @@ src_compile() {
src_install() {
cmake_src_install
mv "${D}"/usr/lib "${D}"/usr/"$(get_libdir)" || die "Failed moving to libdir"
docompress -x /usr/share/doc/${PF}/examples
use examples && dodoc -r examples
}

View File

@ -5,10 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="
dev-python/mkdocs
dev-python/mkdocs-material
"
DOCS_DEPEND="dev-python/mkdocs-material"
inherit cmake python-any-r1 docs
@ -17,17 +14,34 @@ HOMEPAGE="https://alemart.github.io/surgescript"
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/alemart/surgescript.git"
EGIT_REPO_URI="https://github.com/alemart/${PN}.git"
SLOT="0"
else
SRC_URI="https://github.com/alemart/surgescript/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/alemart/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
SLOT="0/${PV}"
SLOT="0/$(ver_cut 1-3)"
fi
LICENSE="Apache-2.0"
IUSE="examples static-libs"
DOCS=( CHANGES.md README.md )
src_configure() {
local mycmakeoptions=(
-DWANT_STATIC=$(usex static-libs)
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
docs_compile
}
src_install() {
cmake_src_install
docompress -x /usr/share/doc/${PF}/examples
use examples && dodoc -r examples
}