Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] WIP: Upcoming adblock feature in qutebrowser
@ 2020-12-28  4:22 anjandev
  2020-12-28  4:39 ` ericonr
  2021-02-02 22:09 ` [PR PATCH] [Closed]: " ericonr
  0 siblings, 2 replies; 3+ messages in thread
From: anjandev @ 2020-12-28  4:22 UTC (permalink / raw)
  To: ml

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

There is a new pull request by anjandev against master on the void-packages repository

https://github.com/anjandev/void-packages master
https://github.com/void-linux/void-packages/pull/27490

WIP: Upcoming adblock feature in qutebrowser
CC: @ericonr since he is the maintainer of qutebrowser

qutebrowser recently got proper adblock support:

https://github.com/qutebrowser/qutebrowser/pull/5317

But in order to use this, we need to package python3-adblock. I got to package python3-adblock's dependencies fine. There are still linting mistakes in those templates. I got to python3-adblock and got annoyed with rust so I stopped packaging.

Posting my work here so that it can be of use to others. Feel free to adopt this PR.

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

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

From 608f607766ed14009aae09fc567a8ccac63e44d3 Mon Sep 17 00:00:00 2001
From: Anjandev Momi <anjan@momi.ca>
Date: Sun, 27 Dec 2020 23:05:26 -0500
Subject: [PATCH 1/3] New package: python3-dephell-0.8.3

---
 srcpkgs/python3-dephell/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-dephell/template

diff --git a/srcpkgs/python3-dephell/template b/srcpkgs/python3-dephell/template
new file mode 100644
index 00000000000..3f899bf8458
--- /dev/null
+++ b/srcpkgs/python3-dephell/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-dephell'
+pkgname=python3-dephell
+version=0.8.3
+revision=1
+build_style=python3-module
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="python3-setuptools"
+makedepends=""
+depends=""
+short_desc="Python project management"
+maintainer="Anjandev Momi <anjan@momi.ca>"
+license="MIT"
+homepage="https://dephell.org/"
+distfiles="https://github.com/dephell/dephell/archive/v.$version.tar.gz"
+checksum=d37fba0fb163831ba47bf94d140a56fa175251f1b80deba78ced4be10d92c8ae
+wrksrc=dephell-v.$version/

From a51117350b2d839e194c0754f24117d17bac9577 Mon Sep 17 00:00:00 2001
From: Anjandev Momi <anjan@momi.ca>
Date: Sun, 27 Dec 2020 23:05:51 -0500
Subject: [PATCH 2/3] New package: maturin-0.8.3

---
 srcpkgs/maturin/template | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/maturin/template

diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template
new file mode 100644
index 00000000000..699af062039
--- /dev/null
+++ b/srcpkgs/maturin/template
@@ -0,0 +1,21 @@
+# Template file for 'maturin'
+pkgname=maturin
+version=0.8.3
+revision=1
+#archs="i686 x86_64"
+wrksrc=maturin-$version
+build_style=cargo
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="python3-setuptools python3-toml cargo"
+makedepends=""
+depends=""
+short_desc="Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages"
+maintainer="Anjandev Momi <anjan@momi.ca>"
+license="Apache-2.0"
+homepage="https://github.com/PyO3/maturin"
+distfiles="https://github.com/PyO3/maturin/archive/v$version.tar.gz"
+checksum=8e18580bd4911b438331deee6a15cf755ccc425547fb26c027306b385845285e

From 863e8401b0c987a319e25d42e77a10c5fba02603 Mon Sep 17 00:00:00 2001
From: Anjandev Momi <anjan@momi.ca>
Date: Sun, 27 Dec 2020 23:06:26 -0500
Subject: [PATCH 3/3] New package: python3-adblock-0.4.0

---
 srcpkgs/python3-adblock/template | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 srcpkgs/python3-adblock/template

diff --git a/srcpkgs/python3-adblock/template b/srcpkgs/python3-adblock/template
new file mode 100644
index 00000000000..dea995cd67f
--- /dev/null
+++ b/srcpkgs/python3-adblock/template
@@ -0,0 +1,28 @@
+# Template file for 'python3-adblock'
+pkgname=python3-adblock
+version=0.4.0
+revision=1
+#archs="i686 x86_64"
+#wrksrc=
+#create_wrksrc=yes
+build_style=python3-module
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="python3-setuptools python3-dephell cargo maturin pkg-config"
+makedepends="libressl-devel"
+depends="python3"
+short_desc="Python wrapper for Brave's adblocking library, which is written in Rust"
+maintainer="Anjandev Momi <anjan@momi.ca>"
+license="MIT"
+homepage="https://github.com/ArniDagur/python-adblock"
+distfiles="https://github.com/ArniDagur/python-adblock/archive/$version.tar.gz"
+wrksrc=python-adblock-$version
+checksum=49cf5bef7a637b9c08ddf6d2f68d11b522f341d2667ea9eb9ef584a59d130a92
+
+do_build() {
+    maturin build --release --strip
+    cargo build --release --locked --all-features --target-dir=.
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: WIP: Upcoming adblock feature in qutebrowser
  2020-12-28  4:22 [PR PATCH] WIP: Upcoming adblock feature in qutebrowser anjandev
@ 2020-12-28  4:39 ` ericonr
  2021-02-02 22:09 ` [PR PATCH] [Closed]: " ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2020-12-28  4:39 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/27490#issuecomment-751571887

Comment:
Thanks for the effort! Not sure I love the idea of tackling this, but it might be a worthy addition.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: WIP: Upcoming adblock feature in qutebrowser
  2020-12-28  4:22 [PR PATCH] WIP: Upcoming adblock feature in qutebrowser anjandev
  2020-12-28  4:39 ` ericonr
@ 2021-02-02 22:09 ` ericonr
  1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-02-02 22:09 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

WIP: Upcoming adblock feature in qutebrowser
https://github.com/void-linux/void-packages/pull/27490

Description:
CC: @ericonr since he is the maintainer of qutebrowser

qutebrowser recently got proper adblock support:

https://github.com/qutebrowser/qutebrowser/pull/5317

But in order to use this, we need to package python3-adblock. I got to package python3-adblock's dependencies fine. There are still linting mistakes in those templates. I got to python3-adblock and got annoyed with rust so I stopped packaging.

Posting my work here so that it can be of use to others. Feel free to adopt this PR.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-02 22:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-28  4:22 [PR PATCH] WIP: Upcoming adblock feature in qutebrowser anjandev
2020-12-28  4:39 ` ericonr
2021-02-02 22:09 ` [PR PATCH] [Closed]: " ericonr

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).