diff options
author | Sven Wegener <swegener@gentoo.org> | 2015-12-19 02:11:30 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2015-12-19 17:10:35 +0000 |
commit | e76e424631447234a00ab1d0b559e3abea3ea28d (patch) | |
tree | 71d7c38da2b4274968a79b684c3660626ea4f679 | |
parent | dev-embedded/sdcc: Update sourceforge svn url (diff) | |
download | gentoo-e76e424631447234a00ab1d0b559e3abea3ea28d.tar.gz gentoo-e76e424631447234a00ab1d0b559e3abea3ea28d.tar.bz2 gentoo-e76e424631447234a00ab1d0b559e3abea3ea28d.zip |
dev-embedded/sdcc: Copy current release ebuild to live ebuild
Signed-off-by: Sven Wegener <swegener@gentoo.org>
-rw-r--r-- | dev-embedded/sdcc/sdcc-9999.ebuild | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/dev-embedded/sdcc/sdcc-9999.ebuild b/dev-embedded/sdcc/sdcc-9999.ebuild index c0f15531b64d..6091311f02e3 100644 --- a/dev-embedded/sdcc/sdcc-9999.ebuild +++ b/dev-embedded/sdcc/sdcc-9999.ebuild @@ -20,9 +20,20 @@ fi DESCRIPTION="Small device C compiler (for various microprocessors)" HOMEPAGE="http://sdcc.sourceforge.net/" -LICENSE="GPL-2" +LICENSE="GPL-2 ZLIB + non-free? ( MicroChip-SDCC ) + packihx? ( public-domain )" SLOT="0" -IUSE="+boehm-gc doc" +IUSE="mcs51 z80 z180 r2k r3ka gbz80 tlcs90 ds390 ds400 pic14 pic16 hc08 s08 stm8 +ucsim device-lib packihx +sdcpp sdcdb sdbinutils non-free +boehm-gc doc" + +REQUIRED_USE=" + mcs51? ( sdbinutils ) + ds390? ( sdbinutils ) + ds400? ( sdbinutils ) + hc08? ( sdbinutils ) + s08? ( sdbinutils )" + RESTRICT="strip" RDEPEND="dev-libs/boost:= @@ -41,12 +52,10 @@ if docs_compile ; then )" fi -S=${WORKDIR}/${PN} - src_prepare() { # Fix conflicting variable names between Gentoo and sdcc find \ - '(' -name 'Makefile*.in' -o -name configure ')' \ + '(' -name 'Makefile*.in' -o -name 'configure' ')' \ -exec sed -r -i \ -e 's:\<(PORTDIR|ARCH)\>:SDCC\1:g' \ {} + || die @@ -57,15 +66,8 @@ src_prepare() { -e "/^AR =/s:=.*:=$(tc-getAR):" \ support/cpp/Makefile.in || die - # We'll install doc manually - sed -i -e '/SDCC_DOC/d' Makefile.in || die - sed -i -e 's/ doc//' sim/ucsim/packages_in.mk || die - # Make sure timestamps don't get messed up. [[ ${PV} == "9999" ]] && find "${S}" -type f -exec touch -r . {} + - - # workaround parallel build issues with lyx - mkdir -p "${HOME}"/.lyx } src_configure() { @@ -77,6 +79,27 @@ src_configure() { ac_cv_prog_AR="$(tc-getAR)" \ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ --without-ccache \ + $(use_enable mcs51 mcs51-port) \ + $(use_enable z80 z80-port) \ + $(use_enable z180 z180-port) \ + $(use_enable r2k r2k-port) \ + $(use_enable r3ka r3ka-port) \ + $(use_enable gbz80 gbz80-port) \ + $(use_enable tlcs90 tlcs90-port) \ + $(use_enable ds390 ds390-port) \ + $(use_enable ds400 ds400-port) \ + $(use_enable pic14 pic14-port) \ + $(use_enable pic16 pic16-port) \ + $(use_enable hc08 hc08-port) \ + $(use_enable s08 s08-port) \ + $(use_enable stm8 stm8-port) \ + $(use_enable ucsim ucsim) \ + $(use_enable device-lib device-lib) \ + $(use_enable packihx packihx) \ + $(use_enable sdcpp sdcpp) \ + $(use_enable sdcdb sdcdb) \ + $(use_enable sdbinutils sdbinutils) \ + $(use_enable non-free non-free) \ $(use_enable boehm-gc libgc) \ $(docs_compile && use_enable doc || echo --disable-doc) } |