From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- app-emacs/pdf-tools/Manifest | 4 ++ app-emacs/pdf-tools/files/50pdf-tools-gentoo.el | 2 + app-emacs/pdf-tools/metadata.xml | 25 ++++++++ .../pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild | 66 ++++++++++++++++++++++ 4 files changed, 97 insertions(+) create mode 100644 app-emacs/pdf-tools/Manifest create mode 100644 app-emacs/pdf-tools/files/50pdf-tools-gentoo.el create mode 100644 app-emacs/pdf-tools/metadata.xml create mode 100644 app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild (limited to 'app-emacs/pdf-tools') diff --git a/app-emacs/pdf-tools/Manifest b/app-emacs/pdf-tools/Manifest new file mode 100644 index 000000000000..ece83e217537 --- /dev/null +++ b/app-emacs/pdf-tools/Manifest @@ -0,0 +1,4 @@ +AUX 50pdf-tools-gentoo.el 84 BLAKE2B d37daa46d1ac2591d7720d6a2d1d2eed5d2a90c5215edf00ad70b18c6c7c9c0fe465901a1363e2a35202c35a144f9999421e6723e38707c7e86cdd0bbfb945f8 SHA512 f5839fdee6f6fc4017ecff986b0460584a9497c13e33fcd09c100c8d0bda50b3408c20b80bee6d5254891e999b984aef6d7730aacf273b8b8a0e7d22565bca29 +DIST pdf-tools-1.0.0_pre20220619.tar.gz 459416 BLAKE2B 79a7c7a59faf9c11047bfb6218a8055cb9c757b928e52ff59ffb910e5aedb95ca7efe1dda1ae821d98a687fc6e700d8194311fc850f534f425534a1572bd34b5 SHA512 74ca8c05ad238c07ca1b6d6a594889d048220bb984b78b83e7af4c59eedfa7a35a03e153aa4d1296781f910eb0b3a68a5148876a30ad0f6e9fdecf831ff58f8e +EBUILD pdf-tools-1.0.0_pre20220619.ebuild 1288 BLAKE2B 7d3e3269c11f51a47e9fe47b6d99c58ee11878ab0e1ead4efd6097f2cb68197f6c7a3d809366ea19a9f9d0d7fd0b2272e21022c5544e158520e765effec2dc4d SHA512 73e72d528a5d87e75b6874efaea682f397658e2ebc7acbd1c9a6c1598b9014440603415b0d38b2da22c7020bc561cf5665a3ed3ccb7eea4fd486fd290ffae7ae +MISC metadata.xml 1213 BLAKE2B 8dc34b000f1f156f94630ac4e073af8b42e5cf331cfb0b7c83a094885db2ebdac1f4b376dc195bf14ab371812be25bb256850569e107d4e25dee2cd0427f1d3a SHA512 2044f0015d111d63fb3405adb20d763ea6d8b5bed7d444117e38b4f5fb24e012eb9e665e233aeeebd65da2973125bf1d2e69ee5377d50e0d7ff7d8f21b666b4b diff --git a/app-emacs/pdf-tools/files/50pdf-tools-gentoo.el b/app-emacs/pdf-tools/files/50pdf-tools-gentoo.el new file mode 100644 index 000000000000..bab875d73af9 --- /dev/null +++ b/app-emacs/pdf-tools/files/50pdf-tools-gentoo.el @@ -0,0 +1,2 @@ +(add-to-list 'load-path "@SITELISP@") +(load "@SITELISP@/pdf-tools-autoloads" nil t) diff --git a/app-emacs/pdf-tools/metadata.xml b/app-emacs/pdf-tools/metadata.xml new file mode 100644 index 000000000000..daf7018f9de6 --- /dev/null +++ b/app-emacs/pdf-tools/metadata.xml @@ -0,0 +1,25 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + PDF Tools is, among other things, a replacement of DocView for PDF files. + The key difference is that pages are not pre-rendered by e.g. ghostscript + and stored in the file-system, but rather created on-demand and stored in + memory. This rendering is performed by a special library named, for + whatever reason, poppler, running inside a server program. This program is + called epdfinfo and its job is to successively read requests from Emacs and + produce the proper results, i.e. the PNG image of a PDF page. Actually, + displaying PDF files is just one part of pdf-tools. Since poppler can + provide us with all kinds of information about a document and is also able + to modify it, there is a lot more we can do with it. + + + https://github.com/vedang/pdf-tools/issues/ + vedang/pdf-tools + + diff --git a/app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild b/app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild new file mode 100644 index 000000000000..b4dfd41e3c9f --- /dev/null +++ b/app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=fe42da60ad68e806af1677210249caccd7b99451 +NEED_EMACS=25.1 # Needs Emacs >=25.1 because of the "let-alist" function. + +inherit autotools elisp + +DESCRIPTION="Emacs Lisp support library for PDF documents" +HOMEPAGE="https://github.com/vedang/pdf-tools/" +SRC_URI="https://github.com/vedang/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} + +LICENSE="GPL-3+" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +# Cask is a hard dependency for tests; it is ran by helper functions too. +RESTRICT="test" + +BDEPEND="app-emacs/tablist" +DEPEND=" + app-text/poppler:=[cairo,png] + dev-libs/glib:2= + media-libs/freetype:2= + media-libs/harfbuzz:= + media-libs/libpng:= + x11-libs/cairo:= +" +RDEPEND=" + ${DEPEND} + ${BDEPEND} +" + +DOCS=( NEWS README.org ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + cd server || die + eautoreconf +} + +src_configure() { + cd server || die + econf +} + +src_compile() { + BYTECOMPFLAGS="-L lisp" elisp-compile lisp/*.el + elisp-make-autoload-file lisp/${PN}-autoloads.el lisp + + emake -C server +} + +src_install() { + elisp-install ${PN} lisp/*.el* + elisp-site-file-install "${FILESDIR}"/${SITEFILE} + + emake -C server DESTDIR="${D}" install + + einstalldocs +} -- cgit v1.2.3