changeset 8159e03ee4c9 in tryton-overlay:default details: https://hg.tryton.org/tryton-overlay?cmd=changeset;node=8159e03ee4c9 description: app-office/trytond: Versions bump
Signed-off-by: Cédric Krier <c...@gentoo.org> (Portage version: 2.3.51/hg/Linux x86_64, signed Manifest commit with key 0xF83F682D21AEB39F) diffstat: app-office/trytond/Manifest | 28 ++++---- app-office/trytond/trytond-4.2.18.ebuild | 99 ------------------------------ app-office/trytond/trytond-4.2.19.ebuild | 99 ++++++++++++++++++++++++++++++ app-office/trytond/trytond-4.4.16.ebuild | 99 ------------------------------ app-office/trytond/trytond-4.4.17.ebuild | 99 ++++++++++++++++++++++++++++++ app-office/trytond/trytond-4.6.11.ebuild | 100 ------------------------------- app-office/trytond/trytond-4.6.12.ebuild | 100 +++++++++++++++++++++++++++++++ app-office/trytond/trytond-4.8.7.ebuild | 100 ------------------------------- app-office/trytond/trytond-4.8.8.ebuild | 100 +++++++++++++++++++++++++++++++ app-office/trytond/trytond-5.0.3.ebuild | 100 ------------------------------- app-office/trytond/trytond-5.0.4.ebuild | 100 +++++++++++++++++++++++++++++++ 11 files changed, 512 insertions(+), 512 deletions(-) diffs (1080 lines): diff -r 7828736d9218 -r 8159e03ee4c9 app-office/trytond/Manifest --- a/app-office/trytond/Manifest Tue Jan 22 22:45:46 2019 +0100 +++ b/app-office/trytond/Manifest Tue Jan 22 22:47:42 2019 +0100 @@ -7,26 +7,26 @@ AUX trytond-init.d-2 799 BLAKE2B 78dcf251feb3e9f04ba5014359c8da069cc54e14a626f6d9e03306008a30e4e412354c409ad7bb8beb47dfa65e1cc9eb12ab9459ea56f47e2994b25f113297c0 SHA512 1c6f1aa4fa8ad1da7e88e2ed5c53646802747c3ea1b4108ec51b400214eb7dd0a586548fa76d864be0087d24c1b9913343cba28339323e7a1a7fa370a8bce1c6 AUX trytond-worker-init.d 827 BLAKE2B e87b93697abbbf1be85bfce382ffafe67fa951cd60cab530f64854485fa3d729524936356ec9dc9e2844addb3f92e04f73168e1f977003e1ea59e20126706fa1 SHA512 4d49e4b27d089462c86ecad6a7b9ba2143acbdeb60f2287305dedc8c9f8843487a8ab870e9dd9f883f4582949d4672a470d0f2498618aec54feee4db4c4d256b DIST trytond-4.0.20.tar.gz 610190 BLAKE2B 42cece9cca9ad710d5952bc4df6fd45bf7b5a192ebcb5b5c3346323da4903a798c61792e0776c2363be306fd17c9def77467465efa86a024f258af71b4d6a5d6 SHA512 f3814af8407810ff8c6e54fb885728b4f48e09ffde634f61d42911cf01872619483f0692ca93f093e0bc61c180a724f24fed45eabd7e1c166ac4aee7ea024d32 -DIST trytond-4.2.18.tar.gz 587542 BLAKE2B 70e40c215819fa081ede8cf3ff2906553c66716bd19233f0109b6de14c0b48c32adf7cbc29a1bfaf14376f02612f7379b3519e07b3c458b073e0269a18bfd8c1 SHA512 a88740696a0b2c3b6375ea045447a7f0a837809e63b83e3a5baeacb242ac6af413977b329fdce3dc071fc484d74e4cbbfe55f376d793c72cf16bfd9d2f96e373 -DIST trytond-4.4.16.tar.gz 602091 BLAKE2B 405d29f899fb75cf15b78964a1852dd99d76c776f7039b2ead2d529db77ad73e5b23f346f02db983537817be8f2f07d3371b02cb6c633398214d36c87b0ec976 SHA512 577bae54a98f29e9c266b89fa5a279aed05673335290ee032dc4024a80495628d11f86773a5feb0b0c742a3aab914b91dc26a8d8dbc5f93ff39a0e3bc6d9a3bb -DIST trytond-4.6.11.tar.gz 610174 BLAKE2B 0a16578146c367fe7b140f0b5832b24eb8309c35f8e56845de697beaeaeefa70a7bd9a976f956497d75072cefea01b19a621b09554cb90f4359f44786177d8c6 SHA512 1efbd181c78b5fa3b7e8e0a278f3aa1c377a54d90f75bc57d397b7f614e027d1ebef7235ff253305113f42fd9d74123697e4edda3cc4b7c35ed636c6755807e4 -DIST trytond-4.8.7.tar.gz 653226 BLAKE2B 79361ca3bffae7aa1ff58fb06fda5dbdf56307c9003845251a239a9db1104d960a7396375900cff4598d9ddbde0e408a084deab420c41e6808d52a0e81b86b28 SHA512 4683ede15738684473c736289437982bfea5ea1e92d78dd09c6964921242c1bce1ccaec050fc5d630986f64d0de2e68597422cbc6f7ec20867e991f1f0134ffb -DIST trytond-5.0.3.tar.gz 647311 BLAKE2B 2627139476d4b033d7d27fc5465fc1e742b8e89064dfeb6f345aa328216c757a8f30569991ee3f7a24cda53dec9c83ab9a8aaeb2badf57e0f488af2ae37a3528 SHA512 5bc9d2f78d3ea0ec6c462c3a4ac58c8cdac5301531cbc5343ffa9d9a20ba089696828ececb1368d515234491fc9a062275447114ecc64c2b646dce3a961213c8 +DIST trytond-4.2.19.tar.gz 587625 BLAKE2B 451864ce7e4a68db95d4e3ba1e4521df5dce305d0a496ca3be2169d653c58897a3dec534397c02eebfeef74888ec179699646057b44b344c0fc990f568518bd3 SHA512 167588b089696bf301fdd9c43cd7800264782237d5fdc081a47b5b22efc802f2f4c5f8f1e98f8755f26a74bd56b76d3e70a57b72800210bff96a575f9bd78878 +DIST trytond-4.4.17.tar.gz 602217 BLAKE2B 2718405e122259895b49cecc114b61344c0d8caaec7b787e4c64705837f48c6946142b6f01ee0f359ae15669f670bf1c46751841e318ccd7d07a6ea485048711 SHA512 a0f7bc3967aaa7a38c0e9140bd60b35a540572001c4b71920cb084ed8553afe3112412dd15e1f701583be5a9bf7da061258247fe0a97086078559c4a4a7f1089 +DIST trytond-4.6.12.tar.gz 610302 BLAKE2B 81a0468edf3e146ce7dea9c61684f82ace021d4662b3db8cb04be9ece65f1985af7a85991bfe8db84c53209c30b0b55157e26d05c91e9417c6962660e993c233 SHA512 fcfaff2199dbf3533bec16140d14a8237e2f6bb9b48ea500b4deca11e35c017d17e60cd973ac4c1e813d230986ac83d26787c9e271fbfc2ac082f6c64f417ff1 +DIST trytond-4.8.8.tar.gz 653312 BLAKE2B f86fb44a89e6011d9a0f354e4a655295e5f648192ce46ca704abc0e2d442a3f51ca29be8599f9da34c7392212cc0274994eafa756afd4bc344e99b8643e95da1 SHA512 702ab11715de683e427518875820130aa15dbe78e419fb09e4f6f7103df6883a380feffb2798a8b91944f42bfb832ebeec995e32b1829164679a700b263b91bc +DIST trytond-5.0.4.tar.gz 647526 BLAKE2B 4f74d791edd62c0c6840347925bccd0c61dabd007399505751a8f604020dfce8031961095884839b2314038139ae342f5b22b68f292e2a907062202c0068707a SHA512 094d2bc025646030fafb46a7d3a31ea4caac014c0719a046db3dd28a5271b2eca6e80b66ab62b5da7bce1d722f493b5c8da7174cd88035d8cef4827dd4c64b62 EBUILD trytond-4.0.20.ebuild 2536 BLAKE2B 42533ca7b40a2b833c7b517afde06a70ffc5709c34076cf8980e7da6e4f397970e896fa98bd8b56533442412a6874d51102e94bbb945c4404a0c1acb16856b9c SHA512 a453225ac0f5022462dde387a81a4420e7a1e0310f5bca04558b76f56f737c845d1097794eb7ee4a790c30f00f4392e37b3ff28c0c8c79ccbe299143f043aa80 -EBUILD trytond-4.2.18.ebuild 2491 BLAKE2B 26efe20748dd51d3748a434432a0b14a8ce5a1cbbec8749bf6ca511dfa06c763861e121966f8817063c40244ffe1205c51a72e819cf5d7e4156fa4b2fc443b1b SHA512 880b7a1939a31d967c2726f69c90ea65286159fe9a709da06302c82931ff12ac0d28628a0342bb393e49b00b2b5d6262064e029f49ac8e2982a2173cdafda383 -EBUILD trytond-4.4.16.ebuild 2505 BLAKE2B a05386dd2b5d14fff8c8495e9c3d5d44543cf5590002fbda56130ff90ba3ecfc0e7f5633427d908c4d115a137cb550750c8f49169ff9e2fcfa6debe9407c698f SHA512 ba20fdc61891ed40d53641316a0f74dd5c6fa4dfd657b7086f8b901eeb3b0536cfa28aedcf4a22f29b8124e7c7afb2442208a746504c95ac6ff94eda8ad530ad -EBUILD trytond-4.6.11.ebuild 2558 BLAKE2B 55c1b4ad7f71d6f1230517a2bc79576325d09d49bb33e1707b78a4bc1129240dbfd49fefcb9b04e50028cc8bdfcc3d4e990a7d068869c2749878be05b0720285 SHA512 06d661bb34e55f9ccc66d09699775600ec274fe0d722c8a0acecf6a18e1a4466e8ed1ed95ed0dc65e381f27d3d221a179370210c1dbd39e1e0e1eb885cb74e0a -EBUILD trytond-4.8.7.ebuild 2543 BLAKE2B 24a1f3144b16b9597907cd5bb139e43e4f6cbb6acd89d53ad880dad470c06df56565629af047f06153504da0f7b62336215f60175b194488f55cb0e1fd58e111 SHA512 c1a32fc7574311b372431d925e8dedf3b6d9fa5a47dac0652134a42ffd858104526dfcfde830c6d1b13eaed6520dc1ccfe42caa2fa7c8d0e985f64bb981a7e20 -EBUILD trytond-5.0.3.ebuild 2585 BLAKE2B ba7dbb3d0686bdd3dc1953238dd871e96142dd5cdebf5aa727ca28e2870bb46ce10683a2f543b93c1ecb16f8a16f7ad1324f93c67138d20480b8c1107b74d75d SHA512 0cce0881b1cc1ff929d1028b158b762dee8a9fbfc74bd3bcbb9f7b5c78945f52006d3cc72e51819a9069f0f72bb32233a2637826f361d1f4b8fb2c821aadf072 +EBUILD trytond-4.2.19.ebuild 2491 BLAKE2B 26efe20748dd51d3748a434432a0b14a8ce5a1cbbec8749bf6ca511dfa06c763861e121966f8817063c40244ffe1205c51a72e819cf5d7e4156fa4b2fc443b1b SHA512 880b7a1939a31d967c2726f69c90ea65286159fe9a709da06302c82931ff12ac0d28628a0342bb393e49b00b2b5d6262064e029f49ac8e2982a2173cdafda383 +EBUILD trytond-4.4.17.ebuild 2505 BLAKE2B a05386dd2b5d14fff8c8495e9c3d5d44543cf5590002fbda56130ff90ba3ecfc0e7f5633427d908c4d115a137cb550750c8f49169ff9e2fcfa6debe9407c698f SHA512 ba20fdc61891ed40d53641316a0f74dd5c6fa4dfd657b7086f8b901eeb3b0536cfa28aedcf4a22f29b8124e7c7afb2442208a746504c95ac6ff94eda8ad530ad +EBUILD trytond-4.6.12.ebuild 2558 BLAKE2B 55c1b4ad7f71d6f1230517a2bc79576325d09d49bb33e1707b78a4bc1129240dbfd49fefcb9b04e50028cc8bdfcc3d4e990a7d068869c2749878be05b0720285 SHA512 06d661bb34e55f9ccc66d09699775600ec274fe0d722c8a0acecf6a18e1a4466e8ed1ed95ed0dc65e381f27d3d221a179370210c1dbd39e1e0e1eb885cb74e0a +EBUILD trytond-4.8.8.ebuild 2543 BLAKE2B 24a1f3144b16b9597907cd5bb139e43e4f6cbb6acd89d53ad880dad470c06df56565629af047f06153504da0f7b62336215f60175b194488f55cb0e1fd58e111 SHA512 c1a32fc7574311b372431d925e8dedf3b6d9fa5a47dac0652134a42ffd858104526dfcfde830c6d1b13eaed6520dc1ccfe42caa2fa7c8d0e985f64bb981a7e20 +EBUILD trytond-5.0.4.ebuild 2585 BLAKE2B ba7dbb3d0686bdd3dc1953238dd871e96142dd5cdebf5aa727ca28e2870bb46ce10683a2f543b93c1ecb16f8a16f7ad1324f93c67138d20480b8c1107b74d75d SHA512 0cce0881b1cc1ff929d1028b158b762dee8a9fbfc74bd3bcbb9f7b5c78945f52006d3cc72e51819a9069f0f72bb32233a2637826f361d1f4b8fb2c821aadf072 MISC ChangeLog 22532 BLAKE2B 391afdd0a9c008f8d3ab552eec64ffcd171c4df73dd3aefbc4b7834bb2f6ea3edab7821405435f2a9e416563fad3e0a3d75f653872f7244b4768537a544611b4 SHA512 f7edb623ed4a20b48ba8e81ee6f0c14942da036b9d37ab5be85ee1aac64e2968f65b4cc1d1c4c9a9c1219ddb020d53ef5ef115cc6acc32fce7ab26ab8a4efb4d MISC metadata.xml 603 BLAKE2B df4d4ebfbe3f0bd07ccb570c32694e2785395c8e2dfd5cde3500310a773e21a81139f1c337837b2c77438bce7a1562847f15cdd7f90c54cfb1de0397b9eb1a9e SHA512 a1aa49ab0e0438ad6b3fb967b72db7077678e4812fcf1d2ce9112f3194fbc302dfee3c5f6c8fcbdf82a15711b976d09453b70b9b95beff43e7b5a89667b54c63 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iNUEAREIAH0WIQRQ7afp9Q3Eoe2/b7/4P2gtIa6znwUCXDENqF8UgAAAAAAuAChp +iNUEAREIAH0WIQRQ7afp9Q3Eoe2/b7/4P2gtIa6znwUCXEePfl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0NTBF REE3RTlGNTBEQzRBMUVEQkY2RkJGRjgzRjY4MkQyMUFFQjM5RgAKCRD4P2gtIa6z -n0WsAQCSrkti0gS1aF4yc1TxpkNdNzzbI5pHHNmty+BE0902QAD/W8chkP++6w6x -P9TkLLK9h2EAtal5A7fmXY3xFskeCTk= -=8U1C +n+RiAQCSrP1pr6t1yTYURs2hERFDNnGkKO6vDcoEyAp3Y+oQeQD/cq/YeTGGoTM2 +p04jWCYgE2tFZ4L9dmBtuTGLAADUllA= +=eosu -----END PGP SIGNATURE----- diff -r 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.2.18.ebuild --- a/app-office/trytond/trytond-4.2.18.ebuild Tue Jan 22 22:45:46 2019 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 pypy ) - -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 unoconv levenshtein bcrypt test" - -RDEPEND="postgres? ( >=dev-python/psycopg-2 ) - mysql? ( dev-python/mysql-python ) - sqlite? ( dev-lang/python:*[sqlite] ) - >=dev-python/lxml-2.0 - >=dev-python/relatorio-0.2 - dev-python/genshi - dev-python/python-dateutil - dev-python/polib - >=dev-python/python-sql-0.4 - dev-python/werkzeug - dev-python/wrapt - unoconv? ( app-office/unoconv ) - graphviz? ( dev-python/pydot ) - levenshtein? ( dev-python/python-levenshtein ) - bcrypt? ( dev-python/bcrypt )" -DEPEND="${RDEPEND} - dev-python/setuptools - doc? ( >=dev-python/sphinx-0.3 ) - test? ( - dev-lang/python:*[sqlite] - dev-python/mock - )" - -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 - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron - keepdir /var/log/trytond - keepdir /var/lib/trytond - fperms 770 /var/lib/trytond - - dodoc CHANGELOG COPYRIGHT README - if use doc; then - dohtml -r doc/_build/html/* - fi -} - -python_test() { - DB_NAME=":memory:" esetup.py test || die -} - -pkg_preinst() { - enewgroup trytond - enewuser trytond -1 -1 -1 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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.2.19.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-office/trytond/trytond-4.2.19.ebuild Tue Jan 22 22:47:42 2019 +0100 @@ -0,0 +1,99 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 pypy ) + +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 unoconv levenshtein bcrypt test" + +RDEPEND="postgres? ( >=dev-python/psycopg-2 ) + mysql? ( dev-python/mysql-python ) + sqlite? ( dev-lang/python:*[sqlite] ) + >=dev-python/lxml-2.0 + >=dev-python/relatorio-0.2 + dev-python/genshi + dev-python/python-dateutil + dev-python/polib + >=dev-python/python-sql-0.4 + dev-python/werkzeug + dev-python/wrapt + unoconv? ( app-office/unoconv ) + graphviz? ( dev-python/pydot ) + levenshtein? ( dev-python/python-levenshtein ) + bcrypt? ( dev-python/bcrypt )" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( >=dev-python/sphinx-0.3 ) + test? ( + dev-lang/python:*[sqlite] + dev-python/mock + )" + +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 + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron + keepdir /var/log/trytond + keepdir /var/lib/trytond + fperms 770 /var/lib/trytond + + dodoc CHANGELOG COPYRIGHT README + if use doc; then + dohtml -r doc/_build/html/* + fi +} + +python_test() { + DB_NAME=":memory:" esetup.py test || die +} + +pkg_preinst() { + enewgroup trytond + enewuser trytond -1 -1 -1 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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.4.16.ebuild --- a/app-office/trytond/trytond-4.4.16.ebuild Tue Jan 22 22:45:46 2019 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 pypy ) - -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 unoconv levenshtein bcrypt test" - -RDEPEND="postgres? ( >=dev-python/psycopg-2 ) - mysql? ( dev-python/mysql-python ) - sqlite? ( dev-lang/python:*[sqlite] ) - >=dev-python/lxml-2.0 - >=dev-python/relatorio-0.2 - dev-python/genshi - dev-python/python-dateutil - dev-python/polib - >=dev-python/python-sql-0.4 - dev-python/werkzeug - dev-python/wrapt - unoconv? ( app-office/unoconv ) - graphviz? ( dev-python/pydot ) - levenshtein? ( dev-python/python-levenshtein ) - bcrypt? ( dev-python/bcrypt )" -DEPEND="${RDEPEND} - dev-python/setuptools - doc? ( >=dev-python/sphinx-0.3 ) - test? ( - dev-lang/python:*[sqlite] - dev-python/mock - )" - -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 - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron - keepdir /var/log/trytond - keepdir /var/lib/trytond - fperms 770 /var/lib/trytond - - dodoc CHANGELOG COPYRIGHT README - if use doc; then - dohtml -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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.4.17.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-office/trytond/trytond-4.4.17.ebuild Tue Jan 22 22:47:42 2019 +0100 @@ -0,0 +1,99 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 pypy ) + +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 unoconv levenshtein bcrypt test" + +RDEPEND="postgres? ( >=dev-python/psycopg-2 ) + mysql? ( dev-python/mysql-python ) + sqlite? ( dev-lang/python:*[sqlite] ) + >=dev-python/lxml-2.0 + >=dev-python/relatorio-0.2 + dev-python/genshi + dev-python/python-dateutil + dev-python/polib + >=dev-python/python-sql-0.4 + dev-python/werkzeug + dev-python/wrapt + unoconv? ( app-office/unoconv ) + graphviz? ( dev-python/pydot ) + levenshtein? ( dev-python/python-levenshtein ) + bcrypt? ( dev-python/bcrypt )" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( >=dev-python/sphinx-0.3 ) + test? ( + dev-lang/python:*[sqlite] + dev-python/mock + )" + +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 + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron + keepdir /var/log/trytond + keepdir /var/lib/trytond + fperms 770 /var/lib/trytond + + dodoc CHANGELOG COPYRIGHT README + if use doc; then + dohtml -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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.6.11.ebuild --- a/app-office/trytond/trytond-4.6.11.ebuild Tue Jan 22 22:45:46 2019 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,100 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 pypy ) - -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 unoconv levenshtein bcrypt html2text test" - -RDEPEND="postgres? ( >=dev-python/psycopg-2 ) - mysql? ( dev-python/mysql-python ) - sqlite? ( dev-lang/python:*[sqlite] ) - >=dev-python/lxml-2.0 - >=dev-python/relatorio-0.7[fodt] - dev-python/genshi - dev-python/python-dateutil - dev-python/polib - >=dev-python/python-sql-0.4 - dev-python/werkzeug - dev-python/wrapt - unoconv? ( app-office/unoconv ) - graphviz? ( dev-python/pydot ) - levenshtein? ( dev-python/python-levenshtein ) - bcrypt? ( dev-python/bcrypt ) - html2text? ( dev-python/html2text )" -DEPEND="${RDEPEND} - dev-python/setuptools - doc? ( >=dev-python/sphinx-0.3 ) - test? ( - dev-lang/python:*[sqlite] - dev-python/mock - )" - -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 - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron - keepdir /var/log/trytond - keepdir /var/lib/trytond - fperms 770 /var/lib/trytond - - dodoc CHANGELOG COPYRIGHT README - if use doc; then - dohtml -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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.6.12.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-office/trytond/trytond-4.6.12.ebuild Tue Jan 22 22:47:42 2019 +0100 @@ -0,0 +1,100 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 pypy ) + +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 unoconv levenshtein bcrypt html2text test" + +RDEPEND="postgres? ( >=dev-python/psycopg-2 ) + mysql? ( dev-python/mysql-python ) + sqlite? ( dev-lang/python:*[sqlite] ) + >=dev-python/lxml-2.0 + >=dev-python/relatorio-0.7[fodt] + dev-python/genshi + dev-python/python-dateutil + dev-python/polib + >=dev-python/python-sql-0.4 + dev-python/werkzeug + dev-python/wrapt + unoconv? ( app-office/unoconv ) + graphviz? ( dev-python/pydot ) + levenshtein? ( dev-python/python-levenshtein ) + bcrypt? ( dev-python/bcrypt ) + html2text? ( dev-python/html2text )" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( >=dev-python/sphinx-0.3 ) + test? ( + dev-lang/python:*[sqlite] + dev-python/mock + )" + +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 + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron + keepdir /var/log/trytond + keepdir /var/lib/trytond + fperms 770 /var/lib/trytond + + dodoc CHANGELOG COPYRIGHT README + if use doc; then + dohtml -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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.8.7.ebuild --- a/app-office/trytond/trytond-4.8.7.ebuild Tue Jan 22 22:45:46 2019 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,100 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 pypy ) - -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 test" - -RDEPEND="postgres? ( >=dev-python/psycopg-2 ) - mysql? ( dev-python/mysql-python ) - sqlite? ( dev-lang/python:*[sqlite] ) - >=dev-python/lxml-2.0 - >=dev-python/relatorio-0.7[fodt] - dev-python/genshi - dev-python/python-dateutil - dev-python/polib - >=dev-python/python-sql-0.4 - dev-python/werkzeug - dev-python/wrapt - virtual/python-ipaddress - graphviz? ( dev-python/pydot ) - levenshtein? ( dev-python/python-levenshtein ) - bcrypt? ( dev-python/bcrypt ) - html2text? ( dev-python/html2text )" -DEPEND="${RDEPEND} - dev-python/setuptools - doc? ( >=dev-python/sphinx-0.3 ) - test? ( - dev-lang/python:*[sqlite] - dev-python/mock - )" - -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 - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond - newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron - keepdir /var/log/trytond - keepdir /var/lib/trytond - fperms 770 /var/lib/trytond - - dodoc CHANGELOG COPYRIGHT README - if use doc; then - dohtml -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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-4.8.8.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-office/trytond/trytond-4.8.8.ebuild Tue Jan 22 22:47:42 2019 +0100 @@ -0,0 +1,100 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 pypy ) + +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 test" + +RDEPEND="postgres? ( >=dev-python/psycopg-2 ) + mysql? ( dev-python/mysql-python ) + sqlite? ( dev-lang/python:*[sqlite] ) + >=dev-python/lxml-2.0 + >=dev-python/relatorio-0.7[fodt] + dev-python/genshi + dev-python/python-dateutil + dev-python/polib + >=dev-python/python-sql-0.4 + dev-python/werkzeug + dev-python/wrapt + virtual/python-ipaddress + graphviz? ( dev-python/pydot ) + levenshtein? ( dev-python/python-levenshtein ) + bcrypt? ( dev-python/bcrypt ) + html2text? ( dev-python/html2text )" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( >=dev-python/sphinx-0.3 ) + test? ( + dev-lang/python:*[sqlite] + dev-python/mock + )" + +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 + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond + newconfd "${FILESDIR}"/trytond-conf.d-2 trytond-cron + keepdir /var/log/trytond + keepdir /var/lib/trytond + fperms 770 /var/lib/trytond + + dodoc CHANGELOG COPYRIGHT README + if use doc; then + dohtml -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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-5.0.3.ebuild --- a/app-office/trytond/trytond-5.0.3.ebuild Tue Jan 22 22:45:46 2019 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,100 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} pypy3 ) - -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 test" - -RDEPEND="postgres? ( >=dev-python/psycopg-2 ) - sqlite? ( dev-lang/python:*[sqlite] ) - >=dev-python/lxml-2.0 - >=dev-python/relatorio-0.7[fodt] - dev-python/genshi - dev-python/python-dateutil - dev-python/polib - >=dev-python/python-sql-0.5 - dev-python/werkzeug - dev-python/wrapt - dev-python/passlib - graphviz? ( dev-python/pydot ) - levenshtein? ( dev-python/python-levenshtein ) - bcrypt? ( dev-python/bcrypt ) - html2text? ( dev-python/html2text )" -DEPEND="${RDEPEND} - dev-python/setuptools - 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 - if use doc; then - dohtml -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 7828736d9218 -r 8159e03ee4c9 app-office/trytond/trytond-5.0.4.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app-office/trytond/trytond-5.0.4.ebuild Tue Jan 22 22:47:42 2019 +0100 @@ -0,0 +1,100 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} pypy3 ) + +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 test" + +RDEPEND="postgres? ( >=dev-python/psycopg-2 ) + sqlite? ( dev-lang/python:*[sqlite] ) + >=dev-python/lxml-2.0 + >=dev-python/relatorio-0.7[fodt] + dev-python/genshi + dev-python/python-dateutil + dev-python/polib + >=dev-python/python-sql-0.5 + dev-python/werkzeug + dev-python/wrapt + dev-python/passlib + graphviz? ( dev-python/pydot ) + levenshtein? ( dev-python/python-levenshtein ) + bcrypt? ( dev-python/bcrypt ) + html2text? ( dev-python/html2text )" +DEPEND="${RDEPEND} + dev-python/setuptools + 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 + if use doc; then + dohtml -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 +}