1 |
commit: 02cab29b975182c755dc885ab8bf7001b0d84a8f |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 02:55:58 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 05:14:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02cab29b |
7 |
|
8 |
games-rpg/pcgen: add 6.06.01 |
9 |
|
10 |
Technically 6.08.00_rc8 is the current stable per upstream website |
11 |
(despite _rc8 as it appears final with development shifted to 6.10), |
12 |
but requires masked virtual/jre-11. Adding previous stable meanwhile. |
13 |
|
14 |
Could use more work and building from source, but that needs Gradle. |
15 |
Moved files to /opt from /usr/share due to being prebuilt. |
16 |
|
17 |
Closes: https://bugs.gentoo.org/611908 |
18 |
Closes: https://bugs.gentoo.org/672972 |
19 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
20 |
|
21 |
games-rpg/pcgen/Manifest | 1 + |
22 |
games-rpg/pcgen/pcgen-6.06.01.ebuild | 37 ++++++++++++++++++++++++++++++++++++ |
23 |
2 files changed, 38 insertions(+) |
24 |
|
25 |
diff --git a/games-rpg/pcgen/Manifest b/games-rpg/pcgen/Manifest |
26 |
index 38926b7852b..6902226246a 100644 |
27 |
--- a/games-rpg/pcgen/Manifest |
28 |
+++ b/games-rpg/pcgen/Manifest |
29 |
@@ -1 +1,2 @@ |
30 |
DIST pcgen-6.04.01-full.zip 68679438 BLAKE2B e9afa6b9937804988425d8d18cfed7728197ecc303f586ed899491e4d500eb0e6ddc0ae92aef1d4bfef7ff3fb987cca34af95246c83ebe71e089e3e5e91aa9dd SHA512 37e76e9bca3defe803459f898d3c51015cb4c4f69905c4179b78b1b26977b7d720ef413b3f5b2ef4252aa98f732075b9567c4f4822c61d169a5a0a6e2c78c0d4 |
31 |
+DIST pcgen-6.06.01-full.zip 73423642 BLAKE2B 54dbebb3e73188435ce6ed6d38387e194fff156f39d9238b55f0e7d990f785eb79f562a41c60a4861f637514615802ef5103f886e0f96624f7f53b197adcd5a3 SHA512 9af94aa434229ce00f08385759b4efc22f16ad32be81be4177c44eec94f1bedcec0742b494bbed3c95c1bcf9b2c51e2649330ee0a54f7ca4b0042966099851eb |
32 |
|
33 |
diff --git a/games-rpg/pcgen/pcgen-6.06.01.ebuild b/games-rpg/pcgen/pcgen-6.06.01.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..6bf03db1d13 |
36 |
--- /dev/null |
37 |
+++ b/games-rpg/pcgen/pcgen-6.06.01.ebuild |
38 |
@@ -0,0 +1,37 @@ |
39 |
+# Copyright 1999-2021 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=8 |
43 |
+ |
44 |
+inherit desktop edos2unix |
45 |
+ |
46 |
+DESCRIPTION="D&D character generator" |
47 |
+HOMEPAGE="http://pcgen.org/" |
48 |
+SRC_URI="https://github.com/PCGen/pcgen/releases/download/${PV}/${P}-full.zip" |
49 |
+S="${WORKDIR}/${PN}" |
50 |
+ |
51 |
+LICENSE="LGPL-2.1 OGL-1.0a" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+RDEPEND=">=virtual/jre-1.8:*" |
56 |
+BDEPEND="app-arch/unzip" |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ |
61 |
+ edos2unix ${PN}.sh |
62 |
+ sed "/^cd /c\\cd \"${EPREFIX}/opt/${PN}\" || exit 1" ${PN}.sh > "${T}"/${PN} || die |
63 |
+ |
64 |
+ rm -r LICENSE docs/{doc_tools,pngcrush_logs.txt} ${PN}.{exe,sh} || die |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ dobin "${T}"/${PN} |
69 |
+ |
70 |
+ insinto /opt/${PN} |
71 |
+ doins -r . |
72 |
+ |
73 |
+ newicon system/sponsors/pcgen/pcgen_128x128.png ${PN}.png |
74 |
+ make_desktop_entry ${PN} PCGen |
75 |
+} |