diff options
author | Michal Hrušecký <miska@gentoo.org> | 2013-05-27 16:23:57 +0000 |
---|---|---|
committer | Michal Hrušecký <miska@gentoo.org> | 2013-05-27 16:23:57 +0000 |
commit | dbf311b3760c487f6ff87cb752eda93b8d633197 (patch) | |
tree | 06cbb92e4ffe40a8934d0be3ddd424e5059835a8 /dev-util/osc/osc-0.139.2.ebuild | |
parent | smtpctl can pretend to be sendmail (diff) | |
download | gentoo-2-dbf311b3760c487f6ff87cb752eda93b8d633197.tar.gz gentoo-2-dbf311b3760c487f6ff87cb752eda93b8d633197.tar.bz2 gentoo-2-dbf311b3760c487f6ff87cb752eda93b8d633197.zip |
updated to version 0.139.2
* migrated to distutils-r1 (little patch needed)
broke dependency circle (RDEPEND->PDEPEND)
(Portage version: 2.1.12/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-util/osc/osc-0.139.2.ebuild')
-rw-r--r-- | dev-util/osc/osc-0.139.2.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-util/osc/osc-0.139.2.ebuild b/dev-util/osc/osc-0.139.2.ebuild new file mode 100644 index 000000000000..b0a987d23a2b --- /dev/null +++ b/dev-util/osc/osc-0.139.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/osc/osc-0.139.2.ebuild,v 1.1 2013/05/27 16:23:57 miska Exp $ + +EAPI=5 + +EGIT_REPO_URI="git://github.com/openSUSE/osc.git" + +PYTHON_COMPAT=( python{2_6,2_7} ) + +if [[ "${PV}" == "9999" ]]; then + EXTRA_ECLASS="git-2" +else + OBS_PROJECT="openSUSE:Tools" + EXTRA_ECLASS="obs-download" +fi + +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}] + dev-python/pyxml[${PYTHON_USEDEP}] + app-arch/rpm[python,${PYTHON_USEDEP}] + dev-python/m2crypto[${PYTHON_USEDEP}] +" +PDEPEND="${DEPEND} + app-admin/sudo + dev-util/obs-service-meta +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-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* +} |