Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pspp/
Date: Tue, 07 Jun 2022 06:34:10
Message-Id: 1654583640.aeb44c63c5445484a7be798d2f47d29c51974943.sam@gentoo
1 commit: aeb44c63c5445484a7be798d2f47d29c51974943
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 7 06:33:27 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 7 06:34:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aeb44c63
7
8 sci-mathematics/pspp: add 1.6.0
9
10 Closes: https://bugs.gentoo.org/846278
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sci-mathematics/pspp/Manifest | 1 +
14 sci-mathematics/pspp/pspp-1.6.0.ebuild | 82 ++++++++++++++++++++++++++++++++++
15 2 files changed, 83 insertions(+)
16
17 diff --git a/sci-mathematics/pspp/Manifest b/sci-mathematics/pspp/Manifest
18 index c165db85af66..a74e8e99b3d2 100644
19 --- a/sci-mathematics/pspp/Manifest
20 +++ b/sci-mathematics/pspp/Manifest
21 @@ -1,2 +1,3 @@
22 DIST pspp-1.2.0.tar.gz 7213194 BLAKE2B f468c6e025f996c9f806fb03e94a4497f02b774c509457cc6295bbefe37abc7e2ecf10d2876c8cff9a979d7a4264c7c185e1cec5fd1d5f2f00f1c6eae4da775e SHA512 49eed2b55f10584abba18ff7d2020fd08691bbc1a3c2f332e6d283e32aa84e0abdae6092d17db9c1a539c63d85ecdfcc2dad40c94a06904b8893a1976e5e48d3
23 DIST pspp-1.4.1.tar.gz 7848393 BLAKE2B c9232aa3d4905d4be54ae993db6a4b37b3696c748e15c8ba6c46c7e56f9974aefe597f893fdc5431af237ad3923da1ef271db39e4d94725ccf93f0a0df443ef4 SHA512 c664a6c6f4f1826db396ad776d81cadc791e4f661c603a7f164f70f9571a84cfae6fec116356b3f950991245b2b0dc9805e75193a055a242558cda1209e7830f
24 +DIST pspp-1.6.0.tar.gz 9553836 BLAKE2B 4c12003838d7f6c3613d76626d88b24f4dac4b6f507db54b03be5f09027472704ae8ee6ce44d8756c7cd1e12a65ab836cb1f7d004220df8da47f47af85c4a771 SHA512 c8b746b9ea802a95f048e377b22d723701c5e532358aa3e4993edcc73046c4823c440dd988833b69b4ea84ac6b02a442db7daac415bef4c1081efddd9857982d
25
26 diff --git a/sci-mathematics/pspp/pspp-1.6.0.ebuild b/sci-mathematics/pspp/pspp-1.6.0.ebuild
27 new file mode 100644
28 index 000000000000..0fcce2c4be8d
29 --- /dev/null
30 +++ b/sci-mathematics/pspp/pspp-1.6.0.ebuild
31 @@ -0,0 +1,82 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +
39 +inherit python-any-r1 xdg
40 +
41 +DESCRIPTION="Program for statistical analysis of sampled data"
42 +HOMEPAGE="https://www.gnu.org/software/pspp/pspp.html"
43 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0/${PV}"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="doc examples gtk ncurses nls perl postgres"
49 +
50 +RDEPEND="
51 + dev-libs/libxml2:2
52 + sci-libs/gsl:0=
53 + sys-devel/gettext
54 + sys-libs/ncurses:0=
55 + sys-libs/readline:0=
56 + sys-libs/zlib
57 + virtual/libiconv
58 + x11-libs/cairo[svg]
59 + x11-libs/pango
60 + gtk? (
61 + dev-util/glib-utils
62 + x11-libs/gtk+:3
63 + x11-libs/gtksourceview:4=
64 + >=x11-libs/spread-sheet-widget-0.7
65 + )
66 + postgres? ( dev-db/postgresql:=[server] )"
67 +DEPEND="${RDEPEND}"
68 +BDEPEND="
69 + ${PYTHON_DEPS}
70 + sys-devel/gettext
71 + virtual/pkgconfig
72 + doc? ( virtual/latex-base )"
73 +
74 +pkg_pretend() {
75 + ewarn "Starting with pspp-1.4.0 the pspp-mode emacs package is no longer"
76 + ewarn "shipped with pspp itself, and should instead be fetched from ELPA:"
77 + ewarn "https://elpa.gnu.org/packages/pspp-mode.html"
78 +}
79 +
80 +src_prepare() {
81 + default
82 +
83 + sed -i '/appdata$/s/appdata$/metainfo/' Makefile.in || die
84 +}
85 +
86 +src_configure() {
87 + econf \
88 + $(use_enable nls) \
89 + $(use_with gtk gui) \
90 + $(use_with perl perl-module) \
91 + $(use_with postgres libpq)
92 +}
93 +
94 +src_compile() {
95 + default
96 +
97 + if use doc; then
98 + emake html pdf
99 + HTML_DOCS=( doc/pspp{,-dev}.html )
100 + fi
101 +}
102 +
103 +src_install() {
104 + default
105 +
106 + use doc && dodoc doc/pspp{,-dev}.pdf
107 + if use examples; then
108 + dodoc -r examples
109 + docompress -x /usr/share/doc/${PF}/examples
110 + fi
111 +
112 + find "${ED}" -name '*.la' -type f -delete || die
113 +}