add --prefix=/usr for configure and remove doubled code
authorSimon Stelling <blubb@gentoo.org>
Mon, 3 Jan 2005 17:24:09 +0000 (17:24 +0000)
committerSimon Stelling <blubb@gentoo.org>
Mon, 3 Jan 2005 17:24:09 +0000 (17:24 +0000)
app-portage/portagedb/portagedb-0.2.0.ebuild

index 3608a45fe4a7319fbbf03ceaecfb8331142b5620..be8ad9217f97c1121176c6d5674954ec73041583 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-portage/portagedb/portagedb-0.2.0.ebuild,v 1.4 2005/01/03 16:46:24 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/portagedb/portagedb-0.2.0.ebuild,v 1.5 2005/01/03 17:24:09 blubb Exp $
 
 inherit flag-o-matic
 
@@ -25,18 +25,14 @@ src_compile() {
        libtoolize --force --copy
        autoconf
 
-       if use debug; then
-               append-flags -g
-               ./configure || die "configure failed"
-       else
-               ./configure || die "configure failed"
-       fi
+       use debug && append-flags -g
+       ./configure --prefix=/usr || die "configure failed"
 
        emake || die "emake     failed"
 }
 
 src_install() {
-       einstall || die "einstall failed"
+       make DESTDIR=${D} install || die "make install failed"
 }
 
 pkg_postinst() {