diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-electronics/balsa | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-electronics/balsa')
-rw-r--r-- | sci-electronics/balsa/Manifest | 5 | ||||
-rw-r--r-- | sci-electronics/balsa/balsa-4.0-r1.ebuild | 155 | ||||
-rw-r--r-- | sci-electronics/balsa/files/4.0-datadir.patch | 73 | ||||
-rw-r--r-- | sci-electronics/balsa/files/4.0-ldflags.patch | 11 | ||||
-rw-r--r-- | sci-electronics/balsa/files/4.0-libdir.patch | 36 | ||||
-rw-r--r-- | sci-electronics/balsa/metadata.xml | 13 |
6 files changed, 293 insertions, 0 deletions
diff --git a/sci-electronics/balsa/Manifest b/sci-electronics/balsa/Manifest new file mode 100644 index 000000000000..c843919dbee2 --- /dev/null +++ b/sci-electronics/balsa/Manifest @@ -0,0 +1,5 @@ +DIST balsa-4.0.tar.gz 2828800 SHA256 ae69842dd698e4b97fe3d78c125c40ebda8ba1879a086b5beb135103d3ee3d34 SHA512 b1eab622d9d256970257e512b130deff4a69c996c178d7158fbe6c8bd3e27e4212176c328f92e943564fc92c9b210387fad12c6034d3878db18e95c715300355 WHIRLPOOL b7e09ae89e62f7feb99a6f48a7b11087913359d60eb6dcf7953eee5b1a77d17d8f6a140962d12d500d13ca06181e3281a87a0422eb46ad773f88b8e86771b969 +DIST balsa-sim-verilog-4.0.tar.gz 301397 SHA256 972f3151b2e37e56bd4c5210de263d006dcf8913e3e757ad0623cedc0c821fef SHA512 48b17a0c8f11264726b50cdcf5431794a05feabac238af1270402131787aae6a5316d918a96caaee6d173de9d37c59356c55e1cd4d0c8e31b997922c82a65e20 WHIRLPOOL d11b0b51b6d0613bc5b23c9efd16933c343fdb3c5658e59f816144f8b8936b31ba52c8c38c9819c1a4beeef43ce92402ba0f5827292e0c4d0b3c85b3aea2b9e6 +DIST balsa-tech-example-4.0.tar.gz 137704 SHA256 495cb6adb6759e8c5eb2b87ac4ea530f3b5598d19985ed673e4ba180fb18f78a SHA512 99124da0d937f4683fcf7f0ab5c7811af739044f93657120e5494d8ac0a1f12a0ef32742bbd8469428f34ee1d5271f1e36476541d533950f2940e363e4eb5d4d WHIRLPOOL 97917e2d752378fc577b1b4779d6257117f1b83aa70c805025680734e44a9a7f9cd12dd477778113bd1c40c33eaa571b0b245b506d769731f768f667155474a2 +DIST balsa-tech-minimal-4.0.tar.gz 67628 SHA256 70b83163d75e4bc5876d9f74442e1ed89b4b88fa5436166ee68d85be086c242f SHA512 fd1a76be3cb84bd5885f7b5f6831dc65e7cf08b77c38c0f2092a9edaf9d6b1121c43e5654e4cdff059e2c2bdbf9e6b1dfd9b159034758b4e3d1f8b54de9945bb WHIRLPOOL 198e4e7e7f6de982ff3406a99e257c032c153a70bce44f028305ef66a0194687782c6e87b265975a6d5afc8bfbaec4e1e21bb74f1a6d1ddc815cfa89c6205ba9 +DIST balsa-tech-xilinx-4.0.tar.gz 159683 SHA256 2ca6cc877bef0406a4d219e2ca1c66932d3c725b23b19eef7123b124ad673e5f SHA512 dc0c343d8810fd115338ab6cf3c465da059e16105237d0edb657700b35f3836e2fa5e932c1e8ca2b8b34955a257a9e48539cf532c0582f089fc5973d797f4f5c WHIRLPOOL 9f3ad1a5fb4bdb5398613f1120491f8195ef92059dce8c156a4011ff14ccc104d9cb3245a7f9e781966356323d363cf0f6620d9ad6aff623bc832ef6a56483b8 diff --git a/sci-electronics/balsa/balsa-4.0-r1.ebuild b/sci-electronics/balsa/balsa-4.0-r1.ebuild new file mode 100644 index 000000000000..b87bd5b40be1 --- /dev/null +++ b/sci-electronics/balsa/balsa-4.0-r1.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 balsa@cs.man.ac.uk" + elog "and add them to /usr/portage/distfiles before emerging." + else + elog "The AMS035 tech library was found and installed." + fi +} diff --git a/sci-electronics/balsa/files/4.0-datadir.patch b/sci-electronics/balsa/files/4.0-datadir.patch new file mode 100644 index 000000000000..2693508d4ad3 --- /dev/null +++ b/sci-electronics/balsa/files/4.0-datadir.patch @@ -0,0 +1,73 @@ +diff --git a/share/scheme/Makefile.am b/share/scheme/Makefile.am +index 37f9332..e3d81d0 100644 +--- a/share/scheme/Makefile.am ++++ b/share/scheme/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-schemedir = $(datadir)/scheme ++schemedir = $(datadir)/balsa/scheme + + scheme_DATA = \ + balsa-list-builtins.scm \ +diff --git a/share/style/dual_b/Makefile.am b/share/style/dual_b/Makefile.am +index 478910d..d41a873 100644 +--- a/share/style/dual_b/Makefile.am ++++ b/share/style/dual_b/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-styledual_bdir = $(datadir)/style/dual_b ++styledual_bdir = $(datadir)/balsa/style/dual_b + + styledual_b_DATA = \ + startup.scm \ +diff --git a/share/style/four_b_rb/Makefile.am b/share/style/four_b_rb/Makefile.am +index 9eeac84..b167939 100644 +--- a/share/style/four_b_rb/Makefile.am ++++ b/share/style/four_b_rb/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-stylefour_b_rbdir = $(datadir)/style/four_b_rb ++stylefour_b_rbdir = $(datadir)/balsa/style/four_b_rb + + stylefour_b_rb_DATA = \ + startup.scm \ +diff --git a/share/style/four_e_e/Makefile.am b/share/style/four_e_e/Makefile.am +index d374125..f3d9db6 100644 +--- a/share/style/four_e_e/Makefile.am ++++ b/share/style/four_e_e/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-stylefour_e_edir = $(datadir)/style/four_e_e ++stylefour_e_edir = $(datadir)/balsa/style/four_e_e + + stylefour_e_e_DATA = \ + startup.scm \ +diff --git a/share/style/one_of_2_4/Makefile.am b/share/style/one_of_2_4/Makefile.am +index ed02904..18d9201 100644 +--- a/share/style/one_of_2_4/Makefile.am ++++ b/share/style/one_of_2_4/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-styleone_of_2_4dir = $(datadir)/style/one_of_2_4 ++styleone_of_2_4dir = $(datadir)/balsa/style/one_of_2_4 + + styleone_of_2_4_DATA = \ + startup.scm \ +diff --git a/share/tech/common/Makefile.am b/share/tech/common/Makefile.am +index 8a34646..0190b73 100644 +--- a/share/tech/common/Makefile.am ++++ b/share/tech/common/Makefile.am +@@ -2,7 +2,7 @@ + + SUBDIRS = + +-techcommondir = $(datadir)/tech/common ++techcommondir = $(datadir)/balsa/tech/common + + techcommon_DATA = \ + components.abs \ diff --git a/sci-electronics/balsa/files/4.0-ldflags.patch b/sci-electronics/balsa/files/4.0-ldflags.patch new file mode 100644 index 000000000000..74df6c075c29 --- /dev/null +++ b/sci-electronics/balsa/files/4.0-ldflags.patch @@ -0,0 +1,11 @@ +--- bin/balsa-make-builtin-lib.in.orig 2010-08-27 11:14:54.000000000 +0200 ++++ bin/balsa-make-builtin-lib.in 2010-08-27 11:15:09.000000000 +0200 +@@ -89,7 +89,7 @@ + # Test compilation + if [ -n "${DOCOMPILE}" ]; then + if ${LIBTOOL} --mode=compile @CC@ @CFLAGS@ -c ${INCLUDES} -o ${LIBNAME}.o $* && +- ${LIBTOOL} --mode=link @CC@ @CFLAGS@ -o ${LIBNAME}.la -c ${INCLUDES} ${LIBNAME}.lo -rpath ${INSTALLDIR} -module ++ ${LIBTOOL} --mode=link @CC@ @CFLAGS@ @LDFLAGS@ -o ${LIBNAME}.la -c ${INCLUDES} ${LIBNAME}.lo -rpath ${INSTALLDIR} -module + then + : + else diff --git a/sci-electronics/balsa/files/4.0-libdir.patch b/sci-electronics/balsa/files/4.0-libdir.patch new file mode 100644 index 000000000000..9ba9739dc29f --- /dev/null +++ b/sci-electronics/balsa/files/4.0-libdir.patch @@ -0,0 +1,36 @@ +diff --git a/share/balsa/parts/Makefile.am b/share/balsa/parts/Makefile.am +index 6873e26..e168d70 100644 +--- a/share/balsa/parts/Makefile.am ++++ b/share/balsa/parts/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-balsapartsdir = $(datadir)/balsa/parts ++balsapartsdir = $(libdir)/balsa/parts + + balsa_files = buffers.balsa counters.balsa + breeze_files = buffers.breeze counters.breeze +diff --git a/share/balsa/sim/Makefile.am b/share/balsa/sim/Makefile.am +index 2cd2932..233d2ec 100644 +--- a/share/balsa/sim/Makefile.am ++++ b/share/balsa/sim/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-balsasimdir = $(datadir)/balsa/sim ++balsasimdir = $(libdir)/balsa/sim + + breeze_files = fileio.breeze string.breeze memory.breeze sim.breeze portio.breeze + balsa_files = fileio.balsa string.balsa memory.balsa sim.balsa portio.balsa +diff --git a/share/balsa/types/Makefile.am b/share/balsa/types/Makefile.am +index 475058a..317176f 100644 +--- a/share/balsa/types/Makefile.am ++++ b/share/balsa/types/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-balsatypesdir = $(datadir)/balsa/types ++balsatypesdir = $(libdir)/balsa/types + + balsa_files = basic.balsa builtin.balsa synthesis.balsa types.balsa + breeze_files = basic.breeze builtin.breeze synthesis.breeze types.breeze diff --git a/sci-electronics/balsa/metadata.xml b/sci-electronics/balsa/metadata.xml new file mode 100644 index 000000000000..5e761826e5a7 --- /dev/null +++ b/sci-electronics/balsa/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-electronics</herd> + <longdescription> + Balsa is an asynchronous circuit synthesis system developed over a number of + years at the APT group of the School Of Computer Science, The University of + Manchester. Balsa is built around the Handshake Circuits methology and can + generate gate level netlists from high-level descriptions in the Balsa + language. Both dual-rail (QDI) and single-rail (bundled data) circuits can be + generated. + </longdescription> +</pkgmetadata> |