Diff magic-8.3.232-r1 with a magic-8.3.309-r2

/usr/portage/sci-electronics/magic/magic-8.3.309-r2.ebuild 2023-10-09 14:52:35.044368490 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..11} )
7

  
8
inherit python-any-r1
9

  
6 10
TECH_MOSIS_VER="2002a"
7 11

  
8 12
DESCRIPTION="The VLSI design CAD tool"
......
13 17

  
14 18
LICENSE="HPND GPL-2+"
15 19
SLOT="0"
16
KEYWORDS="amd64 ~ppc ~x86"
20
KEYWORDS="~amd64 ~ppc ~x86"
17 21
IUSE="cairo debug opengl"
18 22

  
19
RDEPEND="sys-libs/ncurses:0=
23
RDEPEND="
24
	sys-libs/ncurses:0=
20 25
	sys-libs/readline:0=
26
	sys-libs/zlib:=
21 27
	dev-lang/tcl:0=
22 28
	dev-lang/tk:0=
23 29
	dev-tcltk/blt
......
25 31
	opengl? (
26 32
		virtual/glu
27 33
		virtual/opengl
28
	)"
34
	)
35
"
29 36
DEPEND="${RDEPEND}"
30
BDEPEND="app-shells/tcsh"
37
BDEPEND="app-shells/tcsh
38
	${PYTHON_DEPS}"
31 39

  
32 40
PATCHES=(
33 41
	"${FILESDIR}"/${PN}-8.3.232-libdir.patch
34
	"${FILESDIR}"/${PN}-8.3.232-verbose-build.patch
35 42
)
36 43

  
37 44
DOCS=( README.md README.Tcl TODO )
......
43 50
	mv configure.in configure.ac || die
44 51
	popd &>/dev/null || die
45 52

  
46
	sed -i -e "s: -pg : :" tcltk/Makefile || die
47

  
48 53
	# required for >=autoconf-2.70 (bug #775422)
49 54
	local ac_aux_file
50 55
	for ac_aux_file in install-sh config.guess config.sub ; do
......
54 59

  
55 60
src_configure() {
56 61
	# Short-circuit top-level configure script to retain CFLAGS
57
	# fix tcl/tk detection #447868
62
	# Fix tcl/tk detection, bug #447868
58 63
	cd scripts || die
59 64
	econf \
60
		--with-tcl=yes \
65
		--with-tcl="/usr/$(get_libdir)" \
66
		--with-tk="/usr/$(get_libdir)" \
61 67
		--with-tcllibs="/usr/$(get_libdir)" \
62 68
		--with-tklibs="/usr/$(get_libdir)" \
63 69
		--disable-modular \
......
67 73
}
68 74

  
69 75
src_install() {
70
	default
76
	# Make does not always install required .tech files with parallel make install
77
	emake DESTDIR="${ED}" install -j1
78
	einstalldocs
71 79

  
72 80
	# Move docs from libdir to docdir and add symlink.
73 81
	mv "${ED}/usr/$(get_libdir)/magic/doc"/* "${ED}/usr/share/doc/${PF}/" || die
Thank you!