freebsd-ports/sysutils/solaar/Makefile
Mathieu Arnold d0cba2b797 Cleanup Mk/Uses/gnome.mk.
- Remove the use of comp_DETECT.
- Remove all comp_DETECT variables.
- Remove a use of comp_DETECT outside of gnome.mk
- Remove py3gobject3.
- Have ports depending directly on devel/py-gobject3 use gnome to do it.

PR:		224618
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D13550
2018-01-03 13:22:31 +00:00

49 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= solaar
PORTVERSION= g20170327
PORTREVISION= 2
CATEGORIES= sysutils
MAINTAINER= tobik@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
USE_PYTHON= distutils autoplist concurrent optsuffix
USE_GITHUB= yes
GH_ACCOUNT= pwr
GH_PROJECT= Solaar
# The latest release is from 2013 and there is not going to be a new
# release for now:
# https://github.com/pwr/Solaar/issues/288
# https://github.com/pwr/Solaar/issues/296
GH_TAGNAME= 53ec751
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-install:
${INSTALL_DATA} ${FILESDIR}/devd-solaar.conf \
${STAGEDIR}${PREFIX}/etc/devd/solaar.conf.sample
.include <bsd.port.mk>