blob: 7f354a6e73d89f95b035d7a202855f0fc17900b1 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/upm/upm-0.85-r1.ebuild,v 1.1 2010/09/28 19:22:44 jer Exp $
EAPI="2"
inherit eutils toolchain-funcs
DESCRIPTION="The micro Package Manager"
HOMEPAGE="http://u-os.org/upm.html"
SRC_URI="http://www.ibiblio.org/pub/linux/distributions/uos/sputnik/sources/${P}.tar.gz"
LICENSE="4F"
SLOT="0"
KEYWORDS="~alpha ~hppa ~ppc ~sparc ~x86"
IUSE=""
RDEPEND="sys-apps/fakeroot"
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.diff
epatch "${FILESDIR}"/${P}-static.patch # bug 264067
sed -i Makefile \
-e 's| -o | $(LDFLAGS)&|g' \
|| die "sed Makefile failed"
}
src_compile() {
emake \
CC=$(tc-getCC) \
CFLAGS="${CFLAGS}" \
|| die "emake failed"
}
src_install() {
dodir /bin
make DESTDIR="${D}" install || die "make install failed"
dodir /usr/upm/installed
dodir /var/upm/{binary,cache}
}
|