Skip to content

Commit

Permalink
app-emacs/pariemacs: accept pari.cfg or pari.cfg.bz2
Browse files Browse the repository at this point in the history
pari-2.3.5 installs pari.cfg, other versions - pari.cfg.bz2
Closes: https://bugs.gentoo.org/644472
Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
Andrey Grozin committed Jan 14, 2018
1 parent 96cd09e commit 7af5208
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app-emacs/pariemacs/pariemacs-3.14.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ DOCS="README CHANGES"
src_prepare() {
eapply "${FILESDIR}"/${P}-makefile.patch
eapply_user
cp /usr/share/doc/pari-*/pari.cfg.bz2 . || die "pari.cfg.bz2 not found"
bunzip2 pari.cfg.bz2
if [ -f /usr/share/doc/pari-*/pari.cfg ]; then
cp /usr/share/doc/pari-*/pari.cfg .
elif [ -f /usr/share/doc/pari-*/pari.cfg.bz2 ]; then
cp /usr/share/doc/pari-*/pari.cfg.bz2 .
bunzip2 pari.cfg.bz2
else die "pari.cfg not found"
fi
}

src_compile() {
Expand Down

0 comments on commit 7af5208

Please sign in to comment.