From: Olivier Fisette Date: Mon, 27 Dec 2004 18:53:15 +0000 (+0000) Subject: Moved from app-sci/balsa to sci-electronics/balsa. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42f5ac62769dcb945d451da93928373500c6e1ad;p=gentoo.git Moved from app-sci/balsa to sci-electronics/balsa. --- diff --git a/sci-electronics/balsa/ChangeLog b/sci-electronics/balsa/ChangeLog new file mode 100644 index 000000000000..0cb6c99dc0da --- /dev/null +++ b/sci-electronics/balsa/ChangeLog @@ -0,0 +1,77 @@ +# ChangeLog for app-sci/balsa +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/balsa/ChangeLog,v 1.1 2004/12/27 18:53:15 ribosome Exp $ + +*balsa-3.4 (27 Dec 2004) + + 27 Dec 2004; Olivier Fisette +metadata.xml, + +files/balsa-sim-3.4-configure.patch, +files/balsa-tech-3.4-configure.patch, + +balsa-3.4.ebuild: + Moved from app-sci/balsa to sci-electronics/balsa. + + 05 Sep 2004; Sven Wegener : + Fixed ChangeLog header. + + 26 Jul 2004; Chris Bainbridge : + New version (3.4), renamed package tbass->balsa + + 01 Jul 2004; Jeremy Huddleston + tbass-20030108.ebuild, tbass-20030725.3.3.ebuild: + virtual/glibc -> virtual/libc + + 26 Apr 2004; Aron Griffis tbass-20030108.ebuild: + Add die following econf for bug 48950 + + 25 Apr 2004; Aron Griffis tbass-20030108.ebuild, + tbass-20030725.3.3.ebuild: + Add die following econf for bug 48950 + + 19 Apr 2004; Patrick Kursawe tbass-20020729.ebuild, + tbass-20030204.ebuild, tbass-20030318.ebuild, tbass-20030725.3.3.ebuild: + Cleanup, moving patch -> epatch + +*tbass-20030725.3.3 (30 Jul 2003) + + 30 Jul 2003; George Shapovalov tbass-20030725.ebuild, files/tbass-20030725.3.3-{balsa-lard-configure.patch,tech-example-configure.patch,tech-verilog-configure.patch,tech-xilinx-configure.patch} : + new version (#25008), + some updates + fixes #24494, lard has been split off this package + Thanks to Chris Bainbridge for submission and updates + +*tbass-20030318 (12 May 2003) + + 11 May 2003; George Shapovalov tbass-20030318.ebuild : + a bug-fix update (#17514) + Thanks to Chris Bainbridge for submission. + +*tbass-20030204 (23 Apr 2003) + + 23 Apr 2003; George Shapovalov tbass-20030204.ebuild, files/tbass-20030204-tech-{xilinx-configure.patch,verilog-configure.patch} : + new version (#17514) + The AMS035 tech library is no longer distributed publically. ebuild modified accordingly and contains + appropriate warning in pkg_postinst. + Thanks to Chris Bainbridge for submission. + + +*tbass-20030108 (06 Feb 2003) + + 06 Feb 2003; George Shapovalov tbass-20030108.ebuild : + new version (#13670) + thanks to Dave Nellans for submission + + 07 Jan 2003; George Shapovalov tbass-20020729.ebuild : + added IUSE + + 06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords + +*tbass-20020729 (29 Oct 2002) + + 29 Oct 2002; George Shapovalov tbass-20020729.ebuild : + + initial release. + + The Balsa Asynchronous Synthesis System + Balsa is both a framework for synthesising asynchronous (clockless) hardware systems and the + language for describing such systems. + + ebuild submitted by Chris Bainbridge , + updated by Dave Nellans diff --git a/sci-electronics/balsa/Manifest b/sci-electronics/balsa/Manifest new file mode 100644 index 000000000000..b685f241dbdc --- /dev/null +++ b/sci-electronics/balsa/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 c8c8cf173d12472fa3cf7fd39db40813 balsa-3.4.ebuild 4591 +MD5 908723d5c00d782d13e41a90bc248860 metadata.xml 328 +MD5 02314b5f990bc2d3f527ec4cdbe9c193 ChangeLog 2803 +MD5 6e2f2e072a8cacfed8cbad91bae07088 files/balsa-sim-3.4-configure.patch 1507 +MD5 bcd70393f5c601c828613e1d1c630452 files/balsa-tech-3.4-configure.patch 1515 +MD5 d2a8ba154d8b6ef7c25c6ddb65d22e28 files/digest-balsa-3.4 341 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.6 (GNU/Linux) + +iD8DBQFBOrobI1lqEGTUzyQRAvw/AKCRA3NI3lB554pJxqx4K+Su2pdR6wCfdt7s +gcZ04Lj+p5IWU8GzNJDnSW4= +=9CEn +-----END PGP SIGNATURE----- diff --git a/sci-electronics/balsa/balsa-3.4.ebuild b/sci-electronics/balsa/balsa-3.4.ebuild new file mode 100644 index 000000000000..81567f05dae5 --- /dev/null +++ b/sci-electronics/balsa/balsa-3.4.ebuild @@ -0,0 +1,152 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/balsa/balsa-3.4.ebuild,v 1.1 2004/12/27 18:53:15 ribosome Exp $ + +inherit eutils + +IUSE="" +Name="balsa" +My_PV="3.4" + +DESCRIPTION="The Balsa asynchronous synthesis system" +HOMEPAGE="http://www.cs.man.ac.uk/apt/projects/tools/balsa/" +SRC_URI="ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/${Name}-${My_PV}.tar.gz + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/BalsaManual${My_PV}.pdf + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/${Name}-tech-example-${My_PV}.tar.gz + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/${Name}-sim-verilog-${My_PV}.tar.gz + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/BalsaExamples${My_PV}.tar.gz" +# ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-tech-verilog-20030204.tar.gz +# ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-tech-xilinx-20021029.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="virtual/libc + sys-devel/binutils + dev-libs/gmp + dev-lang/perl + x11-libs/gtk+ + app-sci/iverilog + app-sci/gplcver" + +RDEPEND="${DEPEND} + dev-util/guile + media-gfx/graphviz + app-sci/gtkwave + app-sci/espresso-ab" + +S=${WORKDIR}/${Name}-${My_PV} + +if [ -f ${DISTDIR}/balsa-tech-ams-20030506.tar.gz ]; then + TECH_AMS=1 +fi + +src_unpack() { + unpack ${A} + if [ $TECH_AMS ]; then + unpack balsa-tech-ams-20030506.tar.gz + fi + sed -i -e "s/types.breeze: types.balsa/types.breeze: types.balsa basic.breeze/" ${S}/share/balsa/types/Makefile.in + cd ${WORKDIR} + sed -i -e "s:\(DEFAULT_INCLUDES = \)\(.*\):\1-I${S}/src/libs/ \2/:" ${WORKDIR}/balsa-sim-verilog-${PV}/libs/Makefile.in + epatch ${FILESDIR}/balsa-tech-3.4-configure.patch + epatch ${FILESDIR}/balsa-sim-3.4-configure.patch + sed -i -e 's/ $(bindir)/ $(DESTDIR)$(bindir)/' ${S}/bin/Makefile.in + sed -i -e 's/ $(balsatypesdir)/ $(DESTDIR)$(balsatypesdir)/' ${S}/share/balsa/types/Makefile.in + sed -i -e 's/ $(balsasimdir)/ $(DESTDIR)$(balsasimdir)/' ${S}/share/balsa/sim/Makefile.in +} + +src_compile() { + # compile balsa + einfo "Compiling balsa" + ./configure --prefix=/usr/ || die "econf failed" + emake || die + + # configure AMS035 tech + if [ $TECH_AMS ]; then + einfo "Compiling AMS035 tech" + cd ${WORKDIR}/balsa-tech-ams-20030506 + econf || die "econf failed" + fi + + # config generic verilog backend +# cd ${WORKDIR}/balsa-tech-verilog-20030204 +# econf || die "econf failed" + + # config Xilinx FPGA backend +# cd ${WORKDIR}/balsa-tech-xilinx-20021029 +# econf || die "econf failed" + + # config example tech + cd ${WORKDIR}/balsa-tech-example-${My_PV} + einfo "Compiling tech example" + econf || die "econf failed" + + # config verilog simulator wrappers + cd ${WORKDIR}/balsa-sim-verilog-3.4 + einfo "Compiling verilog simulator wrappers" + ./configure --includedir=`pwd`/../balsa-3.4/src/libs/balsasim \ + --with-icarus-includes=/usr/include \ + --with-icarus-libs=/usr/lib \ + --with-cver-includes=/usr/include/cver_pli_incs || die +} + +src_install() { + # install balsa + cd ${S} + einfo "Installing balsa" + make DESTDIR=${D} install || die + + # install manual and examples + dodir /usr/share/doc/${P}/ + cp -ar ${WORKDIR}/Examples ${D}/usr/share/doc/${P}/ + dodoc ${DISTDIR}/BalsaManual${My_PV}.pdf + + # install AMS035 tech + if [ $TECH_AMS ]; then + einfo "Installing AMS035 tech" + cd ${WORKDIR}/balsa-tech-ams-20030506 + make DESTDIR=${D} install || die "make install failed" + fi + +# cd ${WORKDIR}/balsa-tech-verilog-20030204 +# make DESTDIR=${D} install || die "make install failed" + +# cd ${WORKDIR}/balsa-tech-xilinx-20021029 +# make DESTDIR=${D} install || die "make install failed" + + # install example tech + cd ${WORKDIR}/balsa-tech-example-${My_PV} + einfo "Installing example tech" + make DESTDIR=${D} install || die "make install failed" + + # install verilog simulator wrappers + cd ${WORKDIR}/balsa-sim-verilog-3.4 + einfo "Installing verilog simulator wrappers" + DESTDIR=${D} make install || die "make verilog wrappers failed" + + # fix paths + cd ${D} + einfo "Fixing paths" + find . -exec sed -i -e "s:${D}::" {} \; + find . -name "sed*" -exec rm -f {} \; + + # add some docs + cd ${S} + einfo "Installing docs" + dodoc AUTHORS COPYING NEWS README TODO + mv ${D}/usr/doc/* ${D}/usr/share/doc/${P}/ + rmdir ${D}/usr/doc +} + +pkg_postinst() { + if [ ! $TECH_AMS ]; then + einfo "No tech libraries were installed." + einfo "If you have the appropriate licenses request" + einfo "the tech support files directly from balsa@cs.man.ac.uk" + einfo "and add them to /usr/portage/distfiles before emerging." + else + einfo "The AMS035 tech library was found and installed." + fi +} diff --git a/sci-electronics/balsa/files/balsa-sim-3.4-configure.patch b/sci-electronics/balsa/files/balsa-sim-3.4-configure.patch new file mode 100644 index 000000000000..dc528bd558ec --- /dev/null +++ b/sci-electronics/balsa/files/balsa-sim-3.4-configure.patch @@ -0,0 +1,39 @@ +diff -cr balsa-sim-verilog-3.4.orig/configure balsa-sim-verilog-3.4/configure +*** balsa-sim-verilog-3.4.orig/configure Thu May 27 15:27:46 2004 +--- balsa-sim-verilog-3.4/configure Mon Jul 26 23:12:21 2004 +*************** +*** 1800,1815 **** + + + +! if test ${BALSA_CONFIG}; then : +! else +! { { echo "$as_me:$LINENO: error: cannot find required balsa-config, install Balsa and add it to your path" >&5 +! echo "$as_me: error: cannot find required balsa-config, install Balsa and add it to your path" >&2;} +! { (exit 1); exit 1; }; } +! fi + + echo "$as_me:$LINENO: checking installed Balsa directory" >&5 + echo $ECHO_N "checking installed Balsa directory... $ECHO_C" >&6 +! ac_default_prefix=`${BALSA_CONFIG} -d` + prefix=${ac_default_prefix} + echo "$as_me:$LINENO: result: ${ac_default_prefix}" >&5 + echo "${ECHO_T}${ac_default_prefix}" >&6 +--- 1800,1816 ---- + + + +! #if test ${BALSA_CONFIG}; then : +! #else +! # { { echo "$as_me:$LINENO: error: cannot find required balsa-config, install Balsa and add it to your path" >&5 +! #echo "$as_me: error: cannot find required balsa-config, install Balsa and add it to your path" >&2;} +! # { (exit 1); exit 1; }; } +! #fi + + echo "$as_me:$LINENO: checking installed Balsa directory" >&5 + echo $ECHO_N "checking installed Balsa directory... $ECHO_C" >&6 +! #ac_default_prefix=`${BALSA_CONFIG} -d` +! ac_default_prefix=/usr + prefix=${ac_default_prefix} + echo "$as_me:$LINENO: result: ${ac_default_prefix}" >&5 + echo "${ECHO_T}${ac_default_prefix}" >&6 diff --git a/sci-electronics/balsa/files/balsa-tech-3.4-configure.patch b/sci-electronics/balsa/files/balsa-tech-3.4-configure.patch new file mode 100644 index 000000000000..40218be3c8a0 --- /dev/null +++ b/sci-electronics/balsa/files/balsa-tech-3.4-configure.patch @@ -0,0 +1,39 @@ +diff -cr balsa-tech-example-3.4.orig/configure balsa-tech-example-3.4/configure +*** balsa-tech-example-3.4.orig/configure Thu May 27 14:44:05 2004 +--- balsa-tech-example-3.4/configure Mon Jul 26 23:01:55 2004 +*************** +*** 1610,1625 **** + fi + + +! if test ${BALSA_CONFIG}; then : +! else +! { { echo "$as_me:$LINENO: error: cannot find required balsa-config, install Balsa and add it to your path" >&5 +! echo "$as_me: error: cannot find required balsa-config, install Balsa and add it to your path" >&2;} +! { (exit 1); exit 1; }; } +! fi + + echo "$as_me:$LINENO: checking installed Balsa directory" >&5 + echo $ECHO_N "checking installed Balsa directory... $ECHO_C" >&6 +! ac_default_prefix=`${BALSA_CONFIG} -d` + prefix=${ac_default_prefix} + echo "$as_me:$LINENO: result: ${ac_default_prefix}" >&5 + echo "${ECHO_T}${ac_default_prefix}" >&6 +--- 1610,1626 ---- + fi + + +! #if test ${BALSA_CONFIG}; then : +! #else +! # { { echo "$as_me:$LINENO: error: cannot find required balsa-config, install Balsa and add it to your path" >&5 +! #echo "$as_me: error: cannot find required balsa-config, install Balsa and add it to your path" >&2;} +! # { (exit 1); exit 1; }; } +! #fi + + echo "$as_me:$LINENO: checking installed Balsa directory" >&5 + echo $ECHO_N "checking installed Balsa directory... $ECHO_C" >&6 +! #ac_default_prefix=`${BALSA_CONFIG} -d` +! ac_default_prefix=/usr + prefix=${ac_default_prefix} + echo "$as_me:$LINENO: result: ${ac_default_prefix}" >&5 + echo "${ECHO_T}${ac_default_prefix}" >&6 diff --git a/sci-electronics/balsa/files/digest-balsa-3.4 b/sci-electronics/balsa/files/digest-balsa-3.4 new file mode 100644 index 000000000000..ee148ef49989 --- /dev/null +++ b/sci-electronics/balsa/files/digest-balsa-3.4 @@ -0,0 +1,5 @@ +MD5 d66628531c0133107847c495787cc618 balsa-3.4.tar.gz 1388342 +MD5 a96448c29e48e0ec850c094ea07fa5d7 BalsaManual3.4.pdf 8615958 +MD5 03dd0cee9a87556e2866bd0035b04235 balsa-tech-example-3.4.tar.gz 62925 +MD5 41ce42eae26cc77e38fd9ce51374e3da balsa-sim-verilog-3.4.tar.gz 199212 +MD5 da642d17eee00d8e8cba7fe796ce0e9d BalsaExamples3.4.tar.gz 2420060 diff --git a/sci-electronics/balsa/metadata.xml b/sci-electronics/balsa/metadata.xml new file mode 100644 index 000000000000..4ecd4f5a837f --- /dev/null +++ b/sci-electronics/balsa/metadata.xml @@ -0,0 +1,9 @@ + + + + + chrb@gentoo.org + Chris Bainbridge + + the balsa asynchronous synthesis system +