summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Hrušecký <miska@gentoo.org>2011-06-20 09:49:58 +0000
committerMichal Hrušecký <miska@gentoo.org>2011-06-20 09:49:58 +0000
commitdb57e4772d2f3d7b5e25b7b3ac6d51051293518f (patch)
treeafeed8e0d7d659efc834104b8e83ab2715484be0 /dev-util/osc
parentUse updated Microsoft's fonts that have some Bulgarian and Romanian letters a... (diff)
downloadgentoo-2-db57e4772d2f3d7b5e25b7b3ac6d51051293518f.tar.gz
gentoo-2-db57e4772d2f3d7b5e25b7b3ac6d51051293518f.tar.bz2
gentoo-2-db57e4772d2f3d7b5e25b7b3ac6d51051293518f.zip
New ebuild for osc. Ebuild written by me. Fixes bug 350599
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/osc')
-rw-r--r--dev-util/osc/ChangeLog11
-rw-r--r--dev-util/osc/metadata.xml13
-rw-r--r--dev-util/osc/osc-0.130.1.ebuild47
-rw-r--r--dev-util/osc/osc-9999.ebuild47
4 files changed, 118 insertions, 0 deletions
diff --git a/dev-util/osc/ChangeLog b/dev-util/osc/ChangeLog
new file mode 100644
index 000000000000..05b4b309ac78
--- /dev/null
+++ b/dev-util/osc/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-util/osc
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/osc/ChangeLog,v 1.1 2011/06/20 09:49:58 miska Exp $
+
+*osc-9999 (20 Jun 2011)
+*osc-0.130.1 (20 Jun 2011)
+
+ 20 Jun 2011; Michal Hrusecky <miska@gentoo.org> +osc-0.130.1.ebuild,
+ +osc-9999.ebuild, +metadata.xml:
+ New ebuild for osc. Ebuild written by me. Fixes bug 350599
+
diff --git a/dev-util/osc/metadata.xml b/dev-util/osc/metadata.xml
new file mode 100644
index 000000000000..4e982e6b73de
--- /dev/null
+++ b/dev-util/osc/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>miska@gentoo.org</email>
+<name>Michal Hrušecký</name>
+</maintainer>
+<longdescription lang="en">
+Subversion-like client for Open Build Service - http://open-build-service.org/ It serves as client for the source code repository part of the build service, and it is used to edit metadata or query about build results.
+</longdescription>
+</pkgmetadata>
+
diff --git a/dev-util/osc/osc-0.130.1.ebuild b/dev-util/osc/osc-0.130.1.ebuild
new file mode 100644
index 000000000000..6f3ea6c155e1
--- /dev/null
+++ b/dev-util/osc/osc-0.130.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/osc/osc-0.130.1.ebuild,v 1.1 2011/06/20 09:49:58 miska Exp $
+
+EAPI=3
+
+EGIT_REPO_URI="git://gitorious.org/opensuse/osc.git"
+
+[[ "${PV}" == "9999" ]] && EXTRA_ECLASS="git-2"
+inherit distutils ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Command line tool for Open Build Service"
+HOMEPAGE="http://en.opensuse.org/openSUSE:OSC"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="https://api.opensuse.org/public/source/openSUSE:11.4/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+[[ "${PV}" == "9999" ]] || KEYWORDS="~amd64"
+
+DEPEND="dev-python/urlgrabber
+ dev-python/pyxml
+ dev-python/elementtree
+ app-arch/rpm[python]
+ dev-python/m2crypto"
+RDEPEND="${DEPEND}
+ dev-util/suse-build"
+
+src_install() {
+ distutils_src_install
+ dosym osc-wrapper.py /usr/bin/osc || \
+ die "Creating /usr/bin/osc failed"
+ keepdir /usr/lib/osc/source_validators || \
+ die "Creating /usr/lib/osc/source_validators failed"
+ cd "${ED}"/usr/
+ find . -exec grep -l /usr/bin/build \{\} \; | while read i; do
+ sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' "${i}" \
+ || die "sed for /usr/${i} failed"
+ done
+ find . -exec grep -l /usr/lib/build \{\} \; | while read i; do
+ sed -i 's|/usr/lib/build|/usr/share/suse-build|g' "${i}" \
+ || die "sed for /usr/${i} failed"
+ done
+ rm -f "${ED}"/usr/share/doc/${PN}*/TODO*
+}
diff --git a/dev-util/osc/osc-9999.ebuild b/dev-util/osc/osc-9999.ebuild
new file mode 100644
index 000000000000..c175c89e4e22
--- /dev/null
+++ b/dev-util/osc/osc-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/osc/osc-9999.ebuild,v 1.1 2011/06/20 09:49:58 miska Exp $
+
+EAPI=3
+
+EGIT_REPO_URI="git://gitorious.org/opensuse/osc.git"
+
+[[ "${PV}" == "9999" ]] && EXTRA_ECLASS="git-2"
+inherit distutils ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Command line tool for Open Build Service"
+HOMEPAGE="http://en.opensuse.org/openSUSE:OSC"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="https://api.opensuse.org/public/source/openSUSE:11.4/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+[[ "${PV}" == "9999" ]] || KEYWORDS="~amd64"
+
+DEPEND="dev-python/urlgrabber
+ dev-python/pyxml
+ dev-python/elementtree
+ app-arch/rpm[python]
+ dev-python/m2crypto"
+RDEPEND="${DEPEND}
+ dev-util/suse-build"
+
+src_install() {
+ distutils_src_install
+ dosym osc-wrapper.py /usr/bin/osc || \
+ die "Creating /usr/bin/osc failed"
+ keepdir /usr/lib/osc/source_validators || \
+ die "Creating /usr/lib/osc/source_validators failed"
+ cd "${ED}"/usr/
+ find . -exec grep -l /usr/bin/build \{\} \; | while read i; do
+ sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' "${i}" \
+ || die "sed for /usr/${i} failed"
+ done
+ find . -exec grep -l /usr/lib/build \{\} \; | while read i; do
+ sed -i 's|/usr/lib/build|/usr/share/suse-build|g' "${i}" \
+ || die "sed for /usr/${i} failed"
+ done
+ rm -f "${ED}"/usr/share/doc/${PN}*/TODO*
+}