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
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() {