Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/magic/
Date: Fri, 17 Mar 2023 10:58:58
Message-Id: 1679050721.0e619e8bb85ccf0be076b266dbf5fa96b531c7b7.andrewammerlaan@gentoo
1 commit: 0e619e8bb85ccf0be076b266dbf5fa96b531c7b7
2 Author: Guillermo Joandet <gjoandet <AT> gmail <DOT> com>
3 AuthorDate: Wed Feb 8 15:19:42 2023 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 17 10:58:41 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e619e8b
7
8 sci-electronics/magic: Version bump to 8.3.365
9
10 Closes: https://bugs.gentoo.org/887691
11 Signed-off-by: Guillermo Joandet <gjoandet <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/29484
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
14
15 sci-electronics/magic/Manifest | 1 +
16 sci-electronics/magic/magic-8.3.365.ebuild | 98 ++++++++++++++++++++++++++++++
17 2 files changed, 99 insertions(+)
18
19 diff --git a/sci-electronics/magic/Manifest b/sci-electronics/magic/Manifest
20 index a7f556f1ccd3..7c77e2332aac 100644
21 --- a/sci-electronics/magic/Manifest
22 +++ b/sci-electronics/magic/Manifest
23 @@ -1,3 +1,4 @@
24 DIST magic-8.3.232.tgz 4093446 BLAKE2B 6b4b49c2b1f566b0173bead0e95e381a6632b049545dc3b26572f415ba0df3958bc5c3931b686718136185cf105e437fe70dc1f71a11707ad33afac80ddf8f2f SHA512 755b27b8f263d990ca86b3f043e1b8f8a2de75d72f1baf9c4de3a1d7cde28feecf093d8bf1497f2632327d09ce0ce0b17ccea46bdba01c5b53c52ea0f5cf5fdc
25 DIST magic-8.3.309.tgz 4175194 BLAKE2B dc63e74abf1a0fee75b1b018f58f73f0ed4ba7acb244aa0f427af1d4051a3344892ee8514a5f99827bd10c8ff44eac907a70150855db48fb97d0e4d436273893 SHA512 1abfd843f3d123bf532672c5e8c58d2c0f50e29ab017c21e4895810163eec430ba07c3b0dd8c571e47f1ce3bacfd37aa4cc667e4cecb3d53b3b7dd1c8205d8c2
26 +DIST magic-8.3.365.tgz 4206213 BLAKE2B 2a50843c166f55471db13400c047cc5b32e762ad90cefb170c03874427ebce3452a6f13ff1524897672bbd7418d9ace2366d22fba9641310882f505d3463c19f SHA512 8ac3933ae74f5953dfbcfaaeaddb8fded36aa9fe2e371808c53edb96f758451b7d75fd6c47666ae0624de5dbab335f6a2990427e1135165360ddc5ed8a33954d
27 DIST magic-tech-mosis-2002a.tar.gz 6601961 BLAKE2B e34bc281b3f1bc032ba14954b781c8b0055bb9125c57944a5b5f595f8b22feb455c60f3230cf04f06bc41aa807e909d900e3d3ab746076e2c99dcbbdf51a71df SHA512 cb8e30df77e58eb37f7ada775db8a8411612897b1cdbcb59b0c4bd814fa73c6cb10a5461e27e9eecb0fe452e194ee95fbb02b568b86848e501b9c37cc24de39e
28
29 diff --git a/sci-electronics/magic/magic-8.3.365.ebuild b/sci-electronics/magic/magic-8.3.365.ebuild
30 new file mode 100644
31 index 000000000000..feb879ad8924
32 --- /dev/null
33 +++ b/sci-electronics/magic/magic-8.3.365.ebuild
34 @@ -0,0 +1,98 @@
35 +# Copyright 1999-2023 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +PYTHON_COMPAT=( python3_{9..11} )
41 +
42 +inherit python-any-r1
43 +
44 +TECH_MOSIS_VER="2002a"
45 +
46 +DESCRIPTION="The VLSI design CAD tool"
47 +HOMEPAGE="http://www.opencircuitdesign.com/magic/index.html"
48 +SRC_URI="http://www.opencircuitdesign.com/${PN}/archive/${P}.tgz
49 + http://opencircuitdesign.com/~tim/programs/${PN}/archive/${TECH_MOSIS_VER}.tar.gz \
50 + -> ${PN}-tech-mosis-${TECH_MOSIS_VER}.tar.gz"
51 +
52 +LICENSE="HPND GPL-2+"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~ppc ~x86"
55 +IUSE="cairo debug opengl"
56 +
57 +# https://bugs.gentoo.org/887691
58 +RDEPEND="
59 + sys-libs/ncurses:0=
60 + sys-libs/readline:0=
61 + sys-libs/zlib:=
62 + dev-lang/tcl:0=
63 + dev-lang/tk:0=
64 + dev-tcltk/blt
65 + cairo? ( x11-libs/cairo )
66 + opengl? (
67 + virtual/glu
68 + virtual/opengl
69 + )
70 + !net-misc/ipsorcery
71 +"
72 +DEPEND="${RDEPEND}"
73 +BDEPEND="app-shells/tcsh
74 + ${PYTHON_DEPS}"
75 +
76 +PATCHES=(
77 + "${FILESDIR}"/${PN}-8.3.232-libdir.patch
78 +)
79 +
80 +DOCS=( README.md README.Tcl TODO )
81 +
82 +src_prepare() {
83 + default
84 +
85 + # Don't embed MAGIC_COMMIT
86 + sed -i 's/git rev-parse HEAD//' scripts/defs.mak.in || die
87 +
88 + pushd scripts &>/dev/null || die
89 + mv configure.in configure.ac || die
90 + popd &>/dev/null || die
91 +
92 + # required for >=autoconf-2.70 (bug #775422)
93 + local ac_aux_file
94 + for ac_aux_file in install-sh config.guess config.sub ; do
95 + ln -s scripts/${ac_aux_file} ${ac_aux_file} || die
96 + done
97 +}
98 +
99 +src_configure() {
100 + # Short-circuit top-level configure script to retain CFLAGS
101 + # Fix tcl/tk detection, bug #447868
102 + cd scripts || die
103 + econf \
104 + --with-tcl="/usr/$(get_libdir)" \
105 + --with-tk="/usr/$(get_libdir)" \
106 + --with-tcllibs="/usr/$(get_libdir)" \
107 + --with-tklibs="/usr/$(get_libdir)" \
108 + --disable-modular \
109 + $(use_enable debug memdebug) \
110 + $(use_enable cairo cairo-offscreen) \
111 + $(use_with cairo) \
112 + $(use_with opengl)
113 +}
114 +
115 +src_install() {
116 + # Make does not always install required .tech files with parallel make install
117 + emake DESTDIR="${ED}" install -j1
118 + einstalldocs
119 +
120 + # Move docs from libdir to docdir and add symlink.
121 + mv "${ED}/usr/$(get_libdir)/magic/doc"/* "${ED}/usr/share/doc/${PF}/" || die
122 + rmdir "${ED}/usr/$(get_libdir)/magic/doc" || die
123 + dosym -r "${EPREFIX}/usr/share/doc/${PF}" "/usr/$(get_libdir)/magic/doc"
124 +
125 + # Move tutorial from libdir to datadir and add symlink.
126 + dodir /usr/share/${PN}
127 + mv "${ED}/usr/$(get_libdir)/magic/tutorial" "${ED}/usr/share/${PN}/" || die
128 + dosym -r "${EPREFIX}/usr/share/${PN}/tutorial" "/usr/$(get_libdir)/magic/tutorial"
129 +
130 + # Install latest MOSIS tech files
131 + cp -pPR "${WORKDIR}"/${TECH_MOSIS_VER} "${ED}"/usr/$(get_libdir)/magic/sys/current || die
132 +}