blob: ff4e993a6fc9e8d0679877421eee43f41d4862bb (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# @ECLASS: postgres.eclass
# @MAINTAINER:
# titanofold@gentoo.org
# @BLURB: Functions to aid packages that utilize PostgreSQL
# @DESCRIPTION:
# The postgres eclass is a suite that enable ebuilds to build against multiple slot version
# @FUNCTION: postgres_depend
# @USAGE: postgres_depend [USE,flags] [server] [server,USE,flags]
# @DESCRIPTION:
# Called after DEPEND is declared. Takes up to two optional arguments. The 'server'
postgres_depend() {
if [[ -n ${POSTGRES_ONLY} ]] ; then
DEPEND+=" dev-db/postgresql-base:${POSTGRES_ONLY}[${BASE_FLAGS}]"
elif [[ -n ${POSTGRES_MIN} ]]
if [[ -n ${POSTGRES_MAX} ]] ; then
else
#blarg
fi
elif [[ -n ${POSGRES_MAX} ]] ; then
#blah
else
[[POSTGRES_MAX]]
[[POSTGRES_MIN]]
[[POSTGRES_ONLY]]
fi
}
length=$(expr length ${POSTGRES_MAX})
|