changeset 3863cff6413f in tryton-overlay:default
details: https://hg.tryton.org/tryton-overlay?cmd=changeset&node=3863cff6413f
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.10.ebuild | 102 ------------------------------
app-office/trytond/trytond-5.8.11.ebuild | 102 ++++++++++++++++++++++++++++++
app-office/trytond/trytond-6.0.3.ebuild | 103 -------------------------------
app-office/trytond/trytond-6.0.4.ebuild | 103 +++++++++++++++++++++++++++++++
5 files changed, 217 insertions(+), 217 deletions(-)
diffs (464 lines):
diff -r 4eac6e02480e -r 3863cff6413f app-office/trytond/Manifest
--- a/app-office/trytond/Manifest Wed Jul 21 09:01:35 2021 +0200
+++ b/app-office/trytond/Manifest Wed Jul 21 09:02:23 2021 +0200
@@ -7,22 +7,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.10.tar.gz 760742 BLAKE2B
4829056221c878d43ba58d93590212e1d427e648946307e878bf69ae679da187cc9120802a93a1803666efbdbe32c841c890560051df6e6c188107f3309273a6
SHA512
7394fe1fb64906f5b6cff05f4375b85c2b7266baa913b691d56763dc1531e2a5b267b37683547e95b05a4b3fce384cbc20c6d70917107472bd65a2d016207f0a
-DIST trytond-6.0.3.tar.gz 850298 BLAKE2B
29f1036fd6da6c12beb3d82e53d2201cfc05178ef287e8957036ac787fa93f9901b7633bb43873d339872486fca470f2b2e602b95f0ccb7c043f8b5ca68a7605
SHA512
dc9430078719cef0d06928985d20c1fd267fcc8688a0c8ec3c0e0419ad47f39f1ce8a53d4615f787be06eadac9ea6f5a4f72b719f5d63c831d016c8ca4b90c7b
+DIST trytond-5.8.11.tar.gz 760825 BLAKE2B
41d7d30c41159141adecb4eedbe86f8caba5f62aaa9491dc8e066e9d48d56de9bcee7a6f320bfdbac12c5fa83fa5c8525cd2a3f21735b9012a66535a98d1c97b
SHA512
b0f6aecf2782346082b51e2585e1bc892a3f1a5fc815db7e6120ce324f845db46fc12397cdc1e89e040129c667460414acdd51ed5ac0517e86499460bfd74467
+DIST trytond-6.0.4.tar.gz 850302 BLAKE2B
b7373d2a738022988d497557184b05cb3b0224f64b0c79756c781335599a005d4c626046f2fc4d1369811e1d743cc147ee1f64d6d3e22fb677998e2a83494212
SHA512
3b8ba0398ab88e355c377c1cce98b2580fb58cb9b869943811d582b691149da084a1fe232eda6c13a1f6cc0bce05376dffe6b0a8ca6a5fc0d1ead85af9761be4
EBUILD trytond-5.6.17.ebuild 2947 BLAKE2B
2a87e9647cf44dec001bff3e9d4958dc482386585cad8f6777f4b3c00f2e95c6e9b4516b80b73f978476523ee2a2f1370d41a4799e4a9f19ac8efc34d1837f6f
SHA512
da80e55aa1bc4517caa280eff8a149f41c589719e2b989772dae25e606dd40971f0514324eaad78c5d0bf6e71b01fa6633911379a0b253c32d416c5a93eef240
-EBUILD trytond-5.8.10.ebuild 2947 BLAKE2B
3773608460c387ffa4af0b3fe7c200a3ed6264c5787cc3c7919b001dae7352c6120ec989928e15391fa58803451ca6a08c3338fc94fc0d7fefc494ae70f4b81e
SHA512
0e7cb6accf63d559673785e7b80ec54c7c5f175d6c4f2f375a03f8116d578ccf57dfcd1263ae3330c3f2c6745b1d23c2a26e712bca0da0134f4433732c229460
-EBUILD trytond-6.0.3.ebuild 2999 BLAKE2B
ec2e667e375aafd3622c30826494f1afbde8daa325783d04f219acdab6b9a44511c8f4f3b0920cd20774c72fbf164813d1395c42c656cbb7334b020d9a4b2826
SHA512
0b0b4c60f8cdba773b38c06601927f2eab99b76143e2f8088a3059c886eaba946cd02c87e921c1bf2cc018d2f170bcff4bec525a5ba309559870502424a6aa3a
+EBUILD trytond-5.8.11.ebuild 2947 BLAKE2B
3773608460c387ffa4af0b3fe7c200a3ed6264c5787cc3c7919b001dae7352c6120ec989928e15391fa58803451ca6a08c3338fc94fc0d7fefc494ae70f4b81e
SHA512
0e7cb6accf63d559673785e7b80ec54c7c5f175d6c4f2f375a03f8116d578ccf57dfcd1263ae3330c3f2c6745b1d23c2a26e712bca0da0134f4433732c229460
+EBUILD trytond-6.0.4.ebuild 2999 BLAKE2B
ec2e667e375aafd3622c30826494f1afbde8daa325783d04f219acdab6b9a44511c8f4f3b0920cd20774c72fbf164813d1395c42c656cbb7334b020d9a4b2826
SHA512
0b0b4c60f8cdba773b38c06601927f2eab99b76143e2f8088a3059c886eaba946cd02c87e921c1bf2cc018d2f170bcff4bec525a5ba309559870502424a6aa3a
MISC ChangeLog 22532 BLAKE2B
391afdd0a9c008f8d3ab552eec64ffcd171c4df73dd3aefbc4b7834bb2f6ea3edab7821405435f2a9e416563fad3e0a3d75f653872f7244b4768537a544611b4
SHA512
f7edb623ed4a20b48ba8e81ee6f0c14942da036b9d37ab5be85ee1aac64e2968f65b4cc1d1c4c9a9c1219ddb020d53ef5ef115cc6acc32fce7ab26ab8a4efb4d
MISC metadata.xml 669 BLAKE2B
3409b4a9eecca9be78e9c0064ba8172a737b6dabcc75b4888ac8a12c0d239535299769802f1c5a4a96fc63fd346d015536020aa8798c4faf5e5ba565a614e8d5
SHA512
226319315274dedf45092e9923a652f9c31a0c8fe96fc800278d2cac57aed1101bc56d8f7ca959c7d098074f22926cb52035685182fff2aca33de3d8b7e2c50e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQEzBAEBCAAdFiEEdP/VdIYNMe45RAljV09u/05HdRcFAmDeOcEACgkQV09u/05H
-dRfSUAf9GKwIJpURK71YEoI3600+D5xjbUHwGlZqVd9LkoPxCEg53G6ih8Q6OPLE
-pg3Ulzrq3Wd9RZJ1OEkl/ZRE5f6LNwWPWCQOb/pgGlXpk/GZEXc2virQC50Puqrv
-cYv4IYtIq+BPUSNM4yeXSQjox067qspaMu2WJMA+xdKAW1M60n/p6WYfFQINl1Gv
-eO+/z+RO50il4lU83BjhdA+MFYsXXxkYxZXCLp35aYov/kDoHgolyKZZ3+nD+lK3
-6RSstsCwf4Ij8+UnLiis3bRzV1IHgkOXt3gr/SNXFTUsqxKXI9yiBhq9Si7c0nuW
-17ebOKhcuqjn6Hf9wYgStZP588OSIA==
-=Nr1q
+iQEzBAEBCAAdFiEEdP/VdIYNMe45RAljV09u/05HdRcFAmD3xn4ACgkQV09u/05H
+dRfPuwgAnEloGGMPRe9QJgS2Gtyq3Aco+rvkuUX3pndC+DsauaIIppefIQQfdrti
+GjESAOnqGGtYm6+ykaNVFgnPjHH5rWQTH6CrbeEkpJ5WbRpRcyQqZo0AA4pyNlQD
+S+WUOyyYQcsb2NxrKh4+51dJNO0CGW9RMZAo2zoqwW/uzygzGff6zNqDMIx+GYNF
+P0aE/ZAJCOd/0kwIJYgS7DGRS74J4nSVBxI5PlSnwTK3pmjQA2BFT5keMqMiVTNI
+LTlZhaRkNhVCdWt8HErdoZPCqzCE39S3u4BVGlGLICga0HeO2HWrk84tKv1vwohb
+Ox8XW5z7SbLYHYLIiXzjS+C1gUD5bQ==
+=wWtG
-----END PGP SIGNATURE-----
diff -r 4eac6e02480e -r 3863cff6413f app-office/trytond/trytond-5.8.10.ebuild
--- a/app-office/trytond/trytond-5.8.10.ebuild Wed Jul 21 09:01:35 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 4eac6e02480e -r 3863cff6413f app-office/trytond/trytond-5.8.11.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-5.8.11.ebuild Wed Jul 21 09:02:23 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 4eac6e02480e -r 3863cff6413f app-office/trytond/trytond-6.0.3.ebuild
--- a/app-office/trytond/trytond-6.0.3.ebuild Wed Jul 21 09:01:35 2021 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +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[$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 4eac6e02480e -r 3863cff6413f app-office/trytond/trytond-6.0.4.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-6.0.4.ebuild Wed Jul 21 09:02:23 2021 +0200
@@ -0,0 +1,103 @@
+# 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[$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
+}