From 29a5da2bc4ca56a4cac45eaeb37f60f87348bb74 Mon Sep 17 00:00:00 2001 From: hasufell Date: Tue, 25 Nov 2014 02:40:19 +0100 Subject: [PATCH] cunit: support multilib --- .../dev-util/cunit/cunit-2.1_p2.exheres-0 | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/packages/dev-util/cunit/cunit-2.1_p2.exheres-0 b/packages/dev-util/cunit/cunit-2.1_p2.exheres-0 index eee393c..df5934c 100644 --- a/packages/dev-util/cunit/cunit-2.1_p2.exheres-0 +++ b/packages/dev-util/cunit/cunit-2.1_p2.exheres-0 @@ -1,36 +1,41 @@ # Copyright 2014 Julian Ospald # Distributed under the terms of the GNU General Public License v2 +MY_P=CUnit-${PV/_p/-} + require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.13 1.12 1.11 1.10 ] ] +# out of source build broken +require easy-multibuild [ multiunpack=true work=${MY_P} ] -MY_PN='CUnit' -MY_PV="${PV/_p/-}" -MY_P="${MY_PN}-${MY_PV}" - -SUMMARY="CUnit - C Unit Test Framework" +SUMMARY="C Unit Test Framework" DOWNLOADS="mirror://sourceforge/cunit/${MY_P}-src.tar.bz2" HOMEPAGE="http://cunit.sourceforge.net" SLOT="0" LICENCES="LGPL-2" PLATFORMS="~amd64 ~x86" -MYOPTIONS="ncurses" +MYOPTIONS=" + ncurses + multibuild_c: ( 32 64 ) +" DEPENDENCIES=" build+run: - ncurses? ( sys-libs/ncurses ) + ncurses? ( sys-libs/ncurses[multibuild_c:*(-)?] ) " -WORK=${WORKBASE}/${MY_P} - DEFAULT_SRC_CONFIGURE_PARAMS=( --disable-static ) DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( 'ncurses curses' ) -src_prepare() { - edo sed -e "/^docdir/d" -i doc/Makefile.am - edo sed -e '/^dochdrdir/{s:$(prefix)/doc/@PACKAGE@:$(docdir):}' -i doc/headers/Makefile.am - edo sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in - eautoreconf +prepare_one_multibuild() { + # fix docdir messup + edo sed -e "/^docdir/d" -i doc/Makefile.am + edo sed -e '/^dochdrdir/{s:$(prefix)/doc/@PACKAGE@:$(docdir):}' -i doc/headers/Makefile.am + + edo sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in + + autotools_src_prepare } +