2012-04-01 12:19:34 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-04-01 12:19:34 +04:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
|
|
|
inherit texlive-common eutils
|
|
|
|
|
|
|
|
DESCRIPTION="GUI and command-line converter for [e]ps and pdf"
|
|
|
|
HOMEPAGE="http://tex.aanhet.net/epspdf/"
|
|
|
|
SRC_URI="http://tex.aanhet.net/epspdf/${PN}.${PV}.tgz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2012-12-18 16:26:03 +04:00
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
2012-04-01 12:19:34 +04:00
|
|
|
IUSE="doc tk"
|
|
|
|
|
|
|
|
DEPEND="sys-apps/texinfo"
|
|
|
|
RDEPEND="!<dev-texlive/texlive-pictures-2011-r1
|
|
|
|
dev-lang/ruby
|
2012-05-10 03:09:08 +04:00
|
|
|
app-text/ghostscript-gpl
|
2012-04-01 12:19:34 +04:00
|
|
|
tk? ( dev-lang/tk )"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${PN}
|
|
|
|
INSTALLDIR=/usr/share/${PN}
|
|
|
|
FILES="epspdf.rb epspdfrc.rb makegray.pro"
|
|
|
|
TKFILES="epspdf.help epspdf.icns epspdf.ico epspdftk.tcl"
|
|
|
|
|
|
|
|
#epspdf.info seems broken, rebuild it
|
|
|
|
src_compile() {
|
|
|
|
cd "${S}/doc"
|
|
|
|
makeinfo epspdf.texi || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dodir ${INSTALLDIR}
|
|
|
|
cp -p ${FILES} "${ED}/${INSTALLDIR}" || die
|
|
|
|
if use tk ; then
|
|
|
|
cp -p ${TKFILES} "${ED}/${INSTALLDIR}" || die
|
|
|
|
fi
|
|
|
|
dobin_texmf_scripts "${PN}/epspdf.rb"
|
|
|
|
use tk && dobin_texmf_scripts "${PN}/epspdftk.tcl"
|
|
|
|
|
|
|
|
doinfo doc/epspdf.info
|
|
|
|
dodoc doc/Changelog
|
|
|
|
if use doc ; then
|
|
|
|
dodoc doc/epspdf.pdf
|
|
|
|
dohtml -r doc
|
|
|
|
fi
|
|
|
|
|
|
|
|
# give it a .desktop
|
|
|
|
if use tk; then
|
|
|
|
make_desktop_entry epspdftk epspdftk "${INSTALLDIR}/epspdf.ico" "Graphics;ImageProcessing"
|
|
|
|
fi
|
|
|
|
}
|