forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ahoviewer-1.6.5-r1.ebuild
90 lines (78 loc) · 1.73 KB
/
ahoviewer-1.6.5-r1.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools gnome2-utils xdg-utils
DESCRIPTION="A GTK2 image viewer, manga reader, and booru browser"
HOMEPAGE="https://github.com/ahodesuka/ahoviewer"
SRC_URI="https://github.com/ahodesuka/ahoviewer/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="gnutls gnome-keyring +gstreamer +rar +ssl +zip"
DEPEND="
dev-cpp/glibmm:2
dev-cpp/gtkmm:2.4
dev-libs/libconfig[cxx]
dev-libs/libxml2:2
dev-libs/libsigc++:2
net-misc/curl
gnome-keyring? ( app-crypt/libsecret )
gstreamer? (
media-libs/gst-plugins-bad:1.0
media-libs/gstreamer:1.0
)
rar? ( app-arch/unrar )
ssl? (
gnutls? (
net-libs/gnutls:=
net-misc/curl[curl_ssl_gnutls]
)
!gnutls? (
>=dev-libs/openssl-1.0.0:0=
net-misc/curl[curl_ssl_openssl]
)
)
zip? ( dev-libs/libzip )
"
RDEPEND="
${DEPEND}
gstreamer? (
media-libs/gst-plugins-base:1.0[X]
media-libs/gst-plugins-good:1.0
|| (
media-plugins/gst-plugins-vpx
media-plugins/gst-plugins-libav
)
)
"
src_prepare() {
default
xdg_environment_reset
eautoreconf
}
src_configure() {
local myconf=(
$(use_enable gnome-keyring libsecret)
$(use_enable gstreamer gst)
$(use_enable rar)
$(use_enable zip)
)
if use ssl && use gnutls ; then
myconf+=( --disable-ssl --enable-gnutls )
elif use ssl && ! use gnutls ; then
myconf+=( --enable-ssl --disable-gnutls )
else
myconf+=( --disable-ssl --disable-gnutls )
fi
econf "${myconf[@]}"
}
pkg_postinst() {
gnome2_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
gnome2_icon_cache_update
xdg_desktop_database_update
xdg_mimeinfo_database_update
}