diff options
author | Michal Hrušecký <miska@gentoo.org> | 2014-03-02 17:28:39 +0000 |
---|---|---|
committer | Michal Hrušecký <miska@gentoo.org> | 2014-03-02 17:28:39 +0000 |
commit | 0ca95309b7c30578390e791946c84494fbd25dd8 (patch) | |
tree | f7f2997c08d35e5326ed99aa0ef91c370dae4fd7 /dev-util/suse-build/suse-build-2014.02.20.ebuild | |
parent | Add dev-libs/icu sub-SLOT dependency (bug #455900). (diff) | |
download | gentoo-2-0ca95309b7c30578390e791946c84494fbd25dd8.tar.gz gentoo-2-0ca95309b7c30578390e791946c84494fbd25dd8.tar.bz2 gentoo-2-0ca95309b7c30578390e791946c84494fbd25dd8.zip |
Updated to new version 20140220
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D39CB7C5)
Diffstat (limited to 'dev-util/suse-build/suse-build-2014.02.20.ebuild')
-rw-r--r-- | dev-util/suse-build/suse-build-2014.02.20.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-util/suse-build/suse-build-2014.02.20.ebuild b/dev-util/suse-build/suse-build-2014.02.20.ebuild new file mode 100644 index 000000000000..89bd8706b119 --- /dev/null +++ b/dev-util/suse-build/suse-build-2014.02.20.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/suse-build/suse-build-2014.02.20.ebuild,v 1.1 2014/03/02 17:28:39 miska Exp $ + +EAPI=5 + +EGIT_REPO_URI="git://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_prepare() { + epatch "${FILESDIR}/suse-build-20140220-libexec-paths.patch" +} + +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 + + # create symlink for default build config + dosym /usr/libexec/suse-build/configs/sl13.2.conf /usr/libexec/suse-build/configs/default.conf +} |