Lines 6-23
Link Here
|
6 |
|
6 |
|
7 |
DESCRIPTION="sophisticated Object-Relational DBMS." |
7 |
DESCRIPTION="sophisticated Object-Relational DBMS." |
8 |
HOMEPAGE="http://www.postgresql.org/" |
8 |
HOMEPAGE="http://www.postgresql.org/" |
9 |
#P_HIERPG="hier-Pg7.4-0.5.2" |
9 |
#P_HIERPG="hier-Pg7.4-0.5.3" |
10 |
MY_PV=${PV/_/} |
10 |
MY_PV=${PV/_/} |
11 |
MY_P=${PN}-${MY_PV} |
11 |
MY_P=${PN}-${MY_PV} |
|
|
12 |
POSTGIS="postgis-0.9.1" |
12 |
SRC_URI="mirror://postgresql/source/v8.0.0beta/${PN}-base-${MY_PV}.tar.bz2 |
13 |
SRC_URI="mirror://postgresql/source/v8.0.0beta/${PN}-base-${MY_PV}.tar.bz2 |
13 |
mirror://postgresql/source/v8.0.0beta/${PN}-opt-${MY_PV}.tar.bz2 |
14 |
mirror://postgresql/source/v8.0.0beta/${PN}-opt-${MY_PV}.tar.bz2 |
14 |
doc? ( mirror://postgresql/source/v8.0.0beta/${PN}-docs-${MY_PV}.tar.bz2 )" |
15 |
doc? ( mirror://postgresql/source/v8.0.0beta/${PN}-docs-${MY_PV}.tar.bz2 ) |
15 |
# pg-hier? ( http://gppl.terminal.ru/${P_HIERPG}.tar.gz )" |
16 |
postgis? ( http://postgis.refractions.net/${POSTGIS}.tar.gz )" |
|
|
17 |
# pg-hier? ( http://gppl.terminal.ru/${P_HIERPG}.tar.gz ) |
16 |
|
18 |
|
17 |
LICENSE="POSTGRESQL" |
19 |
LICENSE="POSTGRESQL" |
18 |
SLOT="0" |
20 |
SLOT="0" |
19 |
KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64" |
21 |
KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64" |
20 |
IUSE="ssl nls python tcltk perl libg++ pam readline xml2 zlib doc" |
22 |
IUSE="ssl nls python tcltk perl libg++ pam readline xml2 zlib doc postgis" |
21 |
|
23 |
|
22 |
S=${WORKDIR}/${MY_P} |
24 |
S=${WORKDIR}/${MY_P} |
23 |
DEPEND="virtual/libc |
25 |
DEPEND="virtual/libc |
Lines 31-37
Link Here
|
31 |
python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) |
33 |
python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base ) |
32 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
34 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
33 |
xml2? ( dev-libs/libxml2 dev-libs/libxslt ) |
35 |
xml2? ( dev-libs/libxml2 dev-libs/libxslt ) |
34 |
nls? ( sys-devel/gettext )" |
36 |
nls? ( sys-devel/gettext ) |
|
|
37 |
postgis? ( >=sci-libs/proj-4.4.7 ) |
38 |
postgis? ( >=sci-libs/geos-2.0.0 )" |
39 |
|
35 |
RDEPEND="virtual/libc |
40 |
RDEPEND="virtual/libc |
36 |
app-admin/sudo |
41 |
app-admin/sudo |
37 |
zlib? ( >=sys-libs/zlib-1.1.3 ) |
42 |
zlib? ( >=sys-libs/zlib-1.1.3 ) |
Lines 61-66
Link Here
|
61 |
src_unpack() { |
66 |
src_unpack() { |
62 |
unpack ${A} || die |
67 |
unpack ${A} || die |
63 |
epatch ${FILESDIR}/${P}-gentoo.patch |
68 |
epatch ${FILESDIR}/${P}-gentoo.patch |
|
|
69 |
if use postgis; then |
70 |
cd ${S} |
71 |
mv ../${POSTGIS} contrib/postgis |
72 |
cd contrib/postgis |
73 |
sed -i -e "s:PROJ_DIR=/usr/local:PROJ_DIR=/usr:g" \ |
74 |
-e "s:GEOS_DIR=/usr/local:GEOS_DIR=/usr:g" \ |
75 |
Makefile |
76 |
fi |
64 |
} |
77 |
} |
65 |
|
78 |
|
66 |
src_compile() { |
79 |
src_compile() { |
Lines 86-92
Link Here
|
86 |
# Detect mips systems properly |
99 |
# Detect mips systems properly |
87 |
gnuconfig_update |
100 |
gnuconfig_update |
88 |
|
101 |
|
89 |
./configure --prefix=/usr \ |
102 |
LDFLAGS=-lstdc++ ./configure --prefix=/usr \ |
90 |
--mandir=/usr/share/man \ |
103 |
--mandir=/usr/share/man \ |
91 |
--host=${CHOST} \ |
104 |
--host=${CHOST} \ |
92 |
--with-docdir=/usr/share/doc/${PF} \ |
105 |
--with-docdir=/usr/share/doc/${PF} \ |
Lines 103-108
Link Here
|
103 |
cd xml2 |
116 |
cd xml2 |
104 |
make || die |
117 |
make || die |
105 |
fi |
118 |
fi |
|
|
119 |
if use postgis; then |
120 |
cd postgis |
121 |
make || die |
122 |
fi |
106 |
} |
123 |
} |
107 |
|
124 |
|
108 |
src_install() { |
125 |
src_install() { |
Lines 127-132
Link Here
|
127 |
if use pg-hier; then |
144 |
if use pg-hier; then |
128 |
dodoc ${WORKDIR}/README-${P_HIERPG}.html || die |
145 |
dodoc ${WORKDIR}/README-${P_HIERPG}.html || die |
129 |
fi |
146 |
fi |
|
|
147 |
if use postgis; then |
148 |
cd ${S}/contrib/postgis |
149 |
make \ |
150 |
prefix=${D}/usr \ |
151 |
mandir=${D}/usr/share/man \ |
152 |
infodir=${D}/usr/share/info \ |
153 |
libdir=${D}/usr/lib/postgresql \ |
154 |
docdir=${D}/usr/share/doc/${PN}-${PV} \ |
155 |
install || die |
156 |
cp *.sql ${D}/usr/share/${PN}/contrib |
157 |
fi |
130 |
dodoc README HISTORY COPYRIGHT INSTALL |
158 |
dodoc README HISTORY COPYRIGHT INSTALL |
131 |
dodoc contrib/adddepend/* |
159 |
dodoc contrib/adddepend/* |
132 |
|
160 |
|
Lines 158-163
Link Here
|
158 |
insinto /etc/conf.d/ |
186 |
insinto /etc/conf.d/ |
159 |
newins ${FILESDIR}/postgresql.conf-8.0.0 postgresql || die |
187 |
newins ${FILESDIR}/postgresql.conf-8.0.0 postgresql || die |
160 |
newins ${FILESDIR}/pg_autovacuum.conf-${PV} pg_autovacuum || die |
188 |
newins ${FILESDIR}/pg_autovacuum.conf-${PV} pg_autovacuum || die |
|
|
189 |
|
161 |
} |
190 |
} |
162 |
|
191 |
|
163 |
pkg_postinst() { |
192 |
pkg_postinst() { |