blob: 9e21f55ecc8e92a402ba566e3cd4d3b510c34210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
}
|