Сравнение xfce4-screensaver-4.18.4 с latexdiff-9999

/usr/portage/dev-tex/latexdiff/latexdiff-9999.ebuild 2025-02-03 17:39:32.906667199 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit xdg-utils
6
DESCRIPTION="Compare two latex files and mark up significant differences"
7
HOMEPAGE="https://www.ctan.org/tex-archive/support/latexdiff/ https://github.com/ftilmann/latexdiff/"
7 8

  
8
DESCRIPTION="Screen saver and locker (port of MATE screensaver)"
9
HOMEPAGE="
10
	https://docs.xfce.org/apps/screensaver/start
11
	https://gitlab.xfce.org/apps/xfce4-screensaver/
12
"
13
SRC_URI="
14
	https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2
9
if [[ ${PV} == *9999* ]] ; then
10
	inherit git-r3
11
	EGIT_REPO_URI="https://github.com/ftilmann/latexdiff.git"
12
else
13
	SRC_URI="https://github.com/ftilmann/latexdiff/archive/${PV}.tar.gz -> ${P}.tar.gz"
14
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
15
fi
16

  
17
SRC_URI+="
18
	https://github.com/ftilmann/latexdiff/pull/314/commits/94e13c799d2e218a814d007ceff37e91828fb4a4.patch
19
		-> ${PN}-1.3.4-makefile-fix-example-diff-target.patch
15 20
"
16 21

  
17
LICENSE="GPL-2+ LGPL-2+"
22
LICENSE="GPL-3"
18 23
SLOT="0"
19
KEYWORDS="amd64 arm ~arm64 ~loong ppc ppc64 ~riscv x86"
20
IUSE="elogind +locking opengl pam systemd"
21 24

  
22
# Xrandr: optional but automagic
23
DEPEND="
24
	>=dev-libs/dbus-glib-0.30
25
	>=dev-libs/glib-2.50.0:2
26
	>=x11-libs/gtk+-3.24.0:3
27
	>=x11-libs/libwnck-3.20:3
28
	x11-libs/libICE:=
29
	x11-libs/libX11:=
30
	x11-libs/libXScrnSaver:=
31
	x11-libs/libXext:=
32
	x11-libs/libXxf86vm:=
33
	>=x11-libs/libXrandr-1.3:=
34
	>=x11-libs/libxklavier-5.2:=
35
	>=xfce-base/garcon-0.5.0:=
36
	>=xfce-base/libxfce4ui-4.18.4:=
37
	>=xfce-base/libxfce4util-4.12.1:=
38
	>=xfce-base/xfconf-4.12.1:=
39
	elogind? ( sys-auth/elogind )
40
	locking? (
41
		pam? ( sys-libs/pam )
42
	)
43
	opengl? ( virtual/opengl )
44
	systemd? ( sys-apps/systemd:= )
45
"
25
IUSE="test"
26
RESTRICT="!test? ( test )"
27

  
46 28
RDEPEND="
47
	${DEPEND}
29
	>=dev-lang/perl-5.8
30
	virtual/latex-base
31
	dev-texlive/texlive-plaingeneric
32
	dev-perl/Algorithm-Diff
33
"
34
DEPEND="${RDEPEND}
35
	dev-perl/Pod-LaTeX
48 36
"
49 37
BDEPEND="
50
	dev-util/glib-utils
51
	sys-apps/dbus
52
	>=sys-devel/gettext-0.19.8
53
	virtual/pkgconfig
38
	test? ( app-shells/tcsh )
54 39
"
55 40

  
56
src_configure() {
57
	local myconf=(
58
		# disable docbook for now
59
		ac_cv_path_XMLTO=no
60

  
61
		# xscreensaver dirs autodetection doesn't seem to work
62
		--with-xscreensaverdir=/usr/share/xscreensaver/config
63
		--with-xscreensaverhackdir=/usr/$(get_libdir)/misc/xscreensaver
64
		--without-console-kit
65

  
66
		$(use_with opengl libgl)
67
		$(use_enable locking)
68
		$(use_enable pam)
69
		$(use_with elogind)
70
		$(use_with systemd)
71
	)
72

  
73
	if use pam; then
74
		myconf+=( --with-pam-auth-type=system )
75
	fi
76

  
77
	econf "${myconf[@]}"
41
PATCHES=(
42
	"${DISTDIR}"/${PN}-1.3.4-makefile-fix-example-diff-target.patch
43
)
44

  
45
src_compile() {
46
	local -x VARTEXFONTS="${T}/fonts"
47
	emake -j1 distribution
78 48
}
79 49

  
80 50
src_install() {
81
	default
82

  
83
	find "${D}" -name '*.la' -delete || die
84
}
85

  
86
pkg_postinst() {
87
	xdg_icon_cache_update
88
}
89

  
90
pkg_postrm() {
91
	xdg_icon_cache_update
51
	cd dist || die
52
	dobin latexdiff latexrevise latexdiff-vc
53
	doman latexdiff.1 latexrevise.1 latexdiff-vc.1
54
	dodoc README doc/latexdiff-man.pdf
92 55
}
Спасибо!