games-strategy/julius: using standard cmake functions and renaming
the executable in order to mitigate collision with app-accessibility/julius Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
parent
4accbac84a
commit
04947a0cd3
@ -1,3 +1,7 @@
|
|||||||
|
05 May 2020; <chymera@gentoo.org> files/90julius.sh, julius-1.3.1.ebuild:
|
||||||
|
games-strategy/julius: using standard cmake functions and renaming the
|
||||||
|
executable in order to mitigate collision with app-accessibility/julius
|
||||||
|
|
||||||
04 May 2020; <chymera@gentoo.org> julius-1.3.1.ebuild:
|
04 May 2020; <chymera@gentoo.org> julius-1.3.1.ebuild:
|
||||||
games-strategy/julius: updated post-install instructions
|
games-strategy/julius: updated post-install instructions
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
alias julius='julius ~/.cache/julius/app'
|
alias julius-game='julius-game ~/.cache/julius/app'
|
||||||
|
@ -21,22 +21,18 @@ DEPEND="
|
|||||||
"
|
"
|
||||||
RDEPEND=""
|
RDEPEND=""
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
mkdir build
|
|
||||||
pushd build > /dev/null
|
|
||||||
cmake .. && emake
|
|
||||||
popd > /dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
sed -i -e "s: && cd \.\. && \./coverage.sh::" runtests.sh || die
|
sed -i -e "s: && cd \.\. && \./coverage.sh::" runtests.sh || die
|
||||||
./runtests.sh || die "test phase failed"
|
./runtests.sh || die "test phase failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin build/julius
|
|
||||||
insinto /etc/profile.d
|
insinto /etc/profile.d
|
||||||
doins "${FILESDIR}"/90julius.sh
|
doins "${FILESDIR}"/90julius.sh
|
||||||
|
cmake-utils_src_install
|
||||||
|
newbin "${BUILD_DIR}"/julius Julius
|
||||||
|
mv "${ED}"/usr/bin/julius "${ED}"/usr/bin/julius-game ||
|
||||||
|
die "Failed to rename executable (required as per conflict with app-accessibility/julius)"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user