/[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.2 - (show annotations) (download)
Thu Apr 23 17:59:52 2009 UTC (11 years, 3 months ago) by dertobi123
Branch: MAIN
Changes since 1.1: +5 -2 lines
Remove moc files generated with qt-4.4, #259575
(Portage version: 2.2_rc31/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.1 2008/12/27 22:37:30 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 mysql? ( x11-libs/qt-sql[mysql] )
21 postgres? ( x11-libs/qt-sql[postgres] )
22 >=x11-libs/qscintilla-2.1[qt4]
23 oci8-instant-client? ( dev-db/oracle-instantclient-basic )"
24
25 pkg_setup() {
26 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
27 eerror "ORACLE_HOME variable is not set."
28 eerror
29 eerror "You must install Oracle >= 8i client for Linux in"
30 eerror "order to compile TOra with Oracle support."
31 eerror
32 eerror "Otherwise specify -oracle in your USE variable."
33 eerror
34 eerror "You can download the Oracle software from"
35 eerror "http://otn.oracle.com/software/content.html"
36 die
37 fi
38 }
39
40 src_configure() {
41 # Need to fake out Qt or we'll get sandbox problems
42 REALHOME="$HOME"
43 mkdir -p "$T"/fakehome/.kde
44 mkdir -p "$T"/fakehome/.qt
45 export HOME="$T/fakehome"
46 addwrite "${QTDIR}/etc/settings"
47
48 # Remove files generated with qt-4.4 moc
49 rm src/{moc_*.cpp,ui_*ui.h} || die "rm failed"
50
51 local myconf
52
53 if use oracle; then
54 myconf="$myconf --with-oracle=${ORACLE_HOME}"
55 fi
56
57 if use oci8-instant-client; then
58 myconf="$myconf --with-instant-client=${ORACLE_HOME}"
59 fi
60
61 if use oci8-instant-client || use oracle ; then
62 myconf="$myconf --with-oracle-libraries=${ORACLE_HOME}/lib \
63 --with-oracle-includes=${ORACLE_HOME}/include "
64 fi
65
66 myconf="$myconf --with-qt-includes=/usr/include/qt4/ --with-qt-libraries=/usr/lib/qt4/ --with-qt-dir=/usr/lib/qt4"
67
68 econf $myconf || die "configure failed"
69 }
70
71 src_compile() {
72 emake -j1 || die "make failed"
73 }
74
75 src_install() {
76 make install DESTDIR="${D}"
77 dodoc BUGS INSTALL NEWS README TODO
78
79 insinto /usr/share/applications
80 doins "${FILESDIR}"/${PN}.desktop
81 insinto /usr/share/pixmaps
82 doins "${FILESDIR}"/${PN}.png
83 }

  ViewVC Help
Powered by ViewVC 1.1.20