Skip to content

Commit

Permalink
dev-tex/feynmf: Create relative rather than absolute symlinks in doc …
Browse files Browse the repository at this point in the history
…dir.

Package-Manager: Portage-2.3.5, Repoman-2.3.2
  • Loading branch information
ulm committed Apr 17, 2017
1 parent 24bc4c8 commit e180617
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inherit eutils latex-package

DESCRIPTION="Combined LaTeX/Metafont package for drawing of Feynman diagrams"
HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf/"
#Taken from: ftp.tug.ctan.org/tex-archive/macros/latex/contrib/${PN}.tar.gz
# Taken from: ftp.tug.ctan.org/tex-archive/macros/latex/contrib/${PN}.tar.gz
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.gz
doc? ( https://dev.gentoo.org/~ulm/distfiles/${PN}-cnl.tar.gz )"

Expand Down Expand Up @@ -43,15 +43,16 @@ src_install() {
insinto ${TEXMF}/metapost/${PN}; doins feynmp.mp
dodoc README manual.ps template.tex
docompress -x /usr/share/doc/${PF}/manual.ps
dosym /usr/share/doc/${PF}/manual.ps \
# TEXMF is /usr/share/ plus one further path component
dosym ../../../../doc/${PF}/manual.ps \
${TEXMF}/doc/latex/${PN}/${PN}-manual.ps

if use doc; then
local f
for f in fmfcnl*.ps; do
dodoc ${f}
docompress -x /usr/share/doc/${PF}/${f}
dosym /usr/share/doc/${PF}/${f} ${TEXMF}/doc/latex/${PN}/${f}
dosym ../../../../doc/${PF}/${f} ${TEXMF}/doc/latex/${PN}/${f}
done
fi
}

0 comments on commit e180617

Please sign in to comment.