AUX ipe-beamer-install.patch 491 RMD160 729b8246faef227bde2742bcb47cf398f67dd7f7 SHA1 cd7f728ea8bde9abc31b8d723273d64e3de50a90 SHA256 70fc9f8526146893c33326e09677da564b26afa3d05f3860ed3c5e6ee07139a6
AUX ipe-outputprecision.patch 2504 RMD160 e7bb13a68aa0b04798127aa4bbd05f0c6e7620a5 SHA1 faf5d9f6fded765904a6045eb52170b8a1403ce8 SHA256 142f967987a84d2c45d0ca90d3a4b72360dd720f8d1cfa17d6f66c4500ee7e35
DIST ipe-7.0.10-src.tar.gz 1158532 RMD160 1d57d362de66a5e718baf80ef79a6681ee48e046 SHA1 dc18230bb669b759b132c66440d99596b52fb833 SHA256 f343493d9e4d2390a9fdd5403162d187dd6ec1b204e7c026baec76657f40cd9c
-DIST ipe-7.0.11-src.tar.gz 1164684 RMD160 472396a1835151d12ca8ae68991223147693d448 SHA1 fba0a36b9c3c6989847d1a41a98c9798dc56ebce SHA256 c82f4dc539919d901d6d628bd606fc3803c57833ecf89b97a0829d46f62eb296
DIST ipe-7.0.12-src.tar.gz 1304738 RMD160 2b70844cd8148e459fc9875fcc6923d0da899d1e SHA1 b872c7c4d0de762a855a0d42dfd9509b02044222 SHA256 8767ae4457d3187f56b4238f3741634e6177f22ecc414dfb4f84079e91df6c4b
+DIST ipe-7.0.13-src.tar.gz 1318709 RMD160 a753fff1dcb7437adf3ce7bbb2a4b9be2aa7d077 SHA1 17471156d5becfd60147f94c765fbbf2c57e1782 SHA256 942335830bb1397a514b7eafdbb1929df4598a7b080296b05f8051f7c08ca295
EBUILD ipe-7.0.10.ebuild 2056 RMD160 c5ad5b0002cf557670353aec0bb9566253e35de2 SHA1 ce30d826bab989f4b6129cbe41a90a9cfddd376d SHA256 e0a1207c5f471cdded798cbeadc748f19805ce57adf9c3a6766785457a71e0ac
-EBUILD ipe-7.0.11.ebuild 2201 RMD160 4871a3bfb8ad9c4d0e1b033248128e03fb0f1581 SHA1 6a23ab4cb1089b95c41bb05e0c76b4b3dd82966d SHA256 8a28618f7dfac10de45267bd3f7220a6f65415da51148fb1a9f2608f9a6bba06
EBUILD ipe-7.0.12.ebuild 2318 RMD160 5cb5185fb17319862f196078a355f5b74c604d46 SHA1 f8b136bc1f8dd1d09c31cfec54dbeb4150d66956 SHA256 b7274ac0975d384c5b73f83c580346eb2e68b684f6234c55c64bee5fe702be46
+EBUILD ipe-7.0.13.ebuild 2318 RMD160 5cb5185fb17319862f196078a355f5b74c604d46 SHA1 f8b136bc1f8dd1d09c31cfec54dbeb4150d66956 SHA256 b7274ac0975d384c5b73f83c580346eb2e68b684f6234c55c64bee5fe702be46
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit eutils toolchain-funcs qt4-r2
+
+DESCRIPTION="A drawing editor which creates figures for inclusion in LaTeX documents and makes PDF presentations."
+HOMEPAGE="http://ipe7.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ipe7/ipe/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror"
+# highprec: applies patch in order to write coordinates with higher precision
+IUSE="seamonkey highprec"
+
+DEPEND="
+ app-text/texlive-core
+ >=dev-lang/lua-5.1
+ >=media-libs/freetype-2.1.8
+ sys-libs/zlib
+ >=x11-libs/cairo-1.8.0
+ >=x11-libs/qt-core-4.5:4
+ >=x11-libs/qt-gui-4.5:4
+ "
+
+RDEPEND="${DEPEND}
+ !seamonkey? ( || ( www-client/firefox
+ www-client/firefox-bin ) )
+ seamonkey? ( || ( www-client/seamonkey
+ www-client/seamonkey-bin ) )"
+
+S=${S}/src
+
+search_urw_fonts() {
+ local texmfdist="$(kpsewhich -var-value=TEXMFDIST)" # colon-separated list of paths
+ local urwdir=fonts/type1/urw # according to TeX directory structure
+ local IFS="${IFS}:" # add colon as field separator
+ for dir in ${texmfdist}; do
+ if [[ -d "${dir}/${urwdir}" ]]; then
+ URWFONTDIR="${dir}/${urwdir}"
+ return 0
+ fi
+ done
+
+ return 1
+}
+
+src_prepare() {
+ if use highprec; then
+ einfo "Adding patch for higher output precision"
+ epatch "${FILESDIR}"/${PN}-outputprecision.patch
+ fi
+}
+
+pkg_setup() {
+ if search_urw_fonts; then
+ einfo "URW fonts found in ${URWFONTDIR}."
+ else
+ ewarn "Could not find directory containing URW fonts. Ipe will not"
+ ewarn "function properly without them."
+ fi
+}
+
+src_compile() {
+ # Ipe's default browser is Firefox
+ local myconf
+ use seamonkey && myconf="IPEBROWSER=seamonkey"
+ # fix detection of lua
+ sed -i -e 's/lua5.1/lua/g' config.mak || die
+ # don't strip installed binaries
+ sed -i -e 's/install -s/install/' common.mak || die
+ # use moc instead of moc-qt4
+ sed -i -e 's/moc-qt4/moc/' config.mak || die
+
+ # -j1, since there are no deps in the Makefiles on libipe
+ emake -j1 CXX=$(tc-getCXX) $myconf IPEPREFIX="/usr" \
+ IPEDOCDIR="/usr/share/doc/${PF}" || die "emake failed"
+}
+
+src_install() {
+ emake install IPEPREFIX="/usr" IPEDOCDIR="/usr/share/doc/${PF}" \
+ INSTALL_ROOT="${D}" || die "emake install failed"
+ dodoc ../{news,readme}.txt || die
+}