pspp-0.10.1.ebuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils elisp-common
  5. DESCRIPTION="Program for statistical analysis of sampled data"
  6. HOMEPAGE="https://www.gnu.org/software/pspp/pspp.html"
  7. SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0/${PV}"
  10. KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
  11. IUSE="cairo doc emacs examples gtk ncurses nls perl postgres static-libs"
  12. RDEPEND="
  13. dev-libs/libxml2:2=
  14. sci-libs/gsl:0=
  15. sys-devel/gettext:0=
  16. sys-libs/readline:0=
  17. sys-libs/zlib:0=
  18. virtual/libiconv
  19. cairo? ( x11-libs/cairo:0=[svg] )
  20. emacs? ( virtual/emacs )
  21. gtk? (
  22. x11-libs/gtk+:3=
  23. x11-libs/gtksourceview:3.0= )
  24. ncurses? ( sys-libs/ncurses:0= )
  25. postgres? ( dev-db/postgresql:=[server] )"
  26. DEPEND="${RDEPEND}
  27. virtual/pkgconfig
  28. doc? ( virtual/latex-base )"
  29. SITEFILE=50${PN}-gentoo.el
  30. src_configure() {
  31. econf \
  32. $(use_enable nls) \
  33. $(use_enable static-libs static) \
  34. $(use_with cairo) \
  35. $(use_with gtk gui) \
  36. $(use_with ncurses libncurses) \
  37. $(use_with perl perl-module) \
  38. $(use_with postgres libpq)
  39. }
  40. src_compile() {
  41. default
  42. use doc && emake html pdf
  43. use emacs && elisp-compile *.el
  44. }
  45. src_install() {
  46. default
  47. if use doc; then
  48. dodoc doc/pspp{,-dev}.pdf
  49. insinto /usr/share/doc/${PF}/html
  50. dodoc -r doc/pspp{,-dev}.html
  51. fi
  52. if use examples; then
  53. insinto /usr/share/doc/${PF}
  54. doins -r examples
  55. fi
  56. if use emacs; then
  57. elisp-install ${PN} *.el *.elc
  58. elisp-site-file-install "${FILESDIR}/${SITEFILE}"
  59. fi
  60. prune_libtool_files --all
  61. }
  62. pkg_postinst () {
  63. use emacs && elisp-site-regen
  64. }
  65. pkg_postrm() {
  66. use emacs && elisp-site-regen
  67. }