mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-27 09:11:00 +02:00
genmenu: fix up the ebuild and snapshot the working version
This commit is contained in:
parent
1d7c47bfdf
commit
0c63ea3039
4 changed files with 52 additions and 3 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST genmenu-0.0_p20200512.tar.gz 374980 BLAKE2B 32bc17beb0773d70eea7511d6e31959d36140435f69b76804ed4603f6bc97cfe31745e22f95aad60836c49d7aab926f5f225ed4d4251b95ed8df85d923145341 SHA512 5fecdf417a993ac44a16f10ab1b99a769b2546bd170320a9dea8761f6b8750863236813d964560e75bf652fb3e4ca99ae7de977e2386348d66ebffbb833d0e8e
|
||||
DIST genmenu-0.0_p20200821.tar.gz 374965 BLAKE2B 57ef1125279c4c4ee098416ae937a5fd3c0087c0d0948ea43fce8159712f3e8698244f0f0eb4c700a977529ce732480ca95a4732191beb2c870a87cd0cf902a1 SHA512 5f2c5e9f08af84ec38712ec3ac2b71b43fb8e3cc5ef911df1db6d912ae57dc40094e4eb185e99b819b250005882888ceae194af5a564a479bbad0c77377014b2
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
EAPI=7
|
||||
|
||||
|
||||
DESCRIPTION="a tool for generating freedesktop-compliant menus"
|
||||
HOMEPAGE="https://github.com/pentoo/genmenu"
|
||||
|
||||
|
|
|
|||
46
app-admin/genmenu/genmenu-0.0_p20200821.ebuild
Normal file
46
app-admin/genmenu/genmenu-0.0_p20200821.ebuild
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="a tool for generating freedesktop-compliant menus"
|
||||
HOMEPAGE="https://github.com/pentoo/genmenu"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
if [ "${PV}" = "9999" ];then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/pentoo/genmenu.git"
|
||||
else
|
||||
KEYWORDS="amd64 x86"
|
||||
COMMIT="54baba1a27b091035cffb232f297d32fe129b0d1"
|
||||
SRC_URI="https://github.com/pentoo/genmenu/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
fi
|
||||
|
||||
#gnome-base/gnome-menus"
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep dev-python/lxml[${PYTHON_USEDEP}])"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
insinto /usr/
|
||||
doins -r "${S}"/src/share
|
||||
chown -R root:root "${ED}"
|
||||
dobin src/bin/genmenu.py src/bin/launch
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo
|
||||
einfo "The genmenu has been updated."
|
||||
einfo "You should run the following command to regenerate the main Pentoo menu for a local user:"
|
||||
einfo "E17: genmenu.py -e"
|
||||
einfo "Xfce: genmenu.py -x"
|
||||
einfo "KDE: genmenu.py -k"
|
||||
einfo
|
||||
einfo "See -h for more options"
|
||||
}
|
||||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="a tool for generating freedesktop-compliant menus"
|
||||
HOMEPAGE="https://github.com/pentoo/genmenu"
|
||||
|
|
@ -15,13 +17,14 @@ if [ "${PV}" = "9999" ];then
|
|||
EGIT_REPO_URI="https://github.com/pentoo/genmenu.git"
|
||||
else
|
||||
KEYWORDS="amd64 x86"
|
||||
COMMIT="fd41747930ed56c4d00b09d1490b665d618ff52d"
|
||||
COMMIT="54baba1a27b091035cffb232f297d32fe129b0d1"
|
||||
SRC_URI="https://github.com/pentoo/genmenu/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
fi
|
||||
|
||||
#gnome-base/gnome-menus"
|
||||
DEPEND=">=dev-python/lxml-1.3.6"
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep dev-python/lxml[${PYTHON_USEDEP}])"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue