You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
12 years ago
|
# $Header: /var/cvsroot/gentoo-x86/app-text/pdf2djvu/pdf2djvu-0.7.15.ebuild,v 1.1 2012/10/25 11:26:30 scarabeus Exp $
|
||
|
|
||
|
EAPI=5
|
||
12 years ago
|
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="A tool to create DjVu files from PDF files"
|
||
|
HOMEPAGE="http://code.google.com/p/pdf2djvu/"
|
||
|
SRC_URI="http://pdf2djvu.googlecode.com/files/${PN}_${PV}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
12 years ago
|
IUSE="+graphicsmagick nls openmp test"
|
||
12 years ago
|
|
||
12 years ago
|
RDEPEND="
|
||
|
>=app-text/djvu-3.5.21
|
||
|
>=app-text/poppler-0.16.7
|
||
12 years ago
|
dev-libs/libxml2
|
||
|
dev-libs/libxslt
|
||
12 years ago
|
graphicsmagick? ( media-gfx/graphicsmagick )
|
||
|
"
|
||
12 years ago
|
DEPEND="${RDEPEND}
|
||
|
dev-cpp/pstreams
|
||
|
virtual/pkgconfig
|
||
12 years ago
|
nls? ( sys-devel/gettext )
|
||
|
test? ( dev-python/nose )
|
||
|
"
|
||
|
|
||
|
REQUIRED_USE="test? ( graphicsmagick )"
|
||
12 years ago
|
|
||
|
src_configure() {
|
||
12 years ago
|
local openmp=--disable-openmp
|
||
|
use openmp && tc-has-openmp && openmp=--enable-openmp
|
||
12 years ago
|
|
||
|
econf \
|
||
12 years ago
|
${openmp} \
|
||
12 years ago
|
$(use_enable nls) \
|
||
|
$(use_with graphicsmagick)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
12 years ago
|
default
|
||
12 years ago
|
dodoc doc/{changelog,{cjk,credits,djvudigital}.txt}
|
||
|
}
|