* [PR PATCH] WIP: New package: Highlighter-2.0.2
@ 2024-04-18 21:13 Eloitor
2024-04-18 21:32 ` [PR PATCH] [Updated] " Eloitor
2024-04-18 21:36 ` Eloitor
0 siblings, 2 replies; 3+ messages in thread
From: Eloitor @ 2024-04-18 21:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 672 bytes --]
There is a new pull request by Eloitor against master on the void-packages repository
https://github.com/Eloitor/void-packages Highlighter
https://github.com/void-linux/void-packages/pull/49899
WIP: New package: Highlighter-2.0.2
#### Testing the changes
- I tested the changes in this PR: **YES**
#### 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-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/49899.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Highlighter-49899.patch --]
[-- Type: text/x-diff, Size: 10290 bytes --]
From 1f27d69cfe0a2f2b920bbd5d84bf6522a31c3ba7 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:39:00 +0200
Subject: [PATCH 1/6] New package: tclMuPDF-2.4
---
srcpkgs/tclMuPDF/template | 43 +++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 srcpkgs/tclMuPDF/template
diff --git a/srcpkgs/tclMuPDF/template b/srcpkgs/tclMuPDF/template
new file mode 100644
index 00000000000000..0e958f8667aa35
--- /dev/null
+++ b/srcpkgs/tclMuPDF/template
@@ -0,0 +1,43 @@
+# Template file for 'tclMuPDF'
+pkgname=tclMuPDF
+version=2.4
+_ref=1235
+revision=1
+hostmakedepends="tcl tcllib"
+makedepends="tcl-devel tk-devel"
+depends="tcl-publisher"
+short_desc="Tcl meets MuPDF"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/tclMuPdf"
+distfiles="https://sourceforge.net/code-snapshots/svn/i/ir/irrational-numbers/code/irrational-numbers-code-r${_ref}-pkgs-tclMuPdf-devkit-tags-${version}.zip"
+checksum=91580432550f3115d10aaa2e657c7dbe6e8eec0bd09941e89d150c1d15e663ba
+
+do_patch() {
+ sed -i 's|tclsh BuildSupport/apps.dtplite/dtplite.tcl|dtplite|g' cross-makefile
+}
+
+do_build() {
+ bash build.sh
+}
+
+do_install() {
+ vmkdir usr/lib/tclMuPDF/linux-x64
+
+ vinstall XBUILD/tclMuPDF/pkgIndex.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_Doc.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_Page.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_TextSearch.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/mupdf.tcl 644 usr/lib/tclMuPDF
+
+ for _f in XBUILD/linux-x64/*.obj; do
+ vinstall "${_f}" 644 usr/lib/tclMuPDF/linux-x64
+ done
+ vinstall XBUILD/linux-x64/MUPage.tkobj 644 usr/lib/tclMuPDF/linux-x64
+ vinstall XBUILD/linux-x64/libtclMuPDF.so 644 usr/lib/tclMuPDF/linux-x64
+ vinstall XBUILD/linux-x64/libtkMuPDF.so 644 usr/lib/tclMuPDF/linux-x64
+}
+
+post_install() {
+ vlicense tclMuPDF-license.terms
+}
From d7312ab50e05fe6318e3eba492d12d815ab684e8 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:54:35 +0200
Subject: [PATCH 2/6] New package: tcl-pdfviewer-0.9.1
---
srcpkgs/tcl-pdfviewer/template | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 srcpkgs/tcl-pdfviewer/template
diff --git a/srcpkgs/tcl-pdfviewer/template b/srcpkgs/tcl-pdfviewer/template
new file mode 100644
index 00000000000000..c0c0c5ee204af3
--- /dev/null
+++ b/srcpkgs/tcl-pdfviewer/template
@@ -0,0 +1,32 @@
+# Template file for 'tcl-pdfviewer'
+pkgname=tcl-pdfviewer
+version=0.9.1
+revision=1
+makedepends=""
+depends="tclMuPDF tklib"
+short_desc="Tcl/Tk widget for browsing PDF files."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://wiki.tcl-lang.org/page/pdfviewer"
+#changelog=""
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/pdfviewer/pdfviewer-${version}.zip"
+checksum=787b8f0bc2ccc0e208795eee784c8ff93757d7dd787c46ae8d30901bcb58fec8
+
+do_patch() {
+ sed -i '/package ifneeded tooltip/,/}} $dir ]/d' lib/pkgIndex.tcl
+}
+
+do_install() {
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/pdfviewer
+ vinstall pdfviewer.tcl 644 usr/lib/tcl8.6/pdfviewer
+ vinstall lib/pkgIndex.tcl 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zbuttoncolor-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zentry-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zpalette-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vcopy images usr/lib/tcl8.6/pdfviewer
+
+}
+
+post_install() {
+ vlicense license.terms
+}
From 101c0ea89a60f5fff542f1a4c995d3544324cb56 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:54:59 +0200
Subject: [PATCH 3/6] New package: tcl-publisher-2.0
---
srcpkgs/tcl-publisher/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/tcl-publisher/template
diff --git a/srcpkgs/tcl-publisher/template b/srcpkgs/tcl-publisher/template
new file mode 100644
index 00000000000000..05547bc8e250ca
--- /dev/null
+++ b/srcpkgs/tcl-publisher/template
@@ -0,0 +1,17 @@
+# Template file for 'tcl-publisher'
+pkgname=tcl-publisher
+version=2.0
+_rev=1235
+revision=1
+depends="tcl"
+short_desc="tclOO-class facilitating the publisher-subscribers pattern."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/publisher/"
+distfiles="https://sourceforge.net/code-snapshots/svn/i/ir/irrational-numbers/code/irrational-numbers-code-r${_rev}-pkgs-publisher-tags-${version}.zip"
+checksum=2cff0e060a9254b520d25fb43ffb2618626857e1072e0ae7d7da1e1615e099dd
+
+do_install() {
+ vinstall pkgIndex.tcl 644 /usr/lib/tcl8.6/publisher
+ vinstall publisher.tcl 644 /usr/lib/tcl8.6/publisher
+}
From 1a545cdff0d5e2bb6abce33f1c4c10218de596f1 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:55:18 +0200
Subject: [PATCH 4/6] New package: tcl-znotebook-1.1
---
srcpkgs/tcl-znotebook/template | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 srcpkgs/tcl-znotebook/template
diff --git a/srcpkgs/tcl-znotebook/template b/srcpkgs/tcl-znotebook/template
new file mode 100644
index 00000000000000..845f5dc165b246
--- /dev/null
+++ b/srcpkgs/tcl-znotebook/template
@@ -0,0 +1,27 @@
+# Template file for 'tcl-znotebook'
+pkgname=tcl-znotebook
+version=1.1
+revision=1
+hostmakedepends=""
+makedepends=""
+depends=""
+short_desc="Extension of the standard ttk::notebook widget."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/znotebook"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/znotebook/znotebook-${version}.zip"
+checksum=0902205d5c049883b0557b414368808be7252bde5d0dabb2eaa72ea91152052d
+
+do_install() {
+ vmkdir usr/lib/tcl8.6/znotebook/ttk
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/znotebook
+ vinstall znotebook.tcl 644 usr/lib/tcl8.6/znotebook
+ for _f in ttk/* ; do
+ vinstall "${_f}" 644 usr/lib/tcl8.6/znotebook/ttk
+ done
+ # vman doc/znotebook.man
+}
+
+post_install() {
+ vlicense license.terms
+}
From cf85bc81792b36d2a4fd8d19ccfb341bf9c1a0e3 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 20:45:59 +0200
Subject: [PATCH 5/6] New package: MuPdfWidget-2.3.1
---
srcpkgs/MuPdfWidget/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/MuPdfWidget/template
diff --git a/srcpkgs/MuPdfWidget/template b/srcpkgs/MuPdfWidget/template
new file mode 100644
index 00000000000000..fc5d050b825987
--- /dev/null
+++ b/srcpkgs/MuPdfWidget/template
@@ -0,0 +1,17 @@
+# Template file for 'MuPdfWidget'
+pkgname=MuPdfWidget
+version=2.3.1
+revision=1
+depends="tcl tclMuPDF"
+short_desc="Fully customizable widget for displaying PDF-files."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://wiki.tcl-lang.org/page/MuPdfWidget"
+changelog="https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/MuPdfWidget/trunk/CHANGES.txt?format=raw"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/MuPDFWidget/MuPDFWidget-${version}.zip"
+checksum=a01aea3d056cc730b3a3b6a02b206d8a31e1e86a513b7398e985d8003159a7c8
+
+do_install() {
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/MuPDFWidget
+ vinstall MuPDFWidget.tcl 644 usr/lib/tcl8.6/MuPDFWidget
+}
From 7b2092d256643793474e4ef7687cba88d500dbf9 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:55:42 +0200
Subject: [PATCH 6/6] New package: Highlighter-2.0.2
---
srcpkgs/Highlighter/patches/images_path.patch | 13 +++++++++
srcpkgs/Highlighter/patches/shebang.patch | 9 ++++++
srcpkgs/Highlighter/template | 28 +++++++++++++++++++
3 files changed, 50 insertions(+)
create mode 100644 srcpkgs/Highlighter/patches/images_path.patch
create mode 100644 srcpkgs/Highlighter/patches/shebang.patch
create mode 100644 srcpkgs/Highlighter/template
diff --git a/srcpkgs/Highlighter/patches/images_path.patch b/srcpkgs/Highlighter/patches/images_path.patch
new file mode 100644
index 00000000000000..e4ca61548f415b
--- /dev/null
+++ b/srcpkgs/Highlighter/patches/images_path.patch
@@ -0,0 +1,13 @@
+diff --git a/main.tcl b/main.tcl
+index 5b017d8..3fa1e47 100644
+--- a/main.tcl
++++ b/main.tcl
+@@ -87,7 +87,7 @@ namespace eval APP {
+ return ; #-------------------
+ }
+
+- set imageDir [file join [file dirname [info script]] images]
++ set imageDir /usr/lib/Highlighter/images
+ image create photo ICON::PDF_LOGO -file $imageDir/PdfLogo-Large.png
+
+ set DropAreaW [DropFileArea $addFrame \
diff --git a/srcpkgs/Highlighter/patches/shebang.patch b/srcpkgs/Highlighter/patches/shebang.patch
new file mode 100644
index 00000000000000..3133d8547e5686
--- /dev/null
+++ b/srcpkgs/Highlighter/patches/shebang.patch
@@ -0,0 +1,9 @@
+diff --git a/main.tcl b/main.tcl
+index 5b017d8..dd2c0f3 100644
+--- a/main.tcl
++++ b/main.tcl
+@@ -1,3 +1,4 @@
++#! /usr/bin/wish
+ # HIGHLIGTHER 2.0
+ #
+ # Small PDF Highlighter
diff --git a/srcpkgs/Highlighter/template b/srcpkgs/Highlighter/template
new file mode 100644
index 00000000000000..f05b938f26b2f2
--- /dev/null
+++ b/srcpkgs/Highlighter/template
@@ -0,0 +1,28 @@
+# Template file for 'Highlighter'
+pkgname=Highlighter
+version=2.0.2
+revision=1
+hostmakedepends="dos2unix"
+depends="tclMuPDF tcl-znotebook tcl-pdfviewer"
+short_desc="Highlight text on PDF"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://wiki.tcl-lang.org/page/Highlighter+2%2Ex"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/Highlighter/Highlighter-${version}.zip"
+checksum=3b6f0dfa5650cb6339a3eba2b78abefd96ae1892f67c9c39f203984de984c15e
+
+pre_patch() {
+ dos2unix main.tcl
+}
+
+do_install() {
+ vinstall images/PdfLogo-Large.png 644 usr/lib/Highlighter/images
+ vinstall lib/pkgIndex.tcl 644 usr/lib/Highlighter
+ vinstall lib/DropFileArea-0.0.tm 644 usr/lib/Highlighter
+ vbin main.tcl Highlighter
+}
+
+post_install() {
+ vlicense Highlighter-license.terms
+}
+
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Updated] WIP: New package: Highlighter-2.0.2
2024-04-18 21:13 [PR PATCH] WIP: New package: Highlighter-2.0.2 Eloitor
@ 2024-04-18 21:32 ` Eloitor
2024-04-18 21:36 ` Eloitor
1 sibling, 0 replies; 3+ messages in thread
From: Eloitor @ 2024-04-18 21:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 677 bytes --]
There is an updated pull request by Eloitor against master on the void-packages repository
https://github.com/Eloitor/void-packages Highlighter
https://github.com/void-linux/void-packages/pull/49899
WIP: New package: Highlighter-2.0.2
#### Testing the changes
- I tested the changes in this PR: **YES**
#### 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-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/49899.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Highlighter-49899.patch --]
[-- Type: text/x-diff, Size: 10279 bytes --]
From 0884ea78cd2a694c4795fe97ed2938c17b8cb3de Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:39:00 +0200
Subject: [PATCH 1/6] New package: tclMuPDF-2.4
---
srcpkgs/tclMuPDF/template | 43 +++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 srcpkgs/tclMuPDF/template
diff --git a/srcpkgs/tclMuPDF/template b/srcpkgs/tclMuPDF/template
new file mode 100644
index 00000000000000..be360ed313d5d0
--- /dev/null
+++ b/srcpkgs/tclMuPDF/template
@@ -0,0 +1,43 @@
+# Template file for 'tclMuPDF'
+pkgname=tclMuPDF
+version=2.4
+revision=1
+_ref=1235
+hostmakedepends="tcl tcllib"
+makedepends="tcl-devel tk-devel"
+depends="tcl-publisher"
+short_desc="Tcl meets MuPDF"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/tclMuPdf"
+distfiles="https://sourceforge.net/code-snapshots/svn/i/ir/irrational-numbers/code/irrational-numbers-code-r${_ref}-pkgs-tclMuPdf-devkit-tags-${version}.zip"
+checksum=91580432550f3115d10aaa2e657c7dbe6e8eec0bd09941e89d150c1d15e663ba
+
+do_patch() {
+ sed -i 's|tclsh BuildSupport/apps.dtplite/dtplite.tcl|dtplite|g' cross-makefile
+}
+
+do_build() {
+ bash build.sh
+}
+
+do_install() {
+ vmkdir usr/lib/tclMuPDF/linux-x64
+
+ vinstall XBUILD/tclMuPDF/pkgIndex.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_Doc.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_Page.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_TextSearch.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/mupdf.tcl 644 usr/lib/tclMuPDF
+
+ for _f in XBUILD/linux-x64/*.obj; do
+ vinstall "${_f}" 644 usr/lib/tclMuPDF/linux-x64
+ done
+ vinstall XBUILD/linux-x64/MUPage.tkobj 644 usr/lib/tclMuPDF/linux-x64
+ vinstall XBUILD/linux-x64/libtclMuPDF.so 644 usr/lib/tclMuPDF/linux-x64
+ vinstall XBUILD/linux-x64/libtkMuPDF.so 644 usr/lib/tclMuPDF/linux-x64
+}
+
+post_install() {
+ vlicense tclMuPDF-license.terms
+}
From 4831442a65cff525f4528e652d436f57d6457766 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:54:35 +0200
Subject: [PATCH 2/6] New package: tcl-pdfviewer-0.9.1
---
srcpkgs/tcl-pdfviewer/template | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 srcpkgs/tcl-pdfviewer/template
diff --git a/srcpkgs/tcl-pdfviewer/template b/srcpkgs/tcl-pdfviewer/template
new file mode 100644
index 00000000000000..c0c0c5ee204af3
--- /dev/null
+++ b/srcpkgs/tcl-pdfviewer/template
@@ -0,0 +1,32 @@
+# Template file for 'tcl-pdfviewer'
+pkgname=tcl-pdfviewer
+version=0.9.1
+revision=1
+makedepends=""
+depends="tclMuPDF tklib"
+short_desc="Tcl/Tk widget for browsing PDF files."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://wiki.tcl-lang.org/page/pdfviewer"
+#changelog=""
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/pdfviewer/pdfviewer-${version}.zip"
+checksum=787b8f0bc2ccc0e208795eee784c8ff93757d7dd787c46ae8d30901bcb58fec8
+
+do_patch() {
+ sed -i '/package ifneeded tooltip/,/}} $dir ]/d' lib/pkgIndex.tcl
+}
+
+do_install() {
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/pdfviewer
+ vinstall pdfviewer.tcl 644 usr/lib/tcl8.6/pdfviewer
+ vinstall lib/pkgIndex.tcl 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zbuttoncolor-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zentry-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zpalette-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vcopy images usr/lib/tcl8.6/pdfviewer
+
+}
+
+post_install() {
+ vlicense license.terms
+}
From 65bbe68fe63e0be1f6f28f3228df3a62bbb6d1d7 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:54:59 +0200
Subject: [PATCH 3/6] New package: tcl-publisher-2.0
---
srcpkgs/tcl-publisher/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/tcl-publisher/template
diff --git a/srcpkgs/tcl-publisher/template b/srcpkgs/tcl-publisher/template
new file mode 100644
index 00000000000000..4f92b80d5557f1
--- /dev/null
+++ b/srcpkgs/tcl-publisher/template
@@ -0,0 +1,17 @@
+# Template file for 'tcl-publisher'
+pkgname=tcl-publisher
+version=2.0
+revision=1
+_rev=1235
+depends="tcl"
+short_desc="TclOO-class facilitating the publisher-subscribers pattern"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/publisher/"
+distfiles="https://sourceforge.net/code-snapshots/svn/i/ir/irrational-numbers/code/irrational-numbers-code-r${_rev}-pkgs-publisher-tags-${version}.zip"
+checksum=2cff0e060a9254b520d25fb43ffb2618626857e1072e0ae7d7da1e1615e099dd
+
+do_install() {
+ vinstall pkgIndex.tcl 644 /usr/lib/tcl8.6/publisher
+ vinstall publisher.tcl 644 /usr/lib/tcl8.6/publisher
+}
From 8e02367b55b403e52ae0ab84d4d92daf73ae773d Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:55:18 +0200
Subject: [PATCH 4/6] New package: tcl-znotebook-1.1
---
srcpkgs/tcl-znotebook/template | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 srcpkgs/tcl-znotebook/template
diff --git a/srcpkgs/tcl-znotebook/template b/srcpkgs/tcl-znotebook/template
new file mode 100644
index 00000000000000..845f5dc165b246
--- /dev/null
+++ b/srcpkgs/tcl-znotebook/template
@@ -0,0 +1,27 @@
+# Template file for 'tcl-znotebook'
+pkgname=tcl-znotebook
+version=1.1
+revision=1
+hostmakedepends=""
+makedepends=""
+depends=""
+short_desc="Extension of the standard ttk::notebook widget."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/znotebook"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/znotebook/znotebook-${version}.zip"
+checksum=0902205d5c049883b0557b414368808be7252bde5d0dabb2eaa72ea91152052d
+
+do_install() {
+ vmkdir usr/lib/tcl8.6/znotebook/ttk
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/znotebook
+ vinstall znotebook.tcl 644 usr/lib/tcl8.6/znotebook
+ for _f in ttk/* ; do
+ vinstall "${_f}" 644 usr/lib/tcl8.6/znotebook/ttk
+ done
+ # vman doc/znotebook.man
+}
+
+post_install() {
+ vlicense license.terms
+}
From 2f9d5d538b9cf525739d46fc70a17b6ea6e27558 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 20:45:59 +0200
Subject: [PATCH 5/6] New package: MuPdfWidget-2.3.1
---
srcpkgs/MuPdfWidget/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/MuPdfWidget/template
diff --git a/srcpkgs/MuPdfWidget/template b/srcpkgs/MuPdfWidget/template
new file mode 100644
index 00000000000000..fc5d050b825987
--- /dev/null
+++ b/srcpkgs/MuPdfWidget/template
@@ -0,0 +1,17 @@
+# Template file for 'MuPdfWidget'
+pkgname=MuPdfWidget
+version=2.3.1
+revision=1
+depends="tcl tclMuPDF"
+short_desc="Fully customizable widget for displaying PDF-files."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://wiki.tcl-lang.org/page/MuPdfWidget"
+changelog="https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/MuPdfWidget/trunk/CHANGES.txt?format=raw"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/MuPDFWidget/MuPDFWidget-${version}.zip"
+checksum=a01aea3d056cc730b3a3b6a02b206d8a31e1e86a513b7398e985d8003159a7c8
+
+do_install() {
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/MuPDFWidget
+ vinstall MuPDFWidget.tcl 644 usr/lib/tcl8.6/MuPDFWidget
+}
From 33b286f69bbdf230a7716b4e3cde7a31a8d7b336 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:55:42 +0200
Subject: [PATCH 6/6] New package: Highlighter-2.0.2
---
srcpkgs/Highlighter/patches/images_path.patch | 13 +++++++++
srcpkgs/Highlighter/patches/shebang.patch | 9 ++++++
srcpkgs/Highlighter/template | 28 +++++++++++++++++++
3 files changed, 50 insertions(+)
create mode 100644 srcpkgs/Highlighter/patches/images_path.patch
create mode 100644 srcpkgs/Highlighter/patches/shebang.patch
create mode 100644 srcpkgs/Highlighter/template
diff --git a/srcpkgs/Highlighter/patches/images_path.patch b/srcpkgs/Highlighter/patches/images_path.patch
new file mode 100644
index 00000000000000..e4ca61548f415b
--- /dev/null
+++ b/srcpkgs/Highlighter/patches/images_path.patch
@@ -0,0 +1,13 @@
+diff --git a/main.tcl b/main.tcl
+index 5b017d8..3fa1e47 100644
+--- a/main.tcl
++++ b/main.tcl
+@@ -87,7 +87,7 @@ namespace eval APP {
+ return ; #-------------------
+ }
+
+- set imageDir [file join [file dirname [info script]] images]
++ set imageDir /usr/lib/Highlighter/images
+ image create photo ICON::PDF_LOGO -file $imageDir/PdfLogo-Large.png
+
+ set DropAreaW [DropFileArea $addFrame \
diff --git a/srcpkgs/Highlighter/patches/shebang.patch b/srcpkgs/Highlighter/patches/shebang.patch
new file mode 100644
index 00000000000000..3133d8547e5686
--- /dev/null
+++ b/srcpkgs/Highlighter/patches/shebang.patch
@@ -0,0 +1,9 @@
+diff --git a/main.tcl b/main.tcl
+index 5b017d8..dd2c0f3 100644
+--- a/main.tcl
++++ b/main.tcl
+@@ -1,3 +1,4 @@
++#! /usr/bin/wish
+ # HIGHLIGTHER 2.0
+ #
+ # Small PDF Highlighter
diff --git a/srcpkgs/Highlighter/template b/srcpkgs/Highlighter/template
new file mode 100644
index 00000000000000..108d4d7b93b115
--- /dev/null
+++ b/srcpkgs/Highlighter/template
@@ -0,0 +1,28 @@
+# Template file for 'Highlighter'
+pkgname=Highlighter
+version=2.0.2
+revision=1
+hostmakedepends="dos2unix"
+depends="tclMuPDF tcl-znotebook tcl-pdfviewer"
+short_desc="Highlight text on PDF"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/Highlighter+2%2Ex"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/Highlighter/Highlighter-${version}.zip"
+checksum=3b6f0dfa5650cb6339a3eba2b78abefd96ae1892f67c9c39f203984de984c15e
+
+pre_patch() {
+ dos2unix main.tcl
+}
+
+do_install() {
+ vinstall images/PdfLogo-Large.png 644 usr/lib/Highlighter/images
+ vinstall lib/pkgIndex.tcl 644 usr/lib/Highlighter
+ vinstall lib/DropFileArea-0.0.tm 644 usr/lib/Highlighter
+ vbin main.tcl Highlighter
+}
+
+post_install() {
+ vlicense Highlighter-license.terms
+}
+
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Updated] WIP: New package: Highlighter-2.0.2
2024-04-18 21:13 [PR PATCH] WIP: New package: Highlighter-2.0.2 Eloitor
2024-04-18 21:32 ` [PR PATCH] [Updated] " Eloitor
@ 2024-04-18 21:36 ` Eloitor
1 sibling, 0 replies; 3+ messages in thread
From: Eloitor @ 2024-04-18 21:36 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 677 bytes --]
There is an updated pull request by Eloitor against master on the void-packages repository
https://github.com/Eloitor/void-packages Highlighter
https://github.com/void-linux/void-packages/pull/49899
WIP: New package: Highlighter-2.0.2
#### Testing the changes
- I tested the changes in this PR: **YES**
#### 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-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/49899.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Highlighter-49899.patch --]
[-- Type: text/x-diff, Size: 11071 bytes --]
From 0884ea78cd2a694c4795fe97ed2938c17b8cb3de Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:39:00 +0200
Subject: [PATCH 1/7] New package: tclMuPDF-2.4
---
srcpkgs/tclMuPDF/template | 43 +++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 srcpkgs/tclMuPDF/template
diff --git a/srcpkgs/tclMuPDF/template b/srcpkgs/tclMuPDF/template
new file mode 100644
index 00000000000000..be360ed313d5d0
--- /dev/null
+++ b/srcpkgs/tclMuPDF/template
@@ -0,0 +1,43 @@
+# Template file for 'tclMuPDF'
+pkgname=tclMuPDF
+version=2.4
+revision=1
+_ref=1235
+hostmakedepends="tcl tcllib"
+makedepends="tcl-devel tk-devel"
+depends="tcl-publisher"
+short_desc="Tcl meets MuPDF"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/tclMuPdf"
+distfiles="https://sourceforge.net/code-snapshots/svn/i/ir/irrational-numbers/code/irrational-numbers-code-r${_ref}-pkgs-tclMuPdf-devkit-tags-${version}.zip"
+checksum=91580432550f3115d10aaa2e657c7dbe6e8eec0bd09941e89d150c1d15e663ba
+
+do_patch() {
+ sed -i 's|tclsh BuildSupport/apps.dtplite/dtplite.tcl|dtplite|g' cross-makefile
+}
+
+do_build() {
+ bash build.sh
+}
+
+do_install() {
+ vmkdir usr/lib/tclMuPDF/linux-x64
+
+ vinstall XBUILD/tclMuPDF/pkgIndex.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_Doc.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_Page.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/class_TextSearch.tcl 644 usr/lib/tclMuPDF
+ vinstall XBUILD/tclMuPDF/mupdf.tcl 644 usr/lib/tclMuPDF
+
+ for _f in XBUILD/linux-x64/*.obj; do
+ vinstall "${_f}" 644 usr/lib/tclMuPDF/linux-x64
+ done
+ vinstall XBUILD/linux-x64/MUPage.tkobj 644 usr/lib/tclMuPDF/linux-x64
+ vinstall XBUILD/linux-x64/libtclMuPDF.so 644 usr/lib/tclMuPDF/linux-x64
+ vinstall XBUILD/linux-x64/libtkMuPDF.so 644 usr/lib/tclMuPDF/linux-x64
+}
+
+post_install() {
+ vlicense tclMuPDF-license.terms
+}
From 4831442a65cff525f4528e652d436f57d6457766 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:54:35 +0200
Subject: [PATCH 2/7] New package: tcl-pdfviewer-0.9.1
---
srcpkgs/tcl-pdfviewer/template | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 srcpkgs/tcl-pdfviewer/template
diff --git a/srcpkgs/tcl-pdfviewer/template b/srcpkgs/tcl-pdfviewer/template
new file mode 100644
index 00000000000000..c0c0c5ee204af3
--- /dev/null
+++ b/srcpkgs/tcl-pdfviewer/template
@@ -0,0 +1,32 @@
+# Template file for 'tcl-pdfviewer'
+pkgname=tcl-pdfviewer
+version=0.9.1
+revision=1
+makedepends=""
+depends="tclMuPDF tklib"
+short_desc="Tcl/Tk widget for browsing PDF files."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://wiki.tcl-lang.org/page/pdfviewer"
+#changelog=""
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/pdfviewer/pdfviewer-${version}.zip"
+checksum=787b8f0bc2ccc0e208795eee784c8ff93757d7dd787c46ae8d30901bcb58fec8
+
+do_patch() {
+ sed -i '/package ifneeded tooltip/,/}} $dir ]/d' lib/pkgIndex.tcl
+}
+
+do_install() {
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/pdfviewer
+ vinstall pdfviewer.tcl 644 usr/lib/tcl8.6/pdfviewer
+ vinstall lib/pkgIndex.tcl 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zbuttoncolor-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zentry-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vinstall lib/zpalette-0.0.tm 644 usr/lib/tcl8.6/pdfviewer/lib
+ vcopy images usr/lib/tcl8.6/pdfviewer
+
+}
+
+post_install() {
+ vlicense license.terms
+}
From 65bbe68fe63e0be1f6f28f3228df3a62bbb6d1d7 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:54:59 +0200
Subject: [PATCH 3/7] New package: tcl-publisher-2.0
---
srcpkgs/tcl-publisher/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/tcl-publisher/template
diff --git a/srcpkgs/tcl-publisher/template b/srcpkgs/tcl-publisher/template
new file mode 100644
index 00000000000000..4f92b80d5557f1
--- /dev/null
+++ b/srcpkgs/tcl-publisher/template
@@ -0,0 +1,17 @@
+# Template file for 'tcl-publisher'
+pkgname=tcl-publisher
+version=2.0
+revision=1
+_rev=1235
+depends="tcl"
+short_desc="TclOO-class facilitating the publisher-subscribers pattern"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/publisher/"
+distfiles="https://sourceforge.net/code-snapshots/svn/i/ir/irrational-numbers/code/irrational-numbers-code-r${_rev}-pkgs-publisher-tags-${version}.zip"
+checksum=2cff0e060a9254b520d25fb43ffb2618626857e1072e0ae7d7da1e1615e099dd
+
+do_install() {
+ vinstall pkgIndex.tcl 644 /usr/lib/tcl8.6/publisher
+ vinstall publisher.tcl 644 /usr/lib/tcl8.6/publisher
+}
From 1d16221ef0e5e030a14c473bc8e7a27f9edbdccd Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:55:18 +0200
Subject: [PATCH 4/7] New package: tcl-znotebook-1.1
---
srcpkgs/tcl-znotebook/template | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 srcpkgs/tcl-znotebook/template
diff --git a/srcpkgs/tcl-znotebook/template b/srcpkgs/tcl-znotebook/template
new file mode 100644
index 00000000000000..adde58409025d3
--- /dev/null
+++ b/srcpkgs/tcl-znotebook/template
@@ -0,0 +1,25 @@
+# Template file for 'tcl-znotebook'
+pkgname=tcl-znotebook
+version=1.1
+revision=1
+depends=""
+short_desc="Extension of the standard ttk::notebook widget."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/znotebook"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/znotebook/znotebook-${version}.zip"
+checksum=0902205d5c049883b0557b414368808be7252bde5d0dabb2eaa72ea91152052d
+
+do_install() {
+ vmkdir usr/lib/tcl8.6/znotebook/ttk
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/znotebook
+ vinstall znotebook.tcl 644 usr/lib/tcl8.6/znotebook
+ for _f in ttk/* ; do
+ vinstall "${_f}" 644 usr/lib/tcl8.6/znotebook/ttk
+ done
+ # vman doc/znotebook.man
+}
+
+post_install() {
+ vlicense license.terms
+}
From 20ef06cf452d94449018e3b73ef1f0d6296d7510 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 20:45:59 +0200
Subject: [PATCH 5/7] New package: MuPdfWidget-2.3.1
---
srcpkgs/MuPdfWidget/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/MuPdfWidget/template
diff --git a/srcpkgs/MuPdfWidget/template b/srcpkgs/MuPdfWidget/template
new file mode 100644
index 00000000000000..fc5d050b825987
--- /dev/null
+++ b/srcpkgs/MuPdfWidget/template
@@ -0,0 +1,17 @@
+# Template file for 'MuPdfWidget'
+pkgname=MuPdfWidget
+version=2.3.1
+revision=1
+depends="tcl tclMuPDF"
+short_desc="Fully customizable widget for displaying PDF-files."
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://wiki.tcl-lang.org/page/MuPdfWidget"
+changelog="https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/MuPdfWidget/trunk/CHANGES.txt?format=raw"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/MuPDFWidget/MuPDFWidget-${version}.zip"
+checksum=a01aea3d056cc730b3a3b6a02b206d8a31e1e86a513b7398e985d8003159a7c8
+
+do_install() {
+ vinstall pkgIndex.tcl 644 usr/lib/tcl8.6/MuPDFWidget
+ vinstall MuPDFWidget.tcl 644 usr/lib/tcl8.6/MuPDFWidget
+}
From f3963c1448760de46cfda1c8fdaddb8bff690af2 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Sun, 7 Apr 2024 17:55:42 +0200
Subject: [PATCH 6/7] New package: Highlighter-2.0.2
---
srcpkgs/Highlighter/patches/images_path.patch | 13 +++++++++
srcpkgs/Highlighter/patches/shebang.patch | 9 +++++++
srcpkgs/Highlighter/template | 27 +++++++++++++++++++
3 files changed, 49 insertions(+)
create mode 100644 srcpkgs/Highlighter/patches/images_path.patch
create mode 100644 srcpkgs/Highlighter/patches/shebang.patch
create mode 100644 srcpkgs/Highlighter/template
diff --git a/srcpkgs/Highlighter/patches/images_path.patch b/srcpkgs/Highlighter/patches/images_path.patch
new file mode 100644
index 00000000000000..e4ca61548f415b
--- /dev/null
+++ b/srcpkgs/Highlighter/patches/images_path.patch
@@ -0,0 +1,13 @@
+diff --git a/main.tcl b/main.tcl
+index 5b017d8..3fa1e47 100644
+--- a/main.tcl
++++ b/main.tcl
+@@ -87,7 +87,7 @@ namespace eval APP {
+ return ; #-------------------
+ }
+
+- set imageDir [file join [file dirname [info script]] images]
++ set imageDir /usr/lib/Highlighter/images
+ image create photo ICON::PDF_LOGO -file $imageDir/PdfLogo-Large.png
+
+ set DropAreaW [DropFileArea $addFrame \
diff --git a/srcpkgs/Highlighter/patches/shebang.patch b/srcpkgs/Highlighter/patches/shebang.patch
new file mode 100644
index 00000000000000..3133d8547e5686
--- /dev/null
+++ b/srcpkgs/Highlighter/patches/shebang.patch
@@ -0,0 +1,9 @@
+diff --git a/main.tcl b/main.tcl
+index 5b017d8..dd2c0f3 100644
+--- a/main.tcl
++++ b/main.tcl
+@@ -1,3 +1,4 @@
++#! /usr/bin/wish
+ # HIGHLIGTHER 2.0
+ #
+ # Small PDF Highlighter
diff --git a/srcpkgs/Highlighter/template b/srcpkgs/Highlighter/template
new file mode 100644
index 00000000000000..9116687ece6a32
--- /dev/null
+++ b/srcpkgs/Highlighter/template
@@ -0,0 +1,27 @@
+# Template file for 'Highlighter'
+pkgname=Highlighter
+version=2.0.2
+revision=1
+hostmakedepends="dos2unix"
+depends="tclMuPDF tcl-znotebook tcl-pdfviewer"
+short_desc="Highlight text on PDF"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="custom"
+homepage="https://wiki.tcl-lang.org/page/Highlighter+2%2Ex"
+distfiles="https://sourceforge.net/projects/irrational-numbers/files/Highlighter/Highlighter-${version}.zip"
+checksum=3b6f0dfa5650cb6339a3eba2b78abefd96ae1892f67c9c39f203984de984c15e
+
+pre_patch() {
+ dos2unix main.tcl
+}
+
+do_install() {
+ vinstall images/PdfLogo-Large.png 644 usr/lib/Highlighter/images
+ vinstall lib/pkgIndex.tcl 644 usr/lib/Highlighter
+ vinstall lib/DropFileArea-0.0.tm 644 usr/lib/Highlighter
+ vbin main.tcl Highlighter
+}
+
+post_install() {
+ vlicense Highlighter-license.terms
+}
From e09944f9372f3ec0b5c17015f16852e7f061c383 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 18 Apr 2024 23:35:33 +0200
Subject: [PATCH 7/7] MuPdfWidget: update to 2.3.1.
---
srcpkgs/MuPdfWidget/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/MuPdfWidget/template b/srcpkgs/MuPdfWidget/template
index fc5d050b825987..a4160ee30714a8 100644
--- a/srcpkgs/MuPdfWidget/template
+++ b/srcpkgs/MuPdfWidget/template
@@ -3,7 +3,7 @@ pkgname=MuPdfWidget
version=2.3.1
revision=1
depends="tcl tclMuPDF"
-short_desc="Fully customizable widget for displaying PDF-files."
+short_desc="Fully customizable widget for displaying PDF-files"
maintainer="Eloi Torrents <eloitor@disroot.org>"
license="GPL-3.0-or-later"
homepage="https://wiki.tcl-lang.org/page/MuPdfWidget"
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-18 21:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18 21:13 [PR PATCH] WIP: New package: Highlighter-2.0.2 Eloitor
2024-04-18 21:32 ` [PR PATCH] [Updated] " Eloitor
2024-04-18 21:36 ` Eloitor
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).