Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/dynamips/, app-emulation/dynamips/files/
Date: Wed, 03 Oct 2018 10:07:34
Message-Id: 1538561243.b1f355d4bd5f6dedb30a87324e5a5b23e72f0d29.pinkbyte@gentoo
1 commit: b1f355d4bd5f6dedb30a87324e5a5b23e72f0d29
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 3 10:05:06 2018 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 3 10:07:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1f355d4
7
8 app-emulation/dynamips: revision bump
9
10 Bump EAPI to 6, add support for compilers other than GCC
11 Drop old version
12
13 Reported-by: Denis Pronin <dannftk <AT> yandex.ru>
14 Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org>
15 Closes: https://bugs.gentoo.org/665562
16 Package-Manager: Portage-2.3.49, Repoman-2.3.10
17
18 app-emulation/dynamips/Manifest | 1 -
19 app-emulation/dynamips/dynamips-0.2.12.ebuild | 47 ----------------------
20 app-emulation/dynamips/dynamips-0.2.14-r2.ebuild | 42 +++++++++++++++++++
21 app-emulation/dynamips/files/0.2.14-docs.patch | 4 +-
22 .../dynamips/files/dynamips-0.2.12-makefile.patch | 11 -----
23 5 files changed, 44 insertions(+), 61 deletions(-)
24
25 diff --git a/app-emulation/dynamips/Manifest b/app-emulation/dynamips/Manifest
26 index 9f350ebfc4e..3e4504e4962 100644
27 --- a/app-emulation/dynamips/Manifest
28 +++ b/app-emulation/dynamips/Manifest
29 @@ -1,2 +1 @@
30 -DIST dynamips-0.2.12-source.zip 995877 BLAKE2B 0bfc709f49b196763e8a3dcfde214e1e26c9c735257d588b72aefc3ca8dec2b1325ce3cb634b59555365c9dbd3819d959ab6e51e986c2dd62595b5566d76b39c SHA512 08f388027e3234a44a75de77f30d6c96f0d881c4db60435a237f6ae6e3804872fda422ab11249f5c7283054f7d2d8466886dcd6056e59fc90802e67fa7cb8c55
31 DIST dynamips-0.2.14-source.zip 961813 BLAKE2B 71da393bfd5624ad47eda578eafd0f5b8b535d9a93c3ebc8902901c0415168098bb27ea44e92cbb230d0cf2ebb904311665978f1b30e6d35c7792b813a5cd8d2 SHA512 8c3d85998a61cae1e3e82501a00e886c954686f9a19a44acb7dee8b13911c0155ce2cdfecbdc41ed5d279266abdf77a5c3f2753fde12217b138313ffa46dabf8
32
33 diff --git a/app-emulation/dynamips/dynamips-0.2.12.ebuild b/app-emulation/dynamips/dynamips-0.2.12.ebuild
34 deleted file mode 100644
35 index 134ef537bf0..00000000000
36 --- a/app-emulation/dynamips/dynamips-0.2.12.ebuild
37 +++ /dev/null
38 @@ -1,47 +0,0 @@
39 -# Copyright 1999-2014 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=5
43 -
44 -inherit eutils toolchain-funcs
45 -
46 -DESCRIPTION="Cisco 7200/3600 Simulator"
47 -HOMEPAGE="http://www.gns3.net/dynamips/"
48 -SRC_URI="mirror://sourceforge/project/gns-3/Dynamips/${PV}/${P}-source.zip"
49 -
50 -LICENSE="GPL-2"
51 -SLOT="0"
52 -KEYWORDS="~amd64 ~x86"
53 -
54 -RDEPEND="dev-libs/elfutils
55 - net-libs/libpcap"
56 -DEPEND="${RDEPEND}
57 - app-arch/unzip"
58 -
59 -src_prepare() {
60 - epatch "${FILESDIR}/${P}-makefile.patch"
61 -
62 - # enable verbose build
63 - sed -i \
64 - -e 's/@$(CC)/$(CC)/g' \
65 - stable/Makefile || die 'sed on stable/Makefile failed'
66 - # respect compiler
67 - tc-export CC
68 -
69 - epatch_user
70 -}
71 -
72 -src_compile() {
73 - if use amd64 || use x86; then
74 - emake DYNAMIPS_ARCH="${ARCH}"
75 - else
76 - emake DYNAMIS_ARCH="nojit"
77 - fi
78 -}
79 -
80 -src_install () {
81 - newbin dynamips.stable dynamips
82 - newbin nvram_export.stable nvram_export
83 - doman man/*
84 - dodoc README README.hypervisor TODO
85 -}
86
87 diff --git a/app-emulation/dynamips/dynamips-0.2.14-r2.ebuild b/app-emulation/dynamips/dynamips-0.2.14-r2.ebuild
88 new file mode 100644
89 index 00000000000..709519ab927
90 --- /dev/null
91 +++ b/app-emulation/dynamips/dynamips-0.2.14-r2.ebuild
92 @@ -0,0 +1,42 @@
93 +# Copyright 1999-2018 Gentoo Foundation
94 +# Distributed under the terms of the GNU General Public License v2
95 +
96 +EAPI=6
97 +
98 +inherit cmake-utils
99 +
100 +DESCRIPTION="Cisco 7200/3600 Simulator"
101 +HOMEPAGE="http://www.gns3.net/dynamips/"
102 +SRC_URI="mirror://sourceforge/project/gns-3/Dynamips/${PV}/${P}-source.zip"
103 +
104 +LICENSE="GPL-2"
105 +SLOT="0"
106 +KEYWORDS="~amd64 ~x86"
107 +
108 +IUSE="ipv6"
109 +
110 +RDEPEND="dev-libs/elfutils
111 + net-libs/libpcap"
112 +DEPEND="${RDEPEND}
113 + app-arch/unzip"
114 +
115 +DOCS=( ChangeLog README RELEASE-NOTES )
116 +
117 +S="${WORKDIR}"
118 +
119 +PATCHES=( "${FILESDIR}/${PV}-docs.patch" )
120 +
121 +src_prepare() {
122 + # comment out DYNAMIPS_FLAGS to respect CFLAGS
123 + sed -e "s:^set ( DYNAMIPS_FLAGS:#&:" -i cmake/dependencies.cmake || die
124 +
125 + cmake-utils_src_prepare
126 +}
127 +
128 +src_configure() {
129 + local mycmakeargs=(
130 + -DANY_COMPILER=1
131 + -DENABLE_IPV6="$(usex ipv6)"
132 + )
133 + cmake-utils_src_configure
134 +}
135
136 diff --git a/app-emulation/dynamips/files/0.2.14-docs.patch b/app-emulation/dynamips/files/0.2.14-docs.patch
137 index 1d744062e5b..0572a04c482 100644
138 --- a/app-emulation/dynamips/files/0.2.14-docs.patch
139 +++ b/app-emulation/dynamips/files/0.2.14-docs.patch
140 @@ -1,5 +1,5 @@
141 ---- CMakeLists-orig.txt 2014-11-28 14:51:14.375913296 +0900
142 -+++ CMakeLists.txt 2014-11-28 14:52:09.579369288 +0900
143 +--- a/CMakeLists.txt 2014-11-28 14:51:14.375913296 +0900
144 ++++ b/CMakeLists.txt 2014-11-28 14:52:09.579369288 +0900
145 @@ -37,16 +37,6 @@
146 add_subdirectory ( stable )
147 add_subdirectory ( unstable )
148
149 diff --git a/app-emulation/dynamips/files/dynamips-0.2.12-makefile.patch b/app-emulation/dynamips/files/dynamips-0.2.12-makefile.patch
150 deleted file mode 100644
151 index 431f2df8ac7..00000000000
152 --- a/app-emulation/dynamips/files/dynamips-0.2.12-makefile.patch
153 +++ /dev/null
154 @@ -1,11 +0,0 @@
155 ---- stable/origMakefile 2014-03-27 18:17:28.000000000 -0400
156 -+++ stable/Makefile 2014-05-30 18:07:28.164255039 -0400
157 -@@ -19,7 +19,7 @@
158 - PPC32_ARCH_INC_FILE=\"ppc32_$(DYNAMIPS_ARCH)_trans.h\"
159 - OSNAME=unknown
160 -
161 --CFLAGS+= $(INCLUDE) -Wall -O2 -fomit-frame-pointer \
162 -+CFLAGS+= $(INCLUDE) -Wall \
163 - -DJIT_ARCH=\"$(DYNAMIPS_ARCH)\" -DJIT_CPU=CPU_$(DYNAMIPS_ARCH) \
164 - -DMIPS64_ARCH_INC_FILE=$(MIPS64_ARCH_INC_FILE) \
165 - -DPPC32_ARCH_INC_FILE=$(PPC32_ARCH_INC_FILE) \