Add ebuild for latest mainline dev branch

This commit is contained in:
Kevin Lowe 2019-09-24 00:16:31 -07:00
parent 575ccdc504
commit a5b169a17b
2 changed files with 98 additions and 0 deletions

View File

@ -15,4 +15,5 @@ EBUILD esphome-1.12.0_beta3.ebuild 2274 BLAKE2B cddbb2597eafa9ed46692315209e698c
EBUILD esphome-1.12.0_beta4.ebuild 2274 BLAKE2B cddbb2597eafa9ed46692315209e698ca687a4815c05593b21c9790f321e94192f466edb79f3cabfe06420dae8a866d5b63318c593a59be814582a2b16a683af SHA512 6945b2eb911ab72dc9aac75dcfbd0f7efe379f9870db7cb5e5e07b186f64881a4743535ce897a4133cb54c2cb6f92438957a12bd5d39cce331c8e70ecb0cc54b
EBUILD esphome-1.13.2.ebuild 2272 BLAKE2B 0249ec14aada441d43cd3509f5c3896e1b500f9196f6337aeab2fc389315c6d93dc30280bc1fc1a2dc6bdd14d852361f3f424036be8a8421181b1ea969c81510 SHA512 515fc7442641734b11a0b898add8389a3825ce6fb4751c754262b99dbdaa03cb5fbcc6a43d876e17dc01706b7e70ba4e035ffb5dfd778166fc4d39d50a5e7451
EBUILD esphome-1.13.6.ebuild 2272 BLAKE2B 2d778ab51ef99d8556dfa35bd174c67d1cd77e1ba8d72d562b408226f6cc025b8efacb3b410aa9f4cf8d26bff4d9b53cd73dcbc8377f2e6869fab01e1f8d3d61 SHA512 d56f589a11c569698427dd43b35d490519a34db8e427e8443970ded3ffbd2572764444ac1ce3e718e66f3b454400267119f6c06a671d568b553fe83623291167
EBUILD esphome-9999.ebuild 2380 BLAKE2B ad5232859056ebe65573b1199192457641ca2d0c1b6a8f28b59d7fe88bbb76a028c5cfc9cfc0f52e48a8cd85c4e41a97b49badffed4e825367ec7287cb5fe0fb SHA512 44319f5b58d9cbdc7e80553c6e63efe22173769b340854aeec7c5da041a6d4ca6426b2080c238d10c6b22423eb2c9f9269bef904097441afb69880ec9914d379
MISC metadata.xml 361 BLAKE2B 0752256cba8c0b90e3dcce71eb5c3a8307adbab281c5229abc8aaa21d4ee1b94f2f898ccd9c43c4ff488a995f2e6271a5aa651f78a7e6d35cba0cc6302d387ed SHA512 80327a1c6833cadd82cfcbfa31e48661a8c11b38831c4c6cef002523244be67ee50585c3a10903ef6126974c4f36347f08e39c5a64ab43ad7ebb632106e1c4c1

View File

@ -0,0 +1,97 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{6,7} )
inherit user readme.gentoo-r1 distutils-r1
if [[ ${PV} == *9999* ]]; then
inherit git-r3
fi
# MY_P=${P/_beta/b}
# MY_PV=${PV/_beta/b}
DESCRIPTION="Make creating custom firmwares for ESP32/ESP8266 super easy."
HOMEPAGE="https://github.com/esphome/esphome https://pypi.org/project/esphome/"
# SRC_URI="https://github.com/esphome/esphome/archive/dev.zip"
EGIT_REPO_URI="https://github.com/esphome/esphome.git"
EGIT_BRANCH="dev"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="server test"
RDEPEND=""
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/tzlocal-1.5.1[${PYTHON_USEDEP}]
>=dev-python/voluptuous-0.11.5[${PYTHON_USEDEP}]
>=dev-embedded/platformio-4.0.1
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
>=dev-python/paho-mqtt-1.3.1[${PYTHON_USEDEP}]
>=dev-python/colorlog-3.1.2[${PYTHON_USEDEP}]
>=www-servers/tornado-5.1.1[${PYTHON_USEDEP}]
>=dev-embedded/esptool-2.6[${PYTHON_USEDEP}]
>=dev-python/typing-3.6.6[${PYTHON_USEDEP}]
>=dev-python/protobuf-python-3.7[${PYTHON_USEDEP}]
>=dev-python/pyserial-3.4[${PYTHON_USEDEP}]
>=dev-python/ifaddr-0.1.6[${PYTHON_USEDEP}]
server? ( >=dev-python/ifaddr-0.1.6 )
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
DISABLE_AUTOFORMATTING=1
DOC_CONTENTS="
The ESPHome dashboard listens on port 6052
ESPHome configuration is in: /etc/${PN}
dashboard command line arguments are configured in: /etc/conf.d/${PN}
logging is to: /var/log/${PN}/{dashboard,warnings}.log
support at https://git.edevau.net/onkelbeh/HomeAssistantRepository
"
S="${WORKDIR}/${P}/"
DOCS="README.md"
pkg_setup() {
if use server; then
enewgroup "${PN}"
enewuser "${PN}" -1 -1 "/etc/${PN}" "${PN}"
fi
}
python_install_all() {
dodoc ${DOCS}
distutils-r1_python_install_all
if use server; then
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-r1" "${PN}"
readme.gentoo_create_doc
fi
}
python_test() {
nosetests --verbose || die
py.test -v -v || die
}
pkg_postinst() {
if use server; then
readme.gentoo_print_elog
fi
}