summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Callen <abcd@gentoo.org>2011-04-14 14:47:25 +0000
committerJonathan Callen <abcd@gentoo.org>2011-04-14 14:47:25 +0000
commit0eebf11f25a33897e6718f81d6e5bc11f19aa111 (patch)
treed3c471ec2bb0c8f79e34a98ca032a06919c94717 /dev-db/cdb
parentPunt useless die messages, as PM will print out exact command that failed (diff)
downloadgentoo-2-0eebf11f25a33897e6718f81d6e5bc11f19aa111.tar.gz
gentoo-2-0eebf11f25a33897e6718f81d6e5bc11f19aa111.tar.bz2
gentoo-2-0eebf11f25a33897e6718f81d6e5bc11f19aa111.zip
Add prefix support, bump EAPI to 3, add prefix keywords
(Portage version: 2.2.0_alpha29_p11/cvs/Linux i686)
Diffstat (limited to 'dev-db/cdb')
-rw-r--r--dev-db/cdb/ChangeLog7
-rw-r--r--dev-db/cdb/cdb-0.75-r3.ebuild16
2 files changed, 12 insertions, 11 deletions
diff --git a/dev-db/cdb/ChangeLog b/dev-db/cdb/ChangeLog
index f87c49378722..7ca4c52aafb3 100644
--- a/dev-db/cdb/ChangeLog
+++ b/dev-db/cdb/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-db/cdb
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/ChangeLog,v 1.45 2010/03/30 23:20:28 mabi Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/ChangeLog,v 1.46 2011/04/14 14:47:25 abcd Exp $
+
+ 14 Apr 2011; Jonathan Callen <abcd@gentoo.org> cdb-0.75-r3.ebuild:
+ Add prefix support, bump EAPI to 3, add prefix keywords
*cdb-0.75-r3 (30 Mar 2010)
diff --git a/dev-db/cdb/cdb-0.75-r3.ebuild b/dev-db/cdb/cdb-0.75-r3.ebuild
index d90c49a10eea..a5f8dfcc9b1e 100644
--- a/dev-db/cdb/cdb-0.75-r3.ebuild
+++ b/dev-db/cdb/cdb-0.75-r3.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/cdb-0.75-r3.ebuild,v 1.1 2010/03/30 23:20:28 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/cdb/cdb-0.75-r3.ebuild,v 1.2 2011/04/14 14:47:25 abcd Exp $
+EAPI=3
inherit eutils toolchain-funcs
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
DESCRIPTION="Fast, reliable, simple package for creating and reading constant databases."
HOMEPAGE="http://cr.yp.to/cdb.html"
@@ -17,9 +18,7 @@ DEPEND=">=sys-apps/sed-4
!dev-db/tinycdb"
RDEPEND="${DEPEND}"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}"/${P}-errno.diff
epatch "${FILESDIR}"/${P}-stdint.diff
@@ -27,11 +26,10 @@ src_unpack() {
|| die "sed Makefile failed"
}
-src_compile() {
+src_configure() {
echo "$(tc-getCC) ${CFLAGS}" > conf-cc
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
- echo "/usr" > conf-home
- emake || die "emake failed"
+ echo "${EPREFIX}/usr" > conf-home
}
src_install() {