blob: 9cf20ff65a690c4b6c826cc5ec6186c7c839eeb3 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/datavision-bin/datavision-bin-0.8.1-r1.ebuild,v 1.1.1.1 2005/11/30 09:47:20 chriswhite Exp $
DESCRIPTION="DataVision is an Open Source reporting tool similar to Crystal Reports"
SRC_URI="mirror://sourceforge/datavision/${P/-bin}.tar.gz"
HOMEPAGE="http://datavision.sourceforge.net/"
IUSE="mysql postgres"
SLOT="0"
LICENSE="Apache-1.1"
KEYWORDS="x86 amd64 ~ppc"
DEPEND=""
RDEPEND=">=virtual/jre-1.3 \
mysql? ( >=dev-java/jdbc-mysql-3.0 ) \
postgres? ( >=dev-java/jdbc2-postgresql-7.3 )"
DATAVISION_HOME=/opt/datavision
S=${WORKDIR}/${P/-bin}
src_compile() { :; }
src_install() {
dodir ${DATAVISION_HOME}
cp -r * ${D}${DATAVISION_HOME}
}
pkg_postinst() {
einfo "CONFIGURATION NOTES"
echo
einfo "Make sure your CLASSPATH variable is updated via java-config(1)"
einfo "to use your desired JDBC driver."
echo
einfo "You must then create a database. Run ${DATAVISION_HOME}/datavision.sh"
einfo "and fill the connection dialog box with your database details."
if use mysql; then
echo
echo "MySQL example:"
eerror "Driver class name: com.mysql.jdbc.Drive"
eerror "Connection: jdbc:mysql://localhost/database"
fi
if use postgres; then
echo
echo "PostgreSQL example:"
eerror "Driver class name:org.postgresql.Driver"
eerror "Connection: jdbc:postgresql://localhost/database"
fi
}
|