pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
homeassistant: Add 0.0
Module Name: pkgsrc-wip
Committed By: Greg Troxel <gdt%lexort.com@localhost>
Pushed By: gdt
Date: Tue Apr 11 09:07:19 2023 -0400
Changeset: 734a84c579c00a28d186bd01843272d1c1f83448
Modified Files:
Makefile
Added Files:
homeassistant/DESCR
homeassistant/Makefile
Log Message:
homeassistant: Add 0.0
This is a package that, for the moment, does nothing, but depends on
packages required when installing Home Assistant in a virtual
environment. Eventually, it will contain scripts to manage building
and using Home Assistant in that environment
(This package exists because it is too hard to package Home Assistant,
because almost all dependencies are exact.)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=734a84c579c00a28d186bd01843272d1c1f83448
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
homeassistant/DESCR | 7 +++++
homeassistant/Makefile | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 84 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 71b3004565..25d9917ee1 100644
--- a/Makefile
+++ b/Makefile
@@ -1530,6 +1530,7 @@ SUBDIR+= higgsbounds
SUBDIR+= hijra
SUBDIR+= hisat2
SUBDIR+= hisat2-simde
+SUBDIR+= homeassistant
SUBDIR+= honggfuzz-git
SUBDIR+= honk
SUBDIR+= hoverfly
diff --git a/homeassistant/DESCR b/homeassistant/DESCR
new file mode 100644
index 0000000000..e37bb419c9
--- /dev/null
+++ b/homeassistant/DESCR
@@ -0,0 +1,7 @@
+This is a package that, for the moment, does nothing, but depends on
+packages required when installing Home Assistant in a virtual
+environment. Eventually, it will contain scripts to manage building
+and using Home Assistant in that environment
+
+(This package exists because it is too hard to package Home Assistant,
+because almost all dependencies are exact.)
diff --git a/homeassistant/Makefile b/homeassistant/Makefile
new file mode 100644
index 0000000000..1872516fdf
--- /dev/null
+++ b/homeassistant/Makefile
@@ -0,0 +1,76 @@
+# $NetBSD$
+
+PKGNAME= homeassistant-0.00
+CATEGORIES= meta-pkgs
+
+MAINTAINER= gdt%NetBSD.org@localhost
+HOMEPAGE= https://www.home-assistant.io/
+COMMENT= Meta-package for prereqs for Home Assistant
+
+# Revisit when it becomes nontrivial.
+LICENSE= modified-bsd
+
+META_PACKAGE= yes
+
+# This package intends to set up for the union of reasonable Home
+# Assistant (HA) installations within a venv, erring on the side of
+# depending on more rather than less. The vast majority of HA
+# components (integrations, or the core) are just python, often
+# depending on another python module. These build straightforwardly
+# with "bin/pip install". However, some modules depend on C
+# libraries, some depend on Fortran, and some use rust to build. This
+# package is primarily intended to ease those issues.
+
+# This package is currently tuned for NetBSD 9.
+
+# The set of packages wrapping libraries is currently:
+# - cryptography (http for SSL)
+# - postgresql (standard approach for database)
+# - sqlite3 (testing approach for database)
+# - av and numpy (stream component, which is part of default config)
+# - PIL (needed by 8 components)
+# and build tools
+# - pkg-config
+# - rust (for cryptography in the venv)
+# - gfortran (for numpy in the venv)
+
+DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
+DEPENDS+= pkgconf-[0-9]*:../../devel/pkgconf
+DEPENDS+= ${PYPKGPREFIX}-virtualenv-[0-9]*:../../devel/py-virtualenv
+DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+DEPENDS+= ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
+# \todo In lieu of https://pypi.org/project/ha-av/ or
+# https://pypi.org/project/av/ we just depend on ffmpeg4.
+DEPENDS+= ffmpeg4-[0-9]*:../../multimedia/ffmpeg4
+DEPENDS+= ${PYPKGPREFIX}-cryptography-[0-9]*:../../security/py-cryptography
+DEPENDS+= ${PYPKGPREFIX}-nacl-[0-9]*:../../security/py-nacl
+
+# gfortran, arbitrarily pinned to gcc7 for now
+DEPENDS+= gcc7-[0-9]*:../../lang/gcc7
+
+RUST_RUNTIME= yes
+.include "../../lang/rust/rust.mk"
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+
+### NEEDED WORKAROUNDS
+# \todo Hoist these somehow to a script or fix upstream.
+# This section describes workarounds to enable the venv to build.
+
+## ha-av
+#
+# ffmpeg4 installs to /usr/pkg/lib/ffmpeg4, but pkg_alternatives does
+# not provide library links. A strategy that works is to symlink from
+# /usr/pkg/lib, and a strategy that might work is to PKG_CONFIG_PATH.
+#
+# ffmpeg's pkgconfig files have "-Wl,-rpath,/usr/pkg/lib/ffmpeg4/lib",
+# but PyAV's setup.py is buggy and looks at flags to see if they are
+# known and doesn't support -Wl,-rpath. Changing to -R makes it work.
+# This is a bug in PyAV. \todo File a fix.
+
+## cryptography
+# As of 40, the build fails to find openssl on NetBSD 9, likely a bug.
+# https://docs.rs/openssl/latest/openssl/#automatic advises
+# export OPENSSL_DIR=/usr
+
+.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index