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

Diff of /eclass/multilib-build.eclass

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

Revision 1.2 Revision 1.6
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-build.eclass,v 1.2 2013/02/10 11:44:00 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.6 2013/02/27 23:23:11 mgorny Exp $
4 4
5# @ECLASS: multilib-build.eclass 5# @ECLASS: multilib-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: flags and utility functions for building multilib packages 8# @BLURB: flags and utility functions for building multilib packages
30# @DESCRIPTION: 30# @DESCRIPTION:
31# The list of multilib flags and corresponding ABI values. 31# The list of multilib flags and corresponding ABI values.
32_MULTILIB_FLAGS=( 32_MULTILIB_FLAGS=(
33 abi_x86_32:x86 33 abi_x86_32:x86
34 abi_x86_64:amd64 34 abi_x86_64:amd64
35 abi_x86_x32:x32
35) 36)
36 37
37# @ECLASS-VARIABLE: MULTILIB_USEDEP 38# @ECLASS-VARIABLE: MULTILIB_USEDEP
38# @DESCRIPTION: 39# @DESCRIPTION:
39# The USE-dependency to be used on dependencies (libraries) needing 40# The USE-dependency to be used on dependencies (libraries) needing
144# This function needs to be called after each ABI's installation phase. 145# This function needs to be called after each ABI's installation phase.
145# It obtains the header file checksums and compares them with previous 146# It obtains the header file checksums and compares them with previous
146# runs (if any). Dies if header files differ. 147# runs (if any). Dies if header files differ.
147multilib_check_headers() { 148multilib_check_headers() {
148 _multilib_header_cksum() { 149 _multilib_header_cksum() {
150 [[ -d ${ED}usr/include ]] && \
149 find "${ED}"usr/include -type f \ 151 find "${ED}"usr/include -type f \
150 -exec cksum {} + | sort -k2 152 -exec cksum {} + | sort -k2
151 } 153 }
152 154
153 local cksum=$(_multilib_header_cksum) 155 local cksum=$(_multilib_header_cksum)

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

  ViewVC Help
Powered by ViewVC 1.1.20