From 49a9be262442a9b4abfcef47a81661d8a59478fb Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Tue, 12 Jan 2016 22:24:30 +0100 Subject: app-text/zathura: Add USE=synctex and update live euild (bug 571346). Package-Manager: portage-2.2.26 --- app-text/zathura/metadata.xml | 1 + app-text/zathura/zathura-0.3.4.ebuild | 6 ++++-- app-text/zathura/zathura-9999.ebuild | 16 +++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) (limited to 'app-text') diff --git a/app-text/zathura/metadata.xml b/app-text/zathura/metadata.xml index 7cdc773bbdd9..9b36a05a63ba 100644 --- a/app-text/zathura/metadata.xml +++ b/app-text/zathura/metadata.xml @@ -11,6 +11,7 @@ Use libmagic to determine mimetypes + Use libsynctex to get latex codeline from pdf diff --git a/app-text/zathura/zathura-0.3.4.ebuild b/app-text/zathura/zathura-0.3.4.ebuild index 8909dc17a48d..12a90276b4a3 100644 --- a/app-text/zathura/zathura-0.3.4.ebuild +++ b/app-text/zathura/zathura-0.3.4.ebuild @@ -22,14 +22,15 @@ KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" else KEYWORDS="" fi -IUSE="+magic sqlite test" +IUSE="+magic sqlite synctex test" RDEPEND=">=dev-libs/girara-0.2.5:3= >=dev-libs/glib-2.32:2= x11-libs/cairo:= >=x11-libs/gtk+-3.6:3 magic? ( sys-apps/file:= ) - sqlite? ( dev-db/sqlite:3= )" + sqlite? ( dev-db/sqlite:3= ) + synctex? ( app-text/texlive-core )" DEPEND="${RDEPEND} sys-devel/gettext virtual/pkgconfig @@ -41,6 +42,7 @@ pkg_setup() { WITH_SYSTEM_SYNCTEX=0 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)" diff --git a/app-text/zathura/zathura-9999.ebuild b/app-text/zathura/zathura-9999.ebuild index ee5314e6007f..ff9ff6731ef0 100644 --- a/app-text/zathura/zathura-9999.ebuild +++ b/app-text/zathura/zathura-9999.ebuild @@ -22,14 +22,15 @@ KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" else KEYWORDS="" fi -IUSE="+magic sqlite test" +IUSE="+magic sqlite synctex test" -RDEPEND=">=dev-libs/girara-0.2.3:3= - >=dev-libs/glib-2.28:2= +RDEPEND=">=dev-libs/girara-0.2.5:3= + >=dev-libs/glib-2.32:2= x11-libs/cairo:= - >=x11-libs/gtk+-3.2:3 + >=x11-libs/gtk+-3.6:3 magic? ( sys-apps/file:= ) - sqlite? ( dev-db/sqlite:3= )" + sqlite? ( dev-db/sqlite:3= ) + synctex? ( app-text/texlive-core )" DEPEND="${RDEPEND} sys-devel/gettext virtual/pkgconfig @@ -41,6 +42,7 @@ pkg_setup() { WITH_SYSTEM_SYNCTEX=0 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)" @@ -50,6 +52,10 @@ pkg_setup() { ) } +src_prepare() { + epatch "${FILESDIR}"/${P}-synctex.patch +} + src_compile() { emake "${myzathuraconf[@]}" } -- cgit v1.2.3-65-gdbad