diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-04-11 20:00:05 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-04-11 20:55:55 -0400 |
commit | 9f350fc2c78b732254ba413b6239b66b87470cee (patch) | |
tree | e1168d8968479afcf04fd9311b11ab07d7118e36 /x11-terms/guake | |
parent | dev-python/jupyter: Stabilize 1.0.0-r4 x86, #835228 (diff) | |
download | gentoo-9f350fc2c78b732254ba413b6239b66b87470cee.tar.gz gentoo-9f350fc2c78b732254ba413b6239b66b87470cee.tar.bz2 gentoo-9f350fc2c78b732254ba413b6239b66b87470cee.zip |
x11-terms/guake: add 3.8.5
One more bump from me to remove pbr, also switch to PEP517 mode and use
plocale (don't expect more bumps from me, pick it up if you use it).
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-terms/guake')
-rw-r--r-- | x11-terms/guake/Manifest | 1 | ||||
-rw-r--r-- | x11-terms/guake/guake-3.8.5.ebuild | 86 |
2 files changed, 87 insertions, 0 deletions
diff --git a/x11-terms/guake/Manifest b/x11-terms/guake/Manifest index dfad83dab875..bd16e1c94b80 100644 --- a/x11-terms/guake/Manifest +++ b/x11-terms/guake/Manifest @@ -1 +1,2 @@ DIST guake-3.8.1.tar.gz 1127132 BLAKE2B e91f74bf119c76ad214b5c29bceb4fe18f19c97f14dbb2973c6118bbb9affc06e919c56e0cd24f96b710d9c2468006289fcf1c13a2050e93cc01972f0c9ebe99 SHA512 5fbf4cc37bc501e4533bd27c1c7e1f783e570457867289702ab2122fcb6a55708df151e4307c4cf84a242ac1d2874ef5e8eb9411318e24eca140102a42b426f4 +DIST guake-3.8.5.tar.gz 1112897 BLAKE2B 221e6a388c3a5904cd20a762e6a669e30b59a742a550e5c2a411534c3b0730c7622f42c67fdc72785fac199c432a297beb9fb53be2b5e2b7545a5b03c2b8b545 SHA512 40605fadb3a0149ea488a7e93f1b7e4f5250f62fe058292f2c02f03f837f22e13171b28c4a9d1a14c2e4897c0066a683cae547e03862397310bc650d149181fb diff --git a/x11-terms/guake/guake-3.8.5.ebuild b/x11-terms/guake/guake-3.8.5.ebuild new file mode 100644 index 000000000000..aca9e52d877b --- /dev/null +++ b/x11-terms/guake/guake-3.8.5.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 gnome2-utils plocale virtualx xdg + +PLOCALES="ca cs de el es fa fi fr gl hr hu id it ja ko nb nl pa pl pt_BR ru sv tr uk zh_CN zh_TW" + +DESCRIPTION="Drop-down terminal for GNOME" +HOMEPAGE="http://guake-project.org/" +SRC_URI="https://github.com/Guake/guake/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="utempter" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}]') + dev-libs/keybinder:3[introspection] + x11-libs/libnotify[introspection] + x11-libs/libwnck:3[introspection] + x11-libs/vte:2.91[introspection] + utempter? ( sys-libs/libutempter )" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/pyfakefs[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + )') + dev-libs/glib:2 + gnome-base/gsettings-desktop-schemas + sys-devel/gettext" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} # needed with github's tarball + + local po=($(plocale_get_locales disabled)) + po=("${po[@]/%/.po}") + (( ! ${#po[@]} )) || rm "${po[@]/#/po/}" || die + + emake PREFIX="${EPREFIX}"/usr prepare-install # paths.py.in -> paths.py +} + +python_test() { + # - uses /usr/bin/bash if SHELL is not exported + # - pytest-xvfb fails with Terminated, virtx alone works + SHELL=${SHELL} virtx epytest -p no:xvfb +} + +python_install() { + # use right schema/data dirs, done here so tests don't use the system's + sed -e "/^SCHEMA_DIR/s|=.*|= \"${EPREFIX}/usr/share/glib-2.0/schemas\"|" \ + -e "/def get_default_data_dir/{n;s|=.*|= \"${EPREFIX}/usr/share/guake\"|}" \ + -i "${BUILD_DIR}/install$(python_get_sitedir)"/guake/paths.py || die + + distutils-r1_python_install +} + +python_install_all() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install-{locale,schemas} + + dodoc NEWS.rst README.rst +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} |