From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 58286138334 for ; Mon, 18 Feb 2019 23:49:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79303E083E; Mon, 18 Feb 2019 23:49:23 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 39BFEE083E for ; Mon, 18 Feb 2019 23:49:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B81C1335CF2 for ; Mon, 18 Feb 2019 23:49:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 868AB542 for ; Mon, 18 Feb 2019 23:49:18 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1550533747.61f1fce51e90b1832f5df8da028c4167f409a6f6.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/sdcc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-embedded/sdcc/sdcc-3.8.0-r1.ebuild X-VCS-Directories: dev-embedded/sdcc/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 61f1fce51e90b1832f5df8da028c4167f409a6f6 X-VCS-Branch: master Date: Mon, 18 Feb 2019 23:49:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b039d59a-6ada-418d-a901-20ee0c77f3f7 X-Archives-Hash: 7494f825a25da928d8926924e448155d commit: 61f1fce51e90b1832f5df8da028c4167f409a6f6 Author: Sergei Trofimovich gentoo org> AuthorDate: Mon Feb 18 23:43:14 2019 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Mon Feb 18 23:49:07 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61f1fce5 dev-embedded/sdcc: update to EAPI=7, use dostrip Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich gentoo.org> dev-embedded/sdcc/sdcc-3.8.0-r1.ebuild | 133 +++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) diff --git a/dev-embedded/sdcc/sdcc-3.8.0-r1.ebuild b/dev-embedded/sdcc/sdcc-3.8.0-r1.ebuild new file mode 100644 index 00000000000..7e84d1c8b75 --- /dev/null +++ b/dev-embedded/sdcc/sdcc-3.8.0-r1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="https://svn.code.sf.net/p/sdcc/code/trunk/sdcc" + inherit subversion +else + SRC_URI=" + mirror://sourceforge/sdcc/${PN}-src-${PV}.tar.bz2 + doc? ( mirror://sourceforge/sdcc/${PN}-doc-${PV}.tar.bz2 ) + " + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Small device C compiler (for various microprocessors)" +HOMEPAGE="http://sdcc.sourceforge.net/" + +LICENSE=" + GPL-2 ZLIB + non-free? ( MicroChip-SDCC ) + packihx? ( public-domain ) +" +SLOT="0" +SDCC_PORTS=" + avr ds390 ds400 gbz80 hc08 mcs51 pic14 pic16 r2k r3ka s08 stm8 tlcs90 z180 + z80 +" +IUSE=" + ${SDCC_PORTS} + +boehm-gc device-lib doc non-free packihx sdbinutils sdcdb +sdcpp ucsim +" + +REQUIRED_USE=" + ds390? ( sdbinutils ) + ds400? ( sdbinutils ) + hc08? ( sdbinutils ) + mcs51? ( sdbinutils ) + s08? ( sdbinutils ) + || ( ${SDCC_PORTS} ) +" + +RESTRICT="strip" + +RDEPEND=" + dev-libs/boost:= + sys-libs/ncurses:= + sys-libs/readline:0= + >=dev-embedded/gputils-0.13.7 + boehm-gc? ( dev-libs/boehm-gc:= ) + !dev-embedded/sdcc-svn +" +DEPEND=" + ${RDEPEND} + dev-util/gperf +" +PATCHES=( + "${FILESDIR}"/${PN}-3.8.0-override-override.patch +) + +src_prepare() { + # Fix conflicting variable names between Gentoo and sdcc + find \ + '(' -name 'Makefile*.in' -o -name 'configure' ')' \ + -exec sed -r -i \ + -e 's:\<(PORTDIR|ARCH)\>:SDCC\1:g' \ + {} + || die + + # https://sourceforge.net/p/sdcc/bugs/2398/ + sed -i -e '1iAR = @AR@' Makefile.common.in || die + sed -i \ + -e "/^AR =/s:=.*:=$(tc-getAR):" \ + support/cpp/Makefile.in || die + + # Make sure timestamps don't get messed up. + [[ ${PV} == "9999" ]] && find "${S}" -type f -exec touch -r . {} + + + default + eautoreconf +} + +src_configure() { + # sdbinutils subdir doesn't pass down --docdir properly, so need to + # expand $(datarootdir) ourselves. + econf \ + ac_cv_prog_AR="$(tc-getAR)" \ + ac_cv_prog_AS="$(tc-getAS)" \ + ac_cv_prog_STRIP=true \ + $(use_enable avr avr-port) \ + $(use_enable boehm-gc libgc) \ + $(use_enable device-lib) \ + $(use_enable ds390 ds390-port) \ + $(use_enable ds400 ds400-port) \ + $(use_enable gbz80 gbz80-port) \ + $(use_enable hc08 hc08-port) \ + $(use_enable mcs51 mcs51-port) \ + $(use_enable non-free) \ + $(use_enable packihx) \ + $(use_enable pic14 pic14-port) \ + $(use_enable pic16 pic16-port) \ + $(use_enable r2k r2k-port) \ + $(use_enable r3ka r3ka-port) \ + $(use_enable s08 s08-port) \ + $(use_enable sdbinutils) \ + $(use_enable sdcdb) \ + $(use_enable sdcpp) \ + $(use_enable stm8 stm8-port) \ + $(use_enable tlcs90 tlcs90-port) \ + $(use_enable ucsim) \ + $(use_enable z180 z180-port) \ + $(use_enable z80 z80-port) \ + --disable-doc \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --without-ccache +} + +src_install() { + default + dodoc doc/*.txt + find "${D}" -name .deps -exec rm -rf {} + || die + + if use doc && [[ ${PV} != "9999" ]]; then + cd "${WORKDIR}"/doc + dodoc -r * + fi + + # a bunch of archives (*.a) are built & installed by gputils + # for PIC processors, but they do not work with standard `ar` + # & `scanelf` utils and they're not for the host. + dostrip "${D%/}"/usr/bin +}