summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deskutils/Makefile1
-rw-r--r--deskutils/elementary-calendar/Makefile35
-rw-r--r--deskutils/elementary-calendar/distinfo3
-rw-r--r--deskutils/elementary-calendar/files/patch-core_Services_Calendar_EventStore.vala20
-rw-r--r--deskutils/elementary-calendar/pkg-descr3
-rw-r--r--deskutils/elementary-calendar/pkg-plist12
6 files changed, 74 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile
index 7c80682af30b..945f9635cac1 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -47,6 +47,7 @@
SUBDIR += dstask
SUBDIR += easystroke
SUBDIR += egroupware
+ SUBDIR += elementary-calendar
SUBDIR += fasd
SUBDIR += fbreader
SUBDIR += fet
diff --git a/deskutils/elementary-calendar/Makefile b/deskutils/elementary-calendar/Makefile
new file mode 100644
index 000000000000..da13e80fb42a
--- /dev/null
+++ b/deskutils/elementary-calendar/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME= elementary-calendar
+DISTVERSION= 5.1.1
+CATEGORIES= deskutils
+
+MAINTAINER= neel@neelc.org
+COMMENT= Desktop calendar app designed for elementary OS
+
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= valac:lang/vala
+LIB_DEPENDS= libcanberra.so:audio/libcanberra \
+ libchamplain-0.12.so:graphics/libchamplain \
+ libclutter-1.0.so:graphics/clutter \
+ libedataserver-1.2.so:databases/evolution-data-server \
+ libfolks.so:net-im/folks \
+ libgee-0.8.so:devel/libgee \
+ libgeoclue-2.so:net/geoclue \
+ libgeocode-glib.so:net/geocode-glib \
+ libgranite.so:x11-toolkits/granite \
+ libhandy-1.so:x11-toolkits/libhandy \
+ libical.so:devel/libical \
+ libnotify.so:devel/libnotify
+
+USES= gnome meson pkgconfig
+USE_GITHUB= yes
+GH_ACCOUNT= elementary
+GH_PROJECT= calendar
+USE_GNOME= glib20 gtk30
+GLIB_SCHEMAS= io.elementary.calendar.gschema.xml
+INSTALLS_ICONS= yes
+
+.include <bsd.port.mk>
diff --git a/deskutils/elementary-calendar/distinfo b/deskutils/elementary-calendar/distinfo
new file mode 100644
index 000000000000..8339a25075f8
--- /dev/null
+++ b/deskutils/elementary-calendar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1609034354
+SHA256 (elementary-calendar-5.1.1_GH0.tar.gz) = 59e9e775c355791f093580fab73e45a8b0581b70899c2bb89e870b9e89b39573
+SIZE (elementary-calendar-5.1.1_GH0.tar.gz) = 505188
diff --git a/deskutils/elementary-calendar/files/patch-core_Services_Calendar_EventStore.vala b/deskutils/elementary-calendar/files/patch-core_Services_Calendar_EventStore.vala
new file mode 100644
index 000000000000..fc0a62d29b48
--- /dev/null
+++ b/deskutils/elementary-calendar/files/patch-core_Services_Calendar_EventStore.vala
@@ -0,0 +1,20 @@
+--- core/Services/Calendar/EventStore.vala.orig 2020-10-08 20:26:30 UTC
++++ core/Services/Calendar/EventStore.vala
+@@ -303,7 +303,7 @@ public class Calendar.EventStore : Object {
+ // number we want, so we convert the pointer address to a uint to get
+ // the data. Since the pointer address is actually data, using it as a
+ // pointer will segfault.
+- uint week_day1 = (uint) Posix.NLTime.WEEK_1STDAY.to_string ();
++ uint week_day1 = (uint) Posix.NLItem.DAY_1.to_string ();
+ var week_1stday = 0; // Default to 0 if unrecognized data
+ if (week_day1 == 19971130) { // Sunday
+ week_1stday = 0;
+@@ -322,7 +322,7 @@ public class Calendar.EventStore : Object {
+ // Get the start of week
+ // HACK This line produces a string of 3 bytes. It takes the raw value
+ // of the first one and uses that as the value of week_start.
+- int week_start_posix = Posix.NLTime.FIRST_WEEKDAY.to_string ().data[0];
++ int week_start_posix = Posix.NLItem.DAY_1.to_string ().data[0];
+
+ var week_start = week_start_posix + glib_offset;
+ if (week_start == 0) { // Sunday special case
diff --git a/deskutils/elementary-calendar/pkg-descr b/deskutils/elementary-calendar/pkg-descr
new file mode 100644
index 000000000000..aaad1787d704
--- /dev/null
+++ b/deskutils/elementary-calendar/pkg-descr
@@ -0,0 +1,3 @@
+Desktop calendar app designed for elementary OS.
+
+WWW: https://github.com/elementary/calendar
diff --git a/deskutils/elementary-calendar/pkg-plist b/deskutils/elementary-calendar/pkg-plist
new file mode 100644
index 000000000000..7bb7c6627370
--- /dev/null
+++ b/deskutils/elementary-calendar/pkg-plist
@@ -0,0 +1,12 @@
+bin/io.elementary.calendar
+etc/xdg/autostart/io.elementary.calendar-daemon.desktop
+include/elementary-calendar/elementary-calendar.h
+lib/io.elementary.calendar/plugins/CalDAV/libcaldav.so
+lib/io.elementary.calendar/plugins/Google/libgoogle.so
+lib/libelementary-calendar.so
+lib/libelementary-calendar.so.0
+lib/libelementary-calendar.so.0.1
+libdata/pkgconfig/elementary-calendar.pc
+libexec/io.elementary.calendar-daemon
+share/vala/vapi/elementary-calendar.deps
+share/vala/vapi/elementary-calendar.vapi