Diff geda-1.9.2-r1 with a geda-1.10.2-r1

/usr/portage/sci-electronics/geda/geda-1.10.2-r1.ebuild 2023-10-09 14:52:35.040368490 +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
inherit autotools xdg
6
DOCS_BUILDER="doxygen"
7
DOCS_DEPEND="
8
	media-gfx/graphviz
9
	media-gfx/imagemagick
10
	virtual/latex-base
11
"
12
inherit autotools docs xdg
7 13

  
8 14
MY_PN=${PN}-gaf
9 15
MY_P=${MY_PN}-${PV}
10 16

  
11 17
DESCRIPTION="GPL Electronic Design Automation (gEDA):gaf core package"
12 18
HOMEPAGE="http://wiki.geda-project.org/geda:gaf"
13
SRC_URI="http://ftp.geda-project.org/${MY_PN}/unstable/v$(ver_cut 1-2)/${PV}/${MY_P}.tar.gz"
19
SRC_URI="http://ftp.geda-project.org/${MY_PN}/stable/v$(ver_cut 1-2)/${PV}/${MY_P}.tar.gz"
20
S="${WORKDIR}/${MY_P}"
14 21

  
15 22
LICENSE="GPL-2"
16 23
SLOT="0"
17
KEYWORDS="amd64 ~ppc ~x86"
18
IUSE="debug doc examples nls stroke threads"
24
KEYWORDS="~amd64 ~ppc ~x86"
25
IUSE="debug examples fam nls"
26
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
19 27

  
20
RDEPEND="
28
RDEPEND="${PYTHON_DEPS}
21 29
	dev-libs/glib:2
22 30
	dev-scheme/guile
23 31
	sci-electronics/electronics-menu
......
26 34
	x11-libs/gtk+:2
27 35
	x11-libs/pango
28 36
	nls? ( virtual/libintl )
29
	stroke? ( dev-libs/libstroke )"
37
	fam? ( app-admin/gamin )
38
"
30 39

  
31 40
DEPEND="${RDEPEND}
32 41
	dev-util/desktop-file-utils
......
34 43
BDEPEND="
35 44
	sys-apps/groff
36 45
	virtual/pkgconfig
37
	nls? ( sys-devel/gettext )"
38

  
39
S="${WORKDIR}/${MY_P}"
46
	nls? ( sys-devel/gettext )
47
"
40 48

  
49
# Xorn requires python2
41 50
PATCHES=(
42
	"${FILESDIR}"/${P}-guile-2.2.patch
43
	"${FILESDIR}"/${P}-fno-common.patch
51
	"${FILESDIR}/${P}-drop-xorn.patch"
44 52
)
45 53

  
46 54
src_prepare() {
47 55
	default
56
	rm -r xorn || die
48 57

  
49 58
	if ! use doc ; then
50 59
		sed -i -e '/^SUBDIRS = /s/docs//' Makefile.in || die
......
58 67
		gsymcheck/src/Makefile.am || die
59 68

  
60 69
	sed -i -e 's/gnetlist_LDFLAGS =/gnetlist_LDFLAGS = $(GIO_LIBS)/' \
61
		gnetlist/src/Makefile.am || die
70
		gnetlist-legacy/src/Makefile.am || die
62 71

  
63 72
	sed -i -e 's/gschlas_LDFLAGS =/gschlas_LDFLAGS = $(GIO_LIBS)/' \
64 73
		utils/gschlas/Makefile.am || die
......
66 75
	sed -i -e 's/sarlacc_schem_LDFLAGS =/sarlacc_schem_LDFLAGS = $(GIO_LIBS)/' \
67 76
		contrib/sarlacc_schem/Makefile.am || die
68 77

  
78
	# remove compressed files, compressed by portage in install phase
69 79
	rm docs/wiki/media/geda/gsch2pcb-libs.tar.gz || die
80
	rm docs/wiki/media/geda/pcb_plugin_template.tar.gz || die
81
	rm docs/wiki/media/pcb/plugin_debug_window.tar.gz || die
70 82

  
71 83
	eautoreconf
72 84
}
73 85

  
74 86
src_configure() {
75 87
	local myconf=(
76
		--disable-doxygen
77 88
		--disable-rpath
78 89
		--disable-update-xdg-database
90
		$(use_enable doc doxygen)
79 91
		$(use_enable debug assert)
80 92
		$(use_enable nls)
81
		$(use_enable threads threads posix)
82
		$(use_with stroke libstroke)
93
		$(use_with fam libfam)
83 94
	)
84 95

  
85 96
	econf "${myconf[@]}"
86 97
}
87

  
88
src_test() {
89
	emake -j1 check
90
}
91

  
92
src_install() {
93
	default
94
	find "${ED}" -name '*.la' -delete || die
95
}
Thank you!