summaryrefslogtreecommitdiff
path: root/games-board
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-03 12:28:20 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-03 12:28:20 +0100
commit3f559ef486314f9b3b48d48eb303d6be68463af9 (patch)
tree3b70212f31ce4d000911c001ce13363d0909dfd1 /games-board
parent20b6ab983b55b022c6e4af317154089e18ad41cb (diff)
gentoo auto-resync : 03:09:2024 - 12:28:20
Diffstat (limited to 'games-board')
-rw-r--r--games-board/Manifest.gzbin10040 -> 10038 bytes
-rw-r--r--games-board/megamek/Manifest2
-rw-r--r--games-board/megamek/files/megamek-0.34.10-source8.patch22
-rw-r--r--games-board/megamek/megamek-0.34.10-r3.ebuild60
4 files changed, 84 insertions, 0 deletions
diff --git a/games-board/Manifest.gz b/games-board/Manifest.gz
index 47fa611084a6..650562c22b20 100644
--- a/games-board/Manifest.gz
+++ b/games-board/Manifest.gz
Binary files differ
diff --git a/games-board/megamek/Manifest b/games-board/megamek/Manifest
index 223c105d2203..a7acf7ae71ff 100644
--- a/games-board/megamek/Manifest
+++ b/games-board/megamek/Manifest
@@ -1,4 +1,6 @@
+AUX megamek-0.34.10-source8.patch 1261 BLAKE2B 7b41f35e98301044948f0d4787e4ac229862c358e3151a9135d3c45b3287ed05f2cad385707c6f429eb7020164296de363b6f9e0db694babc59565025c9c0463 SHA512 b4163badca10c2c80f44f475e046261c1d9e1d6e0918a46ef7c619ecb484eb1abd68f8441a4b780c210051ae161d9ca6cdd2faf2015ce5b8969edd45434a47fa
DIST MegaMek-v0.34.10.zip 16677286 BLAKE2B 73c4ee9e38b4c50221c40c5d0cba1c13de00e586bf2cb9432c356f5c21045c26cfa64705b303c7213f29deda369a97ea5fba397c995c138731a66152c062c5b5 SHA512 943f6ed4f4d57197092a7aa09637f60827f23181a7b8b0991907fcc62109b471ea2ce53816a79dfcad9d8da65c9514be3190e924d9bf2b17aacf84fc1fa6e037
DIST megamek.png 9264 BLAKE2B cdff3e992af93cfc8f31be0c4d959ff5598eb3f7be58abfae4043a3e1f324d1985fc0621540f14ff7a2e2b4bb5e22672a940494a8e7c8d3339ad8f49c4c60979 SHA512 12a19fcb4ece9ee0fc38b3af10c37b7d362df9a41403d86dd1cfd8fb40a7b06784c71b5b160177b72d7aba048b78c4482f5417406d4add7feb47d13078bc79cf
EBUILD megamek-0.34.10-r2.ebuild 1164 BLAKE2B 624b8cc33e5c1c8cf77dad7e4cbe72af95ed1ae4bd51299169aa0f558fc5a7409aacd8f3263e9989dd5d979e6b4ac2fca51d9205236e5cf4bdbf89ed559e865f SHA512 92cb9849742da1e2fdad1beb9878f23efa15ac9c0793aa6986e65e1a6a25c9ae3b68767a5b9c123b130b76a43ec669b4cd531d71078a916f3156b8ba5a123987
+EBUILD megamek-0.34.10-r3.ebuild 1425 BLAKE2B 8d6bf1d79da653f155cc50743a68ac662b920d683a7bcf29412514fca5ff4e76690b268d89e5402dbce9eb07e68da01810be47ab36365dcc6523643b7087cfd2 SHA512 b04a1aa6015763c14450caf0c8af4df325a728001d386009c4dabcecb6429a4f425b6f3b8cf4f02d277e3cbf12658fbee74a8f047a9797449f62235aab3f1d27
MISC metadata.xml 386 BLAKE2B f90209655383403f6d148687482428c8b798d01d061e15b31db37b7699a44465274ef276fee72f5c5321c3cbcff176b7446995a7a6c8b93a286e0b186c5221de SHA512 02c338826dfd4a6338dbfb2e3b59e1158308fc3255271ab1124506585466110fc7c06f8aababcc1d83e66b4ca50c0fa8a89257ce062ea1683ae01331466d8e7f
diff --git a/games-board/megamek/files/megamek-0.34.10-source8.patch b/games-board/megamek/files/megamek-0.34.10-source8.patch
new file mode 100644
index 000000000000..27d4596d8d92
--- /dev/null
+++ b/games-board/megamek/files/megamek-0.34.10-source8.patch
@@ -0,0 +1,22 @@
+diff --git a/build.xml b/build.xml
+index 9d3a7d6..a6732b6 100644
+--- a/build.xml
++++ b/build.xml
+@@ -60,7 +60,7 @@
+
+ <target name="compile" depends="init" description="Compile java sources into class files">
+ <!-- compile -->
+- <javac debug="true" debuglevel="lines,source" target="1.5" source="1.5" destdir="${builddir}" srcdir="${srcdir}" memoryInitialSize="512m" memoryMaximumSize="512m" fork="true">
++ <javac debug="true" debuglevel="lines,source" destdir="${builddir}" srcdir="${srcdir}" memoryInitialSize="512m" memoryMaximumSize="512m" fork="true">
+ <classpath>
+ <pathelement location="${basedir}" />
+ <fileset dir="${libdir}" includes="*.jar" />
+@@ -208,7 +208,7 @@
+
+ <!-- compile -->
+ <echo message="building MegaMek from svn sources" />
+- <javac debug="true" debuglevel="lines,source" target="1.5" source="1.5" destdir="${svnbuilddir}" srcdir="${svndir}/${srcdir}" memoryInitialSize="512m" memoryMaximumSize="512m" fork="true">
++ <javac debug="true" debuglevel="lines,source" destdir="${svnbuilddir}" srcdir="${svndir}/${srcdir}" memoryInitialSize="512m" memoryMaximumSize="512m" fork="true">
+ <classpath>
+ <pathelement location="${svndir}" />
+ <fileset dir="${svndir}/${libdir}" includes="*.jar" />
diff --git a/games-board/megamek/megamek-0.34.10-r3.ebuild b/games-board/megamek/megamek-0.34.10-r3.ebuild
new file mode 100644
index 000000000000..1de1e9c1f80e
--- /dev/null
+++ b/games-board/megamek/megamek-0.34.10-r3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop edos2unix java-pkg-2
+
+DESCRIPTION="Unofficial online version of the Classic BattleTech board game"
+HOMEPAGE="https://megamek.org/"
+SRC_URI="
+ https://downloads.sourceforge.net/project/megamek/Archived%20Stable/MegaMek%20v${PV}/MegaMek-v${PV}.zip
+ https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
+S="${WORKDIR}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+DEPEND="
+ >=dev-java/ant-1.10.14-r3
+ >=virtual/jdk-1.8:*
+"
+RDEPEND=">=virtual/jre-1.8:*"
+
+PATCHES=( "${FILESDIR}/megamek-0.34.10-source8.patch" )
+
+src_prepare() {
+ default #780585
+ java-pkg-2_src_prepare
+
+ rm MegaMek.jar || die
+
+ sed -e "s|XmX|Xmx|" \
+ -e "s|/usr/share/java|${EPREFIX}/usr/share/${PN}|" \
+ -e "s|/usr/share/MegaMek|${EPREFIX}/usr/share/${PN}|" \
+ startup.sh > ${PN} || die
+ edos2unix ${PN}
+
+ # workaround encoding issues posing problems with >=jdk-1.8
+ find . -name '*.java' -exec sed -i 's/\xf6/\xc3\xb6/' {} + || die
+}
+
+src_compile() {
+ eant \
+ -Dant.build.javac.source="$(java-pkg_get-source)" \
+ -Dant.build.javac.target="$(java-pkg_get-target)"
+}
+
+src_install() {
+ dobin ${PN}
+
+ insinto /usr/share/${PN}
+ doins -r MegaMek.jar data docs l10n lib mmconf readme* # readme used at runtime
+
+ dodoc HACKING readme.txt
+
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} MegaMek
+}