/[gentoo-x86]/sys-apps/powerpc-utils/powerpc-utils-1.1.3.18-r2.ebuild
Gentoo

Contents of /sys-apps/powerpc-utils/powerpc-utils-1.1.3.18-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Sep 23 20:25:36 2009 UTC (9 years, 1 month ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Remove virtual/libc
(Portage version: 2.2_rc41/cvs/Linux x86_64)

1 volkmar 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 patrick 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/powerpc-utils/powerpc-utils-1.1.3.18-r2.ebuild,v 1.1 2009/08/07 20:58:07 volkmar Exp $
4 volkmar 1.1
5     EAPI="2"
6    
7     inherit eutils versionator toolchain-funcs
8    
9     BASEVER=$(get_version_component_range 1-3)
10     DEBREV=$(get_version_component_range 4)
11    
12     DESCRIPTION="PowerPC utilities including nvsetenv, and additional OldWorld apps"
13     SRC_URI="http://http.us.debian.org/debian/pool/main/p/powerpc-utils/${PN}_${BASEVER}.orig.tar.gz
14     http://http.us.debian.org/debian/pool/main/p/powerpc-utils/${PN}_${BASEVER}-${DEBREV}.diff.gz
15     mirror://gentoo/${PN}-cleanup.patch.bz2"
16    
17     HOMEPAGE="http://http.us.debian.org/debian/pool/main/p/powerpc-utils/"
18     KEYWORDS="-* ppc ppc64"
19     IUSE=""
20 patrick 1.2 DEPEND=""
21 volkmar 1.1 RDEPEND="${DEPEND}"
22     SLOT="0"
23     LICENSE="GPL-2"
24    
25     S="${WORKDIR}/pmac-utils"
26    
27     src_prepare() {
28     epatch "${WORKDIR}"/${PN}_${BASEVER}-${DEBREV}.diff
29     epatch "${WORKDIR}"/${PN}-cleanup.patch
30    
31     # use users CFLAGS, LDFLAGS and CC, bug 280400
32     sed -i -e "/LDFLAGS =/d" -e "/CC\t=/d" -e "s/CFLAGS\t=/CFLAGS +=/" \
33     -e "s/-g -O2/-Wstrict-prototypes/" Makefile || die "sed failed"
34     }
35    
36     src_compile() {
37     tc-export CC
38     emake || die "emake failed"
39     }
40    
41     src_install() {
42     into /usr
43     dosbin autoboot backlight bootsched clock fblevel fdeject fnset \
44     || die "dosbin failed"
45     dosbin macos mousemode nvsetenv nvsetvol nvvideo sndvolmix trackpad \
46     || die "dosbin failed"
47     doman autoboot.8 bootsched.8 clock.8 fblevel.8 fdeject.8 macos.8 \
48     || die "doman failed"
49     doman mousemode.8 nvsetenv.8 nvsetvol.8 nvvideo.8 sndvolmix.8 trackpad.8 \
50     || die "doman failed"
51    
52     ewarn "The lsprop utility has been moved into the ibm-powerpc-utils package."
53     }

  ViewVC Help
Powered by ViewVC 1.1.20