/[gentoo-alt]/trunk/overlay/app-admin/eselect-compiler/eselect-compiler-2.0.0_beta5.ebuild
Gentoo

Contents of /trunk/overlay/app-admin/eselect-compiler/eselect-compiler-2.0.0_beta5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 802 - (show annotations) (download)
Fri Oct 7 12:26:22 2005 UTC (8 years, 9 months ago) by flameeyes
File size: 1696 byte(s)
Added patch for eselect-compiler.
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-compiler/eselect-compiler-2.0.0_beta5.ebuild,v 1.1 2005/10/07 10:33:45 eradicator Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Utility to configure the active toolchain compiler"
8 HOMEPAGE="http://www.gentoo.org/"
9
10 MY_PN="compiler-config"
11 MY_P="${MY_PN}-${PV}"
12 S="${WORKDIR}/${MY_P}"
13
14 SRC_URI=" http://dev.gentoo.org/~eradicator/toolchain/${MY_PN}/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~s390 ~sh ~sparc ~x86"
19 IUSE=""
20
21 RDEPEND="app-admin/eselect"
22
23 pkg_postinst() {
24 # Some toolchain.eclass installed confs aren't quite right
25 sed -i 's:chost:ctarget:g' ${ROOT}/etc/eselect/compiler/*
26 sed -i 's:spec=:specs=:g' ${ROOT}/etc/eselect/compiler/*
27
28 # Migrate from the old configs
29 if [[ ! -f "${ROOT}/etc/eselect/compiler/selection.conf" ]] ; then
30 # Migrate isn't smart enough to handle the toolchain.eclass
31 # installed confs.
32 # This should be fixed before it comes out of beta and p.m.
33 rm -f ${ROOT}/etc/eselect/compiler/*.conf
34 eselect compiler migrate
35 fi
36
37 # Update the wrappers
38 eselect compiler update
39
40 if rm -f ${ROOT}/etc/env.d/05gcc* &> /dev/null ; then
41 ewarn "You should source /etc/profile in your open shells."
42 fi
43
44 ewarn "Thanks for beta testing eselect-compiler. If you have any problems,"
45 ewarn "please contact eradicator@gentoo.org."
46 }
47
48 src_unpack() {
49 unpack ${A}
50 cd ${S}
51
52 epatch ${FILESDIR}/${MY_P}-fbsd.patch
53 }
54
55 src_install() {
56 dodoc README
57 make DESTDIR="${D}" install || die
58
59 # This is installed by sys-devel/gcc-config
60 rm ${D}/usr/bin/gcc-config
61 }

  ViewVC Help
Powered by ViewVC 1.1.20