Github messages for voidlinux
 help / color / mirror / Atom feed
From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: dooble-2023.01.30
Date: Mon, 20 Feb 2023 19:47:58 +0100	[thread overview]
Message-ID: <20230220184758.SNLXEzxE0_gtzhYPFzcG-ZJ_yHeK35xr8jNkhuXpnDg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39405@inbox.vuxu.org>

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

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

https://github.com/Eloitor/void-packages dooble
https://github.com/void-linux/void-packages/pull/39405

New package: dooble-2023.01.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, x86_64

closes #39353


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

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

From aa762d1c007f437bdc4d0f0463f1cf546b60c7aa Mon Sep 17 00:00:00 2001
From: Eloi Torrents <elotor@disroot.org>
Date: Mon, 19 Sep 2022 10:49:24 +0200
Subject: [PATCH] New package: dooble-2023.02.20.

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

diff --git a/srcpkgs/dooble/patches/translations-dooble_application.patch b/srcpkgs/dooble/patches/translations-dooble_application.patch
new file mode 100644
index 000000000000..2072e9150e67
--- /dev/null
+++ b/srcpkgs/dooble/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/patches/translations-dooble_settings.patch b/srcpkgs/dooble/patches/translations-dooble_settings.patch
new file mode 100644
index 000000000000..726a248105f5
--- /dev/null
+++ b/srcpkgs/dooble/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/template b/srcpkgs/dooble/template
new file mode 100644
index 000000000000..61a797acd7b7
--- /dev/null
+++ b/srcpkgs/dooble/template
@@ -0,0 +1,26 @@
+# Template file for 'dooble'
+pkgname=dooble
+version=2023.02.20
+revision=1
+build_style=qmake
+configure_args="dooble.pro"
+hostmakedepends="qt5-qmake qt5-host-tools qt5-webengine"
+makedepends="qt5-charts-devel qt5-webengine-devel qt5-webchannel-devel qt5-location-devel"
+depends="qt5-plugin-sqlite"
+short_desc="Dooble, the scientific browser. Minimal, cute, and unusually stable"
+maintainer="Eloi Torrents <elotor@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=fa2a8f2687c44547f32b1d8f6879ede8792e23197e8ac01d99e619529ce57717
+
+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_*.ts" usr/share/dooble/translations
+	vcopy "Translations/dooble_*.qm" usr/share/dooble/translations
+	vcopy "Translations/qtbase_*.qm" usr/share/dooble/translations
+	vlicense LICENSE
+}

  parent reply	other threads:[~2023-02-20 18:47 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-21 18:17 [PR PATCH] [WIP] New package: dooble-2022.06.15 Eloitor
2022-09-21 18:21 ` [PR PATCH] [Updated] " Eloitor
2022-09-21 18:37 ` Eloitor
2022-09-21 23:03 ` [PR REVIEW] " classabbyamp
2022-09-21 23:03 ` classabbyamp
2022-09-22 14:02 ` [PR PATCH] [Updated] " Eloitor
2022-09-22 14:04 ` [PR REVIEW] " Eloitor
2022-09-23 11:58 ` sgn
2022-09-23 13:17 ` sgn
2022-09-23 21:17 ` [PR PATCH] [Updated] " Eloitor
2022-09-23 21:28 ` [PR REVIEW] " Eloitor
2022-09-23 21:35 ` classabbyamp
2022-09-23 21:36 ` classabbyamp
2022-09-23 21:40 ` [PR PATCH] [Updated] " Eloitor
2022-09-24  9:53 ` [PR REVIEW] " sgn
2022-09-26 21:04 ` [PR PATCH] [Updated] " Eloitor
2022-09-27 22:07 ` Eloitor
2022-09-27 22:09 ` Eloitor
2022-09-27 22:12 ` Eloitor
2022-09-28  5:53 ` Eloitor
2022-09-28  6:11 ` Eloitor
2022-09-28  6:11 ` Eloitor
2022-09-28  8:12 ` [PR PATCH] [Updated] " Eloitor
2022-10-24  9:01 ` Eloitor
2022-11-17  7:22 ` [PR PATCH] [Updated] New package: dooble-2022.10.15 Eloitor
2023-01-12 11:03 ` [PR PATCH] [Updated] New package: dooble-2022.11.15 Eloitor
2023-01-27 14:27 ` [PR PATCH] [Updated] New package: dooble-2022.12.25 Eloitor
2023-01-27 14:34 ` [PR PATCH] [Updated] New package: dooble-2023.01.25 Eloitor
2023-02-15 16:16 ` Eloitor
2023-02-20 14:34 ` [PR PATCH] [Updated] New package: dooble-2023.01.30 Eloitor
2023-02-20 14:34 ` Eloitor
2023-02-20 15:52 ` Eloitor
2023-02-20 16:51 ` Eloitor
2023-02-20 16:53 ` Eloitor
2023-02-20 18:47 ` Eloitor [this message]
2023-02-20 19:03 ` Eloitor
2023-02-20 19:05 ` Eloitor
2023-02-20 22:52 ` [PR PATCH] [Merged]: " 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=20230220184758.SNLXEzxE0_gtzhYPFzcG-ZJ_yHeK35xr8jNkhuXpnDg@z \
    --to=eloitor@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).