diff --git a/app-text/rpl/Manifest b/app-text/rpl/Manifest index c8819f6c42057..6f8cbe3a1a072 100644 --- a/app-text/rpl/Manifest +++ b/app-text/rpl/Manifest @@ -1 +1,2 @@ DIST rpl-1.15.5.gh.tar.gz 24401 BLAKE2B 91f0914ce80167305f9b403f691e58cd3f219d9e22f0ae7587b6dc5c60809e03bf38bd3878696916026b7cd0e597b67a6fcbb97d55005fd113e80aa7296f0e95 SHA512 1669a2de5b09090a3058421e2f9560f9b155151ec6d91f9d4f3b43070082d2541981de7754f047771c515e6d1450998c55e3b018a589a5ae4bd48e28464bb858 +DIST rpl-1.18.gh.tar.gz 25750 BLAKE2B f090049d51e3fa4da1d0c3827a750b861fbd730b66d2e5336193332b119ac58bc26d64f429090443b6f45099fe078e0499f0aaf9e5488a543b5792de8f2d33a9 SHA512 08b68c0894085451a9bce169e972a67cddbbbc18565f514fc53a4ae1dbcc13818f71b8a6402e305c47298b1abc75a2ae39ac1acf175c29ee86fe6f6d2e6f474c diff --git a/app-text/rpl/rpl-1.18.ebuild b/app-text/rpl/rpl-1.18.ebuild new file mode 100644 index 0000000000000..98f08ad807bd3 --- /dev/null +++ b/app-text/rpl/rpl-1.18.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +inherit distutils-r1 + +DESCRIPTION="Intelligent recursive search/replace utility" +HOMEPAGE="https://rpl.sourceforge.net/ https://github.com/rrthomas/rpl" +SRC_URI=" + https://github.com/rrthomas/rpl/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]" +BDEPEND=" + ${RDEPEND} + dev-python/argparse-manpage[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + dev-python/chainstream[${PYTHON_USEDEP}] + test? ( dev-python/pytest-datafiles[${PYTHON_USEDEP}] ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i "s/VERSION = importlib.metadata.version(\"rpl\")/VERSION = '${PV}'/" rpl/__init__.py || die + distutils-r1_src_prepare +}