[arch-commits] Commit in perl/trunk (PKGBUILD perlbin.fish)
Florian Pritz
bluewind at archlinux.org
Tue Oct 25 13:57:54 UTC 2016
Date: Tuesday, October 25, 2016 @ 13:57:53
Author: bluewind
Revision: 279227
Fix FS#51191 - [perl] add perl script directories for fish shell
Added:
perl/trunk/perlbin.fish
Modified:
perl/trunk/PKGBUILD
--------------+
PKGBUILD | 5 ++++-
perlbin.fish | 10 ++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-25 13:37:44 UTC (rev 279226)
+++ PKGBUILD 2016-10-25 13:57:53 UTC (rev 279227)
@@ -7,7 +7,7 @@
pkgname=perl
pkgver=5.24.0
-pkgrel=2
+pkgrel=3
pkgdesc="A highly capable, feature-rich programming language"
arch=(i686 x86_64)
license=('GPL' 'PerlArtistic')
@@ -212,6 +212,9 @@
# Profile script to set paths to perl scripts on csh. (FS#22441)
install -D -m755 ${srcdir}/perlbin.csh \
${pkgdir}/etc/profile.d/perlbin.csh
+ # Profile script to set paths to perl scripts on fish. (FS#51191)
+ install -D -m 755 "$srcdir/perlbin.fish" \
+ "$pkgdir/usr/share/fish/vendor_conf.d/perlbin.fish"
# Add the dirs so new installs will already have them in PATH once they
# install their first perl programm
Added: perlbin.fish
===================================================================
--- perlbin.fish (rev 0)
+++ perlbin.fish 2016-10-25 13:57:53 UTC (rev 279227)
@@ -0,0 +1,10 @@
+# Set path to perl scriptdirs if they exist
+# https://wiki.archlinux.org/index.php/Perl_Policy#Binaries_and_scripts
+
+if status --is-login
+ for perldir in /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl
+ if test -d $perldir
+ set PATH $PATH $perldir
+ end
+ end
+end
More information about the arch-commits
mailing list