diff options
author | Michael Vetter <jubalh@iodoru.org> | 2018-04-12 12:38:15 +0000 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-04-12 21:56:01 +0200 |
commit | 00489fafef1b797a73bd5b71ce66df2c95dd4ca1 (patch) | |
tree | 8bdf219bd6c888d1a1e1236bb1dbcd458a298749 /dev-util | |
parent | dev-tcltk/tcllib: add ~arm, bug #651582 (diff) | |
download | gentoo-00489fafef1b797a73bd5b71ce66df2c95dd4ca1.tar.gz gentoo-00489fafef1b797a73bd5b71ce66df2c95dd4ca1.tar.bz2 gentoo-00489fafef1b797a73bd5b71ce66df2c95dd4ca1.zip |
dev-util/spec-cleaner: Bump to 1.0.7
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7954
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/spec-cleaner/Manifest | 1 | ||||
-rw-r--r-- | dev-util/spec-cleaner/spec-cleaner-1.0.7.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-util/spec-cleaner/Manifest b/dev-util/spec-cleaner/Manifest index d88dc40ee162..af6a1df97279 100644 --- a/dev-util/spec-cleaner/Manifest +++ b/dev-util/spec-cleaner/Manifest @@ -1 +1,2 @@ DIST spec-cleaner-1.0.6.tar.gz 450602 BLAKE2B acd298421f2c119e24dc52cf63e149194d5baa1282f9aef902e2ccaf51de040f5817641b4077f209656f715ea6ceb19bf55b8661c32cd24f461c58f9126d9e19 SHA512 a27b5dc7fdb02ca5c632faa5b6a2b71d6db3e9f97950f20c15b14584fa240ff7b69dc981ca67f4fcb6af207dff28a8267447ad0eb918e06ce2294436892e0eef +DIST spec-cleaner-1.0.7.tar.gz 450429 BLAKE2B 7ec57076f13c526ca10524a3852a26ddee4581137357dd593312cc1b55d908311c9146ac2b9c0a5f0ea491a2e1cec8b8a3e5dba25467881f656d43872bd69f5f SHA512 705fc3b9d5b927a64bd19bbf6c826464e40ec6b3cc97cd032417f8e4debac721c7e5f0c99e02fafbb5ce3454424a8b398a7827779b0a308549955ecac33d39c7 diff --git a/dev-util/spec-cleaner/spec-cleaner-1.0.7.ebuild b/dev-util/spec-cleaner/spec-cleaner-1.0.7.ebuild new file mode 100644 index 000000000000..297d0528ae6b --- /dev/null +++ b/dev-util/spec-cleaner/spec-cleaner-1.0.7.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{3_4,3_5} ) +EGIT_REPO_URI="https://github.com/openSUSE/spec-cleaner.git" +inherit distutils-r1 +[[ ${PV} == 9999 ]] && inherit git-r3 + +DESCRIPTION="SUSE spec file cleaner and formatter" +HOMEPAGE="https://github.com/openSUSE/spec-cleaner" +[[ ${PV} != 9999 ]] && SRC_URI="https://github.com/openSUSE/${PN}/archive/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +[[ ${PV} != 9999 ]] && +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=" + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + ${PYTHON_DEPS} + >=app-arch/rpm-4.11.0.1 +" + +PATCHES=( + # pytest-runner is only needed in test scenario + "${FILESDIR}/${PN}-1.0.6-pytest-runner.patch" +) + +[[ ${PV} != 9999 ]] && S="${WORKDIR}/${PN}-${P}" + +src_prepare() { + # we have libexec + sed -i \ + -e 's:lib/obs:libexec/obs:g' \ + setup.py || die + distutils-r1_src_prepare +} + +python_test() { + esetup.py test +} |