/[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.2 Revision 1.3
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.2 2013/04/07 16:56:14 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-minimal.eclass,v 1.3 2013/05/04 20:06:42 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
82 multilib-minimal_abi_src_install() { 82 multilib-minimal_abi_src_install() {
83 pushd "${BUILD_DIR}" >/dev/null || die 83 pushd "${BUILD_DIR}" >/dev/null || die
84 if declare -f multilib_src_install >/dev/null ; then 84 if declare -f multilib_src_install >/dev/null ; then
85 multilib_src_install 85 multilib_src_install
86 else 86 else
87 default_src_install 87 # default_src_install will not work here as it will
88 # break handling of DOCS wrt #468092
89 # so we split up the emake and doc-install part
90 # this is synced with __eapi4_src_install
91 if [[ -f Makefile || -f GNUmakefile || -f makefile ]] ; then
92 emake DESTDIR="${D}" install
93 fi
88 fi 94 fi
89 multilib_prepare_wrappers 95 multilib_prepare_wrappers
90 multilib_check_headers 96 multilib_check_headers
91 popd >/dev/null || die 97 popd >/dev/null || die
92 } 98 }
94 multilib_install_wrappers 100 multilib_install_wrappers
95 101
96 if declare -f multilib_src_install_all >/dev/null ; then 102 if declare -f multilib_src_install_all >/dev/null ; then
97 multilib_src_install_all 103 multilib_src_install_all
98 fi 104 fi
105
106 # this is synced with __eapi4_src_install
107 if ! declare -p DOCS &>/dev/null ; then
108 local d
109 for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
110 THANKS BUGS FAQ CREDITS CHANGELOG ; do
111 [[ -s "${d}" ]] && dodoc "${d}"
112 done
113 elif [[ $(declare -p DOCS) == "declare -a "* ]] ; then
114 dodoc "${DOCS[@]}"
115 else
116 dodoc ${DOCS}
117 fi
99} 118}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20