Diff gspiceui-1.1.0 with a gspiceui-1.2.87

/usr/portage/sci-electronics/gspiceui/gspiceui-1.2.87.ebuild 2023-10-09 14:52:35.044368490 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
WX_GTK_VER="3.0"
7
inherit desktop flag-o-matic toolchain-funcs wxwidgets
6
WX_GTK_VER="3.0-gtk3"
7
inherit desktop optfeature wxwidgets xdg
8 8

  
9
MY_P="${PN}-v${PV}0"
9
MY_P="${PN}-v${PV}"
10 10

  
11 11
DESCRIPTION="GUI frontend for Ngspice and Gnucap"
12 12
HOMEPAGE="https://sourceforge.net/projects/gspiceui/"
......
15 15

  
16 16
LICENSE="GPL-3"
17 17
SLOT="0"
18
KEYWORDS="amd64 ~x86"
19
IUSE="examples schematics waveform"
18
KEYWORDS="~amd64 ~x86"
19
IUSE="examples"
20 20

  
21 21
DEPEND="
22 22
	x11-libs/wxGTK:${WX_GTK_VER}[X]
23
	sci-electronics/electronics-menu"
23
	sci-electronics/electronics-menu
24
"
24 25
RDEPEND="
25 26
	${DEPEND}
26 27
	|| (
27 28
		sci-electronics/ngspice
28 29
		sci-electronics/gnucap
29 30
	)
30
	waveform? ( sci-electronics/gwave )
31
	schematics? ( sci-electronics/geda )"
31
"
32 32

  
33 33
PATCHES=(
34 34
	# Use Gentoo LDFLAGS and CXXFLAGS
35
	"${FILESDIR}"/${P}-flags.patch
35
	"${FILESDIR}"/${P}-respect-users-flags.patch
36 36
)
37 37

  
38 38
src_prepare() {
39 39
	default
40 40

  
41
	# Adjusting the doc path at src/main/HelpTasks.cpp
41
	# Adjusting the doc path at src/main/FrmHtmlVwr.cpp
42 42
	sed -i -e \
43 43
		"s:/share/gspiceui/html/User-Manual.html:/share/doc/${PF}/html/User-Manual.html:g" \
44
		src/main/HelpTasks.cpp || die
45

  
46
	# Adjusting call to gwave program
47
	sed -i -e "s/gwave2/gwave/g" src/TypeDefs.hpp || die
44
		src/main/FrmHtmlVwr.cpp || die
48 45
}
49 46

  
50 47
src_configure() {
51 48
	setup-wxwidgets
52

  
53
	# bug 553968
54
	replace-flags -O? -O1
55

  
56 49
	default
57 50
}
58 51

  
59 52
src_compile() {
60
	emake CXX="$(tc-getCXX)"
53
	emake
61 54
}
62 55

  
63 56
src_install() {
64 57
	dobin bin/gspiceui
65 58

  
66
	HTML_DOCS=( html/*.html html/*.jpg html/*.png )
67 59
	einstalldocs
68
	dodoc ChangeLog ReadMe ToDo release-notes-v1.1.00.txt
60
	dodoc html/*.html html/*.jpg html/*.png
61
	dodoc ChangeLog ReadMe ToDo release-notes-v${PV}.txt
69 62
	doman gspiceui.1
70 63

  
71 64
	# installing examples and according model and symbol files
72 65
	use examples && dodoc -r lib sch
73 66

  
74
	newicon src/icons/gspiceui-48x48.xpm gspiceui.xpm
67
	newicon -s 32 src/icons/gspiceui-32x32.xpm gspiceui.xpm
68
	newicon -s 48 src/icons/gspiceui-48x48.xpm gspiceui.xpm
75 69
	make_desktop_entry gspiceui "GNU Spice GUI" gspiceui "Electronics"
76 70
}
77 71

  
78 72
pkg_postinst() {
73
	xdg_pkg_postinst
79 74
	if use examples ; then
80 75
		elog "If you want to use the examples, copy and extract from"
81 76
		elog "${EROOT}/usr/share/doc/${PF} the sch and lib directory"
82 77
		elog "side by side to your home directory to be able"
83 78
		elog "to generate the netlists as normal user."
84 79
	fi
80
	optfeature "schematics editing" sci-electronics/geda
81
	optfeature "waveform display" sci-electronics/gwave
85 82
}
Thank you!