Files
ports/accessibility/onboard/files/patch-setup.py
T
Olivier Duchateau 59425f7322 accessibility/onboard: update to 1.4.4.1
Update to 1.4.4.1

  * onboard (1.4.4-1) unstable; urgency=medium

  [Fixes]

  * Fix Russian translation of "window handles"

  * Fixing FreeBSD documentation about python3.

  * Fixing FreeBSD port.

  * PR #40 Fix crash and incorrect layout handling introduced by
    PR

  * fix(setup): add missing comma before **pkgconfig kwargs

  [Internal]

  * CleanUp space in filename

  * Cleanup

  [Other]

  * Add ANSI key geometry variants to Compact layout

  * Add ANSI key geometry variants to Full Keyboard layout

  * Add FreeBSD note to README and fall back to /usr/local for
    locale files in LanguageSupport.py

  * Add keyboard layout model examples to README

  * Added files to make a FreeBSD port package.

  * Added new layout without emoji

  * CleanUp space in filename

  * Cleanup

  * Create .gitattributes

  * Detect XKB keyboard model and remap keys for ANSI layout

  * Disable docking when x/y coordinates are specified via command
    line

  * Documenting only FreeBSD specific changes.

  * Fix Russian translation of "window handles"

  * Fix crash and incorrect layout handling introduced by PR #40

  * Fixing FreeBSD documentation about python3.

  * Fixing FreeBSD port.

  * Improve Polish translation

  * Improve changelog generation: add PR detection and structured
    sections

  * Increase DPI range limits for size validation

  * Initial support for FreeBSD.

  * KeyboardWidget: fix lost pointer enter/leave events during
    transparency transitions

  * KeyboardWidget: fix missing hover updates and lost pointer
    events under X11

  * KeyboardWidget: recover lost pointer and hover events during
    transparency transitions

  * Lessened FreeBSD impact on existing codebase and focused on
    patches for port package.

  * Merge branch 'main' of https://github.com/onboard-osk/onboard

  * Merge pull request #1 from neurofreak-alt/main

  * Merge pull request #22 from dr-ni/main

  * Merge pull request #25 from dr-ni/main

  * Merge pull request #27 from AlexP11223/fix-ru-po

  * Merge pull request #31 from joachimvenaas/patch-1

  * Merge pull request #33 from alipang/main

  * Merge pull request #35 from alexmyczko/main

  * Merge pull request #37 from mikhailnov/no-docking-x-y

  * Merge pull request #38 from forgecode-imidiate/punctuation-patch

  * Merge pull request #39 from Matthaiks/pl

  * Merge pull request #40 from Michael-Lloyd/ansi-keyboard-layout

  * New project path onboard-osk

  * Note about maintainer for FreeBSD port package.

  * Only enable -Wlogical-op on Linux (GCC); fix clang build failures

  * Point port at upstream repo; remove obsolete patches.

  * Prevent division by zero in DPI calculations

  * Reformat

  * Remove pkg-plist; rely on autoplist to avoid duplicate entries.

  * Revert "Merge pull request #35 from alexmyczko/main"

  * Safe DPI calculation

  * Slimmed AI generated documentation for FreeBSD.

  * Slimmed AI generated documentation.

  * Slimmed AI generated documentation. Commented "Next step".

  * Update Polish translation

  * Update Russian translations

  * Update WordSuggestions.py to honor punctuation configuration
    option

  * added _logger

  * added openSUSE and Fedora

  * apt: install onboard from local repo with pinned version

  * updatechangelog without master

  [ Uwe Niethammer ] * Update README.md * Update setup.py

  [ Alex P. ] * allow to specify unpress_delay via settings * remove
  unused

  [ dr-ni ] * added script for toggle-onboard-hoverclick

  [ Lukas Gottschall ]
  * Implement key animation hover & set the UNPRESS_DELAY to 0.06
  * apt_install_debs.sh: Update GLib schemas & icon cache also the version was not changed.
  * set the UNPRESS_DELAY back to 0.15
  * Preserve 'pressed' colors for fill, stroke, and label on hover
    Refactor themes/*.colors. Improve key stroke shading based on
    press state to simulate visual depth to
    gradient key style. Avoid using unpress timers for non-touch input events.
  * Add minimum display duration for label popup after key
    release Add missing label hover colors in themes/*.colors

  [ Alex P. ]
  * revert default unpress_delay to 0.15
  * increase max unpress_delay

  [ Lukas Gottschall ]
  * Set LabelPopup color to match the unpressed and unhovered
    fill/label color of its key Change pressed color in Charcoal.colors
    to red Update MIN_LABEL_POPUP_DURATION_MS to 200 ms

  [ dr-ni ] * Rename unpress-delay to popup-duration * cleanup *
  added popup duration settings to keyboard->advanced settings *
  revert UNPRESS_DELAY to 0.06 and code cleanup * Update color
  schemes * cleanup * fix suggestions colors * added
  HighContrastInverseBlue theme * update of color schemes * fixed
  color theme

  [ Lukas Gottschall ]
  * Fix: Hover effect remains when cursor leaves keyboard Hide
    active key popup immediately when another key is pressed
  * Fix config.MIN_LABEL_POPUP_DURATION_MS was removed
  * Add hover and pressed state colors to themes/Black.colors
    Introduce new "Ambiance Dark" color scheme
    * Resolve merge conflict: popup duration chage

  [ dr-ni ]
  * fix typo
  * fix wrong usage

  [ Lukas Gottschall ]
  * Add a script to refresh translations
  * Start unpress_timers if simulated clicks are active Fix popup
    random color behaviour

  [ dr-ni ]
  * updated de translations
  * cleanup
  * updated all po files

  [ Uwe Niethammer ]
  * Add files via upload
  * Update README.md

  [ dr-ni ]
  * code cleanup
  * cleanup
  * Added new theme 'Ronboard'
  * fixed color_scheme

Remove unneeded patches

PR:		294438
2026-04-18 02:36:28 -07:00

102 lines
4.8 KiB
Python

--- setup.py.orig 2026-04-11 20:15:35 UTC
+++ setup.py
@@ -160,7 +160,7 @@ def clean_before_build(command):
if command in ["build", "build_ext", "clean", "sdist"]:
print("removing __pycache__ directories recursively")
subprocess.check_call(
- ['/bin/bash', '-c', "find . -name '__pycache__*' -prune | xargs rm -rf"])
+ ['/bin/sh', '-c', "find . -name '__pycache__*' -prune | xargs rm -rf"])
# Symlinked extension libraries trip up "setup.py sdist". Delete them.
if command in ["clean", "sdist"]:
@@ -313,8 +313,7 @@ class Extension_lm(Extension):
libraries = [],
define_macros=[('NDEBUG', '1')],
extra_compile_args=[
- "-Wsign-compare",
- "-Wlogical-op"],
+ "-Wsign-compare"],
)
extension_lm = Extension_lm("Onboard", "Onboard")
@@ -401,7 +400,7 @@ class build_i18n_custom(DistUtilsExtra.auto.build_i18n
# Get the autostart directory
autostart_destination = os.path.join(config_path, "autostart")
else:
- autostart_destination = '/etc/xdg/autostart'
+ autostart_destination = 'etc/xdg/autostart'
for i, file_set in enumerate(self.distribution.data_files):
@@ -439,33 +438,6 @@ class CustomInstallCommand(install):
# Run the default installation
install.run(self)
- # Only run this if NOT inside a fakeroot environment
- if not os.getenv("FAKEROOTKEY"):
- print("Running tools/gen_gschema.py...")
-
-
-
- # Correct install base from setuptools
- install_base = Path(self.install_data)
- schema_dir = install_base / "share" / "glib-2.0" / "schemas"
-
-
- # Ensure the schema directory exists
- schema_dir.mkdir(parents=True, exist_ok=True)
-
- print("Running glib-compile-schemas...")
-
- try:
- if os.path.exists(schema_dir):
- subprocess.check_call(["glib-compile-schemas", schema_dir])
- else:
- print(f"Warning: Schema directory not found: {schema_dir}")
- except subprocess.CalledProcessError as e:
- print(f"Error running glib-compile-schemas: {e}")
- sys.exit(1)
- else:
- print("Skipping tools/gen_gschema.py and glib-compile-schemas since this is a fakeroot environment.")
-
class UninstallCommand(Command):
"""Custom uninstall command to remove all installed files"""
@@ -621,16 +593,8 @@ DistUtilsExtra.auto.setup(
description = 'Simple On-screen Keyboard',
packages = ['Onboard', 'Onboard.pypredict'],
- data_files = [('share/glib-2.0/schemas', glob.glob('data/*.gschema.xml')),
+ data_files = [('share/glib-2.0/schemas', glob.glob('data/org.onboard.gschema.xml')),
('share/dbus-1/services', glob.glob('data/org.onboard.Onboard.service')),
- ('share/doc/onboard', glob.glob('AUTHORS')),
- ('share/doc/onboard', glob.glob('CHANGELOG')),
- ('share/doc/onboard', glob.glob('COPYING*')),
- ('share/doc/onboard', glob.glob('HACKING')),
- ('share/doc/onboard', glob.glob('DBUS.md')),
- ('share/doc/onboard', glob.glob('README.md')),
- ('share/doc/onboard', glob.glob('onboard-defaults.conf.example')),
- ('share/doc/onboard', glob.glob('onboard-default-settings.gschema.override.example')),
('share/icons/hicolor/16x16/apps', glob.glob('icons/hicolor/16/*')),
('share/icons/hicolor/22x22/apps', glob.glob('icons/hicolor/22/*')),
('share/icons/hicolor/24x24/apps', glob.glob('icons/hicolor/24/*')),
@@ -650,17 +614,13 @@ DistUtilsExtra.auto.setup(
('share/onboard/models', glob.glob('models/*.lm')),
('share/onboard/tools', glob.glob('Onboard/pypredict/tools/checkmodels')),
('share/onboard/emojione/svg', glob.glob('emojione/svg/*.svg')),
- ('share/gnome-shell/extensions/Onboard_Indicator@onboard.org',
- glob_files('gnome/{}/Onboard_Indicator@onboard.org/*'.format(gnome_shell_version))),
- ('share/gnome-shell/extensions/Onboard_Indicator@onboard.org/schemas',
- glob_files('gnome/{}/Onboard_Indicator@onboard.org/schemas/*'.format(gnome_shell_version))),
],
scripts = ['onboard', 'onboard-settings'],
options={
'build_scripts': {
- 'executable': '/usr/bin/python3'
+ 'executable': '%%PYTHON_CMD%%'
}
},