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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tora/tora-1.3.22.ebuild,v 1.1 2008/03/21 10:04:27 dertobi123 Exp $
4
5 inherit eutils kde-functions
6
7 IUSE="kde oracle debug oci8-instant-client xinerama"
8 DESCRIPTION="TOra - Toolkit For Oracle"
9 HOMEPAGE="http://tora.sourceforge.net"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 SLOT="0"
13 LICENSE="GPL-2"
14 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
15
16 RDEPEND="${DEPEND}
17 xinerama? ( x11-libs/libXinerama )"
18
19 DEPEND="=x11-libs/qt-3*
20 dev-lang/perl
21 <x11-libs/qscintilla-2.1
22 kde? ( >=kde-base/kdelibs-3.1
23 kde-base/arts )
24 xinerama? ( x11-proto/xineramaproto )
25 oci8-instant-client? ( dev-db/oracle-instantclient-basic )"
26
27 pkg_setup() {
28 if use oracle && [ -z "$ORACLE_HOME" ] ; then
29 eerror "ORACLE_HOME variable is not set."
30 eerror
31 eerror "You must install Oracle >= 8i client for Linux in"
32 eerror "order to compile TOra with Oracle support."
33 eerror
34 eerror "Otherwise specify -oracle in your USE variable."
35 eerror
36 eerror "You can download the Oracle software from"
37 eerror "http://otn.oracle.com/software/content.html"
38 die
39 fi
40 }
41
42 src_compile() {
43 set-qtdir 3
44 set-kdedir 3
45
46 # Need to fake out Qt or we'll get sandbox problems
47 REALHOME="$HOME"
48 mkdir -p "$T"/fakehome/.kde
49 mkdir -p "$T"/fakehome/.qt
50 export HOME="$T/fakehome"
51 addwrite "${QTDIR}/etc/settings"
52
53 local myconf
54 myconf="${myconf} $(use_with kde)"
55 myconf="${myconf} $(use_with oracle)"
56 myconf="${myconf} $(use_with xinerama)"
57
58 if use oci8-instant-client; then
59 myconf="$myconf --with-instant-client"
60 fi
61
62 myconf="$myconf --with-qt-dir=/usr/qt/3"
63
64 #./configure $myconf || die "configure failed"
65 econf $myconf || die "configure failed"
66 emake -j1 || die "emake failed"
67 }
68
69 src_install() {
70 make install DESTDIR="${D}"
71 dodoc BUGS INSTALL NEWS README TODO
72
73 insinto /usr/share/applications
74 doins "${FILESDIR}"/${PN}.desktop
75 insinto /usr/share/pixmaps
76 doins "${FILESDIR}"/${PN}.png
77 }

  ViewVC Help
Powered by ViewVC 1.1.20