Github messages for voidlinux
 help / color / mirror / Atom feed
From: FollieHiyuki <FollieHiyuki@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [WIP] New package: python3-adblock
Date: Mon, 01 Feb 2021 12:19:44 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28380@inbox.vuxu.org> (raw)

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

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

https://github.com/FollieHiyuki/void-packages python3-adblock
https://github.com/void-linux/void-packages/pull/28380

[WIP] New package: python3-adblock
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From cc59aba20a13cdae5f8ec010c44e990c16707569 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Mon, 1 Feb 2021 11:00:13 +0300
Subject: [PATCH 1/3] New package: python3-dephell-0.8.3

---
 srcpkgs/python3-dephell/template | 21 +++++++++++++++++++++
 1 file changed, 21 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..4e1924586b4
--- /dev/null
+++ b/srcpkgs/python3-dephell/template
@@ -0,0 +1,21 @@
+# Template file for 'python3-dephell'
+pkgname=python3-dephell
+version=0.8.3
+revision=1
+wrksrc=dephell-v.${version}
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+short_desc="Python project management"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="MIT"
+homepage="https://dephell.org/"
+distfiles="https://github.com/dephell/dephell/archive/v.${version}.tar.gz"
+checksum=d37fba0fb163831ba47bf94d140a56fa175251f1b80deba78ced4be10d92c8ae
+
+do_check() {
+	:
+}
+
+post_install() {
+	vlicense LICENSE
+}

From 3940c60a78015490078388074cb2bf0cad006759 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Mon, 1 Feb 2021 11:13:44 +0300
Subject: [PATCH 2/3] New package: maturin-0.9.0

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

diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template
new file mode 100644
index 00000000000..6eeda8a0ef5
--- /dev/null
+++ b/srcpkgs/maturin/template
@@ -0,0 +1,20 @@
+# Template file for 'maturin'
+pkgname=maturin
+version=0.9.0
+revision=1
+build_style=cargo
+hostmakedepends="python3-setuptools python3-toml"
+short_desc="Build and publish crates as python packages"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/PyO3/maturin"
+distfiles="https://github.com/PyO3/maturin/archive/v${version}.tar.gz"
+checksum=22e8082a743e1dc11f5909b596f9053deb7dc1a56336003677381ba02cf67da8
+
+do_check() {
+	:
+}
+
+post_install() {
+	vlicense license-mit
+}

From c820d5c027e289c7ee52874bf8115fa9d5f5cdb2 Mon Sep 17 00:00:00 2001
From: FollieHiyuki <folliekazetani@protonmail.com>
Date: Mon, 1 Feb 2021 13:50:32 +0300
Subject: [PATCH 3/3] New package: python3-adblock-0.4.1

---
 srcpkgs/python3-adblock/template | 42 ++++++++++++++++++++++++++++++++
 1 file changed, 42 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..125c8de27ce
--- /dev/null
+++ b/srcpkgs/python3-adblock/template
@@ -0,0 +1,42 @@
+# Template file for 'python3-adblock'
+pkgname=python3-adblock
+version=0.4.1
+revision=1
+wrksrc=python-adblock-${version}
+build_helper=rust
+hostmakedepends="python3-setuptools python3-dephell python3-pip maturin pkg-config cargo"
+makedepends="libressl-devel"
+depends="python3"
+short_desc="Python wrapper for Brave's Rust adblocking library"
+maintainer="FollieHiyuki <folliekazetani@protonmail.com>"
+license="Apache-2.0, MIT"
+homepage="https://github.com/ArniDagur/python-adblock"
+distfiles="https://github.com/ArniDagur/python-adblock/archive/${version}.tar.gz"
+checksum=3a4250421890dc330ea6bfc05469a761f76f471dc690e69884acc33121685dd0
+
+do_build() {
+	if [ "$XBPS_TARGET_LIBC" = musl ]
+	then
+		RUSTFLAGS="-C target-feature=-crt-static" maturin build --release --strip --manylinux off
+	else
+		maturin build --release --strip
+	fi
+
+	cargo build --release --locked --all-features --target-dir=target
+}
+
+do_check() {
+	:
+}
+
+do_install() {
+	vinstall target/release/libadblock.so 755 /usr/lib/ libadblock.so
+	PIP_CONFIG_FILE='/dev/null' pip install --isolated \
+		--root=${DESTDIR} \
+		--ignore-installed \
+		--no-deps target/wheels/*.whl
+}
+
+post_install() {
+	vlicense LICENSE-MIT
+}

             reply	other threads:[~2021-02-01 11:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 11:19 FollieHiyuki [this message]
2021-02-01 11:26 ` FollieHiyuki
2021-02-01 12:14 ` [PR PATCH] [Updated] " FollieHiyuki
2021-02-01 15:07 ` FollieHiyuki
2021-02-01 15:34 ` FollieHiyuki
2021-02-01 16:23 ` FollieHiyuki
2021-02-01 23:35 ` [PR PATCH] [Closed]: " sgn

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-28380@inbox.vuxu.org \
    --to=folliehiyuki@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).