games-engines/renpy: use desktop-utils.exlib

This commit is contained in:
Julian Ospald 2016-05-26 14:27:49 +02:00
parent fe8c380dc6
commit f7a3bfe0cc
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 3 additions and 12 deletions

View File

@ -3,7 +3,7 @@
require alternatives
require setup-py [ import=distutils multibuild=false blacklist=3 ]
require gtk-icon-cache
require desktop-utils gtk-icon-cache
export_exlib_phases src_prepare src_install
@ -83,17 +83,8 @@ renpy_src_install() {
exec python2 ${renpydir}/renpy.py "\$@"
EOF
insinto /usr/share/applications
hereins ${PN}-${SLOT}.desktop <<EOF
[Desktop Entry]
Name=Ren'Py (${SLOT})
Type=Application
Comment=${SUMMARY}
Exec=${PN}-${SLOT}
TryExec=${PN}-${SLOT}
Icon=${PN}-${SLOT}
Categories=Game;
EOF
install_desktop_entry "Name=Ren'Py (${SLOT})" \
"Exec=${PN}-${SLOT}" "Icon=${PN}-${SLOT}"
edo cd "${WORK}"
SETUP_PY_SRC_INSTALL_PARAMS=( --install-lib="${renpydir}" )