You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
71 lines
1.3 KiB
3 months ago
|
# Copyright 1999-2024 Gentoo Authors
|
||
2 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 months ago
|
EAPI=8
|
||
2 years ago
|
|
||
5 months ago
|
PYTHON_COMPAT=( python3_{10..11} )
|
||
2 years ago
|
PYTHON_REQ_USE="xml(+)"
|
||
|
|
||
|
inherit mate python-r1
|
||
|
|
||
|
DESCRIPTION="Mozo menu editor for MATE"
|
||
|
LICENSE="GPL-2+ GPL-3+ LGPL-2+ LGPL-2.1+"
|
||
|
|
||
5 months ago
|
MINOR=$(($(ver_cut 2) % 2))
|
||
|
if [[ ${MINOR} -eq 0 ]]; then
|
||
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
|
||
2 months ago
|
else
|
||
|
KEYWORDS=""
|
||
5 months ago
|
fi
|
||
|
|
||
2 years ago
|
SLOT="0"
|
||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
|
|
||
|
COMMON_DEPEND="${PYTHON_DEPS}
|
||
|
>=dev-python/pygobject-3:3[${PYTHON_USEDEP}]
|
||
|
>=mate-base/mate-menus-1.21.0[introspection]
|
||
|
x11-libs/gdk-pixbuf:2[introspection]
|
||
5 months ago
|
>=x11-libs/gtk+-3.12:3[introspection]
|
||
2 years ago
|
"
|
||
|
|
||
|
RDEPEND="${COMMON_DEPEND}
|
||
|
virtual/libintl
|
||
|
"
|
||
|
DEPEND="${COMMON_DEPEND}
|
||
|
>=sys-devel/gettext-0.19.8
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
src_prepare() {
|
||
|
mate_src_prepare
|
||
|
python_copy_sources
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
python_foreach_impl run_in_build_dir mate_src_configure \
|
||
|
--disable-icon-update
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
python_foreach_impl run_in_build_dir default
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
python_foreach_impl run_in_build_dir emake check
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
installing() {
|
||
|
mate_src_install
|
||
|
|
||
|
# Massage shebang to make python_doscript happy
|
||
|
sed -e 's:#! '"${PYTHON}:#!/usr/bin/python:" \
|
||
|
-i mozo || die
|
||
|
|
||
|
python_doscript mozo
|
||
|
python_optimize
|
||
|
}
|
||
|
|
||
|
python_foreach_impl run_in_build_dir installing
|
||
|
}
|