From d43cc556ef1c673f09d5545940e2556552768669 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sat, 21 Apr 2018 20:48:56 +0200 Subject: dev-util/replacer: Version bump --- dev-util/replacer/Manifest | 2 +- dev-util/replacer/replacer-2.2.ebuild | 32 -------------------- dev-util/replacer/replacer-3.0.ebuild | 56 +++++++++++++++++++++++++++++++++++ metadata/pkg_desc_index | 2 +- 4 files changed, 58 insertions(+), 34 deletions(-) delete mode 100644 dev-util/replacer/replacer-2.2.ebuild create mode 100644 dev-util/replacer/replacer-3.0.ebuild diff --git a/dev-util/replacer/Manifest b/dev-util/replacer/Manifest index 66adc9c3..40e0488d 100644 --- a/dev-util/replacer/Manifest +++ b/dev-util/replacer/Manifest @@ -1 +1 @@ -DIST replacer-2.2.tar.gz 10751 SHA512 b2ec95384d963ec7151edb85c30b04156bf2aa57f54ac88a49101e4700eadb08dbc9275a3b08f5046f240cab576412d51ee9f7aeeb6084f7cb07a8c82be099d9 +DIST replacer-3.0.tar.gz 16306 SHA512 4c52d02219dd6e7339ddb5a3cf6da850a0cfc74112fe670194778809d170a8911e4c7466345f8a1f0e11b36a40754f0bc76f2bb4d86a96b1ab74730cc1653929 diff --git a/dev-util/replacer/replacer-2.2.ebuild b/dev-util/replacer/replacer-2.2.ebuild deleted file mode 100644 index 6d6e7aa9..00000000 --- a/dev-util/replacer/replacer-2.2.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -RESTRICT="mirror" -PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} ) -inherit python-any-r1 - -DESCRIPTION="Search and replace python regular expressions within many files interactively" -HOMEPAGE="https://github.com/vaeth/replacer/" -SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="${PYTHON_DEPS}" - -src_prepare() { - use prefix || sed -i \ - -e '1s"^#!/usr/bin/env python$"#!'"${EPREFIX}/usr/bin/python"'"' \ - -- bin/* || die - default -} - -src_install() { - dobin bin/* - dodoc README.md - insinto /usr/share/zsh/site-functions - doins zsh/_* -} diff --git a/dev-util/replacer/replacer-3.0.ebuild b/dev-util/replacer/replacer-3.0.ebuild new file mode 100644 index 00000000..a35d15aa --- /dev/null +++ b/dev-util/replacer/replacer-3.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +RESTRICT="mirror" +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6}} ) +inherit python-any-r1 + +DESCRIPTION="Search and replace python regular expressions within many files interactively" +HOMEPAGE="https://github.com/vaeth/replacer/" +SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" +PLOCALES="de" +for i in ${PLOCALES}; do + IUSE+=" l10n_${i}" +done + +RDEPEND="${PYTHON_DEPS} + nls? ( virtual/libintl )" +DEPEND="nls? ( sys-devel/gettext )" + +src_prepare() { + local r + use prefix || sed -i \ + -e '1s"^#!/usr/bin/env python$"#!'"${EPREFIX}/usr/bin/python"'"' \ + bin/* || die + if use nls; then + localepath=${EPREFIX}/usr/share/locale + r="'${localepath}'" + else + r='None' + fi + sed -i \ + -e 's"^\(localedir[[:space:]]*=[[:space:]]*\).*"\1'"${r}\"" \ + bin/${PN} || die + default +} + +src_install() { + local i + if use nls; then + export LINGUAS= + for i in ${PLOCALES}; do + use l10n_${i} && LINGUAS+=${LINGUAS:+ }${i} + done + po/install-mo "${D}${localepath}" + fi + dobin bin/* + dodoc README.md + insinto /usr/share/zsh/site-functions + doins zsh/_* +} diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index index 9bba5c30..ee7f8e63 100644 --- a/metadata/pkg_desc_index +++ b/metadata/pkg_desc_index @@ -56,7 +56,7 @@ dev-util/comp 4.3: compare files or directories, including metadata dev-util/diffhelp 1.11: A frontend, beautifier, and path-fixer for diff -u dev-util/mv_perl 3.16: A collection of perl scripts (replacement in files, syncing dirs etc) dev-util/pyrep 1.5: Search and/or replace regular expressions within many files interactively -dev-util/replacer 2.2: Search and replace python regular expressions within many files interactively +dev-util/replacer 3.0: Search and replace python regular expressions within many files interactively dev-vcs/git-wrappers-mv 1.17: Some personal wrappers for the most important git commands games-action/trackballs 1.1.4-r1: simple game similar to the classical game Marble Madness games-board/chessproblem 1.8 2.9: Find solutions of chess problems (mate, selfmate, and helpmate) with cooks -- cgit v1.2.3-65-gdbad