From eccdb5b43c53747469b744a1bb3c4d87a391f588 Mon Sep 17 00:00:00 2001 From: George Shapovalov Date: Thu, 24 Apr 2003 07:45:35 +0000 Subject: update and necessary modification to take care of the library made not publicaly awailable --- app-sci/tbass/ChangeLog | 11 ++- app-sci/tbass/files/digest-tbass-20030204 | 6 ++ .../tbass-20030204-tech-verilog-configure.patch | 33 +++++++ .../tbass-20030204-tech-xilinx-configure.patch | 83 ++++++++++++++++ app-sci/tbass/tbass-20030204.ebuild | 108 +++++++++++++++++++++ 5 files changed, 240 insertions(+), 1 deletion(-) create mode 100644 app-sci/tbass/files/digest-tbass-20030204 create mode 100644 app-sci/tbass/files/tbass-20030204-tech-verilog-configure.patch create mode 100644 app-sci/tbass/files/tbass-20030204-tech-xilinx-configure.patch create mode 100644 app-sci/tbass/tbass-20030204.ebuild (limited to 'app-sci/tbass') diff --git a/app-sci/tbass/ChangeLog b/app-sci/tbass/ChangeLog index e451a5ac1a27..7cc6d22b47d2 100644 --- a/app-sci/tbass/ChangeLog +++ b/app-sci/tbass/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-sci/tbass # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-sci/tbass/ChangeLog,v 1.6 2003/02/12 05:20:00 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-sci/tbass/ChangeLog,v 1.7 2003/04/24 07:45:35 george Exp $ + +*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) diff --git a/app-sci/tbass/files/digest-tbass-20030204 b/app-sci/tbass/files/digest-tbass-20030204 new file mode 100644 index 000000000000..a60ecbd1ae2e --- /dev/null +++ b/app-sci/tbass/files/digest-tbass-20030204 @@ -0,0 +1,6 @@ +MD5 ee846272a9b29af18f4f765d6efd04b5 balsa-20030204.tar.gz 939904 +MD5 492a3dce0082f4a95876400a829d375b balsa-manual-20030120.pdf 355962 +MD5 af8abda78884e905470e992f57e64534 dma-example.tar.gz 7194 +MD5 6bf0aa7eb37a33728f58221502cc7f6a examples.tar.gz 7017 +MD5 02c765d09fd8c1fe0b3a2f8e0ac5b3ec balsa-tech-verilog-20030204.tar.gz 50373 +MD5 71d301394337e13a0bef01fa6ee3984b balsa-tech-xilinx-20021029.tar.gz 141410 diff --git a/app-sci/tbass/files/tbass-20030204-tech-verilog-configure.patch b/app-sci/tbass/files/tbass-20030204-tech-verilog-configure.patch new file mode 100644 index 000000000000..16c7d6e6189b --- /dev/null +++ b/app-sci/tbass/files/tbass-20030204-tech-verilog-configure.patch @@ -0,0 +1,33 @@ +*** balsa-tech-verilog-20030204/configure.old Thu Mar 13 16:51:29 2003 +--- balsa-tech-verilog-20030204/configure Thu Mar 13 16:51:32 2003 +*************** +*** 1610,1623 **** + 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 + +! ac_default_prefix=`${BALSA_CONFIG} -d` + prefix=${ac_default_prefix} + echo installed Balsa prefix is: ${ac_default_prefix} + +--- 1610,1623 ---- + 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 + +! ac_default_prefix=/usr + prefix=${ac_default_prefix} + echo installed Balsa prefix is: ${ac_default_prefix} + diff --git a/app-sci/tbass/files/tbass-20030204-tech-xilinx-configure.patch b/app-sci/tbass/files/tbass-20030204-tech-xilinx-configure.patch new file mode 100644 index 000000000000..d6a4e6e480e7 --- /dev/null +++ b/app-sci/tbass/files/tbass-20030204-tech-xilinx-configure.patch @@ -0,0 +1,83 @@ +*** balsa-tech-xilinx-20021029/configure.old Thu Mar 13 17:17:48 2003 +--- balsa-tech-xilinx-20021029/configure Thu Mar 13 17:26:04 2003 +*************** +*** 275,281 **** + program_transform_name=s,x,x, + silent= + site= +! srcdir= + verbose= + x_includes=NONE + x_libraries=NONE +--- 275,281 ---- + program_transform_name=s,x,x, + silent= + site= +! srcdir=. + verbose= + x_includes=NONE + x_libraries=NONE +*************** +*** 673,687 **** + else + ac_srcdir_defaulted=no + fi +! if test ! -r $srcdir/$ac_unique_file; then +! if test "$ac_srcdir_defaulted" = yes; then +! { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 +! { (exit 1); exit 1; }; } +! else +! { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 +! { (exit 1); exit 1; }; } +! fi +! fi + srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` + ac_env_build_alias_set=${build_alias+set} + ac_env_build_alias_value=$build_alias +--- 673,687 ---- + else + ac_srcdir_defaulted=no + fi +! #if test ! -r $srcdir/$ac_unique_file; then +! # if test "$ac_srcdir_defaulted" = yes; then +! # { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 +! # { (exit 1); exit 1; }; } +! # else +! # { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 +! # { (exit 1); exit 1; }; } +! # fi +! #fi + srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` + ac_env_build_alias_set=${build_alias+set} + ac_env_build_alias_value=$build_alias +*************** +*** 1533,1546 **** + 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 + +! ac_default_prefix=`${BALSA_CONFIG} -d` + prefix=${ac_default_prefix} + echo installed Balsa prefix is: ${ac_default_prefix} + +--- 1533,1546 ---- + 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 + +! ac_default_prefix=/usr + prefix=${ac_default_prefix} + echo installed Balsa prefix is: ${ac_default_prefix} + diff --git a/app-sci/tbass/tbass-20030204.ebuild b/app-sci/tbass/tbass-20030204.ebuild new file mode 100644 index 000000000000..8f70e4aca538 --- /dev/null +++ b/app-sci/tbass/tbass-20030204.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-sci/tbass/tbass-20030204.ebuild,v 1.1 2003/04/24 07:45:35 george Exp $ + +IUSE="" + +Name="balsa" + +DESCRIPTION="Balsa is both a framework for synthesising asynchronous hardware systems and the language for describing such systems" +HOMEPAGE="http://www.cs.man.ac.uk/amulet/projects/balsa/" +SRC_URI="ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-${PV}.tar.gz + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/docs/balsa-manual-20030120.pdf + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/examples/dma-example.tar.gz + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/examples/examples.tar.gz + ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-tech-verilog-${PV}.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 ~ppc ~sparc " + +DEPEND="sys-devel/binutils + >=app-sci/lard-20030204 + dev-libs/gmp + dev-lang/perl + x11-libs/gtk+" + +RDEPEND="${DEPEND} + dev-util/guile + media-gfx/graphviz + app-sci/gtkwave + app-sci/espresso-ab" + +S=${WORKDIR}/${Name}-${PV} + +if [ -f ${DISTDIR}/balsa-tech-ams-20030314.tar.gz ]; then +TECH_AMS=1 +fi + +src_unpack() { + unpack ${Name}-${PV}.tar.gz dma-example.tar.gz examples.tar.gz ${Name}-tech-verilog-${PV}.tar.gz ${Name}-tech-xilinx-20021029.tar.gz + if [ $TECH_AMS ]; then unpack balsa-tech-ams-20030314.tar.gz; fi + cd ${WORKDIR}/balsa-tech-verilog-${PV} + patch -p1 < ${FILESDIR}/${P}-tech-verilog-configure.patch || die + cd ${WORKDIR}/balsa-tech-xilinx-20021029 + patch -p1 < ${FILESDIR}/${P}-tech-xilinx-configure.patch || die +} + +src_compile() { + # compile balsa + econf + + cd bin + sed -e "s: \$(bindir): \$(DESTDIR)\$(bindir):g" Makefile > Makefile.1 + cp Makefile.1 Makefile + emake || die + + # configure tech paths + if [ $TECH_AMS ]; then + cd ${WORKDIR}/balsa-tech-ams-20030314 + econf + fi + + cd ${WORKDIR}/balsa-tech-verilog-${PV} + econf + + cd ${WORKDIR}/balsa-tech-xilinx-20021029 + econf +} + +src_install() { + # install balsa + einstall || die "make install failed" + + # move the docs to the right directory + dodoc ${D}/usr/doc/* + rm -rf ${D}/usr/doc + + # install manual and examples + dodir /usr/share/doc/${P}/examples/dma-example + cp -R ${WORKDIR}/dma-example ${D}/usr/share/doc/${P}/examples + cp -R ${WORKDIR}/examples/* ${D}/usr/share/doc/${P}/examples + dodoc ${DISTDIR}/balsa-manual-20030120.pdf + + # install tech + if [ $TECH_AMS ]; then + cd ${WORKDIR}/balsa-tech-ams-20030314 + make DESTDIR=${D} install || die "make install failed" + fi + + cd ${WORKDIR}/balsa-tech-verilog-${PV} + make DESTDIR=${D} install || die "make install failed" + + cd ${WORKDIR}/balsa-tech-xilinx-20021029 + make DESTDIR=${D} install || die "make install failed" + +} + +pkg_postinst() { + if [ ! $TECH_AMS ]; then + einfo "The AMS035 tech library is no longer distributed publically." + einfo "To obtain it you must have the appropriate license from AMS." + einfo "If you do, request the ${Name}-tech-ams-20030314.tar.gz file" + einfo "directly from the Balsa developers and add it to " + einfo "/usr/portage/distfiles before emerging." + echo + fi +} -- cgit v1.2.3-65-gdbad