/[gentoo-x86]/dev-db/tora/tora-2.1.3.ebuild
Gentoo

Contents of /dev-db/tora/tora-2.1.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 9 10:29:39 2012 UTC (8 years, 5 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop maintainer due retirement, bug #85926

(Portage version: 2.1.10.45/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tora/tora-2.1.3.ebuild,v 1.1 2010/11/27 14:27:45 dertobi123 Exp $
4
5 EAPI=2
6
7 inherit cmake-utils eutils
8
9 DESCRIPTION="TOra - Toolkit For Oracle"
10 HOMEPAGE="http://tora.sourceforge.net"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12 IUSE="debug mysql oracle oci8-instant-client postgres"
13
14 SLOT="0"
15 LICENSE="GPL-2"
16 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
17
18 RDEPEND="${DEPEND}"
19 DEPEND="
20 x11-libs/qscintilla
21 x11-libs/qt-gui:4
22 x11-libs/qt-sql:4[mysql?,postgres?]
23 x11-libs/qt-xmlpatterns:4
24 oci8-instant-client? (
25 dev-db/oracle-instantclient-basic
26 dev-db/oracle-instantclient-sqlplus
27 )
28 postgres? ( dev-db/postgresql-server )
29 "
30
31 pkg_setup() {
32 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
33 eerror "ORACLE_HOME variable is not set."
34 eerror
35 eerror "You must install Oracle >= 8i client for Linux in"
36 eerror "order to compile TOra with Oracle support."
37 eerror
38 eerror "Otherwise specify -oracle in your USE variable."
39 eerror
40 eerror "You can download the Oracle software from"
41 eerror "http://otn.oracle.com/software/content.html"
42 die
43 fi
44 }
45
46 src_prepare() {
47 sed -i \
48 -e "/COPYING/ d" \
49 CMakeLists.txt || die "Removal of COPYING file failed"
50 }
51
52 src_configure() {
53 local mycmakeargs=()
54 if use oracle || use oci8-instant-client ; then
55 mycmakeargs=(-DENABLE_ORACLE=ON)
56 else
57 mycmakeargs=(-DENABLE_ORACLE=OFF)
58 fi
59 mycmakeargs+=(
60 -DWANT_RPM=OFF
61 -DWANT_BUNDLE=OFF
62 -DWANT_BUNDLE_STANDALONE=OFF
63 -DWANT_INTERNAL_QSCINTILLA=OFF
64 $(cmake-utils_use_enable postgres PGSQL)
65 $(cmake-utils_use_want debug)
66 # path variables
67 -DTORA_DOC_DIR=share/doc/${PF}
68 )
69 cmake-utils_src_configure
70 }

  ViewVC Help
Powered by ViewVC 1.1.20