Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/
Date: Tue, 30 Oct 2018 15:13:40
Message-Id: 1540912393.05c0721c10b23b75331f554b30a78acd724b3c97.asturm@gentoo
1 commit: 05c0721c10b23b75331f554b30a78acd724b3c97
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 30 15:05:05 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 15:13:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05c0721c
7
8 app-office/ledger: Drop old
9
10 Bug: https://bugs.gentoo.org/664618
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 app-office/ledger/ledger-3.1.1-r1.ebuild | 125 ----------------------------
15 app-office/ledger/ledger-3.1.1.ebuild | 134 -------------------------------
16 2 files changed, 259 deletions(-)
17
18 diff --git a/app-office/ledger/ledger-3.1.1-r1.ebuild b/app-office/ledger/ledger-3.1.1-r1.ebuild
19 deleted file mode 100644
20 index 3618c77570f..00000000000
21 --- a/app-office/ledger/ledger-3.1.1-r1.ebuild
22 +++ /dev/null
23 @@ -1,125 +0,0 @@
24 -# Copyright 1999-2018 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=6
28 -
29 -PYTHON_COMPAT=( python2_7 )
30 -
31 -inherit check-reqs cmake-utils elisp-common python-single-r1
32 -
33 -DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
34 -HOMEPAGE="https://www.ledger-cli.org/"
35 -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
36 -
37 -LICENSE="BSD"
38 -KEYWORDS="~amd64 ~x86"
39 -SLOT="0"
40 -IUSE="doc emacs python"
41 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
42 -RESTRICT="test"
43 -
44 -SITEFILE=50${PN}-gentoo-${PV}.el
45 -
46 -CHECKREQS_MEMORY=8G
47 -
48 -RDEPEND="
49 - dev-libs/boost:=[python?]
50 - dev-libs/gmp:0=
51 - dev-libs/mpfr:0=
52 - emacs? ( virtual/emacs )
53 - python? (
54 - dev-libs/boost:=[${PYTHON_USEDEP}]
55 - dev-python/cheetah
56 - ${PYTHON_DEPS}
57 - )
58 -"
59 -DEPEND="
60 - ${RDEPEND}
61 - dev-libs/utfcpp
62 - doc? (
63 - sys-apps/texinfo
64 - virtual/texi2dvi
65 - dev-texlive/texlive-fontsrecommended
66 - )
67 -"
68 -
69 -PATCHES=(
70 - "${FILESDIR}/${PN}-${PV}-boost.patch" # bug 609108
71 - "${FILESDIR}/${PF}-boost-python.patch" # bug 654326
72 - )
73 -
74 -# Building with python integration seems to fail without 8G available
75 -# RAM(!) Since the memory check in check-reqs doesn't count swap, it
76 -# may be unfair to fail the build entirely on the memory test alone.
77 -# Therefore check-reqs_pkg_pretend is deliberately omitted so that we
78 -# ewarn but not eerror.
79 -pkg_pretend() {
80 - :
81 -}
82 -
83 -pkg_setup() {
84 - if use python; then
85 - check-reqs_pkg_setup
86 - python-single-r1_pkg_setup
87 - fi
88 -}
89 -
90 -src_prepare() {
91 - cmake-utils_src_prepare
92 -
93 - # Want to type "info ledger" not "info ledger3"
94 - sed -i -e 's/ledger3/ledger/g' \
95 - doc/ledger3.texi \
96 - doc/CMakeLists.txt \
97 - test/CheckTexinfo.py \
98 - tools/cleanup.sh \
99 - tools/gendocs.sh \
100 - tools/prepare-commit-msg \
101 - tools/spellcheck.sh \
102 - || die "Failed to update info file name in file contents"
103 -
104 - mv doc/ledger{3,}.texi || die "Failed to rename info file name"
105 -
106 - eapply_user
107 -}
108 -
109 -src_configure() {
110 - local mycmakeargs=(
111 - -DBUILD_EMACSLISP="$(usex emacs)"
112 - -DBUILD_DOCS="$(usex doc)"
113 - -DBUILD_WEB_DOCS="$(usex doc)"
114 - -DUSE_PYTHON="$(usex python)"
115 - -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
116 - -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
117 - )
118 -
119 - cmake-utils_src_configure
120 -}
121 -
122 -src_compile() {
123 - cmake-utils_src_compile
124 -
125 - use doc && cmake-utils_src_make doc
126 -}
127 -
128 -src_install() {
129 - cmake-utils_src_install
130 -
131 - use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
132 -}
133 -
134 -pkg_postinst() {
135 - use emacs && elisp-site-regen
136 -
137 - einfo
138 - einfo "Since version 3, vim support is released separately."
139 - einfo "See https://github.com/ledger/vim-ledger"
140 - einfo
141 -}
142 -
143 -pkg_postrm() {
144 - use emacs && elisp-site-regen
145 -}
146 -
147 -# rainy day TODO:
148 -# - IUSE test
149
150 diff --git a/app-office/ledger/ledger-3.1.1.ebuild b/app-office/ledger/ledger-3.1.1.ebuild
151 deleted file mode 100644
152 index f04a61c0cd2..00000000000
153 --- a/app-office/ledger/ledger-3.1.1.ebuild
154 +++ /dev/null
155 @@ -1,134 +0,0 @@
156 -# Copyright 1999-2018 Gentoo Foundation
157 -# Distributed under the terms of the GNU General Public License v2
158 -
159 -EAPI=5
160 -
161 -PYTHON_COMPAT=( python2_7 )
162 -
163 -inherit check-reqs cmake-utils elisp-common python-single-r1
164 -
165 -DESCRIPTION="A double-entry accounting system with a command-line reporting interface"
166 -HOMEPAGE="https://www.ledger-cli.org/"
167 -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
168 -
169 -LICENSE="BSD"
170 -KEYWORDS="amd64 x86"
171 -SLOT="0"
172 -IUSE="doc emacs python"
173 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
174 -
175 -SITEFILE=50${PN}-gentoo-${PV}.el
176 -
177 -CHECKREQS_MEMORY=8G
178 -
179 -RDEPEND="
180 - dev-libs/boost:=[python?]
181 - dev-libs/gmp:0=
182 - dev-libs/mpfr:0=
183 - emacs? ( virtual/emacs )
184 - python? (
185 - dev-libs/boost:=[${PYTHON_USEDEP}]
186 - dev-python/cheetah
187 - ${PYTHON_DEPS}
188 - )
189 -"
190 -DEPEND="
191 - ${RDEPEND}
192 - dev-libs/utfcpp
193 - doc? (
194 - sys-apps/texinfo
195 - virtual/texi2dvi
196 - dev-texlive/texlive-fontsrecommended
197 - )
198 -"
199 -
200 -PATCHES=( "${FILESDIR}/${P}-boost.patch" ) # bug 609108
201 -
202 -# Building with python integration seems to fail without 8G available
203 -# RAM(!) Since the memory check in check-reqs doesn't count swap, it
204 -# may be unfair to fail the build entirely on the memory test alone.
205 -# Therefore check-reqs_pkg_pretend is deliberately omitted so that we
206 -# ewarn but not eerror.
207 -pkg_pretend() {
208 - :
209 -}
210 -
211 -pkg_setup() {
212 - if use python; then
213 - check-reqs_pkg_setup
214 - python-single-r1_pkg_setup
215 - fi
216 -}
217 -
218 -src_prepare() {
219 - cmake-utils_src_prepare
220 -
221 - # Want to type "info ledger" not "info ledger3"
222 - sed -i -e 's/ledger3/ledger/g' \
223 - doc/ledger3.texi \
224 - doc/CMakeLists.txt \
225 - test/CheckTexinfo.py \
226 - tools/cleanup.sh \
227 - tools/gendocs.sh \
228 - tools/prepare-commit-msg \
229 - tools/spellcheck.sh \
230 - || die "Failed to update info file name in file contents"
231 -
232 - mv doc/ledger{3,}.texi || die "Failed to rename info file name"
233 -}
234 -
235 -src_configure() {
236 - local mycmakeargs=(
237 - $(cmake-utils_use_build emacs EMACSLISP)
238 - $(cmake-utils_use_build doc DOCS)
239 - $(cmake-utils_use_build doc WEB_DOCS)
240 - $(cmake-utils_use_use python PYTHON)
241 - -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
242 - )
243 -
244 - cmake-utils_src_configure
245 -}
246 -
247 -src_compile() {
248 - cmake-utils_src_compile
249 -
250 - use doc && cmake-utils_src_make doc
251 -}
252 -
253 -src_install() {
254 - # Prevent installing ledger.so into python site-packages. It's an
255 - # unnecessary copy of libledger.so and generates security warnings.
256 - sed -i -e '/python/d' ../${P}_build/src/cmake_install.cmake \
257 - || die "Failed to disable installation of ledger.so"
258 -
259 - cmake-utils_src_install
260 -
261 - # This source dir appears to include some helper code for serving
262 - # reports to a browser ("ledger server"). I can't quite get it to
263 - # work and the docs say it's a work-in-progress. It's a little
264 - # interesting, though, so I'll leave these installed as a preview of
265 - # features to come.
266 - if use python; then
267 - mv python ${PN} || die "Couldn't rename python module static files dir"
268 - python_domodule ${PN}
269 - fi
270 -
271 - use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
272 -}
273 -
274 -pkg_postinst() {
275 - use emacs && elisp-site-regen
276 -
277 - einfo
278 - einfo "Since version 3, vim support is released separately."
279 - einfo "See https://github.com/ledger/vim-ledger"
280 - einfo
281 -}
282 -
283 -pkg_postrm() {
284 - use emacs && elisp-site-regen
285 -}
286 -
287 -# rainy day TODO:
288 -# - IUSE test
289 -# - EAPI=6