2014-11-24 17:31:57 +00:00
|
|
|
# Copyright 2014 Julian Ospald <hasufell@posteo.de>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2014-11-25 01:40:19 +00:00
|
|
|
MY_P=CUnit-${PV/_p/-}
|
2014-11-24 17:31:57 +00:00
|
|
|
|
2014-11-25 01:40:19 +00:00
|
|
|
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} ]
|
2014-11-24 17:31:57 +00:00
|
|
|
|
2014-11-25 01:40:19 +00:00
|
|
|
SUMMARY="C Unit Test Framework"
|
2014-11-24 17:31:57 +00:00
|
|
|
DOWNLOADS="mirror://sourceforge/cunit/${MY_P}-src.tar.bz2"
|
|
|
|
HOMEPAGE="http://cunit.sourceforge.net"
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
LICENCES="LGPL-2"
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
2014-11-25 01:40:19 +00:00
|
|
|
MYOPTIONS="
|
|
|
|
ncurses
|
|
|
|
multibuild_c: ( 32 64 )
|
|
|
|
"
|
2014-11-24 17:31:57 +00:00
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
2014-11-25 01:40:19 +00:00
|
|
|
ncurses? ( sys-libs/ncurses[multibuild_c:*(-)?] )
|
2014-11-24 17:31:57 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
DEFAULT_SRC_CONFIGURE_PARAMS=( --disable-static )
|
|
|
|
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
|
|
|
|
'ncurses curses'
|
|
|
|
)
|
|
|
|
|
2014-11-25 01:40:19 +00:00
|
|
|
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
|
2014-11-24 17:31:57 +00:00
|
|
|
}
|
2014-11-25 01:40:19 +00:00
|
|
|
|