changeset 0ff2fdd3eccf in tryton-overlay:default
details: https://hg.tryton.org/tryton-overlay?cmd=changeset&node=0ff2fdd3eccf
description:
        app-office/trytond: versions bump

        (Portage version: 3.0.20/hg/Linux x86_64, signed Manifest commit with 
key 0x574F6EFF4E477517)
        Signed-off-by: Cédric Krier <[email protected]>
diffstat:

 app-office/trytond/Manifest              |   24 +++---
 app-office/trytond/trytond-5.8.11.ebuild |  102 -----------------------------
 app-office/trytond/trytond-5.8.12.ebuild |  102 +++++++++++++++++++++++++++++
 app-office/trytond/trytond-6.0.5.ebuild  |  108 -------------------------------
 app-office/trytond/trytond-6.0.6.ebuild  |  108 +++++++++++++++++++++++++++++++
 5 files changed, 222 insertions(+), 222 deletions(-)

diffs (474 lines):

diff -r ff8556ab790f -r 0ff2fdd3eccf app-office/trytond/Manifest
--- a/app-office/trytond/Manifest       Thu Sep 02 21:11:50 2021 +0200
+++ b/app-office/trytond/Manifest       Thu Sep 02 21:12:55 2021 +0200
@@ -8,22 +8,22 @@
 AUX trytond-init.d-2 799 BLAKE2B 
78dcf251feb3e9f04ba5014359c8da069cc54e14a626f6d9e03306008a30e4e412354c409ad7bb8beb47dfa65e1cc9eb12ab9459ea56f47e2994b25f113297c0
 SHA512 
1c6f1aa4fa8ad1da7e88e2ed5c53646802747c3ea1b4108ec51b400214eb7dd0a586548fa76d864be0087d24c1b9913343cba28339323e7a1a7fa370a8bce1c6
 AUX trytond-worker-init.d 827 BLAKE2B 
e87b93697abbbf1be85bfce382ffafe67fa951cd60cab530f64854485fa3d729524936356ec9dc9e2844addb3f92e04f73168e1f977003e1ea59e20126706fa1
 SHA512 
4d49e4b27d089462c86ecad6a7b9ba2143acbdeb60f2287305dedc8c9f8843487a8ab870e9dd9f883f4582949d4672a470d0f2498618aec54feee4db4c4d256b
 DIST trytond-5.6.17.tar.gz 729994 BLAKE2B 
9702b7c2532873d4ed68aa10e278e110244bee3e18fafe41bedc436461c67e1928e8d37a60b4685d766c7116945fc76b834cc5c123aef7ae32eaced3ff7b4a14
 SHA512 
d8efba744f23f97c11b705d70eedff6a9c2802c0da7b626932e1fbec8adc7ebfa3052eee97857bd90b9f6e97d6a163b73db808c51e77f9f7a40d5bd80c7a6af9
-DIST trytond-5.8.11.tar.gz 760825 BLAKE2B 
41d7d30c41159141adecb4eedbe86f8caba5f62aaa9491dc8e066e9d48d56de9bcee7a6f320bfdbac12c5fa83fa5c8525cd2a3f21735b9012a66535a98d1c97b
 SHA512 
b0f6aecf2782346082b51e2585e1bc892a3f1a5fc815db7e6120ce324f845db46fc12397cdc1e89e040129c667460414acdd51ed5ac0517e86499460bfd74467
-DIST trytond-6.0.5.tar.gz 850473 BLAKE2B 
d779251fb021c5e893fd0436c2a0300ecce9cb79b443903d7673595d71dce5fbbe4395c14753dc84ac42f6f4a935f2558765019878ce835c11077ba165683f16
 SHA512 
7758abdc5d744d8b6259ae61310ae70f652d2b0a3a7979d59c4cda7b2564eab81f16fa28df6427d805879e0144f914e50f1427162a3da5e77ffa5425cbf6223a
+DIST trytond-5.8.12.tar.gz 760928 BLAKE2B 
73c4f178b0b47bc9320e87530b2116098badebdeb9f4534289b49ff6bf739548095fa9894ef9e7a290ac4f3d7a8900b164db08a5b96e119c9ee978bae1cff9fb
 SHA512 
05185fbe53fbe64ea41f98cc0bc40c30e1c1c5295b10013e19d2f53c0a1ffcb0e7852e6a670ab036bf4f183d6042e3835d8bbd8a956c6701cd6bfccb80ff26e4
+DIST trytond-6.0.6.tar.gz 850723 BLAKE2B 
fdaa9abe44e0dba65d2806a7f7691b82b1f3dbb0733b8470c621c5b5d62a96151556de2450b70af56b16a42a618cb6615d0150c6dba34b8d92936c3e33f047b1
 SHA512 
4061f66d0fed35482e499afc8c476f2ecbf6bc9d22647539f5effc028fbe63c49c4278fc741cab7cd5146b23d0af9f48e50eb181f15bd08268fe96eedf9faf98
 EBUILD trytond-5.6.17.ebuild 2947 BLAKE2B 
2a87e9647cf44dec001bff3e9d4958dc482386585cad8f6777f4b3c00f2e95c6e9b4516b80b73f978476523ee2a2f1370d41a4799e4a9f19ac8efc34d1837f6f
 SHA512 
da80e55aa1bc4517caa280eff8a149f41c589719e2b989772dae25e606dd40971f0514324eaad78c5d0bf6e71b01fa6633911379a0b253c32d416c5a93eef240
-EBUILD trytond-5.8.11.ebuild 2947 BLAKE2B 
3773608460c387ffa4af0b3fe7c200a3ed6264c5787cc3c7919b001dae7352c6120ec989928e15391fa58803451ca6a08c3338fc94fc0d7fefc494ae70f4b81e
 SHA512 
0e7cb6accf63d559673785e7b80ec54c7c5f175d6c4f2f375a03f8116d578ccf57dfcd1263ae3330c3f2c6745b1d23c2a26e712bca0da0134f4433732c229460
-EBUILD trytond-6.0.5.ebuild 3108 BLAKE2B 
ba2228702f9f8e32efdd453f4972d9508e39e4aaef96d34d38d431b29873cb1b8c9f13ee2d656a64f845a707f75fefecec588a4a36e3bf089598a68d668bc3af
 SHA512 
45b9b2df29e48e9a7de4bb9f18ab2a8e6b2b3f152d1448f99574869527f6fc31d1716f2c810dc802489b3f36b93061c2b3f61d3f3dc3d6fb951ad3eb1a41a042
+EBUILD trytond-5.8.12.ebuild 2947 BLAKE2B 
3773608460c387ffa4af0b3fe7c200a3ed6264c5787cc3c7919b001dae7352c6120ec989928e15391fa58803451ca6a08c3338fc94fc0d7fefc494ae70f4b81e
 SHA512 
0e7cb6accf63d559673785e7b80ec54c7c5f175d6c4f2f375a03f8116d578ccf57dfcd1263ae3330c3f2c6745b1d23c2a26e712bca0da0134f4433732c229460
+EBUILD trytond-6.0.6.ebuild 3108 BLAKE2B 
ba2228702f9f8e32efdd453f4972d9508e39e4aaef96d34d38d431b29873cb1b8c9f13ee2d656a64f845a707f75fefecec588a4a36e3bf089598a68d668bc3af
 SHA512 
45b9b2df29e48e9a7de4bb9f18ab2a8e6b2b3f152d1448f99574869527f6fc31d1716f2c810dc802489b3f36b93061c2b3f61d3f3dc3d6fb951ad3eb1a41a042
 MISC ChangeLog 22532 BLAKE2B 
391afdd0a9c008f8d3ab552eec64ffcd171c4df73dd3aefbc4b7834bb2f6ea3edab7821405435f2a9e416563fad3e0a3d75f653872f7244b4768537a544611b4
 SHA512 
f7edb623ed4a20b48ba8e81ee6f0c14942da036b9d37ab5be85ee1aac64e2968f65b4cc1d1c4c9a9c1219ddb020d53ef5ef115cc6acc32fce7ab26ab8a4efb4d
 MISC metadata.xml 669 BLAKE2B 
3409b4a9eecca9be78e9c0064ba8172a737b6dabcc75b4888ac8a12c0d239535299769802f1c5a4a96fc63fd346d015536020aa8798c4faf5e5ba565a614e8d5
 SHA512 
226319315274dedf45092e9923a652f9c31a0c8fe96fc800278d2cac57aed1101bc56d8f7ca959c7d098074f22926cb52035685182fff2aca33de3d8b7e2c50e
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iQEzBAEBCAAdFiEEdP/VdIYNMe45RAljV09u/05HdRcFAmEU+eoACgkQV09u/05H
-dRcfdggAlMtv1ebGIkVoGZHALTgxjmIPbLXrN0ijdMhAa8Foh0p4iB5/K1cVD123
-h9B7nN/OSg6h2nzpIFKaQSSLdgz3ft9PmVeo9+vHiYlcZoegQpIj16u+xqPTYo7O
-2LtaMmcWv709+teah5OIoXuXrmOd5YyxFwk5boVaqjUjQp+itbiH2vG39WsBR/Go
-DgQkOfXw73M6awGj8xbk+ks6VYqOIOI1/6XcLBGeuSPMl/Gctcv1qCPGwIIkRqbz
-MiQazbRNVs1aiGynchYQ79VqI7knBmVooxcvU4JJtZrMZ0lhZN/6p6JVVBO2JeAA
-q//wD7Hpw26A7qtvu4aB6STc7Q8lgg==
-=7Njj
+iQEzBAEBCAAdFiEEdP/VdIYNMe45RAljV09u/05HdRcFAmExIjYACgkQV09u/05H
+dRfa7gf+IgncRmISvrdmGogGjkKPeynpo+wGPti/i0rUu28ETIFMwuBQlncCNM93
+SsoFBmmA3ogPCIFNjywmGGcjlXuMrDgSAFX1k1Wx5ZHJa5+Ol/NJMq4iUWdzhRn8
+Dt0fxYqvvjLrl9XOawvnMHjKCmMjtihvcxStdjvQadPREhfoGYGb+nqpym9/bmhc
+eSE0BgbC7Htrj8WzUFYn/va/jpsGrDVooPdJIf0nOk3SNyQjcttru19RI4jdmhfm
+eExoKUDU92QcBIB/M1EBI1lLKCX/NiSNMMdzSvd9P6CAr4dJCQts8ndwF5hgJq78
+vd+YB+uOOWVt/KoTT0oGSJDuolqGbw==
+=DX8f
 -----END PGP SIGNATURE-----
diff -r ff8556ab790f -r 0ff2fdd3eccf app-office/trytond/trytond-5.8.11.ebuild
--- a/app-office/trytond/trytond-5.8.11.ebuild  Thu Sep 02 21:11:50 2021 +0200
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{6..8} )
-
-inherit distutils-r1
-
-DESCRIPTION="A three-tiers high-level general purpose business application 
framework"
-HOMEPAGE="http://www.tryton.org/";
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc graphviz mysql +postgres sqlite levenshtein bcrypt html2text 
weasyprint coroutine test"
-
-RDEPEND="acct-group/trytond
-       acct-user/trytond
-       postgres? ( >=dev-python/psycopg-2.5.4[$PYTHON_USEDEP] )
-       sqlite? ( dev-lang/python:*[sqlite] )
-       >=dev-python/lxml-2.0[$PYTHON_USEDEP]
-       >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
-       dev-python/genshi[$PYTHON_USEDEP]
-       dev-python/python-dateutil[$PYTHON_USEDEP]
-       dev-python/polib[$PYTHON_USEDEP]
-       >=dev-python/python-sql-0.5[$PYTHON_USEDEP]
-       <dev-python/werkzeug-2[$PYTHON_USEDEP]
-       dev-python/wrapt[$PYTHON_USEDEP]
-       >=dev-python/passlib-1.7.0[$PYTHON_USEDEP]
-       graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
-       levenshtein? ( dev-python/python-levenshtein[$PYTHON_USEDEP] )
-       bcrypt? ( dev-python/passlib[bcrypt,$PYTHON_USEDEP] )
-       html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
-       weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
-       coroutine? ( >=dev-python/gevent-1.1[$PYTHON_USEDEP] )"
-DEPEND="${RDEPEND}
-       dev-python/setuptools[$PYTHON_USEDEP]
-       doc? ( >=dev-python/sphinx-0.3 )
-       test? (
-               dev-lang/python:*[sqlite]
-               )"
-
-src_compile() {
-       distutils-r1_src_compile
-
-       if use doc; then
-               pushd doc > /dev/null
-               emake html || die "Generation of HTML documentation failed"
-               popd > /dev/null
-       fi
-}
-
-src_install() {
-       distutils-r1_src_install
-
-       newinitd "${FILESDIR}"/trytond-init.d-2 trytond
-       newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
-       newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
-       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
-       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
-       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
-       keepdir /var/log/trytond
-       keepdir /var/lib/trytond
-       fperms 770 /var/lib/trytond
-
-       dodoc CHANGELOG COPYRIGHT README.rst
-       if use doc; then
-               docinto html
-               dodoc -r doc/_build/html/*
-       fi
-}
-
-python_test() {
-       DB_NAME=":memory:" esetup.py test || die
-}
-
-pkg_preinst() {
-       fowners trytond:trytond /var/log/trytond
-       fowners trytond:trytond /var/lib/trytond
-}
-
-pkg_postinst() {
-       if use postgres; then
-               elog "In order to setup the initial database, run:"
-               elog "  emerge --config =${CATEGORY}/${PF}"
-               elog "Be sure the database is started before"
-       fi
-}
-
-pquery() {
-       psql -q -At -U postgres -d template1 -c "$@"
-}
-
-pkg_config() {
-       einfo "In the following, the 'postgres' user will be used."
-       if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" | 
grep -q trytond; then
-               ebegin "Creating database user trytond"
-               createuser --username=postgres --createdb --no-adduser trytond
-               eend $? || die "Failed to create database user"
-       fi
-}
diff -r ff8556ab790f -r 0ff2fdd3eccf app-office/trytond/trytond-5.8.12.ebuild
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-5.8.12.ebuild  Thu Sep 02 21:12:55 2021 +0200
@@ -0,0 +1,102 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6..8} )
+
+inherit distutils-r1
+
+DESCRIPTION="A three-tiers high-level general purpose business application 
framework"
+HOMEPAGE="http://www.tryton.org/";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc graphviz mysql +postgres sqlite levenshtein bcrypt html2text 
weasyprint coroutine test"
+
+RDEPEND="acct-group/trytond
+       acct-user/trytond
+       postgres? ( >=dev-python/psycopg-2.5.4[$PYTHON_USEDEP] )
+       sqlite? ( dev-lang/python:*[sqlite] )
+       >=dev-python/lxml-2.0[$PYTHON_USEDEP]
+       >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
+       dev-python/genshi[$PYTHON_USEDEP]
+       dev-python/python-dateutil[$PYTHON_USEDEP]
+       dev-python/polib[$PYTHON_USEDEP]
+       >=dev-python/python-sql-0.5[$PYTHON_USEDEP]
+       <dev-python/werkzeug-2[$PYTHON_USEDEP]
+       dev-python/wrapt[$PYTHON_USEDEP]
+       >=dev-python/passlib-1.7.0[$PYTHON_USEDEP]
+       graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
+       levenshtein? ( dev-python/python-levenshtein[$PYTHON_USEDEP] )
+       bcrypt? ( dev-python/passlib[bcrypt,$PYTHON_USEDEP] )
+       html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
+       weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
+       coroutine? ( >=dev-python/gevent-1.1[$PYTHON_USEDEP] )"
+DEPEND="${RDEPEND}
+       dev-python/setuptools[$PYTHON_USEDEP]
+       doc? ( >=dev-python/sphinx-0.3 )
+       test? (
+               dev-lang/python:*[sqlite]
+               )"
+
+src_compile() {
+       distutils-r1_src_compile
+
+       if use doc; then
+               pushd doc > /dev/null
+               emake html || die "Generation of HTML documentation failed"
+               popd > /dev/null
+       fi
+}
+
+src_install() {
+       distutils-r1_src_install
+
+       newinitd "${FILESDIR}"/trytond-init.d-2 trytond
+       newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
+       newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
+       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
+       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
+       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
+       keepdir /var/log/trytond
+       keepdir /var/lib/trytond
+       fperms 770 /var/lib/trytond
+
+       dodoc CHANGELOG COPYRIGHT README.rst
+       if use doc; then
+               docinto html
+               dodoc -r doc/_build/html/*
+       fi
+}
+
+python_test() {
+       DB_NAME=":memory:" esetup.py test || die
+}
+
+pkg_preinst() {
+       fowners trytond:trytond /var/log/trytond
+       fowners trytond:trytond /var/lib/trytond
+}
+
+pkg_postinst() {
+       if use postgres; then
+               elog "In order to setup the initial database, run:"
+               elog "  emerge --config =${CATEGORY}/${PF}"
+               elog "Be sure the database is started before"
+       fi
+}
+
+pquery() {
+       psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+       einfo "In the following, the 'postgres' user will be used."
+       if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" | 
grep -q trytond; then
+               ebegin "Creating database user trytond"
+               createuser --username=postgres --createdb --no-adduser trytond
+               eend $? || die "Failed to create database user"
+       fi
+}
diff -r ff8556ab790f -r 0ff2fdd3eccf app-office/trytond/trytond-6.0.5.ebuild
--- a/app-office/trytond/trytond-6.0.5.ebuild   Thu Sep 02 21:11:50 2021 +0200
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,108 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{6..9} )
-
-inherit distutils-r1
-
-DESCRIPTION="A three-tiers high-level general purpose business application 
framework"
-HOMEPAGE="http://www.tryton.org/";
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc graphviz mysql +postgres sqlite levenshtein bcrypt html2text 
weasyprint coroutine image test"
-
-RDEPEND="acct-group/trytond
-       acct-user/trytond
-       postgres? ( >=dev-python/psycopg-2.5.4[$PYTHON_USEDEP] )
-       sqlite? ( dev-lang/python:*[sqlite] )
-       >=dev-python/lxml-2.0[$PYTHON_USEDEP]
-       >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
-       dev-python/genshi[$PYTHON_USEDEP]
-       dev-python/python-dateutil[$PYTHON_USEDEP]
-       dev-python/polib[$PYTHON_USEDEP]
-       >=dev-python/python-sql-0.5[$PYTHON_USEDEP]
-       <dev-python/werkzeug-2[$PYTHON_USEDEP]
-       dev-python/wrapt[$PYTHON_USEDEP]
-       >=dev-python/passlib-1.7.0[$PYTHON_USEDEP]
-       graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
-       levenshtein? ( dev-python/python-levenshtein[$PYTHON_USEDEP] )
-       bcrypt? ( dev-python/passlib[bcrypt,$PYTHON_USEDEP] )
-       html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
-       weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
-       coroutine? ( >=dev-python/gevent-1.1[$PYTHON_USEDEP] )
-       image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )"
-DEPEND="${RDEPEND}
-       dev-python/setuptools[$PYTHON_USEDEP]
-       doc? ( >=dev-python/sphinx-0.3 )
-       test? (
-               dev-lang/python:*[sqlite]
-               dev-python/pillow[truetype,$PYTHON_USEDEP]
-               )"
-
-PATCHES=(
-       "${FILESDIR}"/${P}-pillow-truetype.patch
-)
-
-src_compile() {
-       distutils-r1_src_compile
-
-       if use doc; then
-               pushd doc > /dev/null
-               emake html || die "Generation of HTML documentation failed"
-               popd > /dev/null
-       fi
-}
-
-src_install() {
-       distutils-r1_src_install
-
-       newinitd "${FILESDIR}"/trytond-init.d-2 trytond
-       newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
-       newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
-       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
-       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
-       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
-       keepdir /var/log/trytond
-       keepdir /var/lib/trytond
-       fperms 770 /var/lib/trytond
-
-       dodoc CHANGELOG COPYRIGHT README.rst
-       if use doc; then
-               docinto html
-               dodoc -r doc/_build/html/*
-       fi
-}
-
-python_test() {
-       DB_NAME=":memory:" esetup.py test || die
-}
-
-pkg_preinst() {
-       fowners trytond:trytond /var/log/trytond
-       fowners trytond:trytond /var/lib/trytond
-}
-
-pkg_postinst() {
-       if use postgres; then
-               elog "In order to setup the initial database, run:"
-               elog "  emerge --config =${CATEGORY}/${PF}"
-               elog "Be sure the database is started before"
-       fi
-}
-
-pquery() {
-       psql -q -At -U postgres -d template1 -c "$@"
-}
-
-pkg_config() {
-       einfo "In the following, the 'postgres' user will be used."
-       if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" | 
grep -q trytond; then
-               ebegin "Creating database user trytond"
-               createuser --username=postgres --createdb --no-adduser trytond
-               eend $? || die "Failed to create database user"
-       fi
-}
diff -r ff8556ab790f -r 0ff2fdd3eccf app-office/trytond/trytond-6.0.6.ebuild
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-6.0.6.ebuild   Thu Sep 02 21:12:55 2021 +0200
@@ -0,0 +1,108 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="A three-tiers high-level general purpose business application 
framework"
+HOMEPAGE="http://www.tryton.org/";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc graphviz mysql +postgres sqlite levenshtein bcrypt html2text 
weasyprint coroutine image test"
+
+RDEPEND="acct-group/trytond
+       acct-user/trytond
+       postgres? ( >=dev-python/psycopg-2.5.4[$PYTHON_USEDEP] )
+       sqlite? ( dev-lang/python:*[sqlite] )
+       >=dev-python/lxml-2.0[$PYTHON_USEDEP]
+       >=dev-python/relatorio-0.7[fodt,$PYTHON_USEDEP]
+       dev-python/genshi[$PYTHON_USEDEP]
+       dev-python/python-dateutil[$PYTHON_USEDEP]
+       dev-python/polib[$PYTHON_USEDEP]
+       >=dev-python/python-sql-0.5[$PYTHON_USEDEP]
+       <dev-python/werkzeug-2[$PYTHON_USEDEP]
+       dev-python/wrapt[$PYTHON_USEDEP]
+       >=dev-python/passlib-1.7.0[$PYTHON_USEDEP]
+       graphviz? ( dev-python/pydot[$PYTHON_USEDEP] )
+       levenshtein? ( dev-python/python-levenshtein[$PYTHON_USEDEP] )
+       bcrypt? ( dev-python/passlib[bcrypt,$PYTHON_USEDEP] )
+       html2text? ( dev-python/html2text[$PYTHON_USEDEP] )
+       weasyprint? ( dev-python/weasyprint[$PYTHON_USEDEP] )
+       coroutine? ( >=dev-python/gevent-1.1[$PYTHON_USEDEP] )
+       image? ( dev-python/pillow[truetype,$PYTHON_USEDEP] )"
+DEPEND="${RDEPEND}
+       dev-python/setuptools[$PYTHON_USEDEP]
+       doc? ( >=dev-python/sphinx-0.3 )
+       test? (
+               dev-lang/python:*[sqlite]
+               dev-python/pillow[truetype,$PYTHON_USEDEP]
+               )"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-pillow-truetype.patch
+)
+
+src_compile() {
+       distutils-r1_src_compile
+
+       if use doc; then
+               pushd doc > /dev/null
+               emake html || die "Generation of HTML documentation failed"
+               popd > /dev/null
+       fi
+}
+
+src_install() {
+       distutils-r1_src_install
+
+       newinitd "${FILESDIR}"/trytond-init.d-2 trytond
+       newinitd "${FILESDIR}"/trytond-cron-init.d-2 trytond-cron
+       newinitd "${FILESDIR}"/trytond-worker-init.d trytond-worker
+       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond
+       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron
+       newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-worker
+       keepdir /var/log/trytond
+       keepdir /var/lib/trytond
+       fperms 770 /var/lib/trytond
+
+       dodoc CHANGELOG COPYRIGHT README.rst
+       if use doc; then
+               docinto html
+               dodoc -r doc/_build/html/*
+       fi
+}
+
+python_test() {
+       DB_NAME=":memory:" esetup.py test || die
+}
+
+pkg_preinst() {
+       fowners trytond:trytond /var/log/trytond
+       fowners trytond:trytond /var/lib/trytond
+}
+
+pkg_postinst() {
+       if use postgres; then
+               elog "In order to setup the initial database, run:"
+               elog "  emerge --config =${CATEGORY}/${PF}"
+               elog "Be sure the database is started before"
+       fi
+}
+
+pquery() {
+       psql -q -At -U postgres -d template1 -c "$@"
+}
+
+pkg_config() {
+       einfo "In the following, the 'postgres' user will be used."
+       if ! pquery "SELECT usename FROM pg_user WHERE usename = 'trytond'" | 
grep -q trytond; then
+               ebegin "Creating database user trytond"
+               createuser --username=postgres --createdb --no-adduser trytond
+               eend $? || die "Failed to create database user"
+       fi
+}

Reply via email to