unitas/app-text/xpdf/xpdf-3.04.ebuild

39 lines
841 B
Bash
Raw Normal View History

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/xpdf-3.02-r4.ebuild,v 1.12 2011/10/18 21:56:02 dilfridge Exp $
EAPI=4
inherit fdo-mime gnome2 eutils flag-o-matic toolchain-funcs
DESCRIPTION="An X Viewer for PDF Files"
HOMEPAGE="http://www.foolabs.com/xpdf/"
SRC_URI="ftp://ftp.foolabs.com/pub/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 x86-fbsd"
IUSE="-X"
RDEPEND="
media-libs/libpng
sys-libs/zlib
X? ( media-libs/freetype
x11-libs/motif
x11-libs/libX11
x11-libs/libXpm )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_configure() {
if use X; then
myconf+=(
--with-freetype2-includes=/usr/include/freetype2
)
fi
econf "${myconf[@]}"
}