summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-10-31 00:43:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-10-31 00:43:18 +0000
commit21e775f1625770bf59ae9bedeb68210a1ed11734 (patch)
tree893b9ea243f63b4eff32abefc8ba55b563358e40 /games-arcade
parentFixing bug #149656 (diff)
downloadgentoo-2-21e775f1625770bf59ae9bedeb68210a1ed11734.tar.gz
gentoo-2-21e775f1625770bf59ae9bedeb68210a1ed11734.tar.bz2
gentoo-2-21e775f1625770bf59ae9bedeb68210a1ed11734.zip
use DESTDIR to simplify things
(Portage version: 2.1.2_rc1-r1)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/frozen-bubble/frozen-bubble-2.0.0.ebuild31
1 files changed, 11 insertions, 20 deletions
diff --git a/games-arcade/frozen-bubble/frozen-bubble-2.0.0.ebuild b/games-arcade/frozen-bubble/frozen-bubble-2.0.0.ebuild
index 0356bfd6f626..ad4263d8f1cd 100644
--- a/games-arcade/frozen-bubble/frozen-bubble-2.0.0.ebuild
+++ b/games-arcade/frozen-bubble/frozen-bubble-2.0.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/frozen-bubble/frozen-bubble-2.0.0.ebuild,v 1.3 2006/10/30 00:45:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/frozen-bubble/frozen-bubble-2.0.0.ebuild,v 1.4 2006/10/31 00:43:18 vapier Exp $
inherit eutils multilib perl-module games
@@ -43,30 +43,21 @@ src_unpack() {
epatch "${FILESDIR}"/${P}-build.patch
sed -i \
- -e 's:INSTALLDIRS=.*:PREFIX=${D}/usr:' \
+ -e 's:INSTALLDIRS=.*:PREFIX=$(DESTDIR)/usr:' \
c_stuff/Makefile \
|| die 'sed failed'
-}
-
-src_compile() {
- emake \
- PREFIX=/usr \
- BINDIR="${GAMES_BINDIR}" \
- DATADIR="${GAMES_DATADIR}" \
- LIBDIR="${GAMES_LIBDIR}" \
- MANDIR=/usr/share/man \
- || die "emake game failed"
+ sed -i \
+ -e '/^PREFIX /s:=.*:=/usr:' \
+ -e "/^BINDR /s:=.*:=${GAMES_BINDIR}:" \
+ -e "/^DATADIR /s:=.*:=${GAMES_DATADIR}:" \
+ -e "/^LIBDIR /s:=.*:=${GAMES_LIBDIR}:" \
+ -e '/^LOCALEDIR /s:=.*:=/usr/share/locale:' \
+ -e "/^MANDIR /s:=.*:=/usr/share/man:" \
+ Makefile po/Makefile server/Makefile || die "sed failed"
}
src_install() {
- emake \
- PREFIX="${D}/usr" \
- BINDIR="${D}/${GAMES_BINDIR}" \
- DATADIR="${D}/${GAMES_DATADIR}" \
- LIBDIR="${D}/${GAMES_LIBDIR}" \
- MANDIR="${D}/usr/share/man" \
- install \
- || die "make install failed"
+ emake DESTDIR="${D}" install || die "make install failed"
dosed /usr/games/bin/frozen-bubble
dodoc AUTHORS NEWS README TIPS
newicon icons/frozen-bubble-icon-48x48.png ${PN}.png