void-packages/srcpkgs/emacs-ess/template
2018-10-28 12:34:46 +01:00

33 lines
1.1 KiB
Bash

# Template file for 'emacs-ess'
pkgname=emacs-ess
version=18.10r1
revision=1
noarch=yes
depends="emacs R"
makedepends="emacs perl"
short_desc="Emacs Speaks Statistics: A Universal Interface for Statistical Analysis"
maintainer="Florian Wagner <florian@wagner-flo.net>"
license="GPL-2.0-only"
homepage="http://ess.r-project.org"
_juliarev=ec01995f60486480cf2240bbd3b9a2ff3fa9e0f0
_juliafile=julia-mode-${_juliarev}.el.txt
distfiles="http://ess.r-project.org/downloads/ess/ess-${version//r/-}.tgz
https://raw.githubusercontent.com/JuliaEditorSupport/julia-emacs/${_juliarev}/julia-mode.el>${_juliafile}"
checksum="918537a62be6c3f5cef992787286ebbb0bb7cc75dad5124dc52ab1a57eb32b0c
132915c0f04c3ab755e78d7bbc89d58f033a67e1a56e685f14dfeb8078cd69b3"
wrksrc=ess-${version//r/-}
pre_configure() {
sed -e '/^ELS = \$(wildcard \*\.el)$/s@$@ $(wildcard obsolete/*.el)@' -i lisp/Makefile
sed -e '/^ cd doc; \$(MAKE) \$@/d' -i Makefile
cat Makefile
}
do_build() {
cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_juliafile} lisp/julia-mode.el
make prefix=/usr
}
do_install() {
make DESTDIR=${DESTDIR}/usr INFODIR=${DESTDIR}/usr/share/info/ install
}