commit: 6b41f8bd0850151f8802bd2a030d31f0ca66be8d Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> AuthorDate: Thu Jan 25 18:56:13 2018 +0000 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> CommitDate: Thu Jan 25 18:56:13 2018 +0000 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=6b41f8bd
dev-util/itstool: version bump Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-util/itstool/itstool-2.0.4.ebuild | 35 ++++++++++++++++++++++++++++++ dev-util/itstool/itstool-9999.ebuild | 40 +++++++++++++++++------------------ 2 files changed, 54 insertions(+), 21 deletions(-) diff --git a/dev-util/itstool/itstool-2.0.4.ebuild b/dev-util/itstool/itstool-2.0.4.ebuild new file mode 100644 index 00000000..b0bb4cf4 --- /dev/null +++ b/dev-util/itstool/itstool-2.0.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +inherit autotools python-single-r1 + +DESCRIPTION="Translation tool for XML documents that uses gettext files and ITS rules" +HOMEPAGE="http://itstool.org/" +SRC_URI="https://github.com/itstool/itstool/archive/${PV}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~arm-linux ~x86-linux" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-libs/libxml2[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +src_prepare() { + eapply_user + eautoreconf +} + +src_test() { + suite="${S}"/tests/run_tests.py + PYTHONPATH="." "${PYTHON}" ${suite} || die "test suite '${suite}' failed" + unset suite +} diff --git a/dev-util/itstool/itstool-9999.ebuild b/dev-util/itstool/itstool-9999.ebuild index e3ccb260..8e25b7ab 100644 --- a/dev-util/itstool/itstool-9999.ebuild +++ b/dev-util/itstool/itstool-9999.ebuild @@ -1,50 +1,48 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Id$ -EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7} ) +EAPI="6" + +PYTHON_COMPAT=( python2_7 ) PYTHON_REQ_USE="xml" -inherit python-single-r1 +inherit autotools python-single-r1 + if [[ ${PV} = 9999 ]]; then - inherit autotools git-2 + inherit git-r3 fi DESCRIPTION="Translation tool for XML documents that uses gettext files and ITS rules" HOMEPAGE="http://itstool.org/" if [[ ${PV} = 9999 ]]; then - EGIT_REPO_URI="git://gitorious.org/itstool/itstool.git" + EGIT_REPO_URI="https://github.com/itstool/itstool.git" else - SRC_URI="http://files.itstool.org/itstool/${P}.tar.bz2" + SRC_URI="https://github.com/itstool/itstool/archive/${PV}.tar.gz" fi -# files in /usr/share/itstool/its are HPND/as-is || GPL-3 -LICENSE="GPL-3+ || ( HPND GPL-3+ )" +LICENSE="GPL-3+" SLOT="0" + if [[ ${PV} = 9999 ]]; then KEYWORDS="" else KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~arm-linux ~x86-linux" fi + IUSE="" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS} - dev-libs/libxml2[python,${PYTHON_USEDEP}]" + dev-libs/libxml2[python,${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" -pkg_setup() { - DOCS=(ChangeLog NEWS) # AUTHORS, README are empty - python-single-r1_pkg_setup -} - src_prepare() { - python_fix_shebang . - [[ ${PV} = 9999 ]] && eautoreconf + eapply_user + eautoreconf } -src_compile() { - default - [[ ${PV} = 9999 ]] && emake ChangeLog +src_test() { + suite="${S}"/tests/run_tests.py + PYTHONPATH="." "${PYTHON}" ${suite} || die "test suite '${suite}' failed" + unset suite }