diff options
Diffstat (limited to 'net-libs')
| -rw-r--r-- | net-libs/pacparser/Manifest | 1 | ||||
| -rw-r--r-- | net-libs/pacparser/pacparser-1.4.6.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/net-libs/pacparser/Manifest b/net-libs/pacparser/Manifest index 93960be6fac2..0f6ac4644f94 100644 --- a/net-libs/pacparser/Manifest +++ b/net-libs/pacparser/Manifest @@ -1,2 +1,3 @@ DIST pacparser-1.4.3.tar.gz 905231 BLAKE2B bffe42154a8de9798c4c7b986e5797c19cbb103ed2977545014278f63a770c7cd9ed6b7fc6a9fff96514a71457b9dbc35104a51d9e5e331e2d19f3baeb86e621 SHA512 cc0d6c0a7b1fd9d55dece6c4ad80711d3d1055a0cde120dbb6e8274508631b325e7d876545b40ca05cefc6dce15aa1476e5b2936527e3183ad86114e4cd661a5 DIST pacparser-1.4.5.tar.gz 905331 BLAKE2B 4c0346e76ad86a6fc54d870688595432f36fc535564b79edc74816f0fa2c45be109c4734d36af5ded50ac208177cfe9fc775d0917060e3f2b4ea5445da67b077 SHA512 fabbfa5c5ebd2a884187e53db27015b16587cba2ae30da1fdec92ca211b1f0ecd2839222341cd0eca9e709ada4e9efcd686b713e4f1e5621507070a6300ad164 +DIST pacparser-1.4.6.tar.gz 905435 BLAKE2B 6d74462e6fed191435d1e9135d1f60c065cc27892848d3ea0517c338ee13ee65e1a2c3bfe3884b00ccc558d6f617fac0a6b5fa81103ca5887f5ca2d81af466c6 SHA512 284517922b0a84608af1dd96aa706832a94c5e6c53c6f86c955bd420d5e2c7ed2be88d24d4add8462f6a05469f9d923da8d64549e32a37e1d0040349fa3ad6b4 diff --git a/net-libs/pacparser/pacparser-1.4.6.ebuild b/net-libs/pacparser/pacparser-1.4.6.ebuild new file mode 100644 index 000000000000..4b86062b1690 --- /dev/null +++ b/net-libs/pacparser/pacparser-1.4.6.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..14} ) + +inherit python-r1 toolchain-funcs + +DESCRIPTION="Library to parse proxy auto-config files" +HOMEPAGE="http://pacparser.manugarg.com/" +SRC_URI="https://github.com/manugarg/${PN}/archive/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0/1" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc python" + +DEPEND="python? ( ${PYTHON_DEPS} )" +RDEPEND="${DEPEND}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# spidermonkey-1.7.0 is bundled +# tested unbundling with spidermonkey-1.8* and 1.7 +# and got many failures: unbundling not worth it. + +src_prepare() { + default + + sed -e 's/^SMCFLAGS.*/SMCFLAGS = -DHAVE_VA_COPY -DVA_COPY=va_copy -DHAVE_VA_LIST_AS_ARRAY/' \ + -i src/Makefile || die + sed -e '/CC = gcc/d' \ + -i src/spidermonkey/js/src/config/Linux_All.mk || die + + export NO_INTERNET=yes + export VERSION="${PV}" + tc-export CC AR RANLIB +} + +src_compile() { + # Upstream parallel compilation bug, do that first to work around + emake -C src -j1 + use python && python_foreach_impl emake -C src pymod +} + +src_install() { + emake \ + LIB_PREFIX="${ED}/usr/$(get_libdir)" \ + DOC_PREFIX="${ED}/usr/share/doc/${PF}" \ + BIN_PREFIX="${ED}"/usr/bin \ + INC_PREFIX="${ED}"/usr/include \ + MAN_PREFIX="${ED}"/usr/share/man \ + -C src install + dodoc README.md + + if use python; then + python_foreach_impl emake DESTDIR="${D}" -C src install-pymod + python_foreach_impl python_optimize + fi + + if use doc; then + docompress -x /usr/share/doc/${PF}/{html,examples} + else + rm -r "${ED}"/usr/share/doc/${PF}/{html,examples} || die + fi +} |
