1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils elisp-common ltprune
8 DESCRIPTION="Program for statistical analysis of sampled data"
9 HOMEPAGE="https://www.gnu.org/software/pspp/pspp.html"
10 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
14 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
15 IUSE="cairo doc emacs examples gtk ncurses nls perl postgres static-libs"
24 cairo? ( x11-libs/cairo:0=[svg] )
25 emacs? ( >=app-editors/emacs-23.1:* )
28 x11-libs/gtksourceview:3.0=
29 x11-libs/spread-sheet-widget )
30 ncurses? ( sys-libs/ncurses:0= )
31 postgres? ( dev-db/postgresql:=[server] )"
34 doc? ( virtual/latex-base )"
36 SITEFILE=50${PN}-gentoo.el
41 $(use_enable static-libs static) \
44 $(use_with ncurses libncurses) \
45 $(use_with perl perl-module) \
46 $(use_with postgres libpq)
51 use doc && emake html pdf
52 use emacs && elisp-compile *.el
58 dodoc doc/pspp{,-dev}.pdf
59 insinto /usr/share/doc/${PF}/html
60 dodoc -r doc/pspp{,-dev}.html
63 insinto /usr/share/doc/${PF}
67 elisp-install ${PN} *.el *.elc
68 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
70 prune_libtool_files --all
74 use emacs && elisp-site-regen
78 use emacs && elisp-site-regen