Diff libfm-1.3.1 with a libfm-9999

/usr/portage/x11-libs/libfm/libfm-9999.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=7
4
EAPI=5
5 5

  
6
inherit autotools multilib vala xdg-utils
6
EGIT_REPO_URI="https://github.com/lxde/${PN}"
7
inherit autotools git-r3 vala xdg-utils
7 8

  
8
MY_PV=${PV/_/}
9
MY_P="${PN}-${MY_PV}"
10 9
DESCRIPTION="A library for file management"
11 10
HOMEPAGE="https://wiki.lxde.org/en/PCManFM"
12
SRC_URI="https://github.com/lxde/libfm/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
13 11

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

  
19 17
COMMON_DEPEND=">=dev-libs/glib-2.18:2
20 18
	gtk? ( >=x11-libs/gtk+-2.16:2 )
21 19
	>=lxde-base/menu-cache-0.3.2:=
22
	~x11-libs/libfm-extra-${PV}
23
	udisks? ( dev-libs/dbus-glib )"
20
	x11-libs/libfm-extra"
24 21
RDEPEND="${COMMON_DEPEND}
25 22
	!lxde-base/lxshortcut
26 23
	x11-misc/shared-mime-info
......
34 31
	doc? (
35 32
		dev-util/gtk-doc
36 33
	)
37
	app-arch/xz-utils
38 34
	>=dev-util/intltool-0.40
39 35
	virtual/pkgconfig
40 36
	sys-devel/gettext
41 37
	dev-util/glib-utils"
42 38

  
43
S="${WORKDIR}"/${MY_P}
39
DOCS=( AUTHORS TODO )
44 40

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

  
......
48 44
	if ! use doc; then
49 45
		sed -ie '/^SUBDIR.*=/s#docs##' "${S}"/Makefile.am || die "sed failed"
50 46
		sed -ie '/^[[:space:]]*docs/d' configure.ac || die "sed failed"
47
	else
48
		gtkdocize --copy || die
51 49
	fi
52 50
	sed -i -e "s:-O0::" -e "/-DG_ENABLE_DEBUG/s: -g::" \
53 51
		configure.ac || die "sed failed"
54 52

  
53
	intltoolize --force --copy --automake || die
55 54
	#disable unused translations. Bug #356029
56 55
	for trans in app-chooser ask-rename exec-file file-prop preferred-apps \
57 56
		progress;do
......
75 74
	eautoreconf
76 75
	rm -r autom4te.cache || die
77 76
	use vala && export VALAC="$(type -p valac-$(vala_best_api_version))"
78

  
79
	eapply_user
80 77
}
81 78

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

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

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