changeset 3ebc7a549ad7 in tryton-overlay:default
details: https://hg.tryton.org/tryton-overlay?cmd=changeset;node=3ebc7a549ad7
description:
        app-office/trytond: versions bump

        (Portage version: 2.3.99/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.4.11.ebuild |  101 ------------------------------
 app-office/trytond/trytond-5.4.12.ebuild |  101 ++++++++++++++++++++++++++++++
 app-office/trytond/trytond-5.6.1.ebuild  |  102 -------------------------------
 app-office/trytond/trytond-5.6.2.ebuild  |  102 +++++++++++++++++++++++++++++++
 5 files changed, 215 insertions(+), 215 deletions(-)

diffs (463 lines):

diff -r 3900103e327e -r 3ebc7a549ad7 app-office/trytond/Manifest
--- a/app-office/trytond/Manifest       Wed Jun 17 00:21:45 2020 +0200
+++ b/app-office/trytond/Manifest       Wed Jun 17 00:23:39 2020 +0200
@@ -8,25 +8,25 @@
 AUX trytond-worker-init.d 827 BLAKE2B 
e87b93697abbbf1be85bfce382ffafe67fa951cd60cab530f64854485fa3d729524936356ec9dc9e2844addb3f92e04f73168e1f977003e1ea59e20126706fa1
 SHA512 
4d49e4b27d089462c86ecad6a7b9ba2143acbdeb60f2287305dedc8c9f8843487a8ab870e9dd9f883f4582949d4672a470d0f2498618aec54feee4db4c4d256b
 DIST trytond-5.0.23.tar.gz 645650 BLAKE2B 
083f535d51e3c2dfd9423b2ca7ecffefcd639b07766c7c33c9f504546bd5a4f86a7c6bb4613b199753c204ad8390cbee39d89600e9f3f3bfffce7374ffcf7732
 SHA512 
647cb316d1910507acf2883ea5bfa776a8b21f1dbff82951580879bf1b9f34a8a71348ff6240cc9bf0d63070871403497aade1945e033a27a80b6ae77b5f0e7b
 DIST trytond-5.2.18.tar.gz 733512 BLAKE2B 
b59e20efedfde562b621ff9b792dc73fa5dbeafef8393fa1a6e986dd230af767485266e97f06de9306f02a3c97d04f5628adc763b309e267716e9df4a1cf6053
 SHA512 
9b2baf2ccc359a9526d01271357def80c6aa01adbe8590309c015d301a7afddf20789478465ea0a4536541164ad7ee48f102125d196cd80f570d12925308ce8c
-DIST trytond-5.4.11.tar.gz 683551 BLAKE2B 
2dae402827ef6da77d69a6dc45462fd01266bd6da0dbb807c5dd5614f7dd8724d239adc8149c1c1cce80c52a85784e59e8c938d5233166150fc9c891e105c833
 SHA512 
d130c5ee4b81784563eaeed5dc156de75411bc632e802fce4300a57a6bb52b1a56557640baee1bdc3c4bde1290923654d9c4e4422b931ebf05f0c039ba4d9e11
-DIST trytond-5.6.1.tar.gz 710405 BLAKE2B 
a50c493595ad4c90004d9dbbad842e936d5deb0c018f54aaccebf21b361244a6aad4dad86e4f1e40666631fe37c2774404b51ab5931fd72eb6b4a9018efaaa30
 SHA512 
90b41ce3734247eea8e0cd19bfe173e3acb9d7893c6a22575d583fb7746bad4db9f4870a2b7592032959ed0f8aee99179bc325916749c32db8089c6ea5a420c5
+DIST trytond-5.4.12.tar.gz 683733 BLAKE2B 
20ccfe5e8b3cca57171e99edbf2e8724f48bc9b42038037eaba02925855cfaecd7bc7181f0e6d7e7e5a1caa92a97c5652763ef1c151d0e46e6b7dc162bb49cbb
 SHA512 
e2d14e703fcaffe31db6186503e1d201d6f54a4f0621481fc6e7f925acfbbab3b7d1b3ebd16c5ffadee46dd0df8db4c7cc744c845d3da582c455b597767e8373
+DIST trytond-5.6.2.tar.gz 710873 BLAKE2B 
e5fb41458cd65bf6a5e45453f8eddff5aedbef6bbb405b0737e4bcc25357df7a06ae7ed24ef1f031b4261d4e7c3aa0e6c563dad5cf8d04c9c40c66f653e98e57
 SHA512 
895eba05d8bf36a24facfb09adea82c67c74ca7ec020fd97d83c74cf0971ffc99f51144422f83991969c20d796de053cc72b684a3f3200d952d694a060e189d3
 EBUILD trytond-5.0.23.ebuild 2798 BLAKE2B 
abb5bab19a7c6571da268b47116c7b4817b5036f86c3676f4d2628c0b27e6871bdda7111609877490515591cca74c42fcdd010544589328fd2aa9ba0addc418d
 SHA512 
9b3f909236ee8d4c459fc20621a5105364a8eefcd41fec3b2c0db4ad62615f26db09f1144aa1bc5df2da8d9d4720a2d980820d4ead95d4b29ac4bb2bbed7982e
 EBUILD trytond-5.2.18.ebuild 2859 BLAKE2B 
5365d67cbe97f899b44cc4c21be4903a3ffcad0638916ca4cb4eea27e15ea44adaaa09ba791bfdbbd0f94b23e4e25a5066b3ffb8244381b0267deb819db48ad9
 SHA512 
67b71a10e355f59d2e7026dd5b846cf805345ce2de9967c8b893d6e52d50f60977eac0588ed69f63b8dc394b2ef5928c919e7642165bc0b403c792732d57497b
-EBUILD trytond-5.4.11.ebuild 2875 BLAKE2B 
30f2ccba68ca47329a3b99100a2a497efcf5ce7ac59194319c911b70a255556404094bc41036d881975e816afdce05ded67be507b2e27728fc0dac1637a8fdba
 SHA512 
aacbb1f8400d95277ca9af82448754ba19c7081d325a363ac9cc11579f97158205e38772c5773e4c61824a34d8435ceead3f9af306b42ea2d28e5c79c21e2fbc
-EBUILD trytond-5.6.1.ebuild 2936 BLAKE2B 
7642ab8e207b9d186e26825b2f58bb5a691452a4f21651642f138f4c2a420d7a15fe8a93914814ab06ed9e10f2105c6f30987d0c5b9ba344a64955202fc623bd
 SHA512 
5c7b72b5ceb0adb7181974e309e7b4a94ae69aa8fd3d81899e947feca3a0e52e5853756ae2d2cc72ea73082de6d7a2392309440d425340921fd0aaf1ee08b7e8
+EBUILD trytond-5.4.12.ebuild 2875 BLAKE2B 
30f2ccba68ca47329a3b99100a2a497efcf5ce7ac59194319c911b70a255556404094bc41036d881975e816afdce05ded67be507b2e27728fc0dac1637a8fdba
 SHA512 
aacbb1f8400d95277ca9af82448754ba19c7081d325a363ac9cc11579f97158205e38772c5773e4c61824a34d8435ceead3f9af306b42ea2d28e5c79c21e2fbc
+EBUILD trytond-5.6.2.ebuild 2936 BLAKE2B 
7642ab8e207b9d186e26825b2f58bb5a691452a4f21651642f138f4c2a420d7a15fe8a93914814ab06ed9e10f2105c6f30987d0c5b9ba344a64955202fc623bd
 SHA512 
5c7b72b5ceb0adb7181974e309e7b4a94ae69aa8fd3d81899e947feca3a0e52e5853756ae2d2cc72ea73082de6d7a2392309440d425340921fd0aaf1ee08b7e8
 MISC ChangeLog 22532 BLAKE2B 
391afdd0a9c008f8d3ab552eec64ffcd171c4df73dd3aefbc4b7834bb2f6ea3edab7821405435f2a9e416563fad3e0a3d75f653872f7244b4768537a544611b4
 SHA512 
f7edb623ed4a20b48ba8e81ee6f0c14942da036b9d37ab5be85ee1aac64e2968f65b4cc1d1c4c9a9c1219ddb020d53ef5ef115cc6acc32fce7ab26ab8a4efb4d
 MISC metadata.xml 613 BLAKE2B 
3b833ae87391edd14ed37da8d01ff0368b774c7013160eae7e7141775c4168098459bbac1ccdf2cc5d90b502ebc9110da0c8dd6c4b3175b0f020943d72545fc0
 SHA512 
08cc597867722e300cb6357d15305d977bad6cd95677fe5fc829cea91ec0dfcdcae2993a4d7b14744c01022c26312aa70819417e6e3ce593210d380cb0077385
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iQGTBAEBCAB9FiEEdP/VdIYNMe45RAljV09u/05HdRcFAl7YC5FfFIAAAAAALgAo
+iQGTBAEBCAB9FiEEdP/VdIYNMe45RAljV09u/05HdRcFAl7pRmtfFIAAAAAALgAo
 aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDc0
 RkZENTc0ODYwRDMxRUUzOTQ0MDk2MzU3NEY2RUZGNEU0Nzc1MTcACgkQV09u/05H
-dRd8agf+KMg0ugvarlZ+YAKcMW1b7/2s4b0TwWYj8r7CIJEQPdSM75PfVaNNeZ4t
-HX1lp6TT2zVYRvjY4CANiMp/nowcjZaK8bmcKMlBno9ec3GNTEIGlnMhC3GTDbH1
-zSoDSrX+uvxgCar/bh3XLeJBcoom8HwFcf1E0oB1a1fLcGlNBYRUPIrJHeETmBxu
-rSfSgDOGd4/iI+qHL6GeJ3xKqtQ/Hy1x/VKCeX8X9nHOP4cCv+rxOf6ibeLMXZe0
-xrCMNRoHKd/CKL0qMR3PF5lyPpqWWiXyka76x7A5qSG5W0zZuxJWaQGnfoMBK05H
-YPTZ/y/Q6CivjxYurh3ce6lGtLyO6w==
-=kcOo
+dReNBgf6AmSa71X4Bhp2lH4iN1G8GBD5GPkH60c2g37OGtzXlBlnN1OL+yF4FLL7
+D15DcT190LZuOJdAn1xlRMwwoQcP6t0B0krmtjUHCntCQjbSKf8SBgzmFv/E2a3w
+Wre7pHn5PwTKRnlpKUPcPh6twFX4LuBtz3FAoWQT+v9Ly+p2+BFPP4dPKTU64DSB
+Na9b7GOlHqoEOz/zaLgnUGw3hjb7p/bN9f/WAG/VN/g9gn8PhMmjhKvBgf1vhCzc
+cGpaEJ+pfRbxoBvWlEIAUb3bgTbEgb+xDql5fNN2kZbQ8Vm29+o5cixmbRcTSY4f
+4w/sUMTGFp0LyCS/VGCpU0ACFary2Q==
+=cVDQ
 -----END PGP SIGNATURE-----
diff -r 3900103e327e -r 3ebc7a549ad7 app-office/trytond/trytond-5.4.11.ebuild
--- a/app-office/trytond/trytond-5.4.11.ebuild  Wed Jun 17 00:21:45 2020 +0200
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,101 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python{3_5,3_6,3_7} )
-
-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 
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[$PYTHON_USEDEP]
-       dev-python/wrapt[$PYTHON_USEDEP]
-       dev-python/passlib[$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] )
-       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 3900103e327e -r 3ebc7a549ad7 app-office/trytond/trytond-5.4.12.ebuild
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-5.4.12.ebuild  Wed Jun 17 00:23:39 2020 +0200
@@ -0,0 +1,101 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python{3_5,3_6,3_7} )
+
+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 
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[$PYTHON_USEDEP]
+       dev-python/wrapt[$PYTHON_USEDEP]
+       dev-python/passlib[$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] )
+       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 3900103e327e -r 3ebc7a549ad7 app-office/trytond/trytond-5.6.1.ebuild
--- a/app-office/trytond/trytond-5.6.1.ebuild   Wed Jun 17 00:21:45 2020 +0200
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{5..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[$PYTHON_USEDEP]
-       dev-python/wrapt[$PYTHON_USEDEP]
-       dev-python/passlib[$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 3900103e327e -r 3ebc7a549ad7 app-office/trytond/trytond-5.6.2.ebuild
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-5.6.2.ebuild   Wed Jun 17 00:23:39 2020 +0200
@@ -0,0 +1,102 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{5..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[$PYTHON_USEDEP]
+       dev-python/wrapt[$PYTHON_USEDEP]
+       dev-python/passlib[$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
+}

Reply via email to