summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2018-01-14 07:22:10 +0700
committerAndrey Grozin <grozin@gentoo.org>2018-01-14 07:22:10 +0700
commit7af52086f69985ea8ccc85e11a0cdd1bfd705191 (patch)
tree984e993570b1b914767a5004c17386cd9bc65b66 /app-emacs/pariemacs
parentwww-client/chromium: stable channel bump (63.0.3239.132) (diff)
downloadgentoo-7af52086f69985ea8ccc85e11a0cdd1bfd705191.tar.gz
gentoo-7af52086f69985ea8ccc85e11a0cdd1bfd705191.tar.bz2
gentoo-7af52086f69985ea8ccc85e11a0cdd1bfd705191.zip
app-emacs/pariemacs: accept pari.cfg or pari.cfg.bz2
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
Diffstat (limited to 'app-emacs/pariemacs')
-rw-r--r--app-emacs/pariemacs/pariemacs-3.14.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/app-emacs/pariemacs/pariemacs-3.14.ebuild b/app-emacs/pariemacs/pariemacs-3.14.ebuild
index 308e790bebef..aa608c9b7eaa 100644
--- a/app-emacs/pariemacs/pariemacs-3.14.ebuild
+++ b/app-emacs/pariemacs/pariemacs-3.14.ebuild
@@ -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() {