/[gentoo-x86]/eclass/virtuoso.eclass
Gentoo

Diff of /eclass/virtuoso.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.11
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.11 2011/07/07 23:00:06 reavertm 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
13case ${EAPI:-0} in 13case ${EAPI:-0} in
14 2|3) : ;; 14 2|3|4) : ;;
15 *) DEPEND='EAPI-TOO-OLD' ;; 15 *) die "EAPI=${EAPI} is not supported" ;;
16esac 16esac
17 17
18inherit base autotools flag-o-matic multilib 18inherit base autotools multilib
19 19
20MY_P="virtuoso-opensource-${PV}" 20MY_P="virtuoso-opensource-${PV}"
21 21
22case ${PV} in 22case ${PV} in
23 *9999*) 23 *9999*)
38# Set some defaults 38# Set some defaults
39HOMEPAGE='http://virtuoso.openlinksw.com/wiki/main/Main/' 39HOMEPAGE='http://virtuoso.openlinksw.com/wiki/main/Main/'
40LICENSE='GPL-2' 40LICENSE='GPL-2'
41SLOT='0' 41SLOT='0'
42 42
43# Restrict incompatible gawk, bug 374315
43DEPEND=' 44DEPEND='
45 <sys-apps/gawk-4.0.0
44 >=sys-devel/libtool-2.2.6a 46 >=sys-devel/libtool-2.2.6a
45' 47'
46RDEPEND='' 48RDEPEND=''
47 49
48S="${WORKDIR}/${MY_P}" 50S="${WORKDIR}/${MY_P}"
57virtuoso_src_prepare() { 59virtuoso_src_prepare() {
58 debug-print-function ${FUNCNAME} "$@" 60 debug-print-function ${FUNCNAME} "$@"
59 61
60 EPATCH_SUFFIX='patch' EPATCH_FORCE='yes' epatch 62 EPATCH_SUFFIX='patch' EPATCH_FORCE='yes' epatch
61 base_src_prepare 63 base_src_prepare
62 epatch_user
63 64
64 # @ECLASS-VARIABLE: VOS_EXTRACT 65 # @ECLASS-VARIABLE: VOS_EXTRACT
65 # @DESCRIPTION: 66 # @DESCRIPTION:
66 # Lists any subdirectories that are required to be extracted 67 # Lists any subdirectories that are required to be extracted
67 # and enabled in Makefile.am's for current package. 68 # and enabled in Makefile.am's for current package.
107# @DESCRIPTION: 108# @DESCRIPTION:
108# Runs ./configure with common and user options specified via myconf variable 109# Runs ./configure with common and user options specified via myconf variable
109virtuoso_src_configure() { 110virtuoso_src_configure() {
110 debug-print-function ${FUNCNAME} "$@" 111 debug-print-function ${FUNCNAME} "$@"
111 112
112 use amd64 && append-flags '-m64'
113
114 # Override some variables to make tests work 113 # Override some variables to make tests work
115 if [[ ${PN} != virtuoso-server ]]; then 114 if [[ ${PN} != virtuoso-server ]]; then
116 [[ ${EAPI} == 2 ]] && ! use prefix && EPREFIX= 115 [[ ${EAPI} == 2 ]] && ! use prefix && EPREFIX=
117 export ISQL="${EPREFIX}"/usr/bin/isql-v 116 export ISQL="${EPREFIX}"/usr/bin/isql-v
118 export SERVER="${EPREFIX}"/usr/bin/virtuoso-t 117 export SERVER="${EPREFIX}"/usr/bin/virtuoso-t
126 --without-internal-zlib \ 125 --without-internal-zlib \
127 ${myconf} 126 ${myconf}
128} 127}
129 128
130# @FUNCTION: virtuoso_src_compile 129# @FUNCTION: virtuoso_src_compile
131# @DESCRIPTION 130# @DESCRIPTION:
132# Runs make for specified subdirs 131# Runs make for specified subdirs
133virtuoso_src_compile() { 132virtuoso_src_compile() {
134 debug-print-function ${FUNCNAME} "$@" 133 debug-print-function ${FUNCNAME} "$@"
135 134
136 base_src_compile 135 base_src_compile

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20