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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Apr 26 18:00:30 2015 UTC (5 years, 2 months ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +5 -2 lines
Remove $$ORIGIN from DT_RUNPATH for bug 547520.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/tora/tora-9999.ebuild,v 1.6 2014/12/28 15:20:50 titanofold Exp $
4
5 EAPI=5
6
7 inherit cmake-utils eutils
8
9 if [[ ${PV} == 9999 ]]; then
10 ESVN_REPO_URI="https://tora.svn.sourceforge.net/svnroot/tora/trunk/tora"
11 inherit subversion
12 SRC_URI=""
13 else
14 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 fi
16
17 DESCRIPTION="TOra - Toolkit For Oracle"
18 HOMEPAGE="http://torasql.com/"
19 IUSE="debug mysql oracle oci8-instant-client postgres"
20
21 SLOT="0"
22 LICENSE="GPL-2"
23 KEYWORDS=""
24
25 DEPEND="
26 virtual/pkgconfig
27 dev-libs/ferrisloki
28 x11-libs/qscintilla
29 dev-qt/qtgui:4
30 dev-qt/qtsql:4[mysql?,postgres?]
31 dev-qt/qtxmlpatterns:4
32 oci8-instant-client? ( dev-db/oracle-instantclient-basic )
33 postgres? ( dev-db/postgresql )
34 "
35 RDEPEND="${DEPEND}"
36
37 pkg_setup() {
38 if ( use oracle || use oci8-instant-client ) && [ -z "$ORACLE_HOME" ] ; then
39 eerror "ORACLE_HOME variable is not set."
40 eerror
41 eerror "You must install Oracle >= 8i client for Linux in"
42 eerror "order to compile TOra with Oracle support."
43 eerror
44 eerror "Otherwise specify -oracle in your USE variable."
45 eerror
46 eerror "You can download the Oracle software from"
47 eerror "http://otn.oracle.com/software/content.html"
48 die
49 fi
50 }
51
52 src_prepare() {
53 sed -i \
54 -e "/COPYING/ d" \
55 CMakeLists.txt || die "Removal of COPYING file failed"
56 # 'svn info' needs .svn subdirectory
57 [[ ${PV} != 9999 ]] || cp -a "${ESVN_WC_PATH}"/.svn .svn || die
58 # bug 547520
59 grep -rlZ '$$ORIGIN' . | xargs -0 sed -i 's|:$$ORIGIN[^:"]*||' || \
60 die 'Removal of $$ORIGIN failed'
61 }
62
63 src_configure() {
64 local mycmakeargs=()
65 if use oracle || use oci8-instant-client ; then
66 mycmakeargs=(-DENABLE_ORACLE=ON)
67 else
68 mycmakeargs=(-DENABLE_ORACLE=OFF)
69 fi
70 mycmakeargs+=(
71 -DWANT_RPM=OFF
72 -DWANT_BUNDLE=OFF
73 -DWANT_BUNDLE_STANDALONE=OFF
74 -DWANT_INTERNAL_QSCINTILLA=OFF
75 -DWANT_INTERNAL_LOKI=OFF
76 -DLOKI_LIBRARY="$(pkg-config --variable=libdir ferrisloki)/libferrisloki.so"
77 -DLOKI_INCLUDE_DIR="$(pkg-config --variable=includedir ferrisloki)/FerrisLoki"
78 $(cmake-utils_use_enable postgres PGSQL)
79 $(cmake-utils_use_want debug)
80 # path variables
81 -DTORA_DOC_DIR=share/doc/${PF}
82 )
83 cmake-utils_src_configure
84 }
85
86 src_install() {
87 cmake-utils_src_install
88 doicon src/icons/${PN}.xpm
89 domenu src/${PN}.desktop
90 }

  ViewVC Help
Powered by ViewVC 1.1.20