ports/sysutils/solaar/files/patch-setup.py
Tobias Kortkamp 55101a83b8 New port: sysutils/solaar
Solaar is a device manager for Logitech's Unifying Receiver.  It is
able to pair/unpair devices to the receiver, and for most devices read
battery status.

It comes in two flavors, command-line and GUI.  Both are able to list
the devices paired to a Unifying Receiver, show detailed info for each
device, and also pair/unpair supported devices with the receiver.

WWW: https://pwr.github.io/Solaar/

Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D10155
2017-03-28 12:00:09 +00:00

32 lines
850 B
Python

--- setup.py.orig 2017-03-20 23:07:26 UTC
+++ setup.py
@@ -6,10 +6,8 @@ from distutils.core import setup
autostart_path = '/etc/xdg/autostart'
import sys
-backup_path_0 = sys.path[0]
-sys.path[0] = backup_path_0 + '/lib'
-from solaar import NAME, __version__
-sys.path[0] = backup_path_0
+NAME = 'Solaar'
+__version__ = '0.9.2'
if 'install' in sys.argv:
# naively guess where the autostart .desktop file should be installed
@@ -22,7 +20,7 @@ if 'install' in sys.argv:
autostart_path = path.join(xdg_config_home, 'autostart')
del environ, path, xdg_config_home
-del sys, backup_path_0
+del sys
def _data_files():
@@ -36,7 +34,6 @@ def _data_files():
yield _dirname(mo), [mo]
yield 'share/applications', ['share/applications/solaar.desktop']
- yield autostart_path, ['share/applications/solaar.desktop']
del _dirname