diff options
author | David Seifert <soap@gentoo.org> | 2018-04-17 11:03:26 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2018-04-17 11:08:11 +0200 |
commit | a811a7aba37e687265579dc430aa3bd934be571a (patch) | |
tree | 6dbbe0e58514fec2450fd05af47e6cb7be53bcad /sci-electronics | |
parent | net-libs/davix: only depend on sys-apps/util-linux on Linux (diff) | |
download | gentoo-a811a7aba37e687265579dc430aa3bd934be571a.tar.gz gentoo-a811a7aba37e687265579dc430aa3bd934be571a.tar.bz2 gentoo-a811a7aba37e687265579dc430aa3bd934be571a.zip |
sci-electronics/vbs: Port to EAPI 6
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch | 11 | ||||
-rw-r--r-- | sci-electronics/vbs/files/vbs-1.4.0-gcc-4.1.patch | 30 | ||||
-rw-r--r-- | sci-electronics/vbs/files/vbs-1.4.0-gcc-4.3.patch | 12 | ||||
-rw-r--r-- | sci-electronics/vbs/vbs-1.4.0.ebuild | 43 |
4 files changed, 50 insertions, 46 deletions
diff --git a/sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch b/sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch new file mode 100644 index 000000000000..796aba52bb76 --- /dev/null +++ b/sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch @@ -0,0 +1,11 @@ +--- a/common/scp_tab.cc ++++ b/common/scp_tab.cc +@@ -148,7 +148,7 @@ + nm.replace(0,top.length()+1,""); + const char * n = nm.c_str(); + size_t full, sub,diff; +- char * last_dot = strrchr(n,'.'); ++ char * last_dot = const_cast<char*>(strrchr(n,'.')); + char * ret = 0; + if (last_dot != 0) + { diff --git a/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.1.patch b/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.1.patch index 20f2aadb7e6e..b017e9e05dcf 100644 --- a/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.1.patch +++ b/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.1.patch @@ -1,6 +1,5 @@ -diff -ur vbs-1.4.0.orig/src/common/bvector.h vbs-1.4.0/src/common/bvector.h ---- vbs-1.4.0.orig/src/common/bvector.h 2003-01-12 05:40:59.000000000 +0100 -+++ vbs-1.4.0/src/common/bvector.h 2007-03-09 22:40:02.000000000 +0100 +--- a/common/bvector.h ++++ b/common/bvector.h @@ -90,9 +90,9 @@ size_type _size; // Size of this sub-bit vector. @@ -22,9 +21,8 @@ diff -ur vbs-1.4.0.orig/src/common/bvector.h vbs-1.4.0/src/common/bvector.h size_type size() const { return _size; } ostream_type &info(ostream_type &) const; -diff -ur vbs-1.4.0.orig/src/common/logic.h vbs-1.4.0/src/common/logic.h ---- vbs-1.4.0.orig/src/common/logic.h 2002-10-21 11:01:02.000000000 +0200 -+++ vbs-1.4.0/src/common/logic.h 2007-03-09 22:40:02.000000000 +0100 +--- a/common/logic.h ++++ b/common/logic.h @@ -44,6 +44,10 @@ { return (_state == HI) ? true : false; } operator int() const @@ -36,9 +34,8 @@ diff -ur vbs-1.4.0.orig/src/common/logic.h vbs-1.4.0/src/common/logic.h operator char() const { switch (_state) -diff -ur vbs-1.4.0.orig/src/common/st_net.h vbs-1.4.0/src/common/st_net.h ---- vbs-1.4.0.orig/src/common/st_net.h 2002-11-24 03:07:00.000000000 +0100 -+++ vbs-1.4.0/src/common/st_net.h 2007-03-09 22:40:02.000000000 +0100 +--- a/common/st_net.h ++++ b/common/st_net.h @@ -133,4 +133,7 @@ const st_net &_net; }; @@ -47,9 +44,8 @@ diff -ur vbs-1.4.0.orig/src/common/st_net.h vbs-1.4.0/src/common/st_net.h +void exit_iovars(st_net::io_list &, st_net::arg_list &); + #endif // _ST_NET_H -diff -ur vbs-1.4.0.orig/src/expr/erdwr.cc vbs-1.4.0/src/expr/erdwr.cc ---- vbs-1.4.0.orig/src/expr/erdwr.cc 2002-05-28 08:22:46.000000000 +0200 -+++ vbs-1.4.0/src/expr/erdwr.cc 2007-03-09 22:40:02.000000000 +0100 +--- a/expr/erdwr.cc ++++ b/expr/erdwr.cc @@ -25,8 +25,9 @@ expr_base * read_expr::operator()() const @@ -62,9 +58,8 @@ diff -ur vbs-1.4.0.orig/src/expr/erdwr.cc vbs-1.4.0/src/expr/erdwr.cc long ln; _in >> ln; expr_base *expr = 0; -diff -ur vbs-1.4.0.orig/src/Makefile.in vbs-1.4.0/src/Makefile.in ---- vbs-1.4.0.orig/src/Makefile.in 2003-06-08 00:38:24.000000000 +0200 -+++ vbs-1.4.0/src/Makefile.in 2007-03-09 22:40:02.000000000 +0100 +--- a/Makefile.in ++++ b/Makefile.in @@ -329,13 +329,15 @@ rm -f *.o rm -f *.a @@ -82,9 +77,8 @@ diff -ur vbs-1.4.0.orig/src/Makefile.in vbs-1.4.0/src/Makefile.in tarball: @echo "===== Tar ball ======" -diff -ur vbs-1.4.0.orig/src/misc/mrdwr.cc vbs-1.4.0/src/misc/mrdwr.cc ---- vbs-1.4.0.orig/src/misc/mrdwr.cc 2002-05-28 11:42:00.000000000 +0200 -+++ vbs-1.4.0/src/misc/mrdwr.cc 2007-03-09 22:40:02.000000000 +0100 +--- a/misc/mrdwr.cc ++++ b/misc/mrdwr.cc @@ -21,8 +21,9 @@ module * read_module::operator()() const diff --git a/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.3.patch b/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.3.patch index c0a62e1d0e22..1bb55d824e7a 100644 --- a/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.3.patch +++ b/sci-electronics/vbs/files/vbs-1.4.0-gcc-4.3.patch @@ -1,5 +1,5 @@ ---- vbs-1.4.0b/src/common/dumpstrm.cc 2009-01-21 02:42:43.000000000 -0400 -+++ vbs-1.4.0/src/common/dumpstrm.cc 2009-01-21 02:48:57.000000000 -0400 +--- a/common/dumpstrm.cc ++++ b/common/dumpstrm.cc @@ -13,6 +13,7 @@ #include <cstdio> // sprintf @@ -8,8 +8,8 @@ #include "dumpstrm.h" using std::cerr; ---- vbs-1.4.0b/src/common/logic.h 2009-01-21 02:42:43.000000000 -0400 -+++ vbs-1.4.0/src/common/logic.h 2009-01-21 02:48:05.000000000 -0400 +--- a/common/logic.h ++++ b/common/logic.h @@ -18,6 +18,7 @@ #ifndef _LOGIC_H @@ -18,8 +18,8 @@ class logic { ---- vbs-1.4.0b/src/common/bvector.h 2009-01-21 02:42:43.000000000 -0400 -+++ vbs-1.4.0/src/common/bvector.h 2009-01-21 02:46:31.000000000 -0400 +--- a/common/bvector.h ++++ b/common/bvector.h @@ -30,6 +30,7 @@ #include <string> #include <utility> diff --git a/sci-electronics/vbs/vbs-1.4.0.ebuild b/sci-electronics/vbs/vbs-1.4.0.ebuild index 3dab479eec55..0c3b4dcf54c8 100644 --- a/sci-electronics/vbs/vbs-1.4.0.ebuild +++ b/sci-electronics/vbs/vbs-1.4.0.ebuild @@ -1,41 +1,40 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="2" +EAPI=6 -inherit eutils - -HOMEPAGE="http://www.geda.seul.org/tools/vbs/index.html" DESCRIPTION="vbs - the Verilog Behavioral Simulator" +HOMEPAGE="http://www.geda.seul.org/tools/vbs/index.html" SRC_URI="http://www.geda.seul.org/dist/${P}.tar.gz" -SLOT="0" LICENSE="GPL-2" -IUSE="examples" +SLOT="0" KEYWORDS="~amd64 ppc ~x86" +IUSE="" -DEPEND=">=sys-devel/flex-2.3 - >=sys-devel/bison-1.22" +DEPEND=" + sys-devel/flex + sys-devel/bison" RDEPEND="" S="${WORKDIR}/${P}/src" - -src_prepare() { - epatch "${FILESDIR}/${P}-gcc-4.1.patch" - epatch "${FILESDIR}/${P}-gcc-4.3.patch" - sed -i -e "s/strrchr(n,'.')/const_cast<char*>(strrchr(n,'.'))/" common/scp_tab.cc || die "sed failed" -} +PATCHES=( + "${FILESDIR}"/${P}-gcc-4.1.patch + "${FILESDIR}"/${P}-gcc-4.3.patch + "${FILESDIR}"/${P}-const_cast.patch +) src_compile() { - emake -j1 vbs || die "Compilation failed" + emake -j1 vbs } src_install() { dobin vbs - cd .. - dodoc BUGS CHANGELOG* CONTRIBUTORS COPYRIGHT FAQ README vbs.txt - if use examples ; then - insinto /usr/share/${PF}/examples - doins EXAMPLES/* - fi + cd .. || die + + einstalldocs + dodoc CHANGELOG* CONTRIBUTORS vbs.txt + + insinto /usr/share/${PF}/examples + doins -r EXAMPLES/. } |