summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Hrušecký <miska@gentoo.org>2011-06-18 18:39:47 +0000
committerMichal Hrušecký <miska@gentoo.org>2011-06-18 18:39:47 +0000
commita1c38cba8333dfa8afaa2bf7a349fec1bbdafb8c (patch)
tree2d3a8daef73908e539e1998c0ea686541bbbec4f /dev-util/suse-build
parentHopefully fix crash in resolver #371617 by Daniel Kluev. (diff)
downloadgentoo-2-a1c38cba8333dfa8afaa2bf7a349fec1bbdafb8c.tar.gz
gentoo-2-a1c38cba8333dfa8afaa2bf7a349fec1bbdafb8c.tar.bz2
gentoo-2-a1c38cba8333dfa8afaa2bf7a349fec1bbdafb8c.zip
New ebuild for suse-build. Ebuild written by me. Dependency for osc - bug 350599
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/suse-build')
-rw-r--r--dev-util/suse-build/ChangeLog12
-rw-r--r--dev-util/suse-build/metadata.xml9
-rw-r--r--dev-util/suse-build/suse-build-2011.01.20.ebuild45
-rw-r--r--dev-util/suse-build/suse-build-9999.ebuild45
4 files changed, 111 insertions, 0 deletions
diff --git a/dev-util/suse-build/ChangeLog b/dev-util/suse-build/ChangeLog
new file mode 100644
index 000000000000..22dc0b0a9d0f
--- /dev/null
+++ b/dev-util/suse-build/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-util/suse-build
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/suse-build/ChangeLog,v 1.1 2011/06/18 18:39:47 miska Exp $
+
+*suse-build-9999 (17 Jun 2011)
+*suse-build-2011.01.20 (17 Jun 2011)
+
+ 17 Jun 2011; Michal Hrusecky <miska@gentoo.org>
+ +suse-build-2011.01.20.ebuild, +suse-build-9999.ebuild, +metadata.xml:
+ New ebuild for suse-build. Ebuild written by me. Dependency for osc - bug
+ #350599
+
diff --git a/dev-util/suse-build/metadata.xml b/dev-util/suse-build/metadata.xml
new file mode 100644
index 000000000000..b46ac6c8c07b
--- /dev/null
+++ b/dev-util/suse-build/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<longdescription lang="en">
+Script for building RPMs for SUSE Linux in a chroot environment.
+</longdescription>
+</pkgmetadata>
+
diff --git a/dev-util/suse-build/suse-build-2011.01.20.ebuild b/dev-util/suse-build/suse-build-2011.01.20.ebuild
new file mode 100644
index 000000000000..9e21f55ecc8e
--- /dev/null
+++ b/dev-util/suse-build/suse-build-2011.01.20.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/suse-build/suse-build-2011.01.20.ebuild,v 1.1 2011/06/18 18:39:47 miska Exp $
+
+EAPI=4
+
+EGIT_REPO_URI="git://gitorious.org/opensuse/build.git"
+[[ "${PV}" == "9999" ]] && EXTRA_ECLASS="git-2"
+MY_PN="build"
+
+inherit eutils ${EXTRA_ECLASS}
+
+DESCRIPTION="Script to build SUSE Linux RPMs"
+HOMEPAGE="https://build.opensuse.org/package/show?package=build&project=openSUSE%3ATools"
+[[ "${PV}" == "9999" ]] || SRC_URI="https://api.opensuse.org/public/source/openSUSE:11.4/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+[[ "${PV}" == "9999" ]] || KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ dev-perl/XML-Parser
+ dev-perl/TimeDate
+ app-shells/bash
+ app-arch/rpm"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${D}" pkglibdir=/usr/share/suse-build install
+ cd "${ED}"/usr
+ find bin -type l | while read i; do
+ mv "${i}" "${i/bin\//bin/suse-}"
+ done
+ find share/man/man1 -type f | while read i; do
+ mv "${i}" "${i/man1\//man1/suse-}"
+ done
+ find . -type f -exec grep -l "/usr/lib/build" \{\} \; | while read i; do
+ sed -i 's|/usr/lib/build|/usr/share/suse-build|' "${i}"
+ done
+}
diff --git a/dev-util/suse-build/suse-build-9999.ebuild b/dev-util/suse-build/suse-build-9999.ebuild
new file mode 100644
index 000000000000..cd416fbd1560
--- /dev/null
+++ b/dev-util/suse-build/suse-build-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/suse-build/suse-build-9999.ebuild,v 1.1 2011/06/18 18:39:47 miska Exp $
+
+EAPI=4
+
+EGIT_REPO_URI="git://gitorious.org/opensuse/build.git"
+[[ "${PV}" == "9999" ]] && EXTRA_ECLASS="git-2"
+MY_PN="build"
+
+inherit eutils ${EXTRA_ECLASS}
+
+DESCRIPTION="Script to build SUSE Linux RPMs"
+HOMEPAGE="https://build.opensuse.org/package/show?package=build&project=openSUSE%3ATools"
+[[ "${PV}" == "9999" ]] || SRC_URI="https://api.opensuse.org/public/source/openSUSE:11.4/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+[[ "${PV}" == "9999" ]] || KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ dev-perl/XML-Parser
+ dev-perl/TimeDate
+ app-shells/bash
+ app-arch/rpm"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${D}" pkglibdir=/usr/share/suse-build install
+ cd "${ED}"/usr
+ find bin -type l | while read i; do
+ mv "${i}" "${i/bin\//bin/suse-}"
+ done
+ find share/man/man1 -type f | while read i; do
+ mv "${i}" "${i/man1\//man1/suse-}"
+ done
+ find . -type f -exec grep -l "/usr/lib/build" \{\} \; | while read i; do
+ sed -i 's|/usr/lib/build|/usr/share/suse-build|' "${i}"
+ done
+}