blob: dc09b5cea6dd1843924890535c391756355e0247 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-0.7.3.ebuild,v 1.2 2003/02/13 10:04:10 vapier Exp $
IUSE=""
S="${WORKDIR}/${P}"
MY_PGSQL="postgresql-7.2.3"
DESCRIPTION="adds support for geographic objects to PostgreSQL"
SRC_URI="http://postgis.refractions.net/${P}.tar.gz
ftp://ftp8.us.postgresql.org/pub/pgsql/source/v7.2.3/${MY_PGSQL}.tar.gz"
HOMEPAGE="http://postgis.refractions.net"
LICENSE="GPL-2"
KEYWORDS="~x86"
SLOT="0"
DEPEND="=postgresql-7.2.3-r1
dev-libs/proj"
src_unpack() {
unpack "${MY_PGSQL}.tar.gz"
cd ${MY_PGSQL}/contrib
unpack "${P}.tar.gz"
cd "${P}"
patch -p0 < ${FILESDIR}/${P}-gentoo.diff || die
}
src_compile() {
local myconf
cd "${WORKDIR}/${MY_PGSQL}"
use tcltk && myconf="--with-tcl"
use python && myconf="${myconf} --with-python"
use perl && myconf="${myconf} --with-perl"
use java && myconf="${myconf} --with-java"
use ssl && myconf="${myconf} --with-ssl"
use nls && myconf="${myconf} --enable-locale --enable-nls --enable-multibyte"
use libg++ && myconf="${myconf} --with-CXX"
use ppc && CFLAGS="-pipe-fsigned-char"
./configure --prefix=/usr \
--mandir=/usr/share/man \
--docdir=/usr/share/doc/${MY_PGSQL}-r1 \
--libdir=/usr/lib \
--enable-syslog \
--enable-depend \
--with-gnu-ld \
--with-pam \
--with-maxbackends=1024 \
${myconf} || die
cd contrib/${P}
make || die
}
src_install () {
cd ${WORKDIR}/${MY_PGSQL}/contrib/${P}
make \
prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
docdir=${D}/usr/share/doc/${MY_PGSQL} \
libdir=${D}/usr/lib/contrib \
install || die
dodoc CHANGES COPYING CREDITS TODO
}
|