Last active
December 25, 2017 06:42
-
-
Save ahodesuka/9c06310db83087f3be2d2a0c4a0ac062 to your computer and use it in GitHub Desktop.
ahoviewer-9999.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2017 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=5 | |
inherit autotools eutils gnome2-utils vcs-snapshot xdg-utils | |
DESCRIPTION="A GTK2 image viewer, manga reader, and booru browser" | |
HOMEPAGE="https://github.com/ahodesuka/ahoviewer" | |
if [[ ${PV} = 9999 ]]; then | |
EGIT_REPO_URI="https://github.com/ahodesuka/ahoviewer.git" | |
inherit git-r3 | |
else | |
SRC_URI="https://github.com/ahodesuka/ahoviewer/archive/${PV}.tar.gz -> ${PN}-${PV}.tar.gz" | |
fi | |
LICENSE="MIT" | |
SLOT="0" | |
KEYWORDS="~amd64 ~x86" | |
IUSE="gnutls +gstreamer libressl +libsecret ssl +rar +zip" | |
DEPEND=" | |
>=dev-libs/libsigc++-2.6.0 | |
>=dev-cpp/glibmm-2.36.0:2 | |
>=dev-cpp/gtkmm-2.20.0:2.4 | |
>=dev-libs/libconfig-1.4[cxx] | |
ssl? ( >=net-misc/curl-7.16.0[curl_ssl_openssl] ) | |
libressl? ( >=net-misc/curl-7.16.0[curl_ssl_libressl] ) | |
gnutls? ( >=net-misc/curl-7.16.0[curl_ssl_gnutls] ) | |
dev-libs/libxml2 | |
gstreamer? ( media-libs/gstreamer:1.0 ) | |
libsecret? ( app-crypt/libsecret ) | |
rar? ( app-arch/unrar ) | |
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() { | |
eautoreconf | |
} | |
src_configure() { | |
if use libressl; then | |
ssl=libressl | |
fi | |
econf \ | |
$(use_enable gstreamer gst) \ | |
$(use_enable libsecret) \ | |
$(use_enable $ssl ssl) \ | |
$(use_enable gnutls) \ | |
$(use_enable rar) \ | |
$(use_enable zip) | |
} | |
pkg_preinst() { | |
gnome2_icon_savelist | |
} | |
pkg_postinst() { | |
xdg_desktop_database_update | |
gnome2_icon_cache_update | |
} | |
pkg_postrm() { | |
xdg_desktop_database_update | |
gnome2_icon_cache_update | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment