/[gentoo-x86]/eclass/multilib-minimal.eclass
Gentoo

Diff of /eclass/multilib-minimal.eclass

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

Revision 1.6 Revision 1.7
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/multilib-minimal.eclass,v 1.6 2013/10/20 16:27:24 hasufell Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-minimal.eclass,v 1.7 2013/12/27 22:47:14 hasufell Exp $
4 4
5# @ECLASS: multilib-minimal.eclass 5# @ECLASS: multilib-minimal.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Julian Ospald <hasufell@gentoo.org> 7# Julian Ospald <hasufell@gentoo.org>
8# @BLURB: wrapper for multilib builds providing convenient multilib_src_* functions 8# @BLURB: wrapper for multilib builds providing convenient multilib_src_* functions
34 34
35EXPORT_FUNCTIONS src_configure src_compile src_test src_install 35EXPORT_FUNCTIONS src_configure src_compile src_test src_install
36 36
37 37
38multilib-minimal_src_configure() { 38multilib-minimal_src_configure() {
39 debug-print-function ${FUNCNAME} "$@"
40
39 multilib-minimal_abi_src_configure() { 41 multilib-minimal_abi_src_configure() {
42 debug-print-function ${FUNCNAME} "$@"
43
40 mkdir -p "${BUILD_DIR}" || die 44 mkdir -p "${BUILD_DIR}" || die
41 pushd "${BUILD_DIR}" >/dev/null || die 45 pushd "${BUILD_DIR}" >/dev/null || die
42 if declare -f multilib_src_configure >/dev/null ; then 46 if declare -f multilib_src_configure >/dev/null ; then
43 multilib_src_configure 47 multilib_src_configure
44 else 48 else
49 53
50 multilib_foreach_abi multilib-minimal_abi_src_configure 54 multilib_foreach_abi multilib-minimal_abi_src_configure
51} 55}
52 56
53multilib-minimal_src_compile() { 57multilib-minimal_src_compile() {
58 debug-print-function ${FUNCNAME} "$@"
59
54 multilib-minimal_abi_src_compile() { 60 multilib-minimal_abi_src_compile() {
61 debug-print-function ${FUNCNAME} "$@"
62
55 pushd "${BUILD_DIR}" >/dev/null || die 63 pushd "${BUILD_DIR}" >/dev/null || die
56 if declare -f multilib_src_compile >/dev/null ; then 64 if declare -f multilib_src_compile >/dev/null ; then
57 multilib_src_compile 65 multilib_src_compile
58 else 66 else
59 default_src_compile 67 default_src_compile
63 71
64 multilib_foreach_abi multilib-minimal_abi_src_compile 72 multilib_foreach_abi multilib-minimal_abi_src_compile
65} 73}
66 74
67multilib-minimal_src_test() { 75multilib-minimal_src_test() {
76 debug-print-function ${FUNCNAME} "$@"
77
68 multilib-minimal_abi_src_test() { 78 multilib-minimal_abi_src_test() {
79 debug-print-function ${FUNCNAME} "$@"
80
69 pushd "${BUILD_DIR}" >/dev/null || die 81 pushd "${BUILD_DIR}" >/dev/null || die
70 if declare -f multilib_src_test >/dev/null ; then 82 if declare -f multilib_src_test >/dev/null ; then
71 multilib_src_test 83 multilib_src_test
72 else 84 else
73 default_src_test 85 default_src_test
77 89
78 multilib_foreach_abi multilib-minimal_abi_src_test 90 multilib_foreach_abi multilib-minimal_abi_src_test
79} 91}
80 92
81multilib-minimal_src_install() { 93multilib-minimal_src_install() {
94 debug-print-function ${FUNCNAME} "$@"
95
82 multilib-minimal_abi_src_install() { 96 multilib-minimal_abi_src_install() {
97 debug-print-function ${FUNCNAME} "$@"
98
83 pushd "${BUILD_DIR}" >/dev/null || die 99 pushd "${BUILD_DIR}" >/dev/null || die
84 if declare -f multilib_src_install >/dev/null ; then 100 if declare -f multilib_src_install >/dev/null ; then
85 multilib_src_install 101 multilib_src_install
86 else 102 else
87 # default_src_install will not work here as it will 103 # default_src_install will not work here as it will

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20