From 03fced460f29548251b0f346f68bb6590504ede3 Mon Sep 17 00:00:00 2001 From: Denis Dupeyron Date: Sun, 21 Mar 2010 19:34:45 +0000 Subject: Version bump, bug #310259. (Portage version: 2.1.8.3/cvs/Linux x86_64) --- sci-electronics/ghdl/ChangeLog | 9 ++++- sci-electronics/ghdl/ghdl-0.29.ebuild | 75 +++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 sci-electronics/ghdl/ghdl-0.29.ebuild diff --git a/sci-electronics/ghdl/ChangeLog b/sci-electronics/ghdl/ChangeLog index 1c0c09ec4e77..2024dc15d242 100644 --- a/sci-electronics/ghdl/ChangeLog +++ b/sci-electronics/ghdl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-electronics/ghdl -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ghdl/ChangeLog,v 1.10 2009/12/28 16:22:40 flameeyes Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ghdl/ChangeLog,v 1.11 2010/03/21 19:34:45 calchan Exp $ + +*ghdl-0.29 (21 Mar 2010) + + 21 Mar 2010; +ghdl-0.29.ebuild: + Version bump, bug #310259. 28 Dec 2009; Diego E. Pettenò ghdl-0.27.ebuild: Use emake -j1 for install, as per bug #277644. diff --git a/sci-electronics/ghdl/ghdl-0.29.ebuild b/sci-electronics/ghdl/ghdl-0.29.ebuild new file mode 100644 index 000000000000..08aba4ec60f3 --- /dev/null +++ b/sci-electronics/ghdl/ghdl-0.29.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ghdl/ghdl-0.29.ebuild,v 1.1 2010/03/21 19:34:45 calchan Exp $ + +EAPI="2" + +inherit multilib + +GCC_VERSION="4.3.4" +GNATGCC_SLOT="4.3" + +DESCRIPTION="Complete VHDL simulator using the GCC technology" +HOMEPAGE="http://ghdl.free.fr" +SRC_URI="http://ghdl.free.fr/${P}.tar.bz2 + mirror://gnu/gcc/releases/gcc-${GCC_VERSION}/gcc-core-${GCC_VERSION}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +DEPEND=">=sys-apps/portage-2.1.2.10 + dev-lang/gnat-gcc:${GNATGCC_SLOT}" +RDEPEND="" +S="${WORKDIR}/gcc-${GCC_VERSION}" + +ADA_INCLUDE_PATH="${ROOT}/usr/lib/gnat-gcc/${CHOST}/${GNATGCC_SLOT}/adainclude" +ADA_OBJECTS_PATH="${ROOT}/usr/lib/gnat-gcc/${CHOST}/${GNATGCC_SLOT}/adalib" +GNATGCC_PATH="${ROOT}/usr/${CHOST}/gnat-gcc-bin/${GNATGCC_SLOT}:${ROOT}/usr/libexec/gnat-gcc/${CHOST}/${GNATGCC_SLOT}" + +src_prepare() { + mv "${WORKDIR}/${P}"/vhdl gcc + sed -i -e 's/ADAC = \$(CC)/ADAC = gnatgcc/' gcc/vhdl/Makefile.in || die "sed failed" + sed -i \ + -e 's/AGCC_CFLAGS=-g/AGCC_CFLAGS=$(CFLAGS)/' \ + -e 's/rm -rf $(infodir)/rm -rf $(DESTDIR)$(infodir)/' \ + gcc/vhdl/Make-lang.in || die "sed failed" + + # Fix issue similar to bug #195074, ported from vapier's fix for binutils + sed -i -e "s:egrep.*texinfo.*dev/null:egrep 'texinfo[^0-9]*(4\.([4-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null:" \ + configure* || die "sed failed" + + # For multilib profile arch, see bug #203721 + if (has_multilib_profile || use multilib ) ; then + for T_LINUX64 in `find "${S}/gcc/config" -name t-linux64` ; + do + einfo "sed for ${T_LINUX64} for multilib. :)" + sed -i \ + -e "s:\(MULTILIB_OSDIRNAMES = \).*:\1../lib64 ../lib32:" \ + "${T_LINUX64}" \ + || die "sed for ${T_LINUX64} failed. :(" + done + fi +} + +src_configure() { + PATH="${GNATGCC_PATH}:${PATH}" econf --enable-languages=vhdl +} + +src_compile() { + PATH="${GNATGCC_PATH}:${PATH}" emake -j1 || die "Compilation failed" +} + +src_install() { + # bug #277644 + PATH="${GNATGCC_PATH}:${PATH}" emake DESTDIR="${D}" install || die "Installation failed" + + cd "${D}"/usr/bin ; rm `ls --ignore=ghdl` + rm -rf "${D}"/usr/include + rm "${D}"/usr/$(get_libdir)/lib* + cd "${D}"/usr/$(get_libdir)/gcc/${CHOST}/${GCC_VERSION} ; rm -rf `ls --ignore=vhdl*` + cd "${D}"/usr/libexec/gcc/${CHOST}/${GCC_VERSION} ; rm -rf `ls --ignore=ghdl*` + cd "${D}"/usr/share/info ; rm `ls --ignore=ghdl*` + cd "${D}"/usr/share/man/man1 ; rm `ls --ignore=ghdl*` + rm -Rf "${D}"/usr/share/locale + rm -Rf "${D}"/usr/share/man/man7 +} -- cgit v1.2.3-65-gdbad