Marcel Telka
2023-12-06 266edc930225ae9e468defccdb6e2b851368afed
x11/redshift: switch to Python 3.9

1 files deleted
4 files modified
68 ■■■■ changed files
components/x11/redshift/Makefile 32 ●●●● patch | view | raw | blame | history
components/x11/redshift/manifests/sample-manifest.p5m 13 ●●●● patch | view | raw | blame | history
components/x11/redshift/patches/01-redshift-gtk.patch 8 ●●●●● patch | view | raw | blame | history
components/x11/redshift/pkg5 4 ●●●● patch | view | raw | blame | history
components/x11/redshift/redshift.p5m 11 ●●●● patch | view | raw | blame | history
components/x11/redshift/Makefile
@@ -13,13 +13,11 @@
# Copyright (c) 2019 Michal Nowak
#
BUILD_BITS=    64
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=        redshift
COMPONENT_VERSION=    1.12
COMPONENT_REVISION=    1
COMPONENT_REVISION=    2
COMPONENT_PROJECT_URL=    http://jonls.dk/redshift/
COMPONENT_SUMMARY=    Redshift adjusts the color temperature of your screen according to your surroundings
COMPONENT_FMRI=         x11/redshift
@@ -29,36 +27,40 @@
COMPONENT_ARCHIVE_HASH=    \
    sha256:d2f8c5300e3ce2a84fe6584d2f1483aa9eadc668ab1951b2c2b8a03ece3a22ba
COMPONENT_ARCHIVE_URL=    https://github.com/jonls/redshift/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_LICENSE=    GPL-3
COMPONENT_LICENSE=    GPL-3.0-only
COMPONENT_LICENSE_FILE=    COPYING
TEST_TARGET= $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
PYTHON_VERSION    = 3.5
# configure expects GNU gettext
PATH = $(PATH.gnu)
CONFIGURE_ENV    += XGETTEXT=/usr/gnu/bin/xgettext
CONFIGURE_ENV    += MSGFMT=/usr/gnu/bin/msgfmt
CONFIGURE_ENV    += PYTHON=$(PYTHON)
# There are no binary python modules, install them in 32-bit path
CONFIGURE_OPTIONS    += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES.32)"
CONFIGURE_OPTIONS    += --enable-gui
CONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
CONFIGURE_OPTIONS += --enable-gui
# MATE won't load SVG icons for Redshift, PNG ones work though
COMPONENT_POST_INSTALL_ACTION = \
COMPONENT_POST_INSTALL_ACTION += \
    $(MKDIR) -p $(PROTOUSRSHAREDIR)/icons/hicolor/24x24/apps/ ;\
    for img in redshift redshift-status-on redshift-status-off; do \
        inkscape -z -e $(PROTOUSRSHAREDIR)/icons/hicolor/24x24/apps/$$img.png -w 24 -h 24 $(PROTOUSRSHAREDIR)/icons/hicolor/scalable/apps/$$img.svg ;\
        convert \
            $(PROTOUSRSHAREDIR)/icons/hicolor/scalable/apps/$$img.svg \
            -resize 24x24 \
            $(PROTOUSRSHAREDIR)/icons/hicolor/24x24/apps/$$img.png ; \
    done ;
# Update Python shebang to point to version we build for
PYTHON_SCRIPTS += $(USRBINDIR)/redshift-gtk
# Build dependencies
REQUIRED_PACKAGES += image/editor/inkscape
REQUIRED_PACKAGES += image/imagemagick
REQUIRED_PACKAGES += system/header/header-drm
# Auto-generated dependencies
PYTHON_REQUIRED_PACKAGES += runtime/python
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += runtime/python-35
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += x11/library/libdrm
components/x11/redshift/manifests/sample-manifest.p5m
@@ -10,10 +10,11 @@
#
#
# Copyright 2018 <contributor>
# Copyright 2023 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
@@ -24,11 +25,11 @@
file path=usr/bin/redshift
file path=usr/bin/redshift-gtk
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/__init__.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/controller.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/defs.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/statusicon.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/utils.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/controller.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/defs.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/statusicon.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/utils.py
file path=usr/share/appdata/redshift-gtk.appdata.xml
file path=usr/share/applications/redshift-gtk.desktop
file path=usr/share/applications/redshift.desktop
components/x11/redshift/patches/01-redshift-gtk.patch
File was deleted
components/x11/redshift/pkg5
@@ -1,9 +1,9 @@
{
    "dependencies": [
        "SUNWcs",
        "image/editor/inkscape",
        "image/imagemagick",
        "library/glib2",
        "runtime/python-35",
        "runtime/python-39",
        "system/header/header-drm",
        "system/library",
        "system/library/math",
components/x11/redshift/redshift.p5m
@@ -15,6 +15,7 @@
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
@@ -25,11 +26,11 @@
file path=usr/bin/redshift
file path=usr/bin/redshift-gtk
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/__init__.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/controller.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/defs.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/statusicon.py
file path=usr/lib/python3.5/vendor-packages/redshift_gtk/utils.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/__init__.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/controller.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/defs.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/statusicon.py
file path=usr/lib/python$(PYVER)/vendor-packages/redshift_gtk/utils.py
file path=usr/share/appdata/redshift-gtk.appdata.xml
file path=usr/share/applications/redshift-gtk.desktop
file path=usr/share/applications/redshift.desktop