diff options
author | Michal Hrusecky <miska@gentoo.org> | 2016-06-12 21:28:15 +0200 |
---|---|---|
committer | Michal Hrusecky <miska@gentoo.org> | 2016-06-12 22:33:08 +0200 |
commit | b5dfe7f59dc907498e022e8cc6c1a5d74138accd (patch) | |
tree | ff706a1eaf467b82abdc498c24adfe6e5db1d423 /dev-util/osc/osc-0.154.0.ebuild | |
parent | python-any-r1.eclass: Ensure not to emit := in || () deps (diff) | |
download | gentoo-b5dfe7f59dc907498e022e8cc6c1a5d74138accd.tar.gz gentoo-b5dfe7f59dc907498e022e8cc6c1a5d74138accd.tar.bz2 gentoo-b5dfe7f59dc907498e022e8cc6c1a5d74138accd.zip |
dev-util/osc: Update to the version 0.154.0
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-util/osc/osc-0.154.0.ebuild')
-rw-r--r-- | dev-util/osc/osc-0.154.0.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-util/osc/osc-0.154.0.ebuild b/dev-util/osc/osc-0.154.0.ebuild new file mode 100644 index 000000000000..2cddd1301d57 --- /dev/null +++ b/dev-util/osc/osc-0.154.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +EGIT_REPO_URI="git://github.com/openSUSE/osc.git" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml" + +if [[ "${PV}" == "9999" ]]; then + EXTRA_ECLASS="git-2" +else + OBS_PROJECT="openSUSE:Tools" + EXTRA_ECLASS="obs-download" +fi + +DISTUTILS_SINGLE_IMPL=1 +inherit distutils-r1 ${EXTRA_ECLASS} +unset EXTRA_ECLASS + +DESCRIPTION="Command line tool for Open Build Service" +HOMEPAGE="http://en.opensuse.org/openSUSE:OSC" + +[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061 +[[ "${PV}" == "9999" ]] || \ +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-python/urlgrabber[${PYTHON_USEDEP}] + app-arch/rpm[python,${PYTHON_USEDEP}] + dev-python/m2crypto[${PYTHON_USEDEP}] + ${PYTHON_DEPS} +" +PDEPEND="${DEPEND} + app-admin/sudo + dev-util/obs-service-meta +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.139.2-out-of-tree-build.patch + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + dosym osc-wrapper.py /usr/bin/osc + keepdir /usr/lib/osc/source_validators + cd "${ED}"/usr/ + find . -type f -exec sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' {} + + find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|g' {} + + find . -type f -exec sed -i 's|/usr/lib/obs|/usr/libexec/obs|g' {} + + rm -f "${ED}"/usr/share/doc/${PN}*/TODO* +} |