diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-01-03 13:49:07 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2019-01-03 13:49:07 +0000 |
commit | 75603347c47b2b8c7a7c1589d6586d0d4c28a0d4 (patch) | |
tree | cdeacf8cfafd02e6bb03585c2b4b8b0171f85cd3 /x11-toolkits/granite | |
parent | 141e065e2835fff01eef32238db5ae4ee8e7439d (diff) | |
download | ports-75603347c47b2b8c7a7c1589d6586d0d4c28a0d4.tar.gz ports-75603347c47b2b8c7a7c1589d6586d0d4c28a0d4.zip |
x11-toolkits/granite: Update to 5.2.2
- Update WWW
- Add missing gsettings-desktop-schemas dependency to prevent
runtime crashes of applications using the DateTime widget
- Bump revision of dependent ports
Changes: https://github.com/elementary/granite/releases
Notes
Notes:
svn path=/head/; revision=489174
Diffstat (limited to 'x11-toolkits/granite')
-rw-r--r-- | x11-toolkits/granite/Makefile | 10 | ||||
-rw-r--r-- | x11-toolkits/granite/distinfo | 6 | ||||
-rw-r--r-- | x11-toolkits/granite/files/patch-CMakeLists.txt | 11 | ||||
-rw-r--r-- | x11-toolkits/granite/files/patch-lib_Application.vala (renamed from x11-toolkits/granite/files/patch-lib__Application.vala) | 8 | ||||
-rw-r--r-- | x11-toolkits/granite/files/patch-lib_DateTime.vala | 18 | ||||
-rw-r--r-- | x11-toolkits/granite/files/patch-lib_Widgets_DatePicker.vala | 6 | ||||
-rw-r--r-- | x11-toolkits/granite/files/patch-lib__CMakeLists.txt | 22 | ||||
-rw-r--r-- | x11-toolkits/granite/pkg-descr | 2 | ||||
-rw-r--r-- | x11-toolkits/granite/pkg-plist | 4 |
9 files changed, 46 insertions, 41 deletions
diff --git a/x11-toolkits/granite/Makefile b/x11-toolkits/granite/Makefile index 1ae2ed739f38..53a0f42a3e78 100644 --- a/x11-toolkits/granite/Makefile +++ b/x11-toolkits/granite/Makefile @@ -3,7 +3,7 @@ # PORTNAME= granite -DISTVERSION= 0.5 +DISTVERSION= 5.2.2 CATEGORIES= x11-toolkits MAINTAINER= tobik@FreeBSD.org @@ -14,9 +14,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= valac:lang/vala LIB_DEPENDS= libgee-0.8.so:devel/libgee -RUN_DEPENDS= contractor:sysutils/contractor +RUN_DEPENDS= contractor:sysutils/contractor \ + gsettings-desktop-schemas>=3.28.1:devel/gsettings-desktop-schemas -USES= cmake gettext pkgconfig tar:xz +USES= cmake gettext gnome pkgconfig tar:xz USE_GITHUB= yes GH_ACCOUNT= elementary USE_GNOME= glib20 gtk30 cairo introspection:build @@ -25,7 +26,4 @@ USE_LDCONFIG= yes CFLAGS+= -Wno-return-type -post-patch: - ${REINPLACE_CMD} -e 's|FFREE_|FREE_|' ${WRKSRC}/CMakeLists.txt - .include <bsd.port.mk> diff --git a/x11-toolkits/granite/distinfo b/x11-toolkits/granite/distinfo index 45d47d6fa583..88414030b3a9 100644 --- a/x11-toolkits/granite/distinfo +++ b/x11-toolkits/granite/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1521380734 -SHA256 (elementary-granite-0.5_GH0.tar.gz) = cc4905ae70fddeba3d2ded44bb642be77d419aa090251a7ab24c155b8616be06 -SIZE (elementary-granite-0.5_GH0.tar.gz) = 365015 +TIMESTAMP = 1546508010 +SHA256 (elementary-granite-5.2.2_GH0.tar.gz) = a2bfb717570b2b7ffef8715fae0dcabe7e3de21f6cb9392f1184a57ae6436f6c +SIZE (elementary-granite-5.2.2_GH0.tar.gz) = 430867 diff --git a/x11-toolkits/granite/files/patch-CMakeLists.txt b/x11-toolkits/granite/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..8c7b675ae60f --- /dev/null +++ b/x11-toolkits/granite/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2018-12-17 13:02:11 UTC ++++ CMakeLists.txt +@@ -59,7 +59,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") + elseif (${CMAKE_SYSTEM_NAME} MATCHES "DragonFly") + set (VALAC_OPTIONS ${VALAC_OPTIONS} --define=DRAGON_FLY) + elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") +- set (VALAC_OPTIONS ${VALAC_OPTIONS} --define=FFREE_BSD) ++ set (VALAC_OPTIONS ${VALAC_OPTIONS} --define=FREE_BSD) + elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") + set (VALAC_OPTIONS ${VALAC_OPTIONS} --define=NET_BSD) + elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") diff --git a/x11-toolkits/granite/files/patch-lib__Application.vala b/x11-toolkits/granite/files/patch-lib_Application.vala index efb9404ba3f0..e6153d1a69c6 100644 --- a/x11-toolkits/granite/files/patch-lib__Application.vala +++ b/x11-toolkits/granite/files/patch-lib_Application.vala @@ -1,8 +1,8 @@ ---- lib/Application.vala.orig 2015-08-30 10:13:06 UTC +--- lib/Application.vala.orig 2018-12-17 13:02:11 UTC +++ lib/Application.vala @@ -157,7 +157,11 @@ namespace Granite { message ("Kernel version: %s", (string) un.release); - Logger.DisplayLevel = LogLevel.WARN; + Granite.Services.Logger.DisplayLevel = Granite.Services.LogLevel.WARN; - Intl.bindtextdomain (exec_name, build_data_dir + "/locale"); + Intl.setlocale (LocaleCategory.ALL, ""); @@ -11,5 +11,5 @@ + Intl.bind_textdomain_codeset (exec_name, "UTF-8"); + Intl.textdomain (exec_name); - add_actions (); - + handle_local_options.connect (on_handle_local_options); + } diff --git a/x11-toolkits/granite/files/patch-lib_DateTime.vala b/x11-toolkits/granite/files/patch-lib_DateTime.vala new file mode 100644 index 000000000000..36e597c1368a --- /dev/null +++ b/x11-toolkits/granite/files/patch-lib_DateTime.vala @@ -0,0 +1,18 @@ +The io.elementary.desktop.wingpanel.datetime schema is not available, +which leads to crashes when using the DateTime widget. Use the +org.gnome.desktop.interface schema instead as documented in the API +docs. + +cf. https://github.com/elementary/granite/pull/222 + +--- lib/DateTime.vala.orig 2018-12-17 13:02:11 UTC ++++ lib/DateTime.vala +@@ -110,7 +110,7 @@ namespace Granite.DateTime { + * @return true if the clock format is 12h based, false otherwise. + */ + private static bool is_clock_format_12h () { +- var h24_settings = new Settings ("io.elementary.desktop.wingpanel.datetime"); ++ var h24_settings = new Settings ("org.gnome.desktop.interface"); + var format = h24_settings.get_string ("clock-format"); + return (format.contains ("12h")); + } diff --git a/x11-toolkits/granite/files/patch-lib_Widgets_DatePicker.vala b/x11-toolkits/granite/files/patch-lib_Widgets_DatePicker.vala index 35fc43a2e732..67fe7954b660 100644 --- a/x11-toolkits/granite/files/patch-lib_Widgets_DatePicker.vala +++ b/x11-toolkits/granite/files/patch-lib_Widgets_DatePicker.vala @@ -1,11 +1,11 @@ ---- lib/Widgets/DatePicker.vala.orig 2015-08-30 10:13:06 UTC +--- lib/Widgets/DatePicker.vala.orig 2018-12-17 13:02:11 UTC +++ lib/Widgets/DatePicker.vala -@@ -77,7 +77,7 @@ namespace Granite.Widgets { +@@ -85,7 +85,7 @@ namespace Granite.Widgets { // Entry properties can_focus = false; editable = false; // user can't edit the entry directly - secondary_icon_gicon = new ThemedIcon.with_default_fallbacks ("office-calendar-symbolic"); + secondary_icon_gicon = new ThemedIcon.with_default_fallbacks ("x-office-calendar-symbolic"); - dropdown.add_events (EventMask.FOCUS_CHANGE_MASK); + dropdown.add_events (Gdk.EventMask.FOCUS_CHANGE_MASK); dropdown.add (calendar); diff --git a/x11-toolkits/granite/files/patch-lib__CMakeLists.txt b/x11-toolkits/granite/files/patch-lib__CMakeLists.txt deleted file mode 100644 index 6ed97ecc9e7f..000000000000 --- a/x11-toolkits/granite/files/patch-lib__CMakeLists.txt +++ /dev/null @@ -1,22 +0,0 @@ ---- ./lib/CMakeLists.txt.orig 2014-05-25 19:42:24.000000000 +0000 -+++ ./lib/CMakeLists.txt 2014-07-27 11:00:15.000000000 +0000 -@@ -62,7 +62,11 @@ - configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${PKG_NAME}.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}.pc) - - include (GNUInstallDirs) --install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}.pc DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig) -+if (${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") -+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig) -+else () -+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${PKG_NAME}.pc DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig) -+endif () - - # Link all - set (CFLAGS ${DEPS_CFLAGS} ${DEPS_CFLAGS_OTHER}) -@@ -114,4 +118,4 @@ - if (INTROSPECTION_FOUND) - include (GObjectIntrospectionMacros) - add_target_gir (${PKG_NAME} ${PKG_GIR_NAME} ${PKG_NAME}.h "${VALA_C}" "${DEPS_CFLAGS}" ${API_VERSION} ${GI_PKG_DEPS}) --endif () -\ No newline at end of file -+endif () diff --git a/x11-toolkits/granite/pkg-descr b/x11-toolkits/granite/pkg-descr index 7a6980979e6c..73cc1ac5002f 100644 --- a/x11-toolkits/granite/pkg-descr +++ b/x11-toolkits/granite/pkg-descr @@ -1,4 +1,4 @@ Granite is an extension of Gtk+ toolkit. It provides several widgets and classes that ease desktop applications development. -WWW: https://launchpad.net/granite +WWW: https://github.com/elementary/granite diff --git a/x11-toolkits/granite/pkg-plist b/x11-toolkits/granite/pkg-plist index 6681e76fe427..95aa160f429f 100644 --- a/x11-toolkits/granite/pkg-plist +++ b/x11-toolkits/granite/pkg-plist @@ -3,8 +3,8 @@ include/granite/granite.h include/granite/widgets-utils.h lib/girepository-1.0/Granite-1.0.typelib lib/libgranite.so -lib/libgranite.so.4 -lib/libgranite.so.4.0 +lib/libgranite.so.5 +lib/libgranite.so.5.0 libdata/pkgconfig/granite.pc share/applications/granite-demo.desktop share/gir-1.0/Granite-1.0.gir |