commit:     f9326b0778de0569e36f59d6be43c4cbc5d1e7c2
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 13 11:21:14 2019 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Sep 13 11:22:28 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9326b07

app-text/zathura: Sync live ebuild

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 app-text/zathura/zathura-9999.ebuild | 43 ++++++++++++++++--------------------
 1 file changed, 19 insertions(+), 24 deletions(-)

diff --git a/app-text/zathura/zathura-9999.ebuild 
b/app-text/zathura/zathura-9999.ebuild
index fcb0645c089..83ead1f313e 100644
--- a/app-text/zathura/zathura-9999.ebuild
+++ b/app-text/zathura/zathura-9999.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit gnome2-utils meson virtualx xdg-utils
+inherit meson virtualx
 
 DESCRIPTION="A highly customizable and functional document viewer"
 HOMEPAGE="http://pwmt.org/projects/zathura/";
@@ -13,36 +13,41 @@ if [[ ${PV} == *9999 ]]; then
        EGIT_REPO_URI="https://git.pwmt.org/pwmt/${PN}.git";
        EGIT_BRANCH="develop"
 else
-       SRC_URI="https://pwmt.org/projects/zathura/download/${P}.tar.xz";
+       SRC_URI="https://github.com/pwmt/zathura/archive/${PV}.tar.gz -> 
${P}.tar.gz"
        KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
 fi
 
 LICENSE="ZLIB"
 SLOT="0"
-IUSE="+magic seccomp sqlite synctex test"
+IUSE="doc +magic seccomp sqlite synctex test"
 
-RDEPEND=">=dev-libs/girara-0.3.1
+RESTRICT="!test? ( test )"
+
+DEPEND=">=dev-libs/girara-0.3.3
        >=dev-libs/glib-2.50:2
-       dev-python/sphinx
        >=sys-devel/gettext-0.19.8
-       x11-libs/cairo
+       x11-libs/cairo[X]
        >=x11-libs/gtk+-3.22:3
        magic? ( sys-apps/file )
        seccomp? ( sys-libs/libseccomp )
        sqlite? ( >=dev-db/sqlite-3.5.9:3 )
        synctex? ( app-text/texlive-core )"
 
-DEPEND="${RDEPEND}
-       test? ( dev-libs/check )"
+RDEPEND="${DEPEND}"
 
-BDEPEND="virtual/pkgconfig"
+BDEPEND="doc? ( dev-python/sphinx )
+       test? ( dev-libs/appstream-glib
+               dev-libs/check )
+       virtual/pkgconfig"
 
 src_configure() {
        local emesonargs=(
-               -Denable-magic=$(usex magic true false)
-               -Denable-seccomp=$(usex seccomp true false)
-               -Denable-sqlite=$(usex sqlite true false)
-               -Denable-synctex=$(usex synctex true false)
+               -Dconvert-icon=disabled
+               -Dmagic=$(usex magic enabled disabled)
+               -Dmanpages=$(usex doc enabled disabled)
+               -Dseccomp=$(usex seccomp enabled disabled)
+               -Dsqlite=$(usex sqlite enabled disabled)
+               -Dsynctex=$(usex synctex enabled disabled)
                )
        meson_src_configure
 }
@@ -50,13 +55,3 @@ src_configure() {
 src_test() {
        virtx meson_src_test
 }
-
-pkg_postinst() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
-}
-
-pkg_postrm() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
-}

Reply via email to