accessibility/wlsunset: update to 0.2.0

Changes:	https://git.sr.ht/~kennylevinsen/wlsunset/refs/0.2.0
This commit is contained in:
Jan Beich 2021-04-25 20:56:30 +00:00
parent 693bcfe3c2
commit f9c701cefc
3 changed files with 21 additions and 17 deletions

View file

@ -1,13 +1,8 @@
PORTNAME= wlsunset
DISTVERSION= 0.1.0
DISTVERSION= 0.2.0
CATEGORIES= accessibility
MASTER_SITES= https://git.sr.ht/~kennylevinsen/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
PATCH_SITES= https://git.sr.ht/~kennylevinsen/${PORTNAME}/commit/
PATCHFILES+= fa2bd4425314.patch:-p1 33c64bc929b2.patch:-p1 # manpage
PATCHFILES+= ec0c1614af21.patch:-p1 # avoid USES=localbase
PATCHFILES+= 49ad3ce7a8e8.patch:-p1 # unbreak Clang >= 10
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Day/night gamma adjustments for Wayland

View file

@ -1,11 +1,3 @@
TIMESTAMP = 1603237309
SHA256 (wlsunset-0.1.0.tar.gz) = d9a20744be6a5ef7fceb4e97e831a5c8cec77a95fb8248744ec1e674da3bbe71
SIZE (wlsunset-0.1.0.tar.gz) = 10927
SHA256 (fa2bd4425314.patch) = 96ce10ee08adba006797683bb96468796a44a2b4ab07d668c9ca5778f9740e39
SIZE (fa2bd4425314.patch) = 2634
SHA256 (33c64bc929b2.patch) = fdb112f99f43fc4f2984a53d6474d616bf99c3fbbf802c7c3378fd98f9a78ee1
SIZE (33c64bc929b2.patch) = 971
SHA256 (ec0c1614af21.patch) = 9912020085fe3c5ebaf90684542e379b82a80c07f4bc060a9325cd2eb97ae7af
SIZE (ec0c1614af21.patch) = 1450
SHA256 (49ad3ce7a8e8.patch) = f3cbefd2cb3ba70b198eddafdc792f1bac46192f9f0f01eb956e55cc4dda12c9
SIZE (49ad3ce7a8e8.patch) = 970
TIMESTAMP = 1619384190
SHA256 (wlsunset-0.2.0.tar.gz) = 88bce695722a09d79545f14d404cc0659f7176bb08d5db5f4f23228b6ba8bb03
SIZE (wlsunset-0.2.0.tar.gz) = 12605

View file

@ -0,0 +1,17 @@
Unbreak on FreeBSD after https://git.sr.ht/~kennylevinsen/wlsunset/commit/111181106e41
See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=24590
main.c:710:47: error: use of undeclared identifier 'timezone'
*time = tm.tm_hour * 3600 + tm.tm_min * 60 + timezone;
--- main.c.orig 2021-04-25 20:56:30 UTC
+++ main.c
@@ -707,7 +707,7 @@ static int parse_time_of_day(const char *s, time_t *ti
if (strptime(s, "%H:%M", &tm) == NULL) {
return -1;
}
- *time = tm.tm_hour * 3600 + tm.tm_min * 60 + timezone;
+ *time = tm.tm_hour * 3600 + tm.tm_min * 60 + tm.tm_gmtoff;
return 0;
}