blob: 61afdb9d42146cd790130427cd729560d4bf6c7f (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/mock/mock-0.9.10-r2.ebuild,v 1.1 2009/03/27 16:48:31 deathwing00 Exp $
inherit eutils
DESCRIPTION="Mock creates chroots and builds packages in them for Fedora and
RedHat."
HOMEPAGE="http://fedoraproject.org/wiki/Projects/Mock"
SRC_URI="https://fedorahosted.org/mock/attachment/wiki/MockTarballs/mock-${PV}.tar.gz?format=raw -> mock-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
EAPI="2"
DEPEND=""
RDEPEND="sys-apps/yum
dev-python/decoratortools"
src_unpack() {
unpack ${A} && cd "${S}"
epatch "${FILESDIR}/${P}-chroot-fix.patch"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
}
pkg_postinst() {
if ! [[ $(grep -q mock /etc/group && echo $?) ]]; then
einfo "Creating group 'mock'"
groupadd mock
fi
}
|