/[gentoo-x86]/dev-libs/glib/glib-1.2.10-r5.ebuild
Gentoo

Contents of /dev-libs/glib/glib-1.2.10-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.32 - (show annotations) (download)
Fri Sep 17 01:56:05 2004 UTC (8 years, 8 months ago) by mr_bones_
Branch: MAIN
Changes since 1.31: +2 -2 lines
repoman: Trim trailing whitespace

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-1.2.10-r5.ebuild,v 1.31 2004/09/16 01:48:51 pvdabeel Exp $
4
5 inherit libtool gnuconfig flag-o-matic eutils
6
7 DESCRIPTION="The GLib library of C routines"
8 HOMEPAGE="http://www.gtk.org/"
9 SRC_URI="ftp://ftp.gtk.org/pub/gtk/v1.2/${P}.tar.gz
10 ftp://ftp.gnome.org/pub/GNOME/stable/sources/glib/${P}.tar.gz"
11
12 LICENSE="LGPL-2.1"
13 SLOT="1"
14 KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390 ~macos ~ppc-macos"
15 IUSE=""
16
17 DEPEND="virtual/libc"
18
19 src_unpack() {
20 unpack ${A}
21
22 # Allow glib to build with gcc-3.4.x
23 # Closes Bug #47047
24 epatch ${FILESDIR}/${P}-gcc34-fix.patch
25 }
26
27 src_compile() {
28 # Fixes some strange sed-, libtool- and ranlib-errors on
29 # Mac OS X
30 if use macos; then
31 glibtoolize
32 elif use ppc-macos; then
33 glibtoolize
34 else
35 elibtoolize
36 fi
37
38 # elibtoolize breaks (see brad's comments below, left here for
39 # historical purposes) but libtoolize won't work either because
40 # there is no libtoolize in the stage1 and it brings in nasty
41 # deps if you try to install it during bootstrap.
42 # elibtoolize seems to be working decently on x86. As a temporary
43 # fix for amd64 users to be able to bootstrap, we run gnuconfig.
44 # The glib .a's will be broken, but it's a start.
45 # See bug 47950 for more information.
46 # -- avenj@gentoo.org 19 Apr 04
47
48 gnuconfig_update
49
50
51 # For some reason, elibtoolize stopped doing its job in the last couple
52 # of days on this ebuild, and amd64 won't compile it anymore, need to
53 # manually run libtoolize, I need to inspect the libtool.eclass I guess.
54 # Brad House <brad_mssw@gentoo.org> 1/2/2004
55 # libtoolize -c -f
56
57 # Bug 48839: pam fails to build on ia64
58 # The problem is that it attempts to link a shared object against
59 # libglib.a; this library needs to be built with -fPIC. Since
60 # this package doesn't contain any significant binaries, build the
61 # whole thing with -fPIC (23 Apr 2004 agriffis)
62 append-flags -fPIC
63
64 econf \
65 --with-threads=posix \
66 --enable-debug=yes || die
67
68 emake || die
69 }
70
71 src_install() {
72 einstall || die
73
74 dodoc AUTHORS ChangeLog README* INSTALL NEWS
75 dohtml -r docs
76
77 cd ${D}/usr/$(get_libdir) || die
78 chmod 755 libgmodule-1.2.so.*
79 }

  ViewVC Help
Powered by ViewVC 1.1.13