app-text/pdfgrep - 9999 (flow)

Search

Install

Install this version:

emerge -a =app-text/pdfgrep-9999

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

autounmask =app-text/pdfgrep-9999

Or alternatively:

emerge --autounmask-write -a =app-text/pdfgrep-9999

Package Information

Description:
A tool similar to grep which searches text in PDFs
Homepage:
https://pdfgrep.org/
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
9999 7 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

if [[ ${PV} == 9999 ]]; then
	inherit autotools git-r3
	EGIT_REPO_URI="https://gitlab.com/pdfgrep/pdfgrep.git"
else
	KEYWORDS="~amd64 ~x86"
	SRC_URI="https://www.pdfgrep.org/download/${P}.tar.gz"
fi

DESCRIPTION="A tool similar to grep which searches text in PDFs"
HOMEPAGE="https://pdfgrep.org/"

SLOT="0"
LICENSE="GPL-2"
IUSE="+pcre test unac"

RDEPEND="
	app-text/poppler:=[cxx]
	dev-libs/libgcrypt:0=
	pcre? ( dev-libs/libpcre[cxx] )
	unac? ( app-text/unac )"
DEPEND="${RDEPEND}"
BDEPEND="
	app-text/asciidoc
	virtual/pkgconfig
	test? (
		dev-texlive/texlive-latex
		dev-texlive/texlive-latexrecommended
		dev-util/dejagnu
	)"

DOCS="AUTHORS README.md NEWS.md"

if [[ ${PV} == 9999* ]]; then
	src_prepare() {
		default_src_prepare
		eautoreconf
	}
fi

src_configure() {
	econf \
		$(use_with pcre libpcre) \
		$(use_with unac)
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-text/pdfgrep | euse -E <flag> -p app-text/pdfgrep | euse -D <flag> -p app-text/pdfgrep

Global/Standard Flags

pcre
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	app-text/poppler:=[cxx]
	dev-libs/libgcrypt:0=
	pcre? ( dev-libs/libpcre[cxx] )
	unac? ( app-text/unac )

RDEPEND

	app-text/poppler:=[cxx]
	dev-libs/libgcrypt:0=
	pcre? ( dev-libs/libpcre[cxx] )
	unac? ( app-text/unac )

BDEPEND

	app-text/asciidoc
	virtual/pkgconfig
	test? (
		dev-texlive/texlive-latex
		dev-texlive/texlive-latexrecommended
		dev-util/dejagnu
	)