pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-weewx: Depend on poetry, fix namespace issues
Module Name: pkgsrc-wip
Committed By: Greg Troxel <gdt%lexort.com@localhost>
Pushed By: gdt
Date: Sat Feb 1 08:10:42 2025 -0500
Changeset: 355e2dd43df6f1d0a63a09983e0e387f89ab7c90
Modified Files:
py-weewx/Makefile
py-weewx/PLIST
Log Message:
py-weewx: Depend on poetry, fix namespace issues
- weewx uses poetry as a build tool, so TOOL_DEPENDS on it
- weewx installs two doc files at site-packages top level; move them to a docdir
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=355e2dd43df6f1d0a63a09983e0e387f89ab7c90
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-weewx/Makefile | 9 +++++++++
py-weewx/PLIST | 2 ++
2 files changed, 11 insertions(+)
diffs:
diff --git a/py-weewx/Makefile b/py-weewx/Makefile
index e8c6487f83..6a568a2069 100644
--- a/py-weewx/Makefile
+++ b/py-weewx/Makefile
@@ -16,6 +16,8 @@ USE_LANGUAGES=
# weewx uses sqlite3
.include "../../lang/python/batteries-included.mk"
+TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry>=0.12:../../devel/py-poetry
+
# pyproject.toml, in order:
DEPENDS+= ${PYPKGPREFIX}-configobj>=5.0:../../devel/py-configobj
DEPENDS+= ${PYPKGPREFIX}-CT3>=3.1:../../wip/py-CT3 # textproc
@@ -31,6 +33,13 @@ REPLACE_PYTHON+= src/weewx_data/util/i18n/i18n-report
# a split package.
CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/weewx_data/util/logwatch/scripts/services/weewx
+DOCDIR= ${PREFIX}/share/doc/weewx
+
+INSTALLATION_DIRS= ${DOCDIR}
+post-install:
+ ${MV} ${DESTDIR}/${PREFIX}/${PYSITELIB}/LICENSE.txt ${DESTDIR}${DOCDIR}
+ ${MV} ${DESTDIR}/${PREFIX}/${PYSITELIB}/README.md ${DESTDIR}${DOCDIR}
+
# \todo Grasp and perhaps deal with config file generation/update.
# \todo Consider how to manage edits to skins, which are sort of code
diff --git a/py-weewx/PLIST b/py-weewx/PLIST
index 1b4756f71b..32643c7b92 100644
--- a/py-weewx/PLIST
+++ b/py-weewx/PLIST
@@ -476,3 +476,5 @@ ${PYSITELIB}/weewx_data/weewx.conf
${PYSITELIB}/weewxd.py
${PYSITELIB}/weewxd.pyc
${PYSITELIB}/weewxd.pyo
+share/doc/weewx/LICENSE.txt
+share/doc/weewx/README.md
Home |
Main Index |
Thread Index |
Old Index