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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Sep 17 16:10:12 2009 UTC (10 years, 11 months ago) by dertobi123
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Version bump, #284360
(Portage version: 2.2_rc40/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.0.0.ebuild,v 1.5 2009/06/26 18:41:53 dertobi123 Exp $
4
5 EAPI=2
6
7 inherit eutils kde-functions
8
9 IUSE="debug mysql oracle oci8-instant-client postgres"
10 DESCRIPTION="TOra - Toolkit For Oracle"
11 HOMEPAGE="http://tora.sourceforge.net"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13
14 SLOT="0"
15 LICENSE="GPL-2"
16 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
17
18 RDEPEND="${DEPEND}"
19 DEPEND="dev-lang/perl
20 x11-libs/qt-sql
21 mysql? ( x11-libs/qt-sql[mysql] )
22 postgres? ( x11-libs/qt-sql[postgres] )
23 >=x11-libs/qscintilla-2.1[qt4]
24 oci8-instant-client? (
25 dev-db/oracle-instantclient-basic
26 dev-db/oracle-instantclient-sqlplus
27 )"
28
29 pkg_setup() {
30 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
31 eerror "ORACLE_HOME variable is not set."
32 eerror
33 eerror "You must install Oracle >= 8i client for Linux in"
34 eerror "order to compile TOra with Oracle support."
35 eerror
36 eerror "Otherwise specify -oracle in your USE variable."
37 eerror
38 eerror "You can download the Oracle software from"
39 eerror "http://otn.oracle.com/software/content.html"
40 die
41 fi
42 }
43
44 src_prepare() {
45 epatch "${FILESDIR}/${P}-gcc44.patch"
46 }
47
48 src_configure() {
49 # Need to fake out Qt or we'll get sandbox problems
50 REALHOME="$HOME"
51 mkdir -p "$T"/fakehome/.kde
52 mkdir -p "$T"/fakehome/.qt
53 export HOME="$T/fakehome"
54 addwrite "${QTDIR}/etc/settings"
55
56 # Remove files generated with qt-4.4 moc
57 rm src/{moc_*.cpp,ui_*ui.h} || die "rm failed"
58
59 local myconf
60
61 if use oracle; then
62 myconf="$myconf --with-oracle=${ORACLE_HOME}"
63 fi
64
65 if use oci8-instant-client; then
66 myconf="$myconf --with-instant-client=${ORACLE_HOME}"
67 fi
68
69 if use oci8-instant-client || use oracle ; then
70 myconf="$myconf --with-oracle-libraries=${ORACLE_HOME}/lib \
71 --with-oracle-includes=${ORACLE_HOME}/include "
72 fi
73
74 myconf="$myconf --with-qt-includes=/usr/include/qt4/ --with-qt-libraries=/usr/lib/qt4/ --with-qt-dir=/usr/lib/qt4"
75
76 econf $myconf || die "configure failed"
77 }
78
79 src_compile() {
80 emake -j1 || die "make failed"
81 }
82
83 src_install() {
84 make install DESTDIR="${D}"
85 dodoc BUGS INSTALL NEWS README TODO
86
87 insinto /usr/share/applications
88 doins "${FILESDIR}"/${PN}.desktop
89 insinto /usr/share/pixmaps
90 doins "${FILESDIR}"/${PN}.png
91 }

  ViewVC Help
Powered by ViewVC 1.1.20