diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-30 07:22:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-30 07:22:57 +0000 |
commit | 3059f20995d5ac642b7b4a38d538fdf1cc45d90d (patch) | |
tree | 8d4c6b1c09f03338eef1359de3dfeec28ea11644 /app-emacs/pdf-tools/pdf-tools-1.0.0.ebuild | |
parent | f616ce4660c92a3fcb4f05663c2ab47c9defa0c3 (diff) |
gentoo auto-resync : 30:11:2022 - 07:22:56
Diffstat (limited to 'app-emacs/pdf-tools/pdf-tools-1.0.0.ebuild')
-rw-r--r-- | app-emacs/pdf-tools/pdf-tools-1.0.0.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-emacs/pdf-tools/pdf-tools-1.0.0.ebuild b/app-emacs/pdf-tools/pdf-tools-1.0.0.ebuild new file mode 100644 index 000000000000..e2a64f5d79f4 --- /dev/null +++ b/app-emacs/pdf-tools/pdf-tools-1.0.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26.3 + +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/v${PV}.tar.gz -> ${P}.tar.gz" + +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 +} |