Diff libfm-1.2.5 with a libfm-1.3.1

/usr/portage/x11-libs/libfm/libfm-1.3.1.ebuild 2020-02-22 20:09:00.000000000 +0300
1 1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=7
5 5

  
6 6
inherit autotools multilib vala xdg-utils
7 7

  
......
11 11
HOMEPAGE="https://wiki.lxde.org/en/PCManFM"
12 12
SRC_URI="https://github.com/lxde/libfm/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
13 13

  
14
KEYWORDS="~alpha amd64 arm ~arm64 ~mips ppc x86 ~amd64-linux ~x86-linux"
14
KEYWORDS="~alpha amd64 arm ~arm64 ~mips ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
15 15
LICENSE="GPL-2"
16
SLOT="0/4.5.0" #copy ABI_VERSION because it seems upstream change it randomly
16
SLOT="0/5.2.1" #copy ABI_VERSION because it seems upstream change it randomly
17 17
IUSE="+automount debug doc examples exif gtk udisks vala"
18 18

  
19 19
COMMON_DEPEND=">=dev-libs/glib-2.18:2
......
37 37
	app-arch/xz-utils
38 38
	>=dev-util/intltool-0.40
39 39
	virtual/pkgconfig
40
	sys-devel/gettext"
40
	sys-devel/gettext
41
	dev-util/glib-utils"
41 42

  
42 43
S="${WORKDIR}"/${MY_P}
43 44

  
44 45
REQUIRED_USE="udisks? ( automount ) doc? ( gtk )"
45 46

  
46 47
src_prepare() {
47
	# Fix use after free bug, see
48
	# https://github.com/lxde/libfm/pull/11/commits/9e3a809c6a8a5079f05e04edac9457d317822321
49
	epatch "${FILESDIR}"/libfm-fix-use-after-free.diff
50

  
51 48
	if ! use doc; then
52 49
		sed -ie '/^SUBDIR.*=/s#docs##' "${S}"/Makefile.am || die "sed failed"
53 50
		sed -ie '/^[[:space:]]*docs/d' configure.ac || die "sed failed"
......
78 75
	eautoreconf
79 76
	rm -r autom4te.cache || die
80 77
	use vala && export VALAC="$(type -p valac-$(vala_best_api_version))"
78

  
79
	eapply_user
81 80
}
82 81

  
83 82
src_configure() {
......
87 86
		$(use_enable exif) \
88 87
		$(use_enable debug) \
89 88
		$(use_enable udisks) \
90
		$(use_enable vala actions) \
89
		$(use_enable vala old-actions) \
91 90
		$(use_with gtk) \
92 91
		$(use_enable doc gtk-doc) \
93 92
		--with-html-dir=/usr/share/doc/${PF}/html
......
120 119

  
121 120
pkg_postinst() {
122 121
	xdg_mimeinfo_database_update
122
	xdg_desktop_database_update
123 123
}
124 124

  
125 125
pkg_postrm() {
126 126
	xdg_mimeinfo_database_update
127
	xdg_desktop_database_update
127 128
}
Thank you!