mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
cf118ccf87
Reported by: lwhsu
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
PORTNAME= solaar
|
|
DISTVERSION= 1.0.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Device manager for the Logitech Unifying Receiver
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
# libhidapi.so is only loaded at runtime via ctypes (dlopen)
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libhidapi.so:comms/hidapi
|
|
|
|
USES= python:3.6+
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pwr-Solaar
|
|
GH_PROJECT= Solaar
|
|
USE_PYTHON= autoplist concurrent distutils optsuffix
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= GUI
|
|
|
|
GUI_USES= gnome
|
|
GUI_USE= GNOME=pygobject3:run
|
|
|
|
post-patch:
|
|
@${CP} ${FILESDIR}/hidapi.py ${WRKSRC}/lib/hidapi/udev.py
|
|
@${REINPLACE_CMD} -e '/pyudev/d' \
|
|
-e 's|python-gi|${PYTHON_PKGNAMEPREFIX}gobject3|' \
|
|
${WRKSRC}/lib/solaar/gtk.py
|
|
@${REINPLACE_CMD} 's|receiver\.path\.split.*|receiver.path)|' \
|
|
${WRKSRC}/lib/logitech_receiver/listener.py
|
|
@${REINPLACE_CMD} 's|[[:<:]]cmd[[:>:]]|action|' \
|
|
${WRKSRC}/lib/solaar/cli/__init__.py
|
|
|
|
post-build:
|
|
${AWK} -f ${FILESDIR}/devd-solaar.awk \
|
|
${WRKSRC}/rules.d/42-logitech-unify-permissions.rules \
|
|
> ${WRKDIR}/solaar.conf.sample
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKDIR}/solaar.conf.sample \
|
|
${STAGEDIR}${PREFIX}/etc/devd
|
|
|
|
.include <bsd.port.mk>
|