1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Command-line tool for structural, content-preserving transformation of PDF files"
7 HOMEPAGE="http://qpdf.sourceforge.net/"
8 SRC_URI="mirror://sourceforge/qpdf/${P}.tar.gz"
10 LICENSE="|| ( Apache-2.0 Artistic-2 )"
12 # subslot = libqpdf soname version
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris"
16 IUSE="doc examples perl static-libs test"
18 RESTRICT="!test? ( test )"
29 app-text/ghostscript-gpl[tiff]
32 # Only need perl for the installed tools.
34 perl? ( >=dev-lang/perl-5.8 )
37 DOCS=( ChangeLog README.md TODO )
41 --disable-implicit-crypto
42 --enable-crypto-gnutls
43 --enable-crypto-native
44 --with-default-crypto=gnutls
45 $(use_enable static-libs static)
46 $(use_enable test test-compare-images)
48 CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}"
55 rm "${ED}"/usr/bin/fix-qdf || die
56 rm "${ED}"/usr/share/man/man1/fix-qdf.1 || die
59 if use examples ; then
60 dobin examples/build/.libs/*
63 find "${ED}" -type f -name '*.la' -delete || die