KEYWORDS="~amd64 ~x86"
RESTRICT="mirror"
# highprec: applies patch in order to write coordinates with higher precision
-IUSE="seamonkey highprec"
+IUSE="highprec"
DEPEND="
app-text/texlive-core
>=dev-lang/lua-5.1
- >=media-libs/freetype-2.1.8
+ media-libs/freetype:2
sys-libs/zlib
>=x11-libs/cairo-1.8.0
- >=x11-libs/qt-core-4.5:4
- >=x11-libs/qt-gui-4.5:4
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
"
-RDEPEND="${DEPEND}
- !seamonkey? ( || ( www-client/firefox
- www-client/firefox-bin ) )
- seamonkey? ( || ( www-client/seamonkey
- www-client/seamonkey-bin ) )"
-
S=${S}/src
+COMMONDIR=/usr/share/ipe/common
+
search_urw_fonts() {
local texmfdist="$(kpsewhich -var-value=TEXMFDIST)" # colon-separated list of paths
}
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/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" \
+ emake -j1 CXX=$(tc-getCXX) IPEPREFIX="/usr" \
IPEDOCDIR="/usr/share/doc/${PF}" || die "emake failed"
}
emake install IPEPREFIX="/usr" IPEDOCDIR="/usr/share/doc/${PF}" \
INSTALL_ROOT="${D}" || die "emake install failed"
dodoc ../{news,readme}.txt || die
+
+ # Link style sheets
+ if [ -d $COMMONDIR/styles ]; then
+ einfo "Linking common style sheets from $COMMONDIR"
+ for f in $COMMONDIR/styles/*; do
+ einfo " Linking ${f##*/}"
+ dosym $f usr/share/ipe/${PV}/styles/${f##*/}
+ done
+
+ elog "Style sheets from $COMMONDIR/styles have been symlinked to"
+ elog "the style sheet directory of ${P}. If you add additional"
+ elog "style sheets later to $COMMONDIR/styles you may symlink"
+ elog "them by hand to '/usr/share/ipe/${PV}/styles/'."
+ fi
}
+