From 0d95fe928ce2cdd93df9ec5ff52e7bd11df5854f Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Fri, 25 Oct 2019 00:23:37 +0200 Subject: [PATCH] update homeassistant-0.101.0_beta1 --- app-misc/homeassistant/Manifest | 2 + .../homeassistant-0.101.0_beta1.ebuild | 283 ++++++++++++++++++ 2 files changed, 285 insertions(+) create mode 100644 app-misc/homeassistant/homeassistant-0.101.0_beta1.ebuild diff --git a/app-misc/homeassistant/Manifest b/app-misc/homeassistant/Manifest index 7f4aafe48..3692435e1 100644 --- a/app-misc/homeassistant/Manifest +++ b/app-misc/homeassistant/Manifest @@ -13,6 +13,7 @@ DIST homeassistant-0.100.1.tar.gz 4568803 BLAKE2B 1827d26112c11d9c59930dbbf8f1ba DIST homeassistant-0.100.2.tar.gz 4569079 BLAKE2B 761a7e893a0b4818beacb11569d3e3ce287eb1b9f2b789ef6c61b0a3ed44810cfb05900efec8496c476e68aec5cd2915f9c106571f9c0ad254d421e7c04fb73e SHA512 36a3558715984d1e124913977b13acacdf2954f7027eb1b7bc394de1211ad56e3f5cd33147ac2942314999c4448f1e0acadd622642e6d861389c7c585294311d DIST homeassistant-0.100.3.tar.gz 4569043 BLAKE2B 7382c098b7e0468713add85e74e0aedd00d884fa2ee6e7d0fff1618d1e8eaa31656320033e620e9a43d46f8f6439ed10184a87ff9060e832e827f499319131bd SHA512 1495b6ded358698b42435fcdb338825fe560a76ad174bb4198cb7865275c74863daf9205746546d46b2eefb3693ebe2238770638699aad161ad1ef5350d819d6 DIST homeassistant-0.101.0b0.tar.gz 4699138 BLAKE2B 2814c305fbe13dec7e934c34d236b3067fae1f81037a59153cd7bfae5aff7933f4015f3a07c0afd56badcdd073e708c49a60784d1e7582613241bcfc8d5f9bdf SHA512 78289b430966c0f08224f305a85bbb969e961d514109e03b6b9d0172a7730615daacfe1acce5b19e265aeaf9ba0bbf6fc6657a2356f3dc7b10642ab273657f4c +DIST homeassistant-0.101.0b1.tar.gz 4699504 BLAKE2B 4403d47b4200bf4af0ea918f8b13da8bfed63efa278c34be87ced9981a9ff8538f7d557c4dcee08d3112e80980513581b919b8610544d58c02c474869ed66ab2 SHA512 9afb08a2bdbcbc50f20d79cac44fb7da890e19f9b93c0c0d4bd3c074832cfa520cbae68dea2bacf1199dab5a8c8802d20ba1aa386d84db9fefe12249be017c77 DIST homeassistant-0.98.5.tar.gz 4290704 BLAKE2B 2328d50bd1d216a751ba5c5d19f0e54427c7f56be50a7f1c4a49d67cf1735d86393dfa9f366b1bd38706aa8192d4f390664a1e9c3562f7ff59f057c97b15d3f6 SHA512 1e9363d9c8569b7c169481c6dd8fcc6510262559379789f40af7f94664d44a2a1b3482b2d58141feaf78620b5e8b2d1f04017a0330bf35d2808b5f74f98a7785 DIST homeassistant-0.99.1.tar.gz 4407291 BLAKE2B a26dfe09c6413b2ff1efecb90bb777163f7ef9e7c81f95ee84c083daf07a844f8589d4602c46482ac1a2fa50aad7b99b099fe63e9ec0aaa94b4313f718fd8a39 SHA512 597d0003f232ef3926fe482b4e182e68401d6202955848ab8a986d554cb5c68bf04d0877ecc0a5da11836e5292be0ca88e264a010c23158dffca570550642b1c DIST homeassistant-0.99.2.tar.gz 4407132 BLAKE2B 785fd49ae5001a8ff55ec70433542b482831aabba8164c53c11496cf7b3fa508b7d2c1e91a74c33871d11f7580a2fc2cdba40f66f7dbb7e689f416c884b287ad SHA512 48817c7256674970a93a4b8155269482b30150e907ac73506ed2a1bf7e4c3730214a14225f38d209e9c62888cbed889e4898769cdd2187470aba8dd9173af332 @@ -23,6 +24,7 @@ EBUILD homeassistant-0.100.1.ebuild 11906 BLAKE2B 186104b2e99f5606d4e7710a4eae09 EBUILD homeassistant-0.100.2.ebuild 11984 BLAKE2B dc24b2f4bd876d0850401f0910f27d4e940b172fcc1390c0aeba763b892960305ac7ef0351a6ade31563f4f3d0568db143c57e24eac8629ed0a4bf95baf08faf SHA512 8bb401bad21c11041063bd5cf8ebf07f19810aa83a796b4769c9e84c852908f1c87b2b2012f4c9670f2cdb61d78fca35f4a0650f7389dc265d0612fb9394b043 EBUILD homeassistant-0.100.3.ebuild 11984 BLAKE2B dc24b2f4bd876d0850401f0910f27d4e940b172fcc1390c0aeba763b892960305ac7ef0351a6ade31563f4f3d0568db143c57e24eac8629ed0a4bf95baf08faf SHA512 8bb401bad21c11041063bd5cf8ebf07f19810aa83a796b4769c9e84c852908f1c87b2b2012f4c9670f2cdb61d78fca35f4a0650f7389dc265d0612fb9394b043 EBUILD homeassistant-0.101.0_beta0.ebuild 12007 BLAKE2B 9b6a5aafc80716124ea66e7f45e4a8966b1c628651c351eca8f18d0e16af648dd40bbb2f6355a712a519495fa082e9e6e7cdb2e9fa96668a358fd05a99b19c34 SHA512 20936c36d64b7e3562ec7f64d181a94b36cd9a730d31856329abf47cc7278b5ad3d87cc8ae0c7820be2c16d44d6ef0ba666cc159b10170c91ef94fa44742194e +EBUILD homeassistant-0.101.0_beta1.ebuild 12007 BLAKE2B c7c1237568d63d5791cdbf5739841d45eba6342f98b03808810685062b18dd518555e0ab62b0a4779647d327c6ce49740d9f6cffa2fad44abb7992a715448819 SHA512 e41a4ee17c8f1b88dbb4f9e72be797fe7d83ba2875b1ab3f05335588d09cac7553f6dc9af6e40ef0793eafaf658fa95d597278205595395a8f2de38e7a994acf EBUILD homeassistant-0.98.5.ebuild 11614 BLAKE2B 8701e2ee1ccdc026380e4748cf04f21137328abec3c5b79323f4d46da06ad38aba4951d66c75a7643805095ff9f35b6fc8ed540124929f706af5f081e040ff6a SHA512 256465b32eaaad6f7a05ac3244b327325f803c652b8ed27ababb2192a1fb92810dc9d858783afb95fecbb89fcbec5b6c04c475137d42cbeb6a0b93203622bbde EBUILD homeassistant-0.99.1.ebuild 11615 BLAKE2B e99aa604b5e799d8b4a4978ece8bf165718483ccb130d0f0a36737222687ac0c14a2d810af2ebf3d6f851a45090663519f0c17911407575221a3e94bea42649a SHA512 785a9cea6908697212ddac12a0c51634ccfd6893514fe72a5bc0420ffcf15a4409a1cca695915b9c1609d24b53cd70a0030c590ea9021cc058012adeefc918ae EBUILD homeassistant-0.99.2-r1.ebuild 11616 BLAKE2B 33eddd4d8bb93c40be90ae8e11bdc5d9d32df74e8cd4204a8f81117372800aca53664e9eb88ca729929bbddfd61880fb350592a0f935f43bfea3b22980486adb SHA512 a585fe6cf0aeb8300cf685c1be475f02a3629b46d54987ce5114811d4a5da136584a7febd8682f83081ab1d5c94e21bc4a5b247ee671da5666709245e4ad16d9 diff --git a/app-misc/homeassistant/homeassistant-0.101.0_beta1.ebuild b/app-misc/homeassistant/homeassistant-0.101.0_beta1.ebuild new file mode 100644 index 000000000..ac3c9b4e8 --- /dev/null +++ b/app-misc/homeassistant/homeassistant-0.101.0_beta1.ebuild @@ -0,0 +1,283 @@ +# Copyright 1999-2019 Gentoo Authors Andreas Billmeier b (at) edevau.net +# Distributed under the terms of the GNU General Public License v3.0 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit user readme.gentoo-r1 eutils distutils-r1 + +MY_P=${P/_beta/b} +MY_PV=${PV/_beta/b} + +DESCRIPTION="Open-source home automation platform running on Python 3.6" +HOMEPAGE="https://home-assistant.io https://git.edevau.net/onkelbeh/HomeAssistantRepository" +SRC_URI="https://github.com/home-assistant/home-assistant/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +RESTRICT="mirror" + +LICENSE="" +SLOT="0" +KEYWORDS="~amd64" +IUSE="abode androidtv asuswrt atmo atv aurora avea buienradar cli ciscomobilityexpress daikin darksky denonavr enigma esphome everlights envoy fronius +frontend gpiozero growl harmony heos homekit homematic homematicip hpilo hs100 hue maxcube miio mikrotik mqtt musiccast +mysql openwrt qnap roku rxv samsungtv sma socat sonos shodan speedtest ssl test tradfri ubee unify vera wemo wink withings wwlln xknx youtube z-wave zigbee zoneminder" + +RDEPEND="${PYTHON_DEPS} + !app-misc/homeassistant-bin + >=dev-lang/python-3.6.1 + app-admin/logrotate + dev-db/sqlite + dev-libs/libfastjson + >=dev-libs/xerces-c-3.1.4-r1 + >=dev-libs/xml-security-c-1.7.3 + ~dev-python/aiohttp-3.6.1[${PYTHON_USEDEP}] + ~dev-python/astral-1.10.1[${PYTHON_USEDEP}] + ~dev-python/async_timeout-3.0.1[${PYTHON_USEDEP}] + ~dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + ~dev-python/bcrypt-3.1.7[${PYTHON_USEDEP}] + >=dev-python/certifi-2019.9.11[${PYTHON_USEDEP}] + ~dev-python/contextvars-2.4[${PYTHON_USEDEP}] + ~dev-python/cryptography-2.8[${PYTHON_USEDEP}] + >=dev-python/immutables-0.9[${PYTHON_USEDEP}] + ~dev-python/importlib-metadata-0.23[${PYTHON_USEDEP}] + >=dev-python/jinja-2.10[${PYTHON_USEDEP}] + ~dev-python/passlib-1.7.1-r1[${PYTHON_USEDEP}] + >=dev-python/pip-8.0.3-r1[${PYTHON_USEDEP}] + ~dev-python/pyjwt-1.7.1[${PYTHON_USEDEP}] + ~dev-python/python-slugify-3.0.6[${PYTHON_USEDEP}] + >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] + ~dev-python/pyyaml-5.1.2[${PYTHON_USEDEP}] + =dev-python/requests-2.22.0[${PYTHON_USEDEP}] + ~dev-python/ruamel-yaml-0.15.100[${PYTHON_USEDEP}] + ~dev-python/voluptuous-0.11.7[${PYTHON_USEDEP}] + ~dev-python/voluptuous-serialize-2.3.0[${PYTHON_USEDEP}] + + >=app-crypt/acme-0.32.0[${PYTHON_USEDEP}] + >=dev-python/aiohttp-cors-0.7.0[${PYTHON_USEDEP}] + >=dev-python/asn1crypto-0.24.0[${PYTHON_USEDEP}] + ~dev-python/beautifulsoup-4.8.1[${PYTHON_USEDEP}] + ~dev-python/blinkpy-0.14.2[${PYTHON_USEDEP}] + >=dev-python/boto3-1.9.233[${PYTHON_USEDEP}] + >=dev-python/botocore-1.12.115[${PYTHON_USEDEP}] + ~dev-python/caldav-0.6.1[${PYTHON_USEDEP}] + >=dev-python/cdu-0.1.3[${PYTHON_USEDEP}] + ~dev-python/cffi-1.12.2[${PYTHON_USEDEP}] + >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}] + ~dev-python/colorlog-4.0.2[${PYTHON_USEDEP}] + >=dev-python/coverage-4.5.2[${PYTHON_USEDEP}] + >=dev-python/distro-1.4.0[${PYTHON_USEDEP}] + ~dev-python/docopt-0.6.2[${PYTHON_USEDEP}] + >=dev-python/docutils-0.14[${PYTHON_USEDEP}] + >=dev-python/ecdsa-0.13[${PYTHON_USEDEP}] + >=dev-python/envs-1.3[${PYTHON_USEDEP}] + >=dev-python/future-0.17.1[${PYTHON_USEDEP}] + ~dev-python/gTTS-token-1.1.3[${PYTHON_USEDEP}] + ~dev-python/hass-nabucasa-0.22[${PYTHON_USEDEP}] + >=dev-python/idna-2.8[${PYTHON_USEDEP}] + >=dev-python/idna-ssl-1.1.0[${PYTHON_USEDEP}] + >=dev-python/ifaddr-0.1.6[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.9.4[${PYTHON_USEDEP}] + >=dev-python/jose-1.0.0[${PYTHON_USEDEP}] + >=dev-python/jsonrpc-async-0.6[${PYTHON_USEDEP}] + ~dev-python/jsonrpc-base-1.0[${PYTHON_USEDEP}] + ~dev-python/jsonrpc-websocket-0.6[${PYTHON_USEDEP}] + >=dev-python/lxml-4.3.3[${PYTHON_USEDEP}] + >=dev-python/multidict-4.5.2[${PYTHON_USEDEP}] + >=dev-python/netdisco-2.6.0[${PYTHON_USEDEP}] + >=dev-python/nose-1.3.7[${PYTHON_USEDEP}] + >=dev-python/numpy-1.17.3[${PYTHON_USEDEP}] + >=dev-python/paho-mqtt-1.4.0[${PYTHON_USEDEP}] + >=dev-python/pbr-5.1.3[${PYTHON_USEDEP}] + ~dev-python/pillow-6.2.0[${PYTHON_USEDEP}] + >=dev-python/psutil-5.6.3[${PYTHON_USEDEP}] + >=dev-python/PyChromecast-4.0.1[${PYTHON_USEDEP}] + >=dev-python/pycparser-2.19[${PYTHON_USEDEP}] + || ( >=dev-python/pycryptodome-3.7.3[${PYTHON_USEDEP}] dev-python/pycrypto[${PYTHON_USEDEP}] ) + ~dev-python/pyhaversion-3.1.0[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-19.0.0[${PYTHON_USEDEP}] + >=dev-python/pyotp-2.3.0[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.2.1[${PYTHON_USEDEP}] + >=dev-python/pyrfc3339-1.1[${PYTHON_USEDEP}] + ~dev-python/pysnmp-4.4.11[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] + >=dev-python/python-jose-cryptodome-1.3.2[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-0.9.1[${PYTHON_USEDEP}] + =dev-python/RestrictedPython-5.0[${PYTHON_USEDEP}] + >=dev-python/setuptools-40.8.0[${PYTHON_USEDEP}] + >=dev-python/six-1.12.0[${PYTHON_USEDEP}] + ~dev-python/sqlalchemy-1.3.10[${PYTHON_USEDEP}] + ~dev-python/transitions-0.6.9[${PYTHON_USEDEP}] + >=dev-python/typing-3.6.4-r1[${PYTHON_USEDEP}] + ~dev-python/tzlocal-1.5.1[${PYTHON_USEDEP}] + >=dev-python/ua-parser-0.8.0[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.3[${PYTHON_USEDEP}] + >=dev-python/user-agents-2.0[${PYTHON_USEDEP}] + >=dev-python/vobject-0.9.6.1[${PYTHON_USEDEP}] + >=dev-python/wakeonlan-1.1.6[${PYTHON_USEDEP}] + =dev-python/warrant-0.6.1-r1[${PYTHON_USEDEP}] + >=dev-python/websocket-client-0.54.0[${PYTHON_USEDEP}] + >=dev-python/websockets-7.0[${PYTHON_USEDEP}] + ~dev-python/xmltodict-0.12.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.3.0[${PYTHON_USEDEP}] + >=dev-python/zeroconf-0.23.0[${PYTHON_USEDEP}] + >=media-libs/mutagen-1.42.0 + + abode? ( ~dev-python/abodepy-0.15.0[${PYTHON_USEDEP}] ) + androidtv? ( ~dev-python/androidtv-0.0.32[${PYTHON_USEDEP}] ) + asuswrt? ( ~dev-python/aioasuswrt-1.1.21[${PYTHON_USEDEP}] ) + atmo? ( ~dev-python/pyatmo-2.3.2[${PYTHON_USEDEP}] ) + atv? ( >=dev-python/pyatv-0.3.13[${PYTHON_USEDEP}] ) + aurora? ( ~dev-python/aurorapy-0.2.6[${PYTHON_USEDEP}] ) + avea? ( =dev-python/avea-1.2.8[${PYTHON_USEDEP}] ) + buienradar? ( ~dev-python/buienradar-1.0.1[${PYTHON_USEDEP}] ) + cli? ( app-misc/home-assistant-cli[${PYTHON_USEDEP}] ) + ciscomobilityexpress? ( ~dev-python/ciscomobilityexpress-0.3.3[${PYTHON_USEDEP}] ) + daikin? ( ~dev-python/pydaikin-1.6.1[${PYTHON_USEDEP}] ) + darksky? ( ~dev-python/python-forecastio-1.4.0[${PYTHON_USEDEP}] ) + denonavr? ( ~dev-python/denonavr-0.7.10[${PYTHON_USEDEP}] ) + enigma? ( ~dev-python/openwebifpy-3.1.1[${PYTHON_USEDEP}] ) + esphome? ( dev-embedded/esphome + ~dev-python/aioesphomeapi-2.4.2[${PYTHON_USEDEP}] ) + everlights? ( ~dev-python/pyeverlights-0.1.0[${PYTHON_USEDEP}] ) + envoy? ( ~dev-python/envoy-reader-0.8.6[${PYTHON_USEDEP}] ) + fronius? ( ~dev-python/PyFronius-0.4.6[${PYTHON_USEDEP}] ) + frontend? ( =app-misc/home-assistant-frontend-20191023.0[${PYTHON_USEDEP}] ) + gpiozero? ( ~dev-python/gpiozero-1.5.1[${PYTHON_USEDEP}] ) + growl? ( ~dev-python/gntp-1.0.3[${PYTHON_USEDEP}] ) + harmony? ( ~dev-python/aioharmony-0.1.13[${PYTHON_USEDEP}] ) + heos? ( ~dev-python/pyheos-0.6.0[${PYTHON_USEDEP}] ) + hpilo? ( ~dev-python/python-hpilo-4.3[${PYTHON_USEDEP}] ) + homekit? ( ~dev-python/homekit-python-0.15.0[${PYTHON_USEDEP}] ) + homematic? ( ~dev-python/pyhomematic-0.1.61[${PYTHON_USEDEP}] ) + homematicip? ( ~dev-python/homematicip-0.10.12[${PYTHON_USEDEP}] ) + hs100? ( >=dev-python/pyHS100-0.3.5[${PYTHON_USEDEP}] ) + hue? ( ~dev-python/aiohue-1.9.2[${PYTHON_USEDEP}] ) + maxcube? ( ~dev-python/maxcube-api-0.1.0[${PYTHON_USEDEP}] ) + miio? ( ~dev-python/python-miio-0.4.6[${PYTHON_USEDEP}] ) + mikrotik? ( ~dev-python/librouteros-2.3.0[${PYTHON_USEDEP}] ) + mqtt? ( ~dev-python/hbmqtt-0.9.5[${PYTHON_USEDEP}] + app-misc/mosquitto ) + musiccast? ( >=dev-python/pymusiccast-0.1.6[${PYTHON_USEDEP}] ) + mysql? ( || ( dev-python/mysqlclient[${PYTHON_USEDEP}] + dev-python/mysql-python[${PYTHON_USEDEP}] ) + virtual/mysql ) + openwrt? ( ~dev-python/openwrt-luci-rpc-1.1.2[${PYTHON_USEDEP}] ) + qnap? ( ~dev-python/qnapstats-0.3.0[${PYTHON_USEDEP}] ) + roku? ( ~dev-python/roku-3.1[${PYTHON_USEDEP}] ) + rxv? ( =dev-python/rxv-0.6.0[${PYTHON_USEDEP}] + ~dev-python/defusedxml-0.6.0[${PYTHON_USEDEP}] ) + samsungtv? ( >=dev-python/samsungctl-0.7.1[${PYTHON_USEDEP}] ) + sma? ( ~dev-python/pysma-0.3.4[${PYTHON_USEDEP}] ) + socat? ( net-misc/socat ) + sonos? ( >=dev-python/pysonos-0.0.24[${PYTHON_USEDEP}] ) + shodan? ( ~dev-python/shodan-1.19.0[${PYTHON_USEDEP}] ) + speedtest? ( ~net-analyzer/speedtest-cli-2.1.1[${PYTHON_USEDEP}] ) + ssl? ( dev-libs/openssl:0 + app-crypt/certbot + net-proxy/haproxy ) + tradfri? ( >=dev-python/pytradfri-6.3.1[${PYTHON_USEDEP}] + sys-devel/autoconf:2.69 ) + ubee? ( ~dev-python/pyubee-0.7[${PYTHON_USEDEP}] ) + unify? ( ~dev-python/aiounify-11[${PYTHON_USEDEP}] ) + vera? ( ~dev-python/pyvera-0.3.6[${PYTHON_USEDEP}] ) + wemo? ( >=dev-python/pywemo-0.4.34[${PYTHON_USEDEP}] ) + wink? ( ~dev-python/pubnubsub-handler-1.0.8[${PYTHON_USEDEP}] ) + withings? ( =dev-python/withings-api-2.0.0_beta[${PYTHON_USEDEP}] ) + wwlln? ( ~dev-python/aiowwlln-2.0.2[${PYTHON_USEDEP}] ) + xknx? ( ~dev-python/xknx-0.11.2[${PYTHON_USEDEP}] ) + youtube? ( ~dev-python/youtube_dl-2019.10.22[${PYTHON_USEDEP}] ) + zigbee? ( ~dev-python/zigpy-deconz-0.6.0[${PYTHON_USEDEP}] + ~dev-python/zigpy-homeassistant-0.10.0[${PYTHON_USEDEP}] + ~dev-python/zigpy-xbee-homeassistant-0.6.0[${PYTHON_USEDEP}] + ~dev-python/bellows-homeassistant-0.10.0[${PYTHON_USEDEP}] + ~dev-python/zigpy-zigate-0.5.0[${PYTHON_USEDEP}] + ~dev-python/zha-quirks-0.0.26[${PYTHON_USEDEP}] ) + zoneminder? ( ~dev-python/zm-py-0.3.3[${PYTHON_USEDEP}] ) + z-wave? ( ~dev-python/pynacl-1.3.0[${PYTHON_USEDEP}] + ~dev-python/homeassistant-pyozw-0.1.4[${PYTHON_USEDEP}] + ~dev-python/pydispatcher-2.0.5[${PYTHON_USEDEP}] + ~dev-python/cffi-1.12.2[${PYTHON_USEDEP}] ) +" + +DEPEND="${RDEPEND} + test? ( + ~dev-python/asynctest-0.12.2[${PYTHON_USEDEP}] + ~dev-python/coveralls-1.2.0[${PYTHON_USEDEP}] + ~dev-python/flake8-docstrings-1.3.0[${PYTHON_USEDEP}] + ~dev-python/flake8-3.7.5[${PYTHON_USEDEP}] + ~dev-python/mock-open-1.3.1[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + ~dev-python/mypy-0.660[${PYTHON_USEDEP}] + ~dev-python/pydocstyle-3.0.0[${PYTHON_USEDEP}] + ~dev-python/pylint-2.2.2[${PYTHON_USEDEP}] + ~dev-python/pytest-aiohttp-0.3.0[${PYTHON_USEDEP}] + ~dev-python/pytest-cov-2.6.1[${PYTHON_USEDEP}] + ~dev-python/pytest-sugar-0.9.2[${PYTHON_USEDEP}] + ~dev-python/pytest-timeout-1.3.3[${PYTHON_USEDEP}] + ~dev-python/pytest-4.2.1[${PYTHON_USEDEP}] + ~dev-python/requests-mock-1.5.2[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + )" + +INSTALL_DIR="/opt/${PN}" + +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS=" +The HA interface listens on port 8123 +hass configuration is in: /etc/${PN} +daemon command line arguments are configured in: /etc/conf.d/${PN} +logging is to: /var/log/${PN}/{server,errors,stdout}.log +The sqlite db is by default in: /etc/${PN} +support at https://git.edevau.net/onkelbeh/HomeAssistantRepository +" + +S="${WORKDIR}/home-assistant-${MY_PV}" + +DOCS="README.rst" + +pkg_setup() { + enewgroup "${PN}" + enewuser "${PN}" -1 -1 "$INSTALL_DIR" "${PN}" +} + +src_prepare() { + sed -e 's;astral==1.5;astral>=1.5;' \ + -i "setup.py" \ + -i homeassistant/package_constraints.txt + + eapply_user +} + +python_install_all() { + dodoc ${DOCS} + distutils-r1_python_install_all + + keepdir "$INSTALL_DIR" + + keepdir "/etc/${PN}" + fowners -R "${PN}:${PN}" "/etc/${PN}" + + keepdir "/var/log/${PN}" + fowners -R "${PN}:${PN}" "/var/log/${PN}" + + newconfd "${FILESDIR}/${PN}.conf.d" "${PN}" + newinitd "${FILESDIR}/${PN}.init.d" "${PN}" + + if use socat ; then + newinitd "${FILESDIR}/socat-zwave.init.d" "socat-zwave" + sed -i -e 's/# need socat-zwave/need socat-zwave/g' "${D}/etc/init.d/${PN}" || die + fi + + if use mqtt ; then + sed -i -e 's/# need mosquitto/need mosquitto/g' "${D}/etc/init.d/${PN}" || die + fi + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" "${PN}" + + dobin "${FILESDIR}/hasstest" + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +}