You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emacs/pdf-tools/pdf-tools-1.0.0_pre20220619...

67 lines
1.3 KiB

# 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
}