summaryrefslogtreecommitdiff
path: root/dev-util/suse-build
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/suse-build
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/suse-build')
-rw-r--r--dev-util/suse-build/Manifest4
-rw-r--r--dev-util/suse-build/metadata.xml10
-rw-r--r--dev-util/suse-build/suse-build-2015.11.05.ebuild59
-rw-r--r--dev-util/suse-build/suse-build-9999.ebuild59
4 files changed, 132 insertions, 0 deletions
diff --git a/dev-util/suse-build/Manifest b/dev-util/suse-build/Manifest
new file mode 100644
index 000000000000..313197ab3f0e
--- /dev/null
+++ b/dev-util/suse-build/Manifest
@@ -0,0 +1,4 @@
+DIST obs-build-20151105.tar.gz 231249 BLAKE2B 76a61f986123644e97d5242a0280640d897cc94d1a4e459a422f4e86d0d09406d11d91cd9b848f6d53ede03a9d9ffeeffb45b340b4573fad998efae16b5df2bb SHA512 7b6be4a0d6cd82501c05e41e2a08fa2ad30fe28f28ed72d06b2e4acfdb4d5d6759254291510e8797d214e6330d5c186a85d0f104454d0cde2221d94451bbfb23
+EBUILD suse-build-2015.11.05.ebuild 1469 BLAKE2B 1f8ae0633d828132e824abb493813409f756d0393b136da3198e1ab8386184675bdb602dbba0f735acc0ce3662770a466197ec09d9eeca735ad7ed7792f46cd1 SHA512 cf34d0f099035833b5bbbc066086ae5c457b60b3648bf7478a6d0f6f25f687738c8658f595fe23f501d3c1297b95825b8c7f116ddf9b03689c46d97b52a21c34
+EBUILD suse-build-9999.ebuild 1469 BLAKE2B 1f8ae0633d828132e824abb493813409f756d0393b136da3198e1ab8386184675bdb602dbba0f735acc0ce3662770a466197ec09d9eeca735ad7ed7792f46cd1 SHA512 cf34d0f099035833b5bbbc066086ae5c457b60b3648bf7478a6d0f6f25f687738c8658f595fe23f501d3c1297b95825b8c7f116ddf9b03689c46d97b52a21c34
+MISC metadata.xml 398 BLAKE2B 5481a9444149a57b4119bf1d6097e3a76de447c0840f6c86d4195019af8c45b7db945126c3caacdac15ee5127d54a5f2461abcaecdf26b981046e62c680a066f SHA512 fc31096f9dddf4cd61a22b7b37fe9ccb7a853a8a77ca6cc1e0459ceabc9f1f9b5754b5ea68dc071b969f6cdf0206d21013ed5fb2b0fc3db42f76a4c1573bf87c
diff --git a/dev-util/suse-build/metadata.xml b/dev-util/suse-build/metadata.xml
new file mode 100644
index 000000000000..91f6a21b19a0
--- /dev/null
+++ b/dev-util/suse-build/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="symlink">Provide compatibility symlinks with original openSUSE package (might clash with other packages)</flag>
+ </use>
+ <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-2015.11.05.ebuild b/dev-util/suse-build/suse-build-2015.11.05.ebuild
new file mode 100644
index 000000000000..15f352f1e641
--- /dev/null
+++ b/dev-util/suse-build/suse-build-2015.11.05.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/obs-build.git"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PACKAGE="build"
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+inherit eutils ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Script to build SUSE Linux RPMs"
+HOMEPAGE="https://build.opensuse.org/package/show/openSUSE:Tools/build"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${PN/suse/obs}-${PV//.}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="symlink"
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ dev-perl/XML-Parser
+ dev-perl/TimeDate
+ app-shells/bash
+ app-arch/cpio
+ app-arch/rpm
+"
+
+S="${WORKDIR}/${PN/suse/obs}-${PV//.}"
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${ED}" pkglibdir=/usr/libexec/suse-build install
+ cd "${ED}"/usr
+ find bin -type l | while read i; do
+ mv "${i}" "${i/bin\//bin/suse-}"
+ use !symlink || dosym "${i/bin\//suse-}" "/usr/${i}"
+ done
+ find share/man/man1 -type f | while read i; do
+ mv "${i}" "${i/man1\//man1/suse-}"
+ use !symlink || dosym "${i/man1\//suse-}" "/usr/${i}"
+ done
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|' {} +
+
+ # create symlink for default build config
+ dosym /usr/libexec/suse-build/configs/sl42.1.conf /usr/libexec/suse-build/configs/default.conf
+}
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..15f352f1e641
--- /dev/null
+++ b/dev-util/suse-build/suse-build-9999.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/obs-build.git"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PACKAGE="build"
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+inherit eutils ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Script to build SUSE Linux RPMs"
+HOMEPAGE="https://build.opensuse.org/package/show/openSUSE:Tools/build"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${PN/suse/obs}-${PV//.}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="symlink"
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ dev-perl/XML-Parser
+ dev-perl/TimeDate
+ app-shells/bash
+ app-arch/cpio
+ app-arch/rpm
+"
+
+S="${WORKDIR}/${PN/suse/obs}-${PV//.}"
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${ED}" pkglibdir=/usr/libexec/suse-build install
+ cd "${ED}"/usr
+ find bin -type l | while read i; do
+ mv "${i}" "${i/bin\//bin/suse-}"
+ use !symlink || dosym "${i/bin\//suse-}" "/usr/${i}"
+ done
+ find share/man/man1 -type f | while read i; do
+ mv "${i}" "${i/man1\//man1/suse-}"
+ use !symlink || dosym "${i/man1\//suse-}" "/usr/${i}"
+ done
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|' {} +
+
+ # create symlink for default build config
+ dosym /usr/libexec/suse-build/configs/sl42.1.conf /usr/libexec/suse-build/configs/default.conf
+}