Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-office/beancount/
Date: Sun, 05 Jun 2022 10:19:57
Message-Id: 1654424382.33db4a97ce5767c1ae8f2cf158cfd1479cd84ec3.cybertailor@gentoo
1 commit: 33db4a97ce5767c1ae8f2cf158cfd1479cd84ec3
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sun Jun 5 10:18:13 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Sun Jun 5 10:19:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33db4a97
7
8 app-office/beancount: add 2.3.5, drop 2.3.3
9
10 Closes: https://bugs.gentoo.org/848114
11 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
12
13 app-office/beancount/Manifest | 2 +-
14 app-office/beancount/beancount-2.3.3.ebuild | 56 -------------------------
15 app-office/beancount/beancount-2.3.5.ebuild | 63 +++++++++++++++++++++++++++++
16 3 files changed, 64 insertions(+), 57 deletions(-)
17
18 diff --git a/app-office/beancount/Manifest b/app-office/beancount/Manifest
19 index 69ea66a13..afb4ee689 100644
20 --- a/app-office/beancount/Manifest
21 +++ b/app-office/beancount/Manifest
22 @@ -1 +1 @@
23 -DIST beancount-2.3.3.tar.gz 1784037 BLAKE2B ff62ef30d3bcadd3f1dc195adf71cb58703e50c93e12cf71ef699c651ce67daf89ea8285b53b43811687fb132c02d8d6364651d87bc3e092f9485e6934883110 SHA512 420369105939bcdcf2b7caaba27ab1d486b3dfc18e0a3286d917a6380345eaf5fa64ff5e0779fd2275129b7088de24f4a2dbd0232a482aceb124064e5c56ccc4
24 +DIST beancount-2.3.5.gh.tar.gz 1718715 BLAKE2B 2bcbf250e6947c6ea93f7c4308fac2ea03c0b5b722dc4a6eb396133880ca201235ceb8cbb2e3a6e63afe573e1b3ab8bb945444a1edc73791b73200fb4d45bd18 SHA512 a3f1343ddf54cf13ef60802de210dc89e9ae202bca802b1b4eb532588f71d51fa4b71672b4e6a1e9676135d406fd55c421b80c439fa2f5f4279e61211f558a2a
25
26 diff --git a/app-office/beancount/beancount-2.3.3.ebuild b/app-office/beancount/beancount-2.3.3.ebuild
27 deleted file mode 100644
28 index 4d81e6dfe..000000000
29 --- a/app-office/beancount/beancount-2.3.3.ebuild
30 +++ /dev/null
31 @@ -1,56 +0,0 @@
32 -# Copyright 2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -PYTHON_COMPAT=( python3_{8..9} )
38 -
39 -DISTUTILS_SINGLE_IMPL=1
40 -
41 -inherit distutils-r1
42 -
43 -DESCRIPTION="A double-entry accounting system that uses text files as input"
44 -HOMEPAGE="https://github.com/beancount/beancount"
45 -SRC_URI="https://github.com/beancount/beancount/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 -
47 -LICENSE="GPL-2"
48 -SLOT="0"
49 -KEYWORDS="~amd64 ~x86"
50 -IUSE="test"
51 -RESTRICT="!test? ( test )"
52 -
53 -PATCHES=(
54 - "${FILESDIR}/${PN}-2.3.3-disable-network-tests.patch"
55 - "${FILESDIR}/${PN}-2.3.3-disable-tmp-access-tests.patch"
56 - "${FILESDIR}/${PN}-2.3.3-disable-install-test.patch"
57 -)
58 -
59 -RDEPEND="
60 - $(python_gen_cond_dep '
61 - dev-python/beautifulsoup4[${PYTHON_USEDEP}]
62 - >=dev-python/bottle-0.12[${PYTHON_USEDEP}]
63 - >=dev-python/google-api-python-client-1.8.2[${PYTHON_USEDEP}]
64 - >=dev-python/httplib2-0.10[${PYTHON_USEDEP}]
65 - >=dev-python/lxml-3.0[${PYTHON_USEDEP}]
66 - >=dev-python/oauth2client-4.0[${PYTHON_USEDEP}]
67 - >=dev-python/ply-3.4[${PYTHON_USEDEP}]
68 - >=dev-python/python-dateutil-2.6.0[${PYTHON_USEDEP}]
69 - >=dev-python/python-magic-0.4.12[${PYTHON_USEDEP}]
70 - >=dev-python/requests-2.0[${PYTHON_USEDEP}]
71 - ')
72 -"
73 -
74 -BDEPEND="
75 - test? (
76 - ${RDEPEND}
77 - $(python_gen_cond_dep '
78 - >=dev-python/pytest-5.4.2[${PYTHON_USEDEP}]
79 - ')
80 - )
81 -"
82 -
83 -python_test(){
84 - esetup.py build_ext -i
85 - make ctest
86 - make test
87 -}
88
89 diff --git a/app-office/beancount/beancount-2.3.5.ebuild b/app-office/beancount/beancount-2.3.5.ebuild
90 new file mode 100644
91 index 000000000..f92273fb2
92 --- /dev/null
93 +++ b/app-office/beancount/beancount-2.3.5.ebuild
94 @@ -0,0 +1,63 @@
95 +# Copyright 2021 Gentoo Authors
96 +# Distributed under the terms of the GNU General Public License v2
97 +
98 +EAPI=8
99 +
100 +PYTHON_COMPAT=( python3_{8..10} )
101 +DITUTILS_USE_PEP517=setuptools
102 +DISTUTILS_SINGLE_IMPL=1
103 +inherit distutils-r1
104 +
105 +DESCRIPTION="A double-entry accounting system that uses text files as input"
106 +HOMEPAGE="https://beancount.github.io https://github.com/beancount/beancount"
107 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
108 +
109 +LICENSE="GPL-2"
110 +SLOT="0"
111 +KEYWORDS="~amd64 ~x86"
112 +
113 +PATCHES=(
114 + "${FILESDIR}/${PN}-2.3.3-disable-network-tests.patch"
115 + "${FILESDIR}/${PN}-2.3.3-disable-tmp-access-tests.patch"
116 + "${FILESDIR}/${PN}-2.3.3-disable-install-test.patch"
117 +)
118 +
119 +RDEPEND="$(python_gen_cond_dep '
120 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
121 + >=dev-python/bottle-0.12[${PYTHON_USEDEP}]
122 + dev-python/google-auth-oauthlib[${PYTHON_USEDEP}]
123 + >=dev-python/google-api-python-client-1.8.2[${PYTHON_USEDEP}]
124 + >=dev-python/httplib2-0.10[${PYTHON_USEDEP}]
125 + >=dev-python/lxml-3.0[${PYTHON_USEDEP}]
126 + >=dev-python/oauth2client-4.0[${PYTHON_USEDEP}]
127 + >=dev-python/ply-3.4[${PYTHON_USEDEP}]
128 + >=dev-python/python-dateutil-2.6.0[${PYTHON_USEDEP}]
129 + >=dev-python/python-magic-0.4.12[${PYTHON_USEDEP}]
130 + >=dev-python/requests-2.0[${PYTHON_USEDEP}]
131 +')"
132 +
133 +distutils_enable_tests pytest
134 +
135 +src_prepare() {
136 + sed "/def find_repository_root/a\ return '${S}'" \
137 + -i ${PN}/utils/test_utils.py || die
138 + sed "s/\[PROGRAM\]/['${EPYTHON}', PROGRAM]/" \
139 + -i ${PN}/tools/treeify_test.py || die
140 + sed "/DATA_DIR =/c\ DATA_DIR = '${S}/${PN}/utils/file_type_testdata'" \
141 + -i ${PN}/utils/file_type_test.py || die
142 + distutils-r1_src_prepare
143 +}
144 +
145 +python_compile() {
146 + distutils-r1_python_compile
147 +
148 + # keep in sync with hashsrc.py, otherwise expect test failures
149 + cp beancount/parser/{lexer.l,grammar.y,decimal.h,decimal.c,macros.h,parser.h,parser.c,tokens.h} "${BUILD_DIR}"/lib/${PN}/parser || die
150 +}
151 +
152 +python_test(){
153 + emake ctest
154 +
155 + cd "${T}" || die
156 + epytest --pyargs ${PN}
157 +}