Github messages for voidlinux
 help / color / mirror / Atom feed
From: zen0bit <zen0bit@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: dooble-qt6-2023.08.30
Date: Tue, 05 Sep 2023 22:16:46 +0200	[thread overview]
Message-ID: <20230905201646.x-T4KHFQ1CUKPFArJuQa9_3ulDAlwURR-YhA9cOoIkA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45924@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

There is an updated pull request by zen0bit against master on the void-packages repository

https://github.com/oSoWoSo/VUR dooble-qt6
https://github.com/void-linux/void-packages/pull/45924

New package: dooble-qt6-2023.08.30
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x64 glibc

A patch file from https://github.com/void-linux/void-packages/pull/45924.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-dooble-qt6-45924.patch --]
[-- Type: text/x-diff, Size: 3984 bytes --]

From e783107fa69655dda1f487dc31353a19856cad86 Mon Sep 17 00:00:00 2001
From: zenobit <zen@osowoso.xyz>
Date: Tue, 5 Sep 2023 18:08:10 +0200
Subject: [PATCH] New package: dooble-qt6-2023.08.30

---
 .../translations-dooble_application.patch     | 20 +++++++++++++++
 .../translations-dooble_settings.patch        | 21 ++++++++++++++++
 srcpkgs/dooble-qt6/template                   | 25 +++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 srcpkgs/dooble-qt6/patches/translations-dooble_application.patch
 create mode 100644 srcpkgs/dooble-qt6/patches/translations-dooble_settings.patch
 create mode 100644 srcpkgs/dooble-qt6/template

diff --git a/srcpkgs/dooble-qt6/patches/translations-dooble_application.patch b/srcpkgs/dooble-qt6/patches/translations-dooble_application.patch
new file mode 100644
index 0000000000000..2072e9150e672
--- /dev/null
+++ b/srcpkgs/dooble-qt6/patches/translations-dooble_application.patch
@@ -0,0 +1,20 @@
+--- a/Source/dooble_application.cc
++++ b/Source/dooble_application.cc
+@@ -76,16 +76,13 @@ void dooble_application::install_translator(void)
+
+   if(dooble_settings::setting("language_index").toInt() == 1) // System
+     {
+-      QString path("");
++      QString path("/usr/share/translations/");
+       auto name(QLocale::system().name());
+       auto variable(qgetenv("DOOBLE_TRANSLATIONS_PATH").trimmed());
+
+       if(!variable.isEmpty())
+ 	path = QString::fromLocal8Bit(variable.constData());
+
+-      if(path.isEmpty())
+-	path = QDir::currentPath() + QDir::separator() + "Translations";
+-
+       m_translator = new QTranslator(this);
+
+       if(m_translator->load("dooble_" + name, path))
\ No newline at end of file
diff --git a/srcpkgs/dooble-qt6/patches/translations-dooble_settings.patch b/srcpkgs/dooble-qt6/patches/translations-dooble_settings.patch
new file mode 100644
index 0000000000000..726a248105f53
--- /dev/null
+++ b/srcpkgs/dooble-qt6/patches/translations-dooble_settings.patch
@@ -0,0 +1,21 @@
+--- a/Source/dooble_settings.cc
++++ b/Source/dooble_settings.cc
+@@ -188,17 +188,11 @@ dooble_settings::dooble_settings(void):dooble_main_window()
+     }
+   else
+     {
+-      QString path("");
++      QString path("/usr/share/dooble/translations/");
+       auto variable(qgetenv("DOOBLE_TRANSLATIONS_PATH").trimmed());
+
+       if(!variable.isEmpty())
+ 	path = QString::fromLocal8Bit(variable.constData());
+-      else
+-	{
+-	  path = QDir::currentPath();
+-	  path.append(QDir::separator());
+-	  path.append("Translations");
+-	}
+
+       if(!path.endsWith(QDir::separator()))
+ 	path.append(QDir::separator());
\ No newline at end of file
diff --git a/srcpkgs/dooble-qt6/template b/srcpkgs/dooble-qt6/template
new file mode 100644
index 0000000000000..6684965146287
--- /dev/null
+++ b/srcpkgs/dooble-qt6/template
@@ -0,0 +1,25 @@
+# Template file for 'dooble-qt6'
+pkgname=dooble-qt6
+version=2023.08.30
+revision=1
+build_style=qmake
+configure_args="dooble.pro"
+hostmakedepends="qt6-webengine qt6-declarative-devel"
+makedepends="qt6-charts-devel qt6-webengine-devel qt6-webchannel-devel qt6-location-devel qt6-charts-devel qt6-wayland python3-QtPy"
+depends="glibc libgcc libstdc++ qt6-charts qt6-core qt6-declarative qt6-gui qt6-network qt6-plugin-sqlite qt6-printsupport qt6-sql qt6-webengine qt6-widgets"
+conflicts="dooble"
+short_desc="Scientific browser. Minimal, cute, and unusually stable. Qt6 version"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="BSD-3-Clause"
+homepage="https://textbrowser.github.io/dooble/"
+distfiles="https://github.com/textbrowser/dooble/archive/refs/tags/${version}.tar.gz"
+checksum=d430cbc8fcbe7627d7494bd995d7e88beb728cd94bf4d3039cb3718e685391a7
+
+do_install() {
+	vbin Dooble dooble
+	vinstall dooble.desktop 644 usr/share/applications
+	vinstall Icons/Logo/dooble.png 644 usr/share/pixmaps
+	vmkdir usr/share/dooble/translations
+	vcopy "Translations/dooble_*.qm" usr/share/dooble/translations
+	vlicense LICENSE
+}

  parent reply	other threads:[~2023-09-05 20:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-05 16:14 [PR PATCH] " zen0bit
2023-09-05 16:53 ` [PR REVIEW] " Eloitor
2023-09-05 16:54 ` Eloitor
2023-09-05 17:48 ` classabbyamp
2023-09-05 20:16 ` zen0bit [this message]
2023-09-05 20:18 ` [PR PATCH] [Updated] " zen0bit
2023-11-26 14:26 ` Eloitor
2023-12-02  7:53 ` [PR PATCH] [Closed]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230905201646.x-T4KHFQ1CUKPFArJuQa9_3ulDAlwURR-YhA9cOoIkA@z \
    --to=zen0bit@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).