Merge remote-tracking branch 'upstream/master' into master

This commit is contained in:
Andreas Westman Dorcsak 2020-09-15 17:20:29 +02:00
commit 5cbbaef031
5 changed files with 111 additions and 12 deletions

View File

@ -3,7 +3,7 @@
EAPI=7 EAPI=7
inherit pax-utils inherit desktop pax-utils xdg
DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language" DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language"
HOMEPAGE="https://racket-lang.org/" HOMEPAGE="https://racket-lang.org/"
@ -47,7 +47,7 @@ RDEPEND="
dev-libs/libedit dev-libs/libedit
) )
X? ( X? (
x11-libs/gtk+[X?] x11-libs/gtk+[X]
) )
" "
DEPEND=" DEPEND="
@ -85,7 +85,8 @@ src_configure() {
} }
src_compile() { src_compile() {
if use jit; then if use jit
then
# When the JIT is enabled, a few binaries need to be pax-marked # When the JIT is enabled, a few binaries need to be pax-marked
# on hardened systems (bug 613634). The trick is to pax-mark # on hardened systems (bug 613634). The trick is to pax-mark
# them before they're used later in the build system. The # them before they're used later in the build system. The
@ -108,11 +109,14 @@ src_compile() {
src_install() { src_install() {
default default
if use jit; then if use jit
then
# The final binaries need to be pax-marked, too, if you want to # The final binaries need to be pax-marked, too, if you want to
# actually use them. The src_compile marking get lost somewhere # actually use them. The src_compile marking get lost somewhere
# in the install process. # in the install process.
for f in mred mzscheme racket; do local f
for f in mred mzscheme racket
do
pax-mark m "${D}/usr/bin/${f}" pax-mark m "${D}/usr/bin/${f}"
done done
@ -120,9 +124,28 @@ src_install() {
fi fi
# raco needs decompressed files for packages doc installation bug 662424 # raco needs decompressed files for packages doc installation bug 662424
if use doc; then if use doc
then
docompress -x /usr/share/doc/${PF} docompress -x /usr/share/doc/${PF}
fi fi
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
if use X
then
make_desktop_entry "gracket" "GRacket" \
"/usr/share/racket/drracket-exe-icon.png" \
"Development;Education;"
make_desktop_entry "plt-games" "PLT Games" \
"/usr/share/racket/drracket-exe-icon.png" \
"Education;Game;"
fi
}
pkg_postinst() {
use X && xdg_desktop_database_update
}
pkg_postrm() {
use X && xdg_desktop_database_update
} }

View File

@ -3,7 +3,7 @@
EAPI=7 EAPI=7
inherit pax-utils inherit desktop pax-utils xdg
DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language" DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language"
HOMEPAGE="https://racket-lang.org/" HOMEPAGE="https://racket-lang.org/"
@ -47,7 +47,7 @@ RDEPEND="
dev-libs/libedit dev-libs/libedit
) )
X? ( X? (
x11-libs/gtk+[X?] x11-libs/gtk+[X]
) )
" "
DEPEND=" DEPEND="
@ -85,7 +85,8 @@ src_configure() {
} }
src_compile() { src_compile() {
if use jit; then if use jit
then
# When the JIT is enabled, a few binaries need to be pax-marked # When the JIT is enabled, a few binaries need to be pax-marked
# on hardened systems (bug 613634). The trick is to pax-mark # on hardened systems (bug 613634). The trick is to pax-mark
# them before they're used later in the build system. The # them before they're used later in the build system. The
@ -108,11 +109,14 @@ src_compile() {
src_install() { src_install() {
default default
if use jit; then if use jit
then
# The final binaries need to be pax-marked, too, if you want to # The final binaries need to be pax-marked, too, if you want to
# actually use them. The src_compile marking get lost somewhere # actually use them. The src_compile marking get lost somewhere
# in the install process. # in the install process.
for f in mred mzscheme racket; do local f
for f in mred mzscheme racket
do
pax-mark m "${D}/usr/bin/${f}" pax-mark m "${D}/usr/bin/${f}"
done done
@ -120,9 +124,28 @@ src_install() {
fi fi
# raco needs decompressed files for packages doc installation bug 662424 # raco needs decompressed files for packages doc installation bug 662424
if use doc; then if use doc
then
docompress -x /usr/share/doc/${PF} docompress -x /usr/share/doc/${PF}
fi fi
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
if use X
then
make_desktop_entry "gracket" "GRacket" \
"/usr/share/racket/drracket-exe-icon.png" \
"Development;Education;"
make_desktop_entry "plt-games" "PLT Games" \
"/usr/share/racket/drracket-exe-icon.png" \
"Education;Game;"
fi
}
pkg_postinst() {
use X && xdg_desktop_database_update
}
pkg_postrm() {
use X && xdg_desktop_database_update
} }

View File

@ -0,0 +1 @@
DIST Mindustry.jar 48910370 BLAKE2B 62d6ca658d3a440028b76908a95ff4e8265edfe50caf5c882007bcb8a7105aeb613a07f3dbe71e2bc38bc0daeeeeac20f4a7796c0475b7dd42667c6d7ccdfaae SHA512 9f19d0c8e9b9611a254de12c60c3ab3802631a9e79c518d6039dca18ae80b4d7734f1f39fc17c7d24f249495068301123e2ff4e48a196e63a00d019071a7f398

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">Anuken/Mindustry</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,45 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="${PN^}"
inherit desktop eutils xdg
DESCRIPTION="A sandbox tower defense game"
HOMEPAGE="https://mindustrygame.github.io"
SRC_URI="https://github.com/Anuken/${MY_PN}/releases/download/v${PV}/${MY_PN}.jar"
RESTRICT="mirror strip"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="
>=virtual/jdk-1.7:*
"
S="${DISTDIR}"
src_unpack() {
:
}
src_install() {
insinto "/opt/${MY_PN}"
doins "${MY_PN}.jar"
make_wrapper "${PN}" "java -jar /opt/${MY_PN}/${MY_PN}.jar"
make_desktop_entry "${PN}" "${MY_PN}" "${PN}" "Game;StrategyGame;"
}
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}