/[gentoo-x86]/dev-util/suse-build/suse-build-2014.09.18.ebuild
Gentoo

Contents of /dev-util/suse-build/suse-build-2014.09.18.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jun 26 08:46:05 2015 UTC (3 years, 2 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #535410

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/suse-build/suse-build-2014.09.18.ebuild,v 1.2 2015/06/11 15:05:29 ago Exp $
4
5 EAPI=5
6
7 EGIT_REPO_URI="git://github.com/openSUSE/obs-build.git"
8
9 if [[ "${PV}" == "9999" ]]; then
10 EXTRA_ECLASS="git-2"
11 else
12 OBS_PACKAGE="build"
13 OBS_PROJECT="openSUSE:Tools"
14 EXTRA_ECLASS="obs-download"
15 fi
16
17 inherit eutils ${EXTRA_ECLASS}
18 unset EXTRA_ECLASS
19
20 DESCRIPTION="Script to build SUSE Linux RPMs"
21 HOMEPAGE="https://build.opensuse.org/package/show/openSUSE:Tools/build"
22
23 [[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${PN/suse/obs}-${PV//.}.tar.gz"
24
25 LICENSE="GPL-2"
26 SLOT="0"
27 IUSE="symlink"
28 [[ "${PV}" == "9999" ]] || \
29 KEYWORDS="amd64 x86"
30
31 RDEPEND="
32 virtual/perl-Digest-MD5
33 virtual/perl-Getopt-Long
34 dev-perl/XML-Parser
35 dev-perl/TimeDate
36 app-shells/bash
37 app-arch/cpio
38 app-arch/rpm
39 "
40
41 S="${WORKDIR}/${PN/suse/obs}-${PV//.}"
42
43 src_prepare() {
44 epatch "${FILESDIR}"/${P}-libexec-paths.patch
45 }
46
47 src_compile() { :; }
48
49 src_install() {
50 emake DESTDIR="${ED}" pkglibdir=/usr/libexec/suse-build install
51 cd "${ED}"/usr
52 find bin -type l | while read i; do
53 mv "${i}" "${i/bin\//bin/suse-}"
54 use !symlink || dosym "${i/bin\//suse-}" "/usr/${i}"
55 done
56 find share/man/man1 -type f | while read i; do
57 mv "${i}" "${i/man1\//man1/suse-}"
58 use !symlink || dosym "${i/man1\//suse-}" "/usr/${i}"
59 done
60
61 # create symlink for default build config
62 dosym /usr/libexec/suse-build/configs/sl13.2.conf /usr/libexec/suse-build/configs/default.conf
63 }

  ViewVC Help
Powered by ViewVC 1.1.20