diff --git a/games-rpg/pcgen/pcgen-6.09.05.ebuild b/games-rpg/pcgen/pcgen-6.09.05.ebuild index 12733ecb25b60dd1a73edc45eb918a48c370398e..1623f230178486498aad7addc1440d217f8e0d35 100644 --- a/games-rpg/pcgen/pcgen-6.09.05.ebuild +++ b/games-rpg/pcgen/pcgen-6.09.05.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit desktop +inherit desktop wrapper # PCGen naming conventions are different than Gentoo's MY_PV=${PV/_rc/RC} @@ -21,15 +21,12 @@ KEYWORDS="~amd64" RDEPEND=">=virtual/jre-11:*" BDEPEND="app-arch/unzip" +dir=/opt/${PN} QA_PREBUILT="opt/${PN}/*" src_prepare() { default - echo "#!/bin/bash" >> "${T}"/${PN} - echo "cd /opt/${PN}" >> "${T}"/${PN} - echo "./${PN}" >> "${T}"/${PN} - # fix Anti-Aliasing sed -i "s/DEFAULT_JVM_OPTS='/DEFAULT_JVM_OPTS='-Dawt.useSystemAAFontSettings=on /g" ${PN} || die @@ -37,17 +34,17 @@ src_prepare() { } src_install() { - dobin "${T}"/${PN} - insinto /opt/${PN} + insinto ${dir} doins -r . - exeinto /opt/${PN} + exeinto ${dir} doexe ${PN} - exeinto /opt/${PN}/bin + exeinto ${dir}/bin doexe bin/* newicon system/icons/pcgen_128x128.png ${PN}.png + make_wrapper ${PN} ./${PN} "${dir}" "${dir}" make_desktop_entry ${PN} PCGen }