From nobody Mon Feb 14 14:32:20 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B0D9D194D76E; Mon, 14 Feb 2022 14:32:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jy6BF06cFz57f9; Mon, 14 Feb 2022 14:32:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644849141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MaxLaAjfyt07se5skS4ANGg7tdvOOpq+dXFjxNlORf0=; b=kaZACuGPeuhgqji/onyBMig8iMB+46PEHxL2zFQGdjPG1IGsopnaIAfimtgJHseCWp3DaS gK1QzKh6gt85lTIMSlnzRBrCY/hFmDzgGl7HtSpm4UfUwnmaKtzrveHF0AF1HoXfwXptv1 uj+yqHuxiB3WxnywPMfgCa2tGAVYezVd92yoaS5Q9chYzlplM2xcLDajWH/SIyBmn8APCY 041bpA6mM5MaL4VNUYvfQZR812Ofpphplt3UvWdU7Ojx5uTHUmQR6dKB9A8S+2UzmiaTc5 AipDt1RV3i9K2lnk6D7SjzNEOwOxckNBuvEVkqAiywlHGFeAl4TYHV7UAS4EDQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CF4CD105C9; Mon, 14 Feb 2022 14:32:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21EEWKeh019166; Mon, 14 Feb 2022 14:32:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21EEWKas019165; Mon, 14 Feb 2022 14:32:20 GMT (envelope-from git) Date: Mon, 14 Feb 2022 14:32:20 GMT Message-Id: <202202141432.21EEWKas019165@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 4eb405985d12 - main - x11/swayimg: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4eb405985d1273cf020c98b4fd8784341d8a9ecb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644849141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MaxLaAjfyt07se5skS4ANGg7tdvOOpq+dXFjxNlORf0=; b=sGe3nqP7IMSuxTT1qKmF2I4kJ3Olz0Jnc1CHivg6tTDeedSnUupvRb7dimmYMdhoFQdwNQ WZz4cncW5C6cix/d8lFSDUZzlF833rpE+XCn+QXeZlqhuOlvwHEyDe0nYhMZrPc7poXJpl zVgdfXAWsFUl1/RoR0JerVSO3aY9HselJu5u0fiBQpW9hlQf9698923a/0kECLLehdUkvC 7ICfjUJ+CP314s665StQ32lzd7DfBV56lkgEo1Sv2WZZ6g+WgzOiI57NNkdqTq3fHWX8tZ 5thuq+HA2DklajNAvGFyP3hW45e2ocKEus5Be2zvHuc2x9Fxs7KYMDxonkpV8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644849141; a=rsa-sha256; cv=none; b=KfEDpVKHxz/GTSOm+g5dJZtO1ZtzfIZnAM4hHCQtf9J2FW1ZmFJ/ld0uEFkTkJiBmC2Tpx C+naRbu06XqSq3z6wadghM0DfWm8Am+5O6keJ33y2aF28EbXiypwr9j8APip71QVI4DpBf JPVRcp8vatQHdCA4aq6eJv2OFSTMl6XO2OifrGLcxT5Ojc+BTsFAy4GxrrN61UhmCwd1nN c+1+6gXHh2JyDv+W4fAqQvKdHy5bOdoeHgEUxVwlvtnWvl4sOy5Rl3fhTvDF86i3riDWrh A448R1/5/GPvXr81z4VvwmEl9LuEEipzwsEQsFPiukPVywaCqt84ViFz985P5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=4eb405985d1273cf020c98b4fd8784341d8a9ecb commit 4eb405985d1273cf020c98b4fd8784341d8a9ecb Author: Jan Beich AuthorDate: 2022-02-09 10:12:00 +0000 Commit: Jan Beich CommitDate: 2022-02-14 14:27:53 +0000 x11/swayimg: add new port Now you can view images directly in the current terminal window! The program uses Sway IPC to determine the geometry of the currently focused container. This data is used to calculate the position and size of the new "overlay" window that will be used to draw the image. In the next step, swayimg adds two Sway rules for the self window: "floating enable" and "move position". Then it creates a new Wayland window and draws the image from the specified file. https://github.com/artemsen/swayimg --- x11/Makefile | 1 + x11/swayimg/Makefile | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ x11/swayimg/distinfo | 7 ++++++ x11/swayimg/pkg-descr | 10 ++++++++ 4 files changed, 86 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 9b6516b4e665..511f969cca39 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -350,6 +350,7 @@ SUBDIR += swaybg SUBDIR += swayfloatingswitcher SUBDIR += swayidle + SUBDIR += swayimg SUBDIR += swaylock SUBDIR += swaylock-effects SUBDIR += swaync diff --git a/x11/swayimg/Makefile b/x11/swayimg/Makefile new file mode 100644 index 000000000000..f3710b94b8ae --- /dev/null +++ b/x11/swayimg/Makefile @@ -0,0 +1,68 @@ +PORTNAME= swayimg +DISTVERSIONPREFIX= v +DISTVERSION= 1.6 +CATEGORIES= x11 + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= 96c78f97731c.patch:-p1 # https://github.com/artemsen/swayimg/pull/23 +PATCHFILES+= d12f10e9ebbd.patch:-p1 # https://github.com/artemsen/swayimg/pull/24 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Image viewer for Sway/Wayland + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols +LIB_DEPENDS= libjson-c.so:devel/json-c \ + libwayland-client.so:graphics/wayland \ + libxkbcommon.so:x11/libxkbcommon + +USES= gnome meson pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= artemsen +USE_GNOME= cairo +MESON_ARGS= -Dversion="${DISTVERSIONFULL}" +PLIST_FILES= bin/${PORTNAME} \ + man/man1/${PORTNAME}.1.gz \ + man/man5/${PORTNAME}rc.5.gz \ + share/applications/${PORTNAME}.desktop \ + share/icons/hicolor/64x64/apps/${PORTNAME}.png \ + ${NULL} + +OPTIONS_DEFINE= AVIF BASH GIF JPEG JXL LIBEXIF LIBRSVG2 PNG WEBP +OPTIONS_DEFAULT=AVIF BASH GIF JPEG LIBEXIF LIBRSVG2 PNG WEBP +OPTIONS_EXCLUDE=${LIBRSVG2_DEFAULT:Mlegacy:C/.+/LIBRSVG2/} + +AVIF_DESC= AV1 Image File Format via libavif +AVIF_LIB_DEPENDS= libavif.so:graphics/libavif +AVIF_MESON_ENABLED= avif + +BASH_BUILD_DEPENDS= bash-completion>0:shells/bash-completion +BASH_MESON_ENABLED= bash +BASH_PLIST_FILES= share/bash-completion/completions/${PORTNAME} + +GIF_LIB_DEPENDS= libgif.so:graphics/giflib +GIF_USES= localbase:ldflags +GIF_MESON_ENABLED= gif + +JPEG_USES= jpeg +JPEG_MESON_ENABLED= jpeg + +JXL_DESC= JPEG XL image format via libjxl +JXL_LIB_DEPENDS= libjxl.so:graphics/libjxl +JXL_MESON_ENABLED= jxl + +LIBEXIF_LIB_DEPENDS= libexif.so:graphics/libexif +LIBEXIF_MESON_ENABLED= exif + +LIBRSVG2_USE= GNOME=librsvg2 +LIBRSVG2_MESON_ENABLED= svg + +PNG_LIB_DEPENDS= libpng.so:graphics/png +PNG_MESON_ENABLED= png + +WEBP_LIB_DEPENDS= libwebp.so:graphics/webp +WEBP_MESON_ENABLED= webp + +.include diff --git a/x11/swayimg/distinfo b/x11/swayimg/distinfo new file mode 100644 index 000000000000..7d2e51b757f4 --- /dev/null +++ b/x11/swayimg/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1644401520 +SHA256 (artemsen-swayimg-v1.6_GH0.tar.gz) = 944ad0c547c7fa45f26001431305529f75a8685f47e939c20442a7c16a6b22c0 +SIZE (artemsen-swayimg-v1.6_GH0.tar.gz) = 74037 +SHA256 (96c78f97731c.patch) = 33ef179a08f024de0dc1084bf03a3b9c048e32f497bfa8cd1bf2c58bcfe444bb +SIZE (96c78f97731c.patch) = 889 +SHA256 (d12f10e9ebbd.patch) = 682a8889be251a91f4d70d9091de880a458651a9b32788b974a1ddb4f496a27c +SIZE (d12f10e9ebbd.patch) = 973 diff --git a/x11/swayimg/pkg-descr b/x11/swayimg/pkg-descr new file mode 100644 index 000000000000..eee8851bb4ae --- /dev/null +++ b/x11/swayimg/pkg-descr @@ -0,0 +1,10 @@ +Now you can view images directly in the current terminal window! + +The program uses Sway IPC to determine the geometry of the currently +focused container. This data is used to calculate the position and +size of the new "overlay" window that will be used to draw the image. +In the next step, swayimg adds two Sway rules for the self window: +"floating enable" and "move position". Then it creates a new Wayland +window and draws the image from the specified file. + +WWW: https://github.com/artemsen/swayimg