summaryrefslogtreecommitdiff
blob: ceec97577290ee7df219a13db33e899f27e00eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-1.2.8-r1.ebuild,v 1.1 2000/08/07 18:44:15 achim Exp $

# also, this script now has pre/post inst/rm support

P=glib-1.2.8
A=${P}.tar.gz
S=${WORKDIR}/${P}
CATEGORY="dev-libs"
DESCRIPTION="The GLib library of C routines"
SRC_URI="ftp://ftp.gtk.org/pub/gtk/v1.2/"${A}
HOMEPAGE="http://www.gtk.org/"

pkg_postinst() {
	/sbin/ldconfig
}

pkg_postrm() {
	/sbin/ldconfig
}

src_compile() {
  cd ${S}                           
  ./configure --host=${CHOST} --prefix=/usr --with-threads=posix
  make
}

src_install() {
  cd ${S}
  make install prefix=${D}/usr
  prepman /usr
  prepinfo /usr
  dodoc AUTHORS ChangeLog COPYING README* INSTALL NEWS
  cd docs
  docinto html
  dodoc glib.html glib_toc.html
}