commit: dee57f24e0e84a986a09e04835eeadfc8a8da625 Author: Ana Alexandru-Gabriel <ana.alexandru.gabriel <AT> proton <DOT> me> AuthorDate: Tue Jan 21 06:32:23 2025 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Tue Mar 4 17:39:12 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee57f24
x11-misc/dex: 0.10.1 added Signed-off-by: Ana Alexandru-Gabriel <ana.alexandru.gabriel <AT> proton.me> Closes: https://github.com/gentoo/gentoo/pull/40245 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> x11-misc/dex/Manifest | 1 + x11-misc/dex/dex-0.10.1.ebuild | 48 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/x11-misc/dex/Manifest b/x11-misc/dex/Manifest index eb6754035496..3c0cfa72277a 100644 --- a/x11-misc/dex/Manifest +++ b/x11-misc/dex/Manifest @@ -1 +1,2 @@ +DIST dex-0.10.1.tar.gz 13224 BLAKE2B 97d39251d67f89880b7c6252ec1da77f9188b432bce1e6f7e66205363cd3aa876b1a192f4e2e7193e41a0ae7835e6da499c6e64b7f9bae0359028f539d11753b SHA512 4832e60416f07b90d4f4d03d6493322ccd44a73270edf289d80136587859d137cf39db12fc5cf38d3bdfa46aae3a4d1353c7776e702240b560a287190bdc2b57 DIST dex-0.9.0.tar.gz 10056 BLAKE2B 7abc01ccc6938e926840e4448eb6436db77703c1f8e1fef334d97196803a0b59af0f05fc507d1ac4337367120f7d9d9a211aecec6ac3644424edee3599067a89 SHA512 d68f5482cb0948f27a724437ddfc6de9a0f502bfd0d5c60c76fb85dda3c30e4c432013e530f6a91138c9ac9ff36b3824cd5e382e9d29bb9fb2ec2b9de4133094 diff --git a/x11-misc/dex/dex-0.10.1.ebuild b/x11-misc/dex/dex-0.10.1.ebuild new file mode 100644 index 000000000000..bf7d77c4a784 --- /dev/null +++ b/x11-misc/dex/dex-0.10.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) + +inherit python-r1 + +DESCRIPTION="DesktopEntry eXecution - tool to manage and launch autostart entries" +HOMEPAGE="http://e-jc.de/" +SRC_URI="https://github.com/jceb/dex/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="-amd64 -x86 -amd64-linux -x86-linux" +IUSE="doc" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +# https://github.com/jceb/dex/issues/37 + +RESTRICT="test" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( dev-python/sphinx )" + +src_compile() { + # Makefile is for creating man page only + use doc && emake +} + +src_test() { + dex_test() { + ./dex --test 2>&1 | tee test.log || die + if grep -q "Failed example" test.log ; then + die "Tests failed with ${EPYTHON}" + fi + } + + python_foreach_impl dex_test +} + +src_install() { + dobin dex + python_replicate_script "${ED}/usr/bin/dex" + dodoc CHANGELOG.md README.rst + use doc && doman dex.1 +}
