net-libs/pacparser - 1.5.4 (gentoo)

Search

Install

Install this version:

emerge -a =net-libs/pacparser-1.5.4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-libs/pacparser-1.5.4

Or alternatively:

emerge --autounmask-write -a =net-libs/pacparser-1.5.4

Package Information

Description:
Library to parse proxy auto-config files
Homepage:
http://pacparser.manugarg.com/
License:
LGPL-3

Ebuild Details

Version EAPI Keywords Slot
1.5.4 8 ~amd64 ~x86 0/1
View Raw Ebuild
# Copyright 1999-2026 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"
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

	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
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-libs/pacparser | euse -E <flag> -p net-libs/pacparser | euse -D <flag> -p net-libs/pacparser

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

python? (  )

RDEPEND

python? (  )

Manifest for 1.5.4

Type File Size Source URLs
DIST pacparser-1.5.4.tar.gz 642164 bytes https://github.com/manugarg/pacparser/archive/v1.5.4/pacparser-1.5.4.tar.gz