1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs qt4-r2
8 DESCRIPTION="Drawing editor for creating figures in PDF or PS formats"
9 HOMEPAGE="http://ipe7.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/ipe7/${PN}/7.1.0/${P}-src.tar.gz"
14 KEYWORDS="~amd64 ~x86"
17 RDEPEND="app-text/texlive-core
26 S="${WORKDIR}/${P}/src"
29 # colon-separated list of paths
30 local texmfdist="$(kpsewhich -var-value=TEXMFDIST)"
31 # according to TeX directory structure
32 local urwdir=fonts/type1/urw
33 # add colon as field separator
34 local IFS="${IFS}:" dir
35 for dir in ${texmfdist}; do
36 if [[ -d ${dir}/${urwdir} ]]; then
37 URWFONTDIR="${dir}/${urwdir}"
45 if search_urw_fonts; then
46 einfo "URW fonts found in ${URWFONTDIR}"
48 ewarn "Could not find directory containing URW fonts"
49 ewarn "Ipe will not function properly without them."
57 -e "s:\$(IPEPREFIX)/lib:\$(IPEPREFIX)/$(get_libdir):g" \
59 sed -i -e 's/install -s/install/' common.mak || die
66 IPEPREFIX="${EPREFIX}/usr" \
67 IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html"
72 IPEPREFIX="${EPREFIX}/usr" \
73 IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \
75 dodoc ../{news,readme}.txt
76 doicon ipe/icons/ipe.png
77 make_desktop_entry ipe Ipe ipe