Provide me a way to run in Slackware 14.2
This is probably a silly way to deal with uniq not being in the older List::Util vs. providing an implementation. But 15 is just around the corner anyway? Also add an uninstall target.
This commit is contained in:
parent
d3447ded0c
commit
04d4063eaf
8
Makefile
8
Makefile
@ -5,3 +5,11 @@ check:
|
||||
install:
|
||||
install -o root -g wheel -m 0755 -d /usr/local/bin
|
||||
install -o root -g wheel -m 0555 frfac /usr/local/bin
|
||||
|
||||
install_with_newcore_hack:
|
||||
install -o root -g wheel -m 0755 -d /usr/local/bin
|
||||
install -o root -g wheel -m 0555 frfac /usr/local/share/perl5/
|
||||
install -o root -g wheel -m 0555 frfac.wrapper /usr/local/bin/frfac
|
||||
|
||||
uninstall:
|
||||
rm -f /usr/local/bin/frfac /usr/local/share/perl5/frfac
|
||||
|
13
frfac.wrapper
Normal file
13
frfac.wrapper
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Use a newer List::Util than that in core of the
|
||||
# system Perl. E.g. Slackware 14.2's perl is
|
||||
# 5.22.2 and only has version 1.41 of List::Util.
|
||||
# That version lacks the uniq function.
|
||||
# The directory /usr/local/share/newperlcore is
|
||||
# expected to have a new List::Util under it
|
||||
# install via...
|
||||
# perl Makefile.PL INSTALL_BASE=/usr/local/share/newperlcore
|
||||
|
||||
perl -I /usr/local/share/newperlcore /usr/local/share/perl5/frfac
|
||||
|
Loading…
Reference in New Issue
Block a user