diff options
Diffstat (limited to 'x11/py-nwg-displays/Makefile')
-rw-r--r-- | x11/py-nwg-displays/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/x11/py-nwg-displays/Makefile b/x11/py-nwg-displays/Makefile new file mode 100644 index 000000000000..5b7bd3a33e77 --- /dev/null +++ b/x11/py-nwg-displays/Makefile @@ -0,0 +1,43 @@ +PORTNAME= nwg-displays +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.26 +CATEGORIES= x11 wayland python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Output management utility for sway and Hyprland +WWW= https://github.com/nwg-piotr/nwg-displays + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}i3ipc>0:x11/py-i3ipc@${PY_FLAVOR} + +USES= gnome python shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= nwg-piotr + +USE_GNOME= gtk30 pygobject3 +USE_PYTHON= autoplist concurrent distutils + +SHEBANG_FILES= nwg_displays/main.py + +PLIST_FILES= share/applications/${PORTNAME}.desktop \ + share/pixmaps/${PORTNAME}.svg +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install: + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.svg \ + ${STAGEDIR}${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \ + ${STAGEDIR}${DESKTOPDIR} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> |