forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xarchiver-0.5.4.11_p20170629.ebuild
62 lines (51 loc) · 1.39 KB
/
xarchiver-0.5.4.11_p20170629.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools gnome2-utils xdg-utils
MY_COMMIT=79a73d46b782cf8bb93d058d00d2cb81a9b3df8a
DESCRIPTION="A GTK+ archive manager that can be used with Thunar"
HOMEPAGE="https://github.com/ib/xarchiver"
SRC_URI="https://github.com/ib/xarchiver/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="doc"
RDEPEND=">=dev-libs/glib-2:=
x11-libs/gtk+:3="
DEPEND="${RDEPEND}
dev-util/intltool
sys-devel/gettext
virtual/pkgconfig
doc? (
app-text/docbook-xml-dtd
app-text/docbook-xsl-stylesheets
dev-libs/libxml2
dev-libs/libxslt
)"
S="${WORKDIR}"/${PN}-${MY_COMMIT}
src_prepare() {
sed -e '/COPYING/d' -e '/NEWS/d' -i doc/Makefile.am || die
default
eautoreconf
}
src_configure() {
local myconf=(
$(use_enable doc)
)
econf "${myconf[@]}"
}
pkg_postinst() {
xdg_desktop_database_update
gnome2_icon_cache_update
elog "You need external programs for some formats, including:"
elog "7zip - app-arch/p7zip"
elog "arj - app-arch/unarj app-arch/arj"
elog "lha - app-arch/lha"
elog "lzop - app-arch/lzop"
elog "rar - app-arch/unrar app-arch/rar"
elog "zip - app-arch/unzip app-arch/zip"
}
pkg_postrm() {
xdg_desktop_database_update
gnome2_icon_cache_update
}