summaryrefslogtreecommitdiff
path: root/graphics/swappy
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/swappy')
-rw-r--r--graphics/swappy/Makefile31
-rw-r--r--graphics/swappy/distinfo6
-rw-r--r--graphics/swappy/files/patch-meson.build11
-rw-r--r--graphics/swappy/pkg-plist10
4 files changed, 33 insertions, 25 deletions
diff --git a/graphics/swappy/Makefile b/graphics/swappy/Makefile
index 764597693a1f..a5f143b62500 100644
--- a/graphics/swappy/Makefile
+++ b/graphics/swappy/Makefile
@@ -1,8 +1,9 @@
PORTNAME= swappy
DISTVERSIONPREFIX= v
-DISTVERSION= 1.5.1
-PORTREVISION= 4
+DISTVERSION= 1.8.0
CATEGORIES= graphics wayland
+MASTER_SITES= https://github.com/jtheoof/${PORTNAME}/releases/download/${DISTVERSIONFULL}/
+DISTNAME= ${PORTNAME}-${DISTVERSION}
MAINTAINER= tagattie@FreeBSD.org
COMMENT= Snapshot editing for Wayland (a la Snappy on macOS)
@@ -11,37 +12,23 @@ WWW= https://github.com/jtheoof/swappy
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= compiler:c11 desktop-file-utils gettext-tools gnome meson pkgconfig
-USE_GITHUB= yes
+USES= compiler:c11 desktop-file-utils gettext-tools gnome meson \
+ pkgconfig
+
USE_GNOME= cairo gdkpixbuf gtk30
-GH_ACCOUNT= jtheoof
-PLIST_FILES= bin/${PORTNAME} \
- share/applications/${PORTNAME}.desktop \
- share/icons/hicolor/scalable/apps/${PORTNAME}.svg \
- share/locale/de/LC_MESSAGES/${PORTNAME}.mo \
- share/locale/en/LC_MESSAGES/${PORTNAME}.mo \
- share/locale/fr/LC_MESSAGES/${PORTNAME}.mo \
- share/locale/pt_BR/LC_MESSAGES/${PORTNAME}.mo \
- share/locale/tr/LC_MESSAGES/${PORTNAME}.mo \
- ${NULL}
OPTIONS_DEFINE= CLIPBOARD ICONSFONT MANPAGES
OPTIONS_DEFAULT=CLIPBOARD ICONSFONT MANPAGES
+OPTIONS_SUB= yes
CLIPBOARD_DESC= Copy to clipboard support
+ICONSFONT_DESC= Install Font Awesome to properly render icons
+
CLIPBOARD_RUN_DEPENDS= wl-copy:x11/wl-clipboard
-ICONSFONT_DESC= Install Font Awesome to properly render icons
ICONSFONT_RUN_DEPENDS= font-awesome>0:x11-fonts/font-awesome
MANPAGES_BUILD_DEPENDS= scdoc:textproc/scdoc
MANPAGES_MESON_ENABLED= man-pages
-MANPAGES_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz
-
-post-patch:
-# Extract (snapshot) version from the port instead of meson.build
- @${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
- -e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
- ${WRKSRC}/meson.build
.include <bsd.port.mk>
diff --git a/graphics/swappy/distinfo b/graphics/swappy/distinfo
index 4bc75903cd7e..b41fedbe8038 100644
--- a/graphics/swappy/distinfo
+++ b/graphics/swappy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1668981009
-SHA256 (jtheoof-swappy-v1.5.1_GH0.tar.gz) = 266fac289d4b903d80d44746044bafe8a8b663c6032be696c651ad390bcb1850
-SIZE (jtheoof-swappy-v1.5.1_GH0.tar.gz) = 655406
+TIMESTAMP = 1756368333
+SHA256 (swappy-1.8.0.tar.gz) = f615cc4c61e033cddc60093003ef03646d246a0ac14becb9cdac9b5fabf37bbe
+SIZE (swappy-1.8.0.tar.gz) = 700962
diff --git a/graphics/swappy/files/patch-meson.build b/graphics/swappy/files/patch-meson.build
new file mode 100644
index 000000000000..5f04120fc549
--- /dev/null
+++ b/graphics/swappy/files/patch-meson.build
@@ -0,0 +1,11 @@
+--- meson.build.orig 2025-08-20 11:05:16 UTC
++++ meson.build
+@@ -13,7 +13,7 @@ git = find_program('git', native: true, required: fals
+
+ version = '"@0@"'.format(meson.project_version())
+ git = find_program('git', native: true, required: false)
+-if git.found()
++if false
+ git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check:true)
+ git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check:true)
+ if git_commit.returncode() == 0 and git_branch.returncode() == 0
diff --git a/graphics/swappy/pkg-plist b/graphics/swappy/pkg-plist
new file mode 100644
index 000000000000..0e1bc6eac55c
--- /dev/null
+++ b/graphics/swappy/pkg-plist
@@ -0,0 +1,10 @@
+bin/swappy
+share/applications/swappy.desktop
+share/icons/hicolor/scalable/apps/swappy.svg
+share/locale/de/LC_MESSAGES/swappy.mo
+share/locale/en/LC_MESSAGES/swappy.mo
+share/locale/fr/LC_MESSAGES/swappy.mo
+share/locale/pt_BR/LC_MESSAGES/swappy.mo
+share/locale/tr/LC_MESSAGES/swappy.mo
+share/locale/zh_CN/LC_MESSAGES/swappy.mo
+%%MANPAGES%%share/man/man1/swappy.1.gz