X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=media-gfx%2Fipe%2Fipe-7.0.13.ebuild;h=a470b9030422475a465af6cf8bae5c9f8ca32883;hp=83a14b4dc9b85b761e9d2d33a40b9255448be5bb;hb=e228aca20d5975fdd26350a753e9d7527765543a;hpb=1ba37308964c95dbd06e18debc7793921d508b9e diff --git a/media-gfx/ipe/ipe-7.0.13.ebuild b/media-gfx/ipe/ipe-7.0.13.ebuild index 83a14b4..a470b90 100644 --- a/media-gfx/ipe/ipe-7.0.13.ebuild +++ b/media-gfx/ipe/ipe-7.0.13.ebuild @@ -33,6 +33,8 @@ RDEPEND="${DEPEND} 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 @@ -84,4 +86,19 @@ src_install() { 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 } +