X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=media-gfx%2Fipe%2Fipe-7.1.2.ebuild;h=9e39b249e130c93aa6181c7efa5d95237f102c73;hp=7e4f7ef246b75b7a8a24f8fe35ec2660ff7c8e5b;hb=ec84b7b1078b74d7ef3515cc1c1e1ec9ef0cc1df;hpb=08ce3ae14b3d7da76603b5a58d47984ca6c484c6 diff --git a/media-gfx/ipe/ipe-7.1.2.ebuild b/media-gfx/ipe/ipe-7.1.2.ebuild index 7e4f7ef..9e39b24 100644 --- a/media-gfx/ipe/ipe-7.1.2.ebuild +++ b/media-gfx/ipe/ipe-7.1.2.ebuild @@ -1,4 +1,3 @@ -# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -12,7 +11,7 @@ SRC_URI="mirror://sourceforge/ipe7/${PN}/7.1.0/${P}-src.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="highprec" RDEPEND="app-text/texlive-core dev-lang/lua @@ -24,6 +23,7 @@ DEPEND="${RDEPEND} virtual/pkgconfig" S="${WORKDIR}/${P}/src" +COMMONDIR=/usr/share/ipe/common search_urw_fonts() { # colon-separated list of paths @@ -41,6 +41,13 @@ search_urw_fonts() { 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}" @@ -75,4 +82,17 @@ src_install() { dodoc ../{news,readme}.txt doicon ipe/icons/ipe.png make_desktop_entry ipe Ipe ipe + # 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 }