diff options
author | Matt Turner <mattst88@gentoo.org> | 2023-05-15 12:44:40 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2023-05-16 13:14:19 -0400 |
commit | 4f9bdf3ff851a3d92511a61dee004fd42090a4bc (patch) | |
tree | a3be0643e2b5d246f11dae40f5cd346dceab1708 /net-libs/libproxy | |
parent | dev-python/tornado: Stabilize 6.3.2 x86, #906518 (diff) | |
download | gentoo-4f9bdf3ff851a3d92511a61dee004fd42090a4bc.tar.gz gentoo-4f9bdf3ff851a3d92511a61dee004fd42090a4bc.tar.bz2 gentoo-4f9bdf3ff851a3d92511a61dee004fd42090a4bc.zip |
net-libs/libproxy: Version bump to 0.5.0
* Bump to EAPI=8
* Switch from cmake to meson
* Drop non-Duktape PAC-parsing options (webkit, spidermonkey), per
upstream
Bug: https://bugs.gentoo.org/893704
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'net-libs/libproxy')
-rw-r--r-- | net-libs/libproxy/Manifest | 1 | ||||
-rw-r--r-- | net-libs/libproxy/files/0.5.0-Guard-PxManager-test-with-pacrunner-duktape-option-2.patch | 26 | ||||
-rw-r--r-- | net-libs/libproxy/libproxy-0.5.0.ebuild | 77 |
3 files changed, 104 insertions, 0 deletions
diff --git a/net-libs/libproxy/Manifest b/net-libs/libproxy/Manifest index a92c1f4d02d5..eb7e2829d864 100644 --- a/net-libs/libproxy/Manifest +++ b/net-libs/libproxy/Manifest @@ -1 +1,2 @@ DIST libproxy-0.4.18.tar.gz 98037 BLAKE2B 12505cc7afe9ca27bb387df31d7368ed3ac83696255e6bd8fdbca1528fb6fe83510cdf7c6bda09939dcb55daefba24cf9c52435f664c6cba01daad87ddff3f2a SHA512 1148d688a9f070273a1a2b110a788561789799089660292bbba59fbf0a9caf7d28cb039a9ccdcb935f752e1e34739b2d2f4c784b1bb3bbaa03d108e7b38a4754 +DIST libproxy-0.5.0.tar.gz 58746 BLAKE2B aaaaa93217d4b3112b9c2761d7156de1359278b764bdfb3ba0942653e930e4cb60c00adf936fa1210668dc584c6e34fccfe405acdbabfff1927fd25b9de953b7 SHA512 699d09d747c3e56247b1d0a8dee0cd7c122199cc4296aa61753a4e52b4346ad5d98d608f953d28a5779e7d49f64be639e22c696ac82d48bbdaa7b743501b18e6 diff --git a/net-libs/libproxy/files/0.5.0-Guard-PxManager-test-with-pacrunner-duktape-option-2.patch b/net-libs/libproxy/files/0.5.0-Guard-PxManager-test-with-pacrunner-duktape-option-2.patch new file mode 100644 index 000000000000..6af2ebbe7f86 --- /dev/null +++ b/net-libs/libproxy/files/0.5.0-Guard-PxManager-test-with-pacrunner-duktape-option-2.patch @@ -0,0 +1,26 @@ +From f6aab7bc2a821117b2079f7504ab444dd13f4708 Mon Sep 17 00:00:00 2001 +From: Jan-Michael Brummer <jan.brummer@tabos.org> +Date: Tue, 16 May 2023 15:10:53 +0200 +Subject: [PATCH] Guard PxManager test with pacrunner-duktape option (#215) + +Fixes: https://github.com/libproxy/libproxy/issues/213 +--- + tests/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/meson.build b/tests/meson.build +index 4ae8e7d..c8fe11f 100644 +--- a/tests/meson.build ++++ b/tests/meson.build +@@ -17,7 +17,7 @@ if get_option('tests') + env: envs + ) + +- if soup_dep.found() ++ if soup_dep.found() and get_option('pacrunner-duktape') + px_manager_test = executable('test-px-manager', + ['px-manager-test.c', 'px-manager-helper.c'], + include_directories: px_backend_inc, +-- +2.39.3 + diff --git a/net-libs/libproxy/libproxy-0.5.0.ebuild b/net-libs/libproxy/libproxy-0.5.0.ebuild new file mode 100644 index 000000000000..19c04bc6750a --- /dev/null +++ b/net-libs/libproxy/libproxy-0.5.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib vala + +DESCRIPTION="Library for automatic proxy configuration management" +HOMEPAGE="https://github.com/libproxy/libproxy" +SRC_URI="https://github.com/libproxy/libproxy/archive/refs/tags/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="duktape gnome gtk-doc +introspection kde test vala" +REQUIRED_USE=" + gtk-doc? ( introspection ) + vala? ( introspection ) +" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + >=dev-libs/glib-2.71.3:2[${MULTILIB_USEDEP}] + gnome? ( gnome-base/gsettings-desktop-schemas ) + duktape? ( + dev-lang/duktape:= + net-misc/curl + ) +" +DEPEND="${COMMON_DEPEND} + test? ( net-libs/libsoup:3.0[${MULTILIB_USEDEP}] ) +" +RDEPEND="${COMMON_DEPEND} + kde? ( kde-frameworks/kconfig:5 ) +" +BDEPEND=" + virtual/pkgconfig + vala? ( $(vala_depend) ) +" + +S="${WORKDIR}/${PN}-${P}" + +PATCHES=( + "${FILESDIR}"/${PV}-Guard-PxManager-test-with-pacrunner-duktape-option-2.patch +) + +src_prepare() { + use vala && vala_setup + default +} + +multilib_src_configure() { + local emesonargs=( + $(meson_native_use_bool gtk-doc docs) + $(meson_use test tests) + -Dconfig-env=true + $(meson_use gnome config-gnome) + -Dconfig-windows=false + -Dconfig-sysconfig=true + -Dconfig-osx=false + $(meson_use kde config-kde) + $(meson_native_use_bool duktape pacrunner-duktape) + $(meson_native_use_bool vala vapi) + $(meson_use duktape curl) + $(meson_native_use_bool introspection) + ) + meson_src_configure +} + +multilib_src_install_all() { + einstalldocs + + if use gtk-doc; then + mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die + mv "${ED}"/usr/share/doc/${PN}-1.0 "${ED}"/usr/share/gtk-doc/html/ || die + fi +} |