head 1.4; access; symbols pkgsrc-2021Q3:1.3.0.2 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.1.0.8 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.6 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.4 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.2 pkgsrc-2020Q3-base:1.1; locks; strict; comment @// @; 1.4 date 2021.09.29.13.12.09; author wiz; state dead; branches; next 1.3; commitid BBacyRljDFQUTQaD; 1.3 date 2021.07.02.14.04.06; author wiz; state Exp; branches; next 1.2; commitid sTrw4yx2QAd43qZC; 1.2 date 2021.07.02.06.59.15; author wiz; state Exp; branches; next 1.1; commitid XJIUzhSQ1DN9HnZC; 1.1 date 2020.08.05.19.59.19; author kamil; state Exp; branches; next ; commitid 34GcGejGR6otEUiC; desc @@ 1.4 log @inkscape: update to 1.1.1. Inkscape 1.1.1 -------------- This is a bugfix release: - Pressure sensitivity should work again in Windows - Stroke to path working on text again - Startup time improved - Fix various crashes @ text @$NetBSD: patch-src_path-prefix.cpp,v 1.3 2021/07/02 14:04:06 wiz Exp $ Add NetBSD support in get_program_name(). https://gitlab.com/inkscape/inkscape/-/merge_requests/3376 --- src/path-prefix.cpp.orig 2021-05-17 19:25:49.000000000 +0000 +++ src/path-prefix.cpp @@@@ -20,6 +20,11 @@@@ #include // for _NSGetExecutablePath #endif +#ifdef __NetBSD__ +#include +#include +#endif + #include #include #include @@@@ -123,6 +128,15 @@@@ char const *get_program_name() if (!program_name) { g_warning("get_program_name() - g_file_read_link failed"); } +#elif defined(__NetBSD__) + static const int name[] = {CTL_KERN, KERN_PROC_ARGS, -1, KERN_PROC_PATHNAME}; + char path[MAXPATHLEN]; + size_t len = sizeof(path); + if (sysctl(name, __arraycount(name), path, &len, NULL, 0) == 0) { + program_name = realpath(path, nullptr); + } else { + g_warning("get_program_name() - sysctl failed"); + } #else #warning get_program_name() - no known way to obtain executable name on this platform g_info("get_program_name() - no known way to obtain executable name on this platform"); @ 1.3 log @inkscape: add link to upstream merge request already merged! @ text @d1 1 a1 1 $NetBSD: patch-src_path-prefix.cpp,v 1.2 2021/07/02 06:59:15 wiz Exp $ @ 1.2 log @inkscape: update to 1.1. Much help provided by Nathan Lee in fixing a startup issue. Inkscape 1.1 is the latest major Inkscape release that brings users many fresh new features and new functionality. The most notable changes include: A Welcome dialog, where the look of Inkscape can be selected, and some choices for the new document's size or file to open are available A Command palette that opens when the ? key is pressed and that allows to search and use many functions without having to use a keyboard shortcut or going through the menus It is now possible to copy, cut and paste parts of paths with the Node tool The dialog docking system has been rewritten, which resolves many issues with Inkscape's docked dialogs and allows you to dock dialogs on either side of the screen New Outline Overlay mode that displays object outlines while also showing their real colors Preferences options are now easier to find by using the new search field It is no longer necessary to remember to click on 'Export' in the PNG Export dialog, as the exporting will already happen after the click on 'Save' in the file selection dialog. Export as JPG, TIFF, optimized PNG and WebP directly from Inkscape When pasting a copied object, Inkscape now pastes it directly on top of the currently selected object by default An extension for updating extensions and installing additional extensions, called the Extension Manager (currently in beta stage) @ text @d1 1 a1 1 $NetBSD: patch-src_path-prefix.cpp,v 1.1 2020/08/05 19:59:19 kamil Exp $ d4 1 @ 1.1 log @inkscape: Implement get_program_name for NetBSD. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- src/path-prefix.cpp.orig 2020-05-01 13:17:42.000000000 +0000 d16 1 d18 2 a19 3 #include "path-prefix.h" @@@@ -114,6 +119,15 @@@@ gchar *get_program_name() @