From: Mikle Kolyada Date: Sat, 10 Nov 2018 23:13:27 +0000 (+0300) Subject: app-text/zathura: update live ebuild X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a062a2ebd781860c6c9acae130eed0aef017dee1;p=gentoo.git app-text/zathura: update live ebuild Signed-off-by: Mikle Kolyada Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- diff --git a/app-text/zathura/zathura-9999.ebuild b/app-text/zathura/zathura-9999.ebuild index 89006688f4d4..1b9071f73e74 100644 --- a/app-text/zathura/zathura-9999.ebuild +++ b/app-text/zathura/zathura-9999.ebuild @@ -1,69 +1,64 @@ # Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 -inherit eutils multilib toolchain-funcs virtualx xdg-utils +inherit gnome2-utils meson virtualx xdg-utils + +DESCRIPTION="A highly customizable and functional document viewer" +HOMEPAGE="http://pwmt.org/projects/zathura/" if [[ ${PV} == *9999 ]]; then inherit git-r3 - EGIT_REPO_URI="https://git.pwmt.org/pwmt/zathura.git" + 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" KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" - SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz" fi -DESCRIPTION="A highly customizable and functional document viewer" -HOMEPAGE="http://pwmt.org/projects/zathura/" - LICENSE="ZLIB" SLOT="0" -IUSE="+magic sqlite synctex test" +IUSE="+magic seccomp sqlite synctex test" + +RDEPEND="dev-libs/appstream + >=dev-libs/girara-0.3.1 + >=dev-libs/glib-2.50:2 + dev-util/desktop-file-utils + dev-python/sphinx + x11-libs/cairo + >=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 )" -RDEPEND=">=dev-libs/girara-0.2.7:= - >=dev-libs/glib-2.32:2= - x11-libs/cairo:= - >=x11-libs/gtk+-3.6:3 - magic? ( sys-apps/file:= ) - sqlite? ( dev-db/sqlite:3= ) - synctex? ( >=app-text/texlive-core-2015 )" DEPEND="${RDEPEND} - sys-devel/gettext - virtual/pkgconfig test? ( dev-libs/check )" -src_configure() { - myzathuraconf=( - WITH_MAGIC=$(usex magic 1 0) - WITH_SQLITE=$(usex sqlite 1 0) - WITH_SYNCTEX=$(usex synctex 1 0) - PREFIX="${EPREFIX}"/usr - LIBDIR='${PREFIX}'/$(get_libdir) - CC="$(tc-getCC)" - SFLAGS='' - VERBOSE=1 - DESTDIR="${D}" - ) -} +BDEPEND="virtual/pkgconfig" -src_compile() { - emake "${myzathuraconf[@]}" +src_configure() { + local emesonargs=( + --libdir=/usr/$(get_libdir) + -Denable-magic=$(usex magic true false) + -Denable-seccomp=$(usex seccomp true false) + -Denable-sqlite=$(usex sqlite true false) + -Denable-synctex=$(usex synctex true false) + ) + meson_src_configure } src_test() { - Xemake "${myzathuraconf[@]}" test -} - -src_install() { - emake "${myzathuraconf[@]}" install - dodoc AUTHORS + virtx meson_src_test } pkg_postinst() { + gnome2_icon_cache_update xdg_desktop_database_update } pkg_postrm() { + gnome2_icon_cache_update xdg_desktop_database_update }