Сравнение xaos-3.6 с xaos-4.2.1_p20210828

/usr/portage/x11-misc/xaos/xaos-4.2.1_p20210828.ebuild 2023-10-09 14:52:35.952368513 +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 desktop strip-linguas
6
VIRTUALX_REQUIRED="always"
7
DOCS_BUILDER="doxygen"
8
DOCS_DEPEND="media-gfx/graphviz"
9

  
10
inherit docs qmake-utils
11

  
12
COMMIT="de9e4f16849c5388760ba3a2e3b0955c5a39b71a"
7 13

  
8 14
DESCRIPTION="Very fast real-time fractal zoomer"
9
HOMEPAGE="http://matek.hu/xaos/doku.php"
10
SRC_URI="
11
	mirror://sourceforge/${PN}/${P}.tar.gz
12
	https://dev.gentoo.org/~jlec/distfiles/${PN}.png.tar"
15
HOMEPAGE="https://xaos-project.github.io/"
16
SRC_URI="https://github.com/xaos-project/XaoS/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
17
S="${WORKDIR}/XaoS-${COMMIT}"
13 18

  
14 19
LICENSE="GPL-2"
15 20
SLOT="0"
16
KEYWORDS="amd64 ~ppc sparc ~x86 ~amd64-linux ~x86-linux"
17
IUSE="aalib doc gtk nls png svga threads X"
21
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
18 22

  
19 23
RDEPEND="
20
	sci-libs/gsl:=
21
	sys-libs/zlib
22
	aalib? ( media-libs/aalib )
23
	gtk? ( x11-libs/gtk+:2 )
24
	png? ( media-libs/libpng:0= )
25
	X? (
26
		x11-libs/libX11
27
		x11-libs/libXext
28
		x11-libs/libXxf86vm
29
	)"
30
DEPEND="${RDEPEND}
31
	X? ( x11-base/xorg-proto )"
32
BDEPEND="
33
	virtual/pkgconfig
34
	doc? ( virtual/texi2dvi )
35
	nls? ( sys-devel/gettext )"
36

  
37
PATCHES=(
38
	"${FILESDIR}"/${PN}-3.6-buildsystem.patch
39
	"${FILESDIR}"/${PN}-3.4-include.patch
40
	"${FILESDIR}"/${PN}-3.5-build-fix-i686.patch
41
)
42

  
43
src_prepare() {
44
	default
45
	mv configure.{in,ac} || die
46
	eautoreconf
47

  
48
	if use nls; then
49
		if [[ ${LINGUAS+set} == set ]]; then
50
			strip-linguas -i src/i18n
51
			sed -i -e '/^ALL_LINGUAS=/d' configure || die
52
			export ALL_LINGUAS="${LINGUAS}"
53
		fi
54
	else
55
		sed -i -e '/^ALL_LINGUAS=/d' configure || die
56
	fi
57
}
24
	dev-qt/qtgui:5
25
	dev-qt/qtwidgets:5
26
	dev-qt/qtcore:5
27
"
28
DEPEND="${RDEPEND}"
29
BDEPEND="dev-qt/linguist-tools"
58 30

  
59 31
src_configure() {
60
	econf \
61
		--with-sffe=yes \
62
		--with-gsl=yes \
63
		$(use_enable nls) \
64
		$(use_with png) \
65
		$(use_with aalib aa-driver) \
66
		$(use_with gtk gtk-driver) \
67
		$(use_with threads pthread) \
68
		$(use_with X x11-driver) \
69
		$(use_with X x)
32
	# install into /usr/ instead of /usr/local
33
	sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:g" XaoS.pro || die
34
	eqmake5
35
	# Don't strip, this requires running X/wayland session
36
	sed -i -e '/$(STRIP) $(TARGET)/d' Makefile || die
37
	# Fix INSTALL_ROOT ignored for examples dir
38
	sed -i -e "s:cp {} /usr/share/XaoS/examples:cp {} \${INSTALL_ROOT}/usr/share/XaoS/examples:g" Makefile || die
70 39
}
71 40

  
72 41
src_compile() {
73 42
	default
74

  
75
	if use doc; then
76
		emake -C doc xaos.dvi
77
		dvipdf doc/xaos.dvi || die
78

  
79
		emake -C help html
80
		rm -r help/rest || die
81
		HTML_DOCS=( help/. )
82
	fi
43
	docs_compile
83 44
}
84 45

  
85 46
src_install() {
86
	default
87
	use doc && dodoc xaos.pdf
88

  
89
	make_desktop_entry "xaos -driver $(usex gtk '"GTK+ Driver"' x11)" "XaoS Fractal Zoomer" \
90
		xaos "Education;Math;Graphics;"
91
	doicon "${WORKDIR}"/${PN}.png
47
	INSTALL_ROOT="${ED}" default
92 48
}
Спасибо!