public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michal Gorny (mgorny)" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog autotools-multilib.eclass
Date: Mon,  8 Oct 2012 18:44:30 +0000 (UTC)	[thread overview]
Message-ID: <20121008184430.9476521600@flycatcher.gentoo.org> (raw)

mgorny      12/10/08 18:44:30

  Modified:             ChangeLog
  Added:                autotools-multilib.eclass
  Log:
  Introduce autotools-multilib, to simplify building multilib packages with autotools-utils.

Revision  Changes    Path
1.434                eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.434&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.434&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.433&r2=1.434

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.433
retrieving revision 1.434
diff -u -r1.433 -r1.434
--- ChangeLog	7 Oct 2012 14:53:43 -0000	1.433
+++ ChangeLog	8 Oct 2012 18:44:30 -0000	1.434
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.433 2012/10/07 14:53:43 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.434 2012/10/08 18:44:30 mgorny Exp $
+
+  08 Oct 2012; Michał Górny <mgorny@gentoo.org> +autotools-multilib.eclass:
+  Introduce autotools-multilib, to simplify building multilib packages with
+  autotools-utils.
 
   07 Oct 2012; Justin Lecher <jlec@gentoo.org> fortran-2.eclass:
   Revert virtual/fortran depends again, because not only USE=fortran controlls



1.1                  eclass/autotools-multilib.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/autotools-multilib.eclass?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/autotools-multilib.eclass?rev=1.1&content-type=text/plain

Index: autotools-multilib.eclass
===================================================================
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-multilib.eclass,v 1.1 2012/10/08 18:44:30 mgorny Exp $

# @ECLASS: autotools-multilib.eclass
# @MAINTAINER:
# Michał Górny <mgorny@gentoo.org>
# @BLURB: autotools-utils wrapper for multilib builds
# @DESCRIPTION:
# The autotools-multilib.eclass is an autotools-utils.eclass(5) wrapper
# introducing support for building for more than one ABI (multilib).
#
# Inheriting this eclass sets IUSE=multilib and exports autotools-utils
# phase function wrappers which build the package for each supported ABI
# if the flag is enabled. Otherwise, it works like regular
# autotools-utils.
#
# Note that the multilib support requires out-of-source builds to be
# enabled. Thus, it is impossible to use AUTOTOOLS_IN_SOURCE_BUILD with
# it.

case ${EAPI:-0} in
	2|3|4) ;;
	*) die "EAPI=${EAPI} is not supported" ;;
esac

if [[ ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then
	die "${ECLASS}: multilib support requires out-of-source builds."
fi

inherit autotools-utils multilib

EXPORT_FUNCTIONS src_configure src_compile src_test src_install

IUSE=multilib

# @FUNCTION: autotools-multilib_foreach_abi
# @USAGE: argv...
# @DESCRIPTION:
# If multilib support is enabled, sets the toolchain up for each
# supported ABI along with the ABI variable and correct
# AUTOTOOLS_BUILD_DIR, and runs the given commands with them.
#
# If multilib support is disabled, it just runs the commands. No setup
# is done.
autotools-multilib_foreach_abi() {
	if use multilib; then
		local ABI
		for ABI in $(get_all_abis); do
			multilib_toolchain_setup "${ABI}"
			AUTOTOOLS_BUILD_DIR=${S%%/}-${ABI} "${@}"
		done
	else
		"${@}"
	fi
}

autotools-multilib_src_configure() {
	autotools-multilib_foreach_abi autotools-utils_src_configure
}

autotools-multilib_src_compile() {
	autotools-multilib_foreach_abi autotools-utils_src_compile
}

autotools-multilib_src_test() {
	autotools-multilib_foreach_abi autotools-utils_src_test
}

autotools-multilib_src_install() {
	autotools-multilib_foreach_abi autotools-utils_src_install
}





             reply	other threads:[~2012-10-08 18:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-08 18:44 Michal Gorny (mgorny) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-01-20 23:42 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog autotools-multilib.eclass Michal Gorny (mgorny)
2013-01-26 11:34 Michal Gorny (mgorny)
2013-01-26 11:35 Michal Gorny (mgorny)
2013-01-26 11:38 Michal Gorny (mgorny)
2013-01-26 11:39 Michal Gorny (mgorny)
2013-02-22 14:42 Michal Gorny (mgorny)
2013-02-27 21:46 Michal Gorny (mgorny)
2013-02-27 21:47 Michal Gorny (mgorny)
2013-04-01  9:18 Michal Gorny (mgorny)
2013-04-01 11:05 Michal Gorny (mgorny)
2013-11-24 10:25 Michal Gorny (mgorny)
2013-11-24 10:53 Michal Gorny (mgorny)
2014-01-15 12:12 Michal Gorny (mgorny)
2014-04-30 18:17 Michal Gorny (mgorny)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121008184430.9476521600@flycatcher.gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox