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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Feb 20 09:54:23 2015 UTC (5 years, 4 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Drop old and broken version, bug #522180

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x60C0742D1F357D42)

1 # Copyright 1999-2014 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-r3.ebuild,v 1.3 2014/12/28 15:20:50 titanofold Exp $
4
5 EAPI=3
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="~amd64 ~ppc ~x86"
17
18 DEPEND="
19 dev-libs/ferrisloki
20 x11-libs/qscintilla
21 dev-qt/qtgui:4
22 dev-qt/qtsql:4[mysql?,postgres?]
23 dev-qt/qtxmlpatterns: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 RDEPEND="${DEPEND}"
31
32 pkg_setup() {
33 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
34 eerror "ORACLE_HOME variable is not set."
35 eerror
36 eerror "You must install Oracle >= 8i client for Linux in"
37 eerror "order to compile TOra with Oracle support."
38 eerror
39 eerror "Otherwise specify -oracle in your USE variable."
40 eerror
41 eerror "You can download the Oracle software from"
42 eerror "http://otn.oracle.com/software/content.html"
43 die
44 fi
45 }
46
47 src_prepare() {
48 epatch "${FILESDIR}"/${P}-gcc-4.7.patch #430044
49 epatch "${FILESDIR}"/${P}-ext-loki.patch #383109
50 epatch "${FILESDIR}"/${P}-desktop.patch #484198
51 sed -i \
52 -e "/COPYING/ d" \
53 CMakeLists.txt || die "Removal of COPYING file failed"
54 }
55
56 src_configure() {
57 local mycmakeargs=()
58 if use oracle || use oci8-instant-client ; then
59 mycmakeargs=(-DENABLE_ORACLE=ON)
60 else
61 mycmakeargs=(-DENABLE_ORACLE=OFF)
62 fi
63 mycmakeargs+=(
64 -DWANT_RPM=OFF
65 -DWANT_BUNDLE=OFF
66 -DWANT_BUNDLE_STANDALONE=OFF
67 -DWANT_INTERNAL_QSCINTILLA=OFF
68 -DWANT_INTERNAL_LOKI=OFF
69 $(cmake-utils_use_enable postgres PGSQL)
70 $(cmake-utils_use_want debug)
71 # path variables
72 -DTORA_DOC_DIR=share/doc/${PF}
73 )
74 cmake-utils_src_configure
75 }
76
77 src_install() {
78 cmake-utils_src_install
79 doicon src/icons/${PN}.xpm || die
80 domenu debian/${PN}.desktop || die
81 }

  ViewVC Help
Powered by ViewVC 1.1.20