diff options
author | Matthias Maier <tamiko@gentoo.org> | 2018-02-04 18:06:19 -0600 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2018-02-04 18:11:55 -0600 |
commit | bb5366dfd17230a3a59c21817dae863c39458886 (patch) | |
tree | fdf288522bde250f0eced9f5fa3dac8d2af63024 /app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild | |
parent | dev-tex/biber: version bump. (diff) | |
download | gentoo-bb5366dfd17230a3a59c21817dae863c39458886.tar.gz gentoo-bb5366dfd17230a3a59c21817dae863c39458886.tar.bz2 gentoo-bb5366dfd17230a3a59c21817dae863c39458886.zip |
app-text/pdf2djvu: Version bump to 0.9.8
Closes: https://bugs.gentoo.org/644798
Closes: https://bugs.gentoo.org/643130
Closes: https://bugs.gentoo.org/634728
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild')
-rw-r--r-- | app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild b/app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild new file mode 100644 index 000000000000..d59dccb4f538 --- /dev/null +++ b/app-text/pdf2djvu/pdf2djvu-0.9.8.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-any-r1 toolchain-funcs flag-o-matic + +DESCRIPTION="A tool to create DjVu files from PDF files" +HOMEPAGE="http://jwilk.net/software/pdf2djvu" +SRC_URI="https://github.com/jwilk/${PN}/releases/download/${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+graphicsmagick nls openmp test" + +RDEPEND=" + >=app-text/djvu-3.5.21:= + >=app-text/poppler-0.16.7:= + dev-libs/libxml2:= + dev-libs/libxslt:= + graphicsmagick? ( media-gfx/graphicsmagick:= ) +" +DEPEND="${RDEPEND} + dev-cpp/pstreams + virtual/pkgconfig + nls? ( sys-devel/gettext ) + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/nose[${PYTHON_USEDEP}]') + ) +" + +REQUIRED_USE="test? ( graphicsmagick ${PYTHON_REQUIRED_USE} )" + +DOCS=( + doc/{changelog,credits,djvudigital,README} +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + # bug 626874, poppler headers require C++11 + append-cxxflags -std=c++11 + default +} + +src_configure() { + local openmp=--disable-openmp + use openmp && tc-has-openmp && openmp=--enable-openmp + + econf \ + ${openmp} \ + $(use_enable nls) \ + $(use_with graphicsmagick) +} |