| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/virtuoso.eclass,v 1.4 2010/05/12 17:59:02 reavertm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/virtuoso.eclass,v 1.9 2011/04/20 09:45:16 scarabeus Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: virtuoso.eclass |
5 | # @ECLASS: virtuoso.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Maciej Mrozowski <reavertm@gentoo.org> |
7 | # Maciej Mrozowski <reavertm@gentoo.org> |
| 8 | # |
8 | # |
| 9 | # @BLURB: Provides splitting functionality for Virtuoso |
9 | # @BLURB: Provides splitting functionality for Virtuoso |
| 10 | # @DESCRIPTION: |
10 | # @DESCRIPTION: |
| 11 | # This eclass provides common code for splitting Virtuoso OpenSource database |
11 | # This eclass provides common code for splitting Virtuoso OpenSource database |
| 12 | |
12 | |
| 13 | case ${EAPI:-0} in |
13 | case ${EAPI:-0} in |
| 14 | 2|3) : ;; |
14 | 2|3|4) : ;; |
| 15 | *) DEPEND='EAPI-TOO-OLD' ;; |
15 | *) die "EAPI=${EAPI} is not supported" ;; |
| 16 | esac |
16 | esac |
| 17 | |
17 | |
| 18 | inherit base autotools flag-o-matic multilib |
18 | inherit base autotools multilib |
| 19 | |
19 | |
| 20 | MY_P="virtuoso-opensource-${PV}" |
20 | MY_P="virtuoso-opensource-${PV}" |
| 21 | |
21 | |
| 22 | case ${PV} in |
22 | case ${PV} in |
| 23 | *9999*) |
23 | *9999*) |
| … | |
… | |
| 107 | # @DESCRIPTION: |
107 | # @DESCRIPTION: |
| 108 | # Runs ./configure with common and user options specified via myconf variable |
108 | # Runs ./configure with common and user options specified via myconf variable |
| 109 | virtuoso_src_configure() { |
109 | virtuoso_src_configure() { |
| 110 | debug-print-function ${FUNCNAME} "$@" |
110 | debug-print-function ${FUNCNAME} "$@" |
| 111 | |
111 | |
| 112 | use amd64 && append-flags '-m64' |
|
|
| 113 | |
|
|
| 114 | # Override some variables to make tests work |
112 | # Override some variables to make tests work |
| 115 | if [[ ${PN} != virtuoso-server ]]; then |
113 | if [[ ${PN} != virtuoso-server ]]; then |
| 116 | [[ ${EAPI} == 2 ]] && ! use prefix && EPREFIX= |
114 | [[ ${EAPI} == 2 ]] && ! use prefix && EPREFIX= |
| 117 | export ISQL="${EPREFIX}"/usr/bin/isql-v |
115 | export ISQL="${EPREFIX}"/usr/bin/isql-v |
| 118 | export SERVER="${EPREFIX}"/usr/bin/virtuoso-t |
116 | export SERVER="${EPREFIX}"/usr/bin/virtuoso-t |
| … | |
… | |
| 126 | --without-internal-zlib \ |
124 | --without-internal-zlib \ |
| 127 | ${myconf} |
125 | ${myconf} |
| 128 | } |
126 | } |
| 129 | |
127 | |
| 130 | # @FUNCTION: virtuoso_src_compile |
128 | # @FUNCTION: virtuoso_src_compile |
| 131 | # @DESCRIPTION |
129 | # @DESCRIPTION: |
| 132 | # Runs make for specified subdirs |
130 | # Runs make for specified subdirs |
| 133 | virtuoso_src_compile() { |
131 | virtuoso_src_compile() { |
| 134 | debug-print-function ${FUNCNAME} "$@" |
132 | debug-print-function ${FUNCNAME} "$@" |
| 135 | |
133 | |
| 136 | base_src_compile |
134 | base_src_compile |