changeset 89456785090e in tryton-overlay:default
details: https://hg.tryton.org/tryton-overlay?cmd=changeset&node=89456785090e
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.12.ebuild | 102 ------------------------------
app-office/trytond/trytond-5.8.13.ebuild | 102 ++++++++++++++++++++++++++++++
app-office/trytond/trytond-6.0.6.ebuild | 104 -------------------------------
app-office/trytond/trytond-6.0.7.ebuild | 104 +++++++++++++++++++++++++++++++
5 files changed, 218 insertions(+), 218 deletions(-)
diffs (466 lines):
diff -r 17d85e6fa8b4 -r 89456785090e app-office/trytond/Manifest
--- a/app-office/trytond/Manifest Sat Sep 18 00:01:10 2021 +0200
+++ b/app-office/trytond/Manifest Sat Sep 18 00:01:56 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.12.tar.gz 760928 BLAKE2B
73c4f178b0b47bc9320e87530b2116098badebdeb9f4534289b49ff6bf739548095fa9894ef9e7a290ac4f3d7a8900b164db08a5b96e119c9ee978bae1cff9fb
SHA512
05185fbe53fbe64ea41f98cc0bc40c30e1c1c5295b10013e19d2f53c0a1ffcb0e7852e6a670ab036bf4f183d6042e3835d8bbd8a956c6701cd6bfccb80ff26e4
-DIST trytond-6.0.6.tar.gz 850723 BLAKE2B
fdaa9abe44e0dba65d2806a7f7691b82b1f3dbb0733b8470c621c5b5d62a96151556de2450b70af56b16a42a618cb6615d0150c6dba34b8d92936c3e33f047b1
SHA512
4061f66d0fed35482e499afc8c476f2ecbf6bc9d22647539f5effc028fbe63c49c4278fc741cab7cd5146b23d0af9f48e50eb181f15bd08268fe96eedf9faf98
+DIST trytond-5.8.13.tar.gz 761014 BLAKE2B
469a25e6670db472daa4f82afe70c01625cd907b39110417a484a789263705b8edc57941d7f492294c3cc42b1f3c4d4a3c1eea5663910a239de5ef45482422fa
SHA512
8eda287014b0bc0147ebc664498e8f13572e809e894b06846977c480288891e3370d3036524d69cd5d12126c7afe239094229b6dbfd5abf9b450addfcce29af6
+DIST trytond-6.0.7.tar.gz 850872 BLAKE2B
7dd83daea187f9663f4a6fd1c54de1d2ad060cf3d63210ced0875ac442cde68523a30fadb89dae7d4549ef58fa6d1bd894d8a8199c337d92875020ec17d6a6e0
SHA512
485f8be3c33f2384f8bb000e2164e5447534d78c8e2afb8390106bb7742affb1639cbba680f5c9db0951c10f0b136ac8e77564d00a56677fe87568855c44e296
EBUILD trytond-5.6.17.ebuild 2947 BLAKE2B
2a87e9647cf44dec001bff3e9d4958dc482386585cad8f6777f4b3c00f2e95c6e9b4516b80b73f978476523ee2a2f1370d41a4799e4a9f19ac8efc34d1837f6f
SHA512
da80e55aa1bc4517caa280eff8a149f41c589719e2b989772dae25e606dd40971f0514324eaad78c5d0bf6e71b01fa6633911379a0b253c32d416c5a93eef240
-EBUILD trytond-5.8.12.ebuild 2947 BLAKE2B
3773608460c387ffa4af0b3fe7c200a3ed6264c5787cc3c7919b001dae7352c6120ec989928e15391fa58803451ca6a08c3338fc94fc0d7fefc494ae70f4b81e
SHA512
0e7cb6accf63d559673785e7b80ec54c7c5f175d6c4f2f375a03f8116d578ccf57dfcd1263ae3330c3f2c6745b1d23c2a26e712bca0da0134f4433732c229460
-EBUILD trytond-6.0.6.ebuild 3053 BLAKE2B
70a0ffdb0d8f0b8374b48d8b0e65ab159ff6b056837ca91801c65f6a3d0956ed52e9da69de7c6347b1ee2c2dd8c8452ffa6e2ac4603616b2342c9efee79c54f7
SHA512
d14b5c0401ec92f2849f5d23b02a79856ae94864f27c7a119ae7ec62222d1a510550907b6c76ab836947ed0e48a01ac5d7d059632f7649b23a453601d5564913
+EBUILD trytond-5.8.13.ebuild 2947 BLAKE2B
3773608460c387ffa4af0b3fe7c200a3ed6264c5787cc3c7919b001dae7352c6120ec989928e15391fa58803451ca6a08c3338fc94fc0d7fefc494ae70f4b81e
SHA512
0e7cb6accf63d559673785e7b80ec54c7c5f175d6c4f2f375a03f8116d578ccf57dfcd1263ae3330c3f2c6745b1d23c2a26e712bca0da0134f4433732c229460
+EBUILD trytond-6.0.7.ebuild 3053 BLAKE2B
70a0ffdb0d8f0b8374b48d8b0e65ab159ff6b056837ca91801c65f6a3d0956ed52e9da69de7c6347b1ee2c2dd8c8452ffa6e2ac4603616b2342c9efee79c54f7
SHA512
d14b5c0401ec92f2849f5d23b02a79856ae94864f27c7a119ae7ec62222d1a510550907b6c76ab836947ed0e48a01ac5d7d059632f7649b23a453601d5564913
MISC ChangeLog 22532 BLAKE2B
391afdd0a9c008f8d3ab552eec64ffcd171c4df73dd3aefbc4b7834bb2f6ea3edab7821405435f2a9e416563fad3e0a3d75f653872f7244b4768537a544611b4
SHA512
f7edb623ed4a20b48ba8e81ee6f0c14942da036b9d37ab5be85ee1aac64e2968f65b4cc1d1c4c9a9c1219ddb020d53ef5ef115cc6acc32fce7ab26ab8a4efb4d
MISC metadata.xml 669 BLAKE2B
3409b4a9eecca9be78e9c0064ba8172a737b6dabcc75b4888ac8a12c0d239535299769802f1c5a4a96fc63fd346d015536020aa8798c4faf5e5ba565a614e8d5
SHA512
226319315274dedf45092e9923a652f9c31a0c8fe96fc800278d2cac57aed1101bc56d8f7ca959c7d098074f22926cb52035685182fff2aca33de3d8b7e2c50e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQEzBAEBCAAdFiEEdP/VdIYNMe45RAljV09u/05HdRcFAmEyJMYACgkQV09u/05H
-dRfIGwf/XlnMcqF7Jb69jNzW9MOkIgfDVZDGKJasHV1BjZFK+LXar2Gvvk9xUCkB
-Gyp8SqhMKNttkx53PhukFy7J9IywrGJHNphYXESQhyX7O6roV9he8mLG5aWEmK4A
-tReEEunz6Lhe+gSnRiVW1kpUJWeQWf5gr+47hjqt/NHv1kTTydt29CVbxtEbClcV
-PJxGhZmLqV7DJGDyVGzNNqaz/MBk6LzGTuGvtgzlPwcaC6d1otuEc5GX5zI+5sNs
-7aORha+jyIAYww3VsEBpSuHZPfdVlwyhNbZiIT+AiQYVccjlaPK570TIwtYbHNH2
-ihFgt/C1yqyZcoQHNF3J8U5BZfCs5Q==
-=42Tp
+iQEzBAEBCAAdFiEEdP/VdIYNMe45RAljV09u/05HdRcFAmFFEFQACgkQV09u/05H
+dRe6hAf/epgWXq9nmPUC1CvPwS3OYjhVx/IfsjMzrBNtIU8mBguezKq7zjzqF0qY
+PR17EYiXIny5HfM+CAJ5A4GTVaiquN1WNPUsnvW8itOxQTvttU/PmQ+gobN/leiJ
+myPYGX8Ir1SrsP4Gft9O/KoRJGLcZ6O3rR9rAUVy8wRD2ks9CqJmZT6A+2oAwQl+
+9w+xiGfLHQ1EXUPLFflq0CUmUmrPAeUAQjJe/C4jbmqDgiFRSTWGcdbVjmtiJ80Y
+PXzRaW0JH5HjmEYW9UgK2NcaLmazXA5qziWposUA9QCFXUpDytB4kzP4Y3lsouFK
+wMatBgq/Gr40jrMdtcBFUzUHl0TKOQ==
+=3Dre
-----END PGP SIGNATURE-----
diff -r 17d85e6fa8b4 -r 89456785090e app-office/trytond/trytond-5.8.12.ebuild
--- a/app-office/trytond/trytond-5.8.12.ebuild Sat Sep 18 00:01:10 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 17d85e6fa8b4 -r 89456785090e app-office/trytond/trytond-5.8.13.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-5.8.13.ebuild Sat Sep 18 00:01:56 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 17d85e6fa8b4 -r 89456785090e app-office/trytond/trytond-6.0.6.ebuild
--- a/app-office/trytond/trytond-6.0.6.ebuild Sat Sep 18 00:01:10 2021 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,104 +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]
- )"
-
-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 17d85e6fa8b4 -r 89456785090e app-office/trytond/trytond-6.0.7.ebuild
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-6.0.7.ebuild Sat Sep 18 00:01:56 2021 +0200
@@ -0,0 +1,104 @@
+# 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]
+ )"
+
+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
+}