diff --git a/x11/elementary-terminal/Makefile b/x11/elementary-terminal/Makefile index 484bc2348da1..a1c17496ec88 100644 --- a/x11/elementary-terminal/Makefile +++ b/x11/elementary-terminal/Makefile @@ -1,25 +1,24 @@ PORTNAME= terminal -DISTVERSION= 6.0.0 +DISTVERSION= 6.0.1 CATEGORIES= x11 PKGNAMEPREFIX= elementary- MAINTAINER= nc@FreeBSD.org COMMENT= Terminal emulator designed for elementary OS LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= valac:lang/vala LIB_DEPENDS= libgee-0.8.so:devel/libgee \ libgranite.so:x11-toolkits/granite \ libhandy-1.so:x11-toolkits/libhandy \ - libpcre2-posix.so:devel/pcre2 \ - libvte-2.91.so:x11-toolkits/vte3 + libpcre2-posix.so:devel/pcre2 USES= desktop-file-utils gettext gnome meson pkgconfig USE_GITHUB= yes GH_ACCOUNT= elementary -USE_GNOME= glib20 gtk30 +USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 vte3 GLIB_SCHEMAS= io.elementary.terminal.gschema.xml .include diff --git a/x11/elementary-terminal/distinfo b/x11/elementary-terminal/distinfo index 60da6fd3baf9..aef915b19596 100644 --- a/x11/elementary-terminal/distinfo +++ b/x11/elementary-terminal/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1632278975 -SHA256 (elementary-terminal-6.0.0_GH0.tar.gz) = 394b17a7705a735d6a4876984a0cbf93f05c8e0b4d772d2ab366573d33777810 -SIZE (elementary-terminal-6.0.0_GH0.tar.gz) = 846484 +TIMESTAMP = 1639925265 +SHA256 (elementary-terminal-6.0.1_GH0.tar.gz) = de741ad5deadb927243a7007be0f5d3bb4070f780362d59ded600692064b0eca +SIZE (elementary-terminal-6.0.1_GH0.tar.gz) = 865233 diff --git a/x11/elementary-terminal/files/patch-data_io.elementary.terminal.gschema.xml b/x11/elementary-terminal/files/patch-data_io.elementary.terminal.gschema.xml new file mode 100644 index 000000000000..7e08f19719ca --- /dev/null +++ b/x11/elementary-terminal/files/patch-data_io.elementary.terminal.gschema.xml @@ -0,0 +1,11 @@ +--- data/io.elementary.terminal.gschema.xml.orig 2021-07-15 21:30:31 UTC ++++ data/io.elementary.terminal.gschema.xml +@@ -155,7 +155,7 @@ + Defines the encoding to be used by the terminal. + + +- "" ++ "Monospace Regular 12" + The default font of the terminal. + The default font of the terminal. use [Font Name] [Property] [Size]. eg. Droid Sans Mono 12. + diff --git a/x11/elementary-terminal/files/patch-data_meson.build b/x11/elementary-terminal/files/patch-data_meson.build new file mode 100644 index 000000000000..18a76de865f4 --- /dev/null +++ b/x11/elementary-terminal/files/patch-data_meson.build @@ -0,0 +1,41 @@ +--- data/meson.build.orig 2021-12-13 18:31:36 UTC ++++ data/meson.build +@@ -4,7 +4,6 @@ install_data( + ) + + i18n.merge_file ( +- 'desktop', + input: meson.project_name() + '.desktop.in', + output: meson.project_name() + '.desktop', + install: true, +@@ -14,7 +13,6 @@ i18n.merge_file ( + ) + + i18n.merge_file ( +- 'desktop', + input: 'open-pantheon-terminal-here.desktop.in', + output: 'open-pantheon-terminal-here.desktop', + install: true, +@@ -24,7 +22,6 @@ i18n.merge_file ( + ) + + i18n.merge_file ( +- 'appdata', + input: meson.project_name() + '.appdata.xml.in', + output: meson.project_name() + '.appdata.xml', + install: true, +@@ -42,14 +39,4 @@ test ( + 'Validate open here desktop file', + find_program('desktop-file-validate'), + args: join_paths(meson.current_build_dir (), 'open-pantheon-terminal-here.desktop') +-) +- +-install_data( +- 'pantheon_terminal_process_completion_notifications.fish', +- install_dir: join_paths(get_option('datadir'), 'fish', 'vendor_conf.d') +-) +- +-install_data( +- 'enable-zsh-completion-notifications', +- install_dir: join_paths(get_option('datadir'), meson.project_name()) + ) diff --git a/x11/elementary-terminal/files/patch-src_Widgets_TerminalWidget.vala b/x11/elementary-terminal/files/patch-src_Widgets_TerminalWidget.vala new file mode 100644 index 000000000000..ab10a93473b2 --- /dev/null +++ b/x11/elementary-terminal/files/patch-src_Widgets_TerminalWidget.vala @@ -0,0 +1,84 @@ +--- src/Widgets/TerminalWidget.vala.orig 2021-12-13 18:31:36 UTC ++++ src/Widgets/TerminalWidget.vala +@@ -68,13 +68,6 @@ namespace Terminal { + } + + public int default_size; +- const string SEND_PROCESS_FINISHED_BASH = "dbus-send --type=method_call " + +- "--session --dest=io.elementary.terminal " + +- "/io/elementary/terminal " + +- "io.elementary.terminal.ProcessFinished " + +- "string:$PANTHEON_TERMINAL_ID " + +- "string:\"$(history 1 | cut -c 8-)\" " + +- "int32:\$__bp_last_ret_value >/dev/null 2>&1"; + + /* Following strings are used to build RegEx for matching URIs */ + const string USERCHARS = "-[:alnum:]"; +@@ -364,14 +357,7 @@ namespace Terminal { + + envv = { + // Export ID so we can identify the terminal for which the process completion is reported +- "PANTHEON_TERMINAL_ID=" + terminal_id, +- +- // Export callback command a BASH-specific variable, see "man bash" for details +- "PROMPT_COMMAND=" + SEND_PROCESS_FINISHED_BASH + Environment.get_variable ("PROMPT_COMMAND"), +- +- // ZSH callback command will be read from ZSH config file supplied by us, see data/ +- +- // TODO: support FISH, see https://github.com/fish-shell/fish-shell/issues/1382 ++ "PANTHEON_TERMINAL_ID=" + terminal_id + }; + + /* We need opening uri to be available asap when constructing window with working directory +@@ -454,12 +440,49 @@ namespace Terminal { + return this.match_check_event (event, null); + } + ++ private string? extract_cwd (string data) { ++ string[] tokens; ++ string result = null; ++ ++ tokens = data.split (" "); ++ if (tokens.length > 0) { ++ result = tokens[(tokens.length - 1)]; ++ } ++ return result; ++ } ++ + public string get_shell_location () { ++ string[] spawn_env = GLib.Environ.get (); ++ string[] procstat_cmd = {"/usr/bin/pwdx", "--libxo:T",}; ++ string standard_output = null; ++ bool res; ++ string cwd = null; ++ + int pid = (!) (this.child_pid); + ++ /* Update procstat(1) argument */ ++ procstat_cmd += pid.to_string (); ++ + try { +- return GLib.FileUtils.read_link ("/proc/%d/cwd".printf (pid)); +- } catch (GLib.FileError error) { ++ res = GLib.Process.spawn_sync (null, procstat_cmd, ++ spawn_env, ++ GLib.SpawnFlags.STDERR_TO_DEV_NULL, ++ null, ++ out standard_output, ++ null, null); ++ if (res) { ++ cwd = extract_cwd (standard_output.strip ()); ++ if (cwd != null) { ++ return cwd; ++ } ++ else { ++ return GLib.Environment.get_current_dir (); ++ } ++ } ++ else { ++ return GLib.Environment.get_current_dir (); ++ } ++ } catch (GLib.SpawnError error) { + /* Tab name disambiguation may call this before shell location available. */ + /* No terminal warning needed */ + return ""; diff --git a/x11/elementary-terminal/pkg-plist b/x11/elementary-terminal/pkg-plist index a2c608ff73b9..5f9058ee060b 100644 --- a/x11/elementary-terminal/pkg-plist +++ b/x11/elementary-terminal/pkg-plist @@ -1,204 +1,202 @@ bin/io.elementary.terminal share/applications/io.elementary.terminal.desktop share/applications/open-pantheon-terminal-here.desktop -share/fish/vendor_conf.d/pantheon_terminal_process_completion_notifications.fish -share/io.elementary.terminal/enable-zsh-completion-notifications share/locale/aa/LC_MESSAGES/io.elementary.terminal.mo share/locale/ab/LC_MESSAGES/io.elementary.terminal.mo share/locale/ae/LC_MESSAGES/io.elementary.terminal.mo share/locale/af/LC_MESSAGES/io.elementary.terminal.mo share/locale/ak/LC_MESSAGES/io.elementary.terminal.mo share/locale/am/LC_MESSAGES/io.elementary.terminal.mo share/locale/an/LC_MESSAGES/io.elementary.terminal.mo share/locale/ar/LC_MESSAGES/io.elementary.terminal.mo share/locale/as/LC_MESSAGES/io.elementary.terminal.mo share/locale/ast/LC_MESSAGES/io.elementary.terminal.mo share/locale/av/LC_MESSAGES/io.elementary.terminal.mo share/locale/ay/LC_MESSAGES/io.elementary.terminal.mo share/locale/az/LC_MESSAGES/io.elementary.terminal.mo share/locale/ba/LC_MESSAGES/io.elementary.terminal.mo share/locale/be/LC_MESSAGES/io.elementary.terminal.mo share/locale/bg/LC_MESSAGES/io.elementary.terminal.mo share/locale/bh/LC_MESSAGES/io.elementary.terminal.mo share/locale/bi/LC_MESSAGES/io.elementary.terminal.mo share/locale/bm/LC_MESSAGES/io.elementary.terminal.mo share/locale/bn/LC_MESSAGES/io.elementary.terminal.mo share/locale/bo/LC_MESSAGES/io.elementary.terminal.mo share/locale/br/LC_MESSAGES/io.elementary.terminal.mo share/locale/bs/LC_MESSAGES/io.elementary.terminal.mo share/locale/ca/LC_MESSAGES/io.elementary.terminal.mo share/locale/ce/LC_MESSAGES/io.elementary.terminal.mo share/locale/ch/LC_MESSAGES/io.elementary.terminal.mo share/locale/ckb/LC_MESSAGES/io.elementary.terminal.mo share/locale/co/LC_MESSAGES/io.elementary.terminal.mo share/locale/cr/LC_MESSAGES/io.elementary.terminal.mo share/locale/cs/LC_MESSAGES/io.elementary.terminal.mo share/locale/cu/LC_MESSAGES/io.elementary.terminal.mo share/locale/cv/LC_MESSAGES/io.elementary.terminal.mo share/locale/cy/LC_MESSAGES/io.elementary.terminal.mo share/locale/da/LC_MESSAGES/io.elementary.terminal.mo share/locale/de/LC_MESSAGES/io.elementary.terminal.mo share/locale/dv/LC_MESSAGES/io.elementary.terminal.mo share/locale/dz/LC_MESSAGES/io.elementary.terminal.mo share/locale/ee/LC_MESSAGES/io.elementary.terminal.mo share/locale/el/LC_MESSAGES/io.elementary.terminal.mo share/locale/en_AU/LC_MESSAGES/io.elementary.terminal.mo share/locale/en_CA/LC_MESSAGES/io.elementary.terminal.mo share/locale/en_GB/LC_MESSAGES/io.elementary.terminal.mo share/locale/eo/LC_MESSAGES/io.elementary.terminal.mo share/locale/es/LC_MESSAGES/io.elementary.terminal.mo share/locale/et/LC_MESSAGES/io.elementary.terminal.mo share/locale/eu/LC_MESSAGES/io.elementary.terminal.mo share/locale/fa/LC_MESSAGES/io.elementary.terminal.mo share/locale/ff/LC_MESSAGES/io.elementary.terminal.mo share/locale/fi/LC_MESSAGES/io.elementary.terminal.mo share/locale/fj/LC_MESSAGES/io.elementary.terminal.mo share/locale/fo/LC_MESSAGES/io.elementary.terminal.mo share/locale/fr/LC_MESSAGES/io.elementary.terminal.mo share/locale/fr_CA/LC_MESSAGES/io.elementary.terminal.mo share/locale/fy/LC_MESSAGES/io.elementary.terminal.mo share/locale/ga/LC_MESSAGES/io.elementary.terminal.mo share/locale/gd/LC_MESSAGES/io.elementary.terminal.mo share/locale/gl/LC_MESSAGES/io.elementary.terminal.mo share/locale/gn/LC_MESSAGES/io.elementary.terminal.mo share/locale/gu/LC_MESSAGES/io.elementary.terminal.mo share/locale/gv/LC_MESSAGES/io.elementary.terminal.mo share/locale/ha/LC_MESSAGES/io.elementary.terminal.mo share/locale/he/LC_MESSAGES/io.elementary.terminal.mo share/locale/hi/LC_MESSAGES/io.elementary.terminal.mo share/locale/ho/LC_MESSAGES/io.elementary.terminal.mo share/locale/hr/LC_MESSAGES/io.elementary.terminal.mo share/locale/ht/LC_MESSAGES/io.elementary.terminal.mo share/locale/hu/LC_MESSAGES/io.elementary.terminal.mo share/locale/hy/LC_MESSAGES/io.elementary.terminal.mo share/locale/hz/LC_MESSAGES/io.elementary.terminal.mo share/locale/ia/LC_MESSAGES/io.elementary.terminal.mo share/locale/id/LC_MESSAGES/io.elementary.terminal.mo share/locale/ie/LC_MESSAGES/io.elementary.terminal.mo share/locale/ig/LC_MESSAGES/io.elementary.terminal.mo share/locale/ii/LC_MESSAGES/io.elementary.terminal.mo share/locale/ik/LC_MESSAGES/io.elementary.terminal.mo share/locale/io/LC_MESSAGES/io.elementary.terminal.mo share/locale/is/LC_MESSAGES/io.elementary.terminal.mo share/locale/it/LC_MESSAGES/io.elementary.terminal.mo share/locale/iu/LC_MESSAGES/io.elementary.terminal.mo share/locale/ja/LC_MESSAGES/io.elementary.terminal.mo share/locale/jv/LC_MESSAGES/io.elementary.terminal.mo share/locale/ka/LC_MESSAGES/io.elementary.terminal.mo share/locale/kg/LC_MESSAGES/io.elementary.terminal.mo share/locale/ki/LC_MESSAGES/io.elementary.terminal.mo share/locale/kj/LC_MESSAGES/io.elementary.terminal.mo share/locale/kk/LC_MESSAGES/io.elementary.terminal.mo share/locale/kl/LC_MESSAGES/io.elementary.terminal.mo share/locale/km/LC_MESSAGES/io.elementary.terminal.mo share/locale/kn/LC_MESSAGES/io.elementary.terminal.mo share/locale/ko/LC_MESSAGES/io.elementary.terminal.mo share/locale/kr/LC_MESSAGES/io.elementary.terminal.mo share/locale/ks/LC_MESSAGES/io.elementary.terminal.mo share/locale/ku/LC_MESSAGES/io.elementary.terminal.mo share/locale/kv/LC_MESSAGES/io.elementary.terminal.mo share/locale/kw/LC_MESSAGES/io.elementary.terminal.mo share/locale/ky/LC_MESSAGES/io.elementary.terminal.mo share/locale/la/LC_MESSAGES/io.elementary.terminal.mo share/locale/lb/LC_MESSAGES/io.elementary.terminal.mo share/locale/lg/LC_MESSAGES/io.elementary.terminal.mo share/locale/li/LC_MESSAGES/io.elementary.terminal.mo share/locale/ln/LC_MESSAGES/io.elementary.terminal.mo share/locale/lo/LC_MESSAGES/io.elementary.terminal.mo share/locale/lt/LC_MESSAGES/io.elementary.terminal.mo share/locale/lu/LC_MESSAGES/io.elementary.terminal.mo share/locale/lv/LC_MESSAGES/io.elementary.terminal.mo share/locale/mg/LC_MESSAGES/io.elementary.terminal.mo share/locale/mh/LC_MESSAGES/io.elementary.terminal.mo share/locale/mi/LC_MESSAGES/io.elementary.terminal.mo share/locale/mk/LC_MESSAGES/io.elementary.terminal.mo share/locale/ml/LC_MESSAGES/io.elementary.terminal.mo share/locale/mn/LC_MESSAGES/io.elementary.terminal.mo share/locale/mr/LC_MESSAGES/io.elementary.terminal.mo share/locale/ms/LC_MESSAGES/io.elementary.terminal.mo share/locale/mt/LC_MESSAGES/io.elementary.terminal.mo share/locale/my/LC_MESSAGES/io.elementary.terminal.mo share/locale/na/LC_MESSAGES/io.elementary.terminal.mo share/locale/nb/LC_MESSAGES/io.elementary.terminal.mo share/locale/nd/LC_MESSAGES/io.elementary.terminal.mo share/locale/ne/LC_MESSAGES/io.elementary.terminal.mo share/locale/ng/LC_MESSAGES/io.elementary.terminal.mo share/locale/nl/LC_MESSAGES/io.elementary.terminal.mo share/locale/nn/LC_MESSAGES/io.elementary.terminal.mo share/locale/no/LC_MESSAGES/io.elementary.terminal.mo share/locale/nr/LC_MESSAGES/io.elementary.terminal.mo share/locale/nv/LC_MESSAGES/io.elementary.terminal.mo share/locale/ny/LC_MESSAGES/io.elementary.terminal.mo share/locale/oc/LC_MESSAGES/io.elementary.terminal.mo share/locale/oj/LC_MESSAGES/io.elementary.terminal.mo share/locale/om/LC_MESSAGES/io.elementary.terminal.mo share/locale/or/LC_MESSAGES/io.elementary.terminal.mo share/locale/os/LC_MESSAGES/io.elementary.terminal.mo share/locale/pa/LC_MESSAGES/io.elementary.terminal.mo share/locale/pi/LC_MESSAGES/io.elementary.terminal.mo share/locale/pl/LC_MESSAGES/io.elementary.terminal.mo share/locale/ps/LC_MESSAGES/io.elementary.terminal.mo share/locale/pt/LC_MESSAGES/io.elementary.terminal.mo share/locale/pt_BR/LC_MESSAGES/io.elementary.terminal.mo share/locale/qu/LC_MESSAGES/io.elementary.terminal.mo share/locale/rm/LC_MESSAGES/io.elementary.terminal.mo share/locale/rn/LC_MESSAGES/io.elementary.terminal.mo share/locale/ro/LC_MESSAGES/io.elementary.terminal.mo share/locale/ro_MD/LC_MESSAGES/io.elementary.terminal.mo share/locale/ru/LC_MESSAGES/io.elementary.terminal.mo share/locale/rue/LC_MESSAGES/io.elementary.terminal.mo share/locale/rw/LC_MESSAGES/io.elementary.terminal.mo share/locale/sa/LC_MESSAGES/io.elementary.terminal.mo share/locale/sc/LC_MESSAGES/io.elementary.terminal.mo share/locale/sd/LC_MESSAGES/io.elementary.terminal.mo share/locale/se/LC_MESSAGES/io.elementary.terminal.mo share/locale/sg/LC_MESSAGES/io.elementary.terminal.mo share/locale/si/LC_MESSAGES/io.elementary.terminal.mo share/locale/sk/LC_MESSAGES/io.elementary.terminal.mo share/locale/sl/LC_MESSAGES/io.elementary.terminal.mo share/locale/sm/LC_MESSAGES/io.elementary.terminal.mo share/locale/sma/LC_MESSAGES/io.elementary.terminal.mo share/locale/sn/LC_MESSAGES/io.elementary.terminal.mo share/locale/so/LC_MESSAGES/io.elementary.terminal.mo share/locale/sq/LC_MESSAGES/io.elementary.terminal.mo share/locale/sr/LC_MESSAGES/io.elementary.terminal.mo share/locale/ss/LC_MESSAGES/io.elementary.terminal.mo share/locale/st/LC_MESSAGES/io.elementary.terminal.mo share/locale/su/LC_MESSAGES/io.elementary.terminal.mo share/locale/sv/LC_MESSAGES/io.elementary.terminal.mo share/locale/sw/LC_MESSAGES/io.elementary.terminal.mo share/locale/szl/LC_MESSAGES/io.elementary.terminal.mo share/locale/ta/LC_MESSAGES/io.elementary.terminal.mo share/locale/te/LC_MESSAGES/io.elementary.terminal.mo share/locale/tg/LC_MESSAGES/io.elementary.terminal.mo share/locale/th/LC_MESSAGES/io.elementary.terminal.mo share/locale/ti/LC_MESSAGES/io.elementary.terminal.mo share/locale/tk/LC_MESSAGES/io.elementary.terminal.mo share/locale/tl/LC_MESSAGES/io.elementary.terminal.mo share/locale/tlh/LC_MESSAGES/io.elementary.terminal.mo share/locale/tn/LC_MESSAGES/io.elementary.terminal.mo share/locale/to/LC_MESSAGES/io.elementary.terminal.mo share/locale/tr/LC_MESSAGES/io.elementary.terminal.mo share/locale/ts/LC_MESSAGES/io.elementary.terminal.mo share/locale/tt/LC_MESSAGES/io.elementary.terminal.mo share/locale/tw/LC_MESSAGES/io.elementary.terminal.mo share/locale/ty/LC_MESSAGES/io.elementary.terminal.mo share/locale/ug/LC_MESSAGES/io.elementary.terminal.mo share/locale/uk/LC_MESSAGES/io.elementary.terminal.mo share/locale/ur/LC_MESSAGES/io.elementary.terminal.mo share/locale/uz/LC_MESSAGES/io.elementary.terminal.mo share/locale/ve/LC_MESSAGES/io.elementary.terminal.mo share/locale/vi/LC_MESSAGES/io.elementary.terminal.mo share/locale/vo/LC_MESSAGES/io.elementary.terminal.mo share/locale/wa/LC_MESSAGES/io.elementary.terminal.mo share/locale/wo/LC_MESSAGES/io.elementary.terminal.mo share/locale/xh/LC_MESSAGES/io.elementary.terminal.mo share/locale/yi/LC_MESSAGES/io.elementary.terminal.mo share/locale/yo/LC_MESSAGES/io.elementary.terminal.mo share/locale/za/LC_MESSAGES/io.elementary.terminal.mo share/locale/zh/LC_MESSAGES/io.elementary.terminal.mo share/locale/zh_CN/LC_MESSAGES/io.elementary.terminal.mo share/locale/zh_HK/LC_MESSAGES/io.elementary.terminal.mo share/locale/zh_TW/LC_MESSAGES/io.elementary.terminal.mo share/locale/zu/LC_MESSAGES/io.elementary.terminal.mo share/metainfo/io.elementary.terminal.appdata.xml