changeset 065fd8ad18b0 in tryton-overlay:default
details: https://hg.tryton.org/tryton-overlay?cmd=changeset;node=065fd8ad18b0
description:
        app-office/trytond: Versions bump

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

 app-office/trytond/Manifest              |   25 ++++++-
 app-office/trytond/trytond-5.2.10.ebuild |  102 -------------------------------
 app-office/trytond/trytond-5.2.11.ebuild |  102 +++++++++++++++++++++++++++++++
 app-office/trytond/trytond-5.4.2.ebuild  |  102 -------------------------------
 app-office/trytond/trytond-5.4.3.ebuild  |  102 +++++++++++++++++++++++++++++++
 5 files changed, 225 insertions(+), 208 deletions(-)

diffs (462 lines):

diff -r 01fdf7521be9 -r 065fd8ad18b0 app-office/trytond/Manifest
--- a/app-office/trytond/Manifest       Sat Jan 11 00:02:51 2020 +0100
+++ b/app-office/trytond/Manifest       Sat Jan 11 00:17:39 2020 +0100
@@ -1,13 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
 AUX trytond-conf.d-2 183 BLAKE2B 
0be9580db18911823fffc694ca372fccb68d2cc2c1b80f6604f92ef3e94c9e29d94be505631dd9189abf466d5662b4a447977fcea0b522d0dec650d12504374a
 SHA512 
c3d21f8bfb53c6927d1e328baf314af3d71ac79203b62eae890475c3263917507700904b4c9c7029c6f59f399673900e4dc12720ad398797246d00326e125a67
 AUX trytond-cron-init.d-2 824 BLAKE2B 
6084a7c7d1ea12a6dbff3a774598d83761c60281560e6b4d8a057103c3d2aba31c36cebd314f2f10cd76c6ecdd302ab95d18d177739a266a91f4f8a55b642238
 SHA512 
7bbb6b5b9815778b49303186e5b9981539878cdaf5d9a0f10eb5cc5ee9c4afd107b9cbe75e3e0ddf3860c5b165a8b548e722a55a2eda45c08c8254a53f9c3723
 AUX trytond-init.d 538 BLAKE2B 
9e1abe67243c8828941f5b981208dc9874d65de52113421b13676026558a3cd95fdfd8f4ad47744c91b8d02c0b25def4bf00334a26f41edbc433fb6c7c9a825f
 SHA512 
a86febe62bb7921b2808b9896e67c7c9b20c3082ee324f1562146550681c64e443e4548fdae6b782f4b84060181331eebf8165d6ef9f37baca3556c2ee69438d
 AUX trytond-init.d-2 799 BLAKE2B 
78dcf251feb3e9f04ba5014359c8da069cc54e14a626f6d9e03306008a30e4e412354c409ad7bb8beb47dfa65e1cc9eb12ab9459ea56f47e2994b25f113297c0
 SHA512 
1c6f1aa4fa8ad1da7e88e2ed5c53646802747c3ea1b4108ec51b400214eb7dd0a586548fa76d864be0087d24c1b9913343cba28339323e7a1a7fa370a8bce1c6
 AUX trytond-worker-init.d 827 BLAKE2B 
e87b93697abbbf1be85bfce382ffafe67fa951cd60cab530f64854485fa3d729524936356ec9dc9e2844addb3f92e04f73168e1f977003e1ea59e20126706fa1
 SHA512 
4d49e4b27d089462c86ecad6a7b9ba2143acbdeb60f2287305dedc8c9f8843487a8ab870e9dd9f883f4582949d4672a470d0f2498618aec54feee4db4c4d256b
 DIST trytond-5.0.17.tar.gz 648946 BLAKE2B 
6478b4d10e31d54571baab8a532aba0bd1e40f6d81fdb58dc66ae337f9b6691b9b4b7ed9c7cd8cdec36d495738a6fcffcddda5224c15e0b17ba248cb55ce891d
 SHA512 
dfb73bbafc9f3dcf23cb970a51f2c3510e28d7d2720f8c83b1701d306afa99bdadea6693a4c127cce4e76af891f9bb362a3e66e89d3b4bf4d1f766e5d2f1d9b9
-DIST trytond-5.2.10.tar.gz 737352 BLAKE2B 
2a474f9b9efc0e7faf63f8768e3a5dff86d78b8eeaf281320e14e23a1f3807ff42baebb90431623e10c375938ad2a3aeb3445251c391e17aa57e39aec00a02d5
 SHA512 
56fe258c7c534f12bf427d72aa24a263c6ee03316af76943ac37d46aa8e1032fb21be5d552c10fcd2438e3934dc3a3e3d58ea757c4bf99f55e5a51fc1194b30a
-DIST trytond-5.4.2.tar.gz 686576 BLAKE2B 
b009960bfa847c359626b3da93302788560bb66932d4e99f3e28cc72f9353a220baf1b21e9383e509f2b4f8ec238c59329d5ac1a4591346fc18d7cb71f3b1da5
 SHA512 
9028a446293486d4c6ebb6a855ecf110ddaaa203c1057fd542dd7dd04e5f5278d53190860f4f256d78da912a661062c93dadf3d961e4e39eb50fd8555532476c
+DIST trytond-5.2.11.tar.gz 737463 BLAKE2B 
913987489a10717beab408ee23223f508780360b3b90b66c0d191109eb3a823c1d02892ab1f062d28b0b792289480eea2fb92a919ec40067a324a7e10afe3cd6
 SHA512 
87b754aca944571a87d3d8a01333c184214c59687bd370ef73a5a2a0ac06e256f973b99d70a9847281913514f9f6b4798e40acea95f96ccbd90a356b345e7c2f
+DIST trytond-5.4.3.tar.gz 686913 BLAKE2B 
aa08c0f81a17e67e36347c3c945655e82efd2aa023b728484881179b717e2f37c00ad15e7f5ecf36efb3039527e519e4e91a5003e22f70e9a42ab814178e8160
 SHA512 
06dcb0d33f4427e040f2857070b519f65f6272fc13c4996eef735318a37a1904935ff2b9a81e514cc066de2cbcca4d263aa31fe6032a34d3cf53e5d8d9071dc5
 EBUILD trytond-5.0.17.ebuild 2828 BLAKE2B 
28a75a18bfbbac66a963b8ebd7e9bd54a030bd74b1b6826c4cbb15b403026cc30bb8005220924fe56d7a2191a419606ac5aa326245783fe76b937266ced88276
 SHA512 
39f8fd2c0c703f5a59d0343a8eded88fa28780d66ca4a13a8392ed7bd831fc6b91d268efc82cf76afb263c0291fc3fbb22551b0230c74bef160db86308cab2f9
-EBUILD trytond-5.2.10.ebuild 2894 BLAKE2B 
008eeed0803ebba5444ee0fd0c8c15768f465ce0d1c69b24d9c9259da2d72768221ce5021f69d84a8e6a820226c7853d821487726dcc731ca718e73766f28daa
 SHA512 
c1c1019fe8dff7a1064384875386f63c09bc32b5d599a5b41ce470365b74bf9871ef1bfa427756bc789f352a09197c5e4e36320606e53982d0ba93d5c86cbfd9
-EBUILD trytond-5.4.2.ebuild 2910 BLAKE2B 
3a2af0106a56271b293d0239bfe727a71b43b0a60af51f7bfaa1aa6b76b8ea4e4c07a93b915f608820d732ab8ff5e7585858243f8c2d3678a6a68ade996690c9
 SHA512 
c702cdf678ba798193c7480b5fbe2e0d3323e3447de77a399751f8f55f9acdc03a6327537bbda14ccc72d50368a3636d4869f7977ca601e40b56238f0c278b5e
+EBUILD trytond-5.2.11.ebuild 2894 BLAKE2B 
19fe23fe8b733c6a0f60c364d8fc7a926f7cab00df915d5c34069861d23c4ca1404088bc25abb6ba6e5d191cab753e6857ec795436f359e025e133038b96ac89
 SHA512 
067db0bee9b65c4cd69af9c1030dffa2e3704e6fdd3c224972dbab2a0c986bc64c5e7bcd5f11879e0cd6375149424a12c90f7b19ce79e21591e18c80698303e6
+EBUILD trytond-5.4.3.ebuild 2910 BLAKE2B 
b38757e80930559302cef558abbb1453323f2aece1b05b71aa36d91149a6f2bb0b7c82308f267c8342808a4e1381224d07851f14d4cd89e5c07c2558da0f8b4b
 SHA512 
a9b6b27a2f5a6d4f9441b9b22b369128af687c071d7b5e5702d8e4d80a856674cd3310b55bddb70ddb25f2737b6ad70041e63c5c9b273c9d2bfc970231c5df5c
 MISC ChangeLog 22532 BLAKE2B 
391afdd0a9c008f8d3ab552eec64ffcd171c4df73dd3aefbc4b7834bb2f6ea3edab7821405435f2a9e416563fad3e0a3d75f653872f7244b4768537a544611b4
 SHA512 
f7edb623ed4a20b48ba8e81ee6f0c14942da036b9d37ab5be85ee1aac64e2968f65b4cc1d1c4c9a9c1219ddb020d53ef5ef115cc6acc32fce7ab26ab8a4efb4d
 MISC metadata.xml 540 BLAKE2B 
afe7ef9082e17b6c35bdf16c9197c04943284f6d67a2c41d04b3553b1f752a08a2b91bf8048e35937b9366592da1b061f3ec7acf825a487c73b076706b375690
 SHA512 
44afea10b9648eb17989de329dea2ab040b2b05c6d0e3159c5d1eb56b60e5810405f1a0693d371dc69971f40968231e3cf049a01da89d03c353217d1d0a1e56c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQGTBAEBCAB9FiEEdP/VdIYNMe45RAljV09u/05HdRcFAl4ZBhNfFIAAAAAALgAo
+aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDc0
+RkZENTc0ODYwRDMxRUUzOTQ0MDk2MzU3NEY2RUZGNEU0Nzc1MTcACgkQV09u/05H
+dRc1VggArXwoYJ8EVj6BHVia7ze+6+j5yZ4KjGxSslgDS2AWHr3Pp6WTfFP76at9
+FqAwPxIhmHTEVMN9pRTWPjiQEjThEzPPoLR4X2dNJN29t4b5DeuXeyEsKzsNvkhI
+WitAonQkH5H1K1qjNCW7uDjYFB2easTMvx2RSYutCGMBLbw67RMXj3v7CcI8M5w9
++rH7RA8yyna3WgaEnpNUG+h8SvCKu83fHfMI4tcdiben+0W9eS5xvS6PCNaUXH1+
+NeemlWIG5K15i3uUU0rWXxdpo4b9K92FEIGGSYr/KFb4UjtCsGtlp8VpsEE0z7/f
+xFybVlcFXkI+FlbQZQpsDL4wwI/gfw==
+=V/1N
+-----END PGP SIGNATURE-----
diff -r 01fdf7521be9 -r 065fd8ad18b0 app-office/trytond/trytond-5.2.10.ebuild
--- a/app-office/trytond/trytond-5.2.10.ebuild  Sat Jan 11 00:02:51 2020 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python{3_5,3_6} )
-
-inherit distutils-r1 user
-
-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="postgres? ( >=dev-python/psycopg-2[$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/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() {
-       enewgroup trytond
-       enewuser trytond -1 -1 /var/lib/trytond trytond
-
-       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 01fdf7521be9 -r 065fd8ad18b0 app-office/trytond/trytond-5.2.11.ebuild
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-5.2.11.ebuild  Sat Jan 11 00:17:39 2020 +0100
@@ -0,0 +1,102 @@
+# 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} )
+
+inherit distutils-r1 user
+
+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="postgres? ( >=dev-python/psycopg-2[$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/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() {
+       enewgroup trytond
+       enewuser trytond -1 -1 /var/lib/trytond trytond
+
+       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 01fdf7521be9 -r 065fd8ad18b0 app-office/trytond/trytond-5.4.2.ebuild
--- a/app-office/trytond/trytond-5.4.2.ebuild   Sat Jan 11 00:02:51 2020 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-# Copyright 1999-2019 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 user
-
-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="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() {
-       enewgroup trytond
-       enewuser trytond -1 -1 /var/lib/trytond trytond
-
-       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 01fdf7521be9 -r 065fd8ad18b0 app-office/trytond/trytond-5.4.3.ebuild
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/app-office/trytond/trytond-5.4.3.ebuild   Sat Jan 11 00:17:39 2020 +0100
@@ -0,0 +1,102 @@
+# 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 user
+
+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="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() {
+       enewgroup trytond
+       enewuser trytond -1 -1 /var/lib/trytond trytond
+
+       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