tomjbe      15/02/21 16:36:48

  Modified:             ChangeLog
  Added:                balsa-4.0-r1.ebuild
  Log:
  Keyworded ~amd64, bump EAPI (bug #540804), fixed Homepage (bug #533864).
  Thanks J. Stein and M. Rueger for reporting.
  
  (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 
0x762053D5)

Revision  Changes    Path
1.18                 sci-electronics/balsa/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/balsa/ChangeLog?rev=1.18&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/balsa/ChangeLog?rev=1.18&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/balsa/ChangeLog?r1=1.17&r2=1.18

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sci-electronics/balsa/ChangeLog,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ChangeLog   7 Jun 2013 16:20:48 -0000       1.17
+++ ChangeLog   21 Feb 2015 16:36:48 -0000      1.18
@@ -1,6 +1,12 @@
 # ChangeLog for sci-electronics/balsa
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/balsa/ChangeLog,v 1.17 
2013/06/07 16:20:48 mr_bones_ Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/balsa/ChangeLog,v 1.18 
2015/02/21 16:36:48 tomjbe Exp $
+
+*balsa-4.0-r1 (21 Feb 2015)
+
+  21 Feb 2015; Thomas Beierlein <[email protected]> +balsa-4.0-r1.ebuild:
+  Keyworded ~amd64, bump EAPI (bug #540804), fixed Homepage (bug #533864).
+  Thanks J. Stein and M. Rueger for reporting.
 
   07 Jun 2013; Michael Sterrett <[email protected]> -balsa-3.5.ebuild:
   clean old version



1.1                  sci-electronics/balsa/balsa-4.0-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/balsa/balsa-4.0-r1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/balsa/balsa-4.0-r1.ebuild?rev=1.1&content-type=text/plain

Index: balsa-4.0-r1.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/balsa/balsa-4.0-r1.ebuild,v 
1.1 2015/02/21 16:36:48 tomjbe Exp $

EAPI="5"

inherit autotools eutils multilib toolchain-funcs

DESCRIPTION="The Balsa asynchronous synthesis system"
HOMEPAGE="http://apt.cs.manchester.ac.uk/projects/tools/balsa/";
SRC_URI="
        http://apt.cs.manchester.ac.uk/ftp/pub/apt/balsa/${PV}/${P}.tar.gz
        
http://apt.cs.manchester.ac.uk/ftp/pub/apt/balsa/${PV}/${PN}-sim-verilog-${PV}.tar.gz
        
http://apt.cs.manchester.ac.uk/ftp/pub/apt/balsa/${PV}/${PN}-tech-minimal-${PV}.tar.gz
        
http://apt.cs.manchester.ac.uk/ftp/pub/apt/balsa/${PV}/${PN}-tech-example-${PV}.tar.gz
        
http://apt.cs.manchester.ac.uk/ftp/pub/apt/balsa/${PV}/${PN}-tech-xilinx-${PV}.tar.gz";

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

DEPEND="
        dev-lang/perl
        dev-libs/gmp:0
        sci-electronics/gplcver
        sci-electronics/iverilog
        x11-libs/gtk+:2"
RDEPEND="${DEPEND}
        dev-scheme/guile
        media-gfx/graphviz
        sci-electronics/espresso-ab
        sci-electronics/gtkwave "

BALSA_TECH_AMS="balsa-tech-ams-20030506.tar.gz"

if [ -f "${DISTDIR}"/${BALSA_TECH_AMS} ]; then
        TECH_AMS=1
fi

src_unpack() {
        unpack ${A}
        if [ $TECH_AMS ]; then
                unpack ${BALSA_TECH_AMS}
        fi
}

src_prepare() {
        epatch "${FILESDIR}"/${PV}-libdir.patch
        epatch "${FILESDIR}"/${PV}-datadir.patch
        epatch "${FILESDIR}"/${PV}-ldflags.patch
        eautoreconf
        sed -i -e "s:\(DEFAULT_INCLUDES = \)\(.*\):\1-I"${S}"/src/libs/ \2/:" 
"${WORKDIR}"/balsa-sim-verilog-${PV}/libs/Makefile.in || die
        sed -i -e 's/ $(bindir)/ $(DESTDIR)$(bindir)/' "${S}"/bin/Makefile.in 
|| die
        sed -i -e 's/ $(balsatypesdir)/ $(DESTDIR)$(balsatypesdir)/' 
"${S}"/share/balsa/types/Makefile.in || die
        sed -i -e 's/ $(balsasimdir)/ $(DESTDIR)$(balsasimdir)/' 
"${S}"/share/balsa/sim/Makefile.in || die
}

src_configure() {
        tc-export CXX
        econf
}

src_compile() {
        # compile balsa
        einfo "Compiling balsa"
        chmod +x bin/balsa-config
        PATH="$PATH:"${S}"/bin"
        emake -j1

        # the additional packages have to be configured after compiling 
        # balsa binaries 

        # configure AMS035 tech
        if [ $TECH_AMS ]; then
                einfo "Compiling AMS035 tech"
                cd "${WORKDIR}"/balsa-tech-ams-20030506
                econf
        fi

        # config Xilinx FPGA backend
        einfo "Compiling Xilinx FPGA backend"
        cd "${WORKDIR}"/balsa-tech-xilinx-${PV}
        econf

        # config example tech
        einfo "Compiling tech example"
        cd "${WORKDIR}"/balsa-tech-example-${PV}
        econf

        # config minimal tech
        einfo "Compiling tech example"
        cd "${WORKDIR}"/balsa-tech-minimal-${PV}
        econf

        # config verilog simulator wrappers
        einfo "Compiling verilog simulator wrappers"
        cd "${WORKDIR}"/balsa-sim-verilog-${PV}
        econf \
                --includedir="${S}"/src/libs/balsasim \
                --with-icarus-includes=/usr/include \
                --with-icarus-libs=/usr/$(get_libdir) \
                --with-cver-includes=/usr/include/cver_pli_incs
}

src_install() {
        # install balsa
        emake DESTDIR="${D}" install

        if [ $TECH_AMS ]; then
                einfo "Installing AMS035 tech"
                cd "${WORKDIR}"/balsa-tech-ams-20030506
                emake DESTDIR="${D}" install
        fi

        einfo "Installing Xilinx FPGA tech"
        cd "${WORKDIR}"/balsa-tech-xilinx-${PV}
        emake DESTDIR="${D}" install

        einfo "Installing example tech"
        cd "${WORKDIR}"/balsa-tech-example-${PV}
        emake DESTDIR="${D}" install

        einfo "Installing minimal tech"
        cd "${WORKDIR}"/balsa-tech-minimal-${PV}
        emake DESTDIR="${D}" install

        einfo "Installing verilog simulator wrappers"
        cd "${WORKDIR}"/balsa-sim-verilog-${PV}
        DESTDIR="${D}" emake install

        # fix paths
        cd "${D}"
        einfo "Fixing paths"
        find . -type f -exec sed -i -e "s:${D}::" {} \;
        find . -name "sed*" -exec rm -f {} \;

        # add some docs
        cd "${S}"
        dodoc AUTHORS NEWS README TODO

        # fix collisions
        rm -f "${D}"/usr/bin/libtool
}

pkg_postinst() {
        if [ ! $TECH_AMS ]; then
                elog "The AMS035 tech library was not installed."
                elog "If you have the appropriate licenses request"
                elog "the tech support files directly from [email protected]"
                elog "and add them to /usr/portage/distfiles before emerging."
        else
                elog "The AMS035 tech library was found and installed."
        fi
}




Reply via email to