summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-09-28 19:22:44 +0000
committerJeroen Roovers <jer@gentoo.org>2010-09-28 19:22:44 +0000
commit78af648ee07a2000613d78d02e58a47a14a88dfb (patch)
tree6fd0793d4160f17f952288b2bd5977a13fe81638 /app-arch
parentClean up patch and do not cd before patching as the path is already set in th... (diff)
downloadgentoo-2-78af648ee07a2000613d78d02e58a47a14a88dfb.tar.gz
gentoo-2-78af648ee07a2000613d78d02e58a47a14a88dfb.tar.bz2
gentoo-2-78af648ee07a2000613d78d02e58a47a14a88dfb.zip
Respect LDFLAGS (bug #336962), CC, CFLAGS. Move dep to RDEPEND.
(Portage version: 2.2_rc86/cvs/Linux i686)
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/upm/ChangeLog9
-rw-r--r--app-arch/upm/upm-0.85-r1.ebuild40
2 files changed, 47 insertions, 2 deletions
diff --git a/app-arch/upm/ChangeLog b/app-arch/upm/ChangeLog
index a780f6358f2f..399e3df736d9 100644
--- a/app-arch/upm/ChangeLog
+++ b/app-arch/upm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-arch/upm
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/upm/ChangeLog,v 1.11 2009/07/31 09:37:03 volkmar Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/upm/ChangeLog,v 1.12 2010/09/28 19:22:44 jer Exp $
+
+*upm-0.85-r1 (28 Sep 2010)
+
+ 28 Sep 2010; Jeroen Roovers <jer@gentoo.org> +upm-0.85-r1.ebuild:
+ Respect LDFLAGS (bug #336962), CC, CFLAGS. Move dep to RDEPEND.
31 Jul 2009; Mounir Lamouri <volkmar@gentoo.org>
+files/upm-0.85-static.patch, upm-0.85.ebuild:
diff --git a/app-arch/upm/upm-0.85-r1.ebuild b/app-arch/upm/upm-0.85-r1.ebuild
new file mode 100644
index 000000000000..7f354a6e73d8
--- /dev/null
+++ b/app-arch/upm/upm-0.85-r1.ebuild
@@ -0,0 +1,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}
+}