aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-09-11 16:17:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-09-11 16:17:42 +1200
commit0fe24205f18e2b7baac7d466dbabbe202080d344 (patch)
treeeed0aa294b6b10bd23aa4b4ca163c5f6c87a554f
parentMerge branch 'release/v10.6.0' into develop (diff)
downloaddotfiles-0fe24205f18e2b7baac7d466dbabbe202080d344.tar.gz
dotfiles-0fe24205f18e2b7baac7d466dbabbe202080d344.zip
Add XDG basedirs support shim for plenv
-rw-r--r--Makefile6
-rw-r--r--cpanm/profile.d/cpanm.sh2
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5139958b..a7bae4e6 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@
install-bash-completion \
install-bin \
install-bin-man \
+ install-cpanm \
install-curl \
install-dillo \
install-dunst \
@@ -393,6 +394,9 @@ install-bin-man:
cp -p -- man/man1/*.1df $(XDG_DATA_HOME)/man/man1
cp -p -- man/man8/*.8df $(XDG_DATA_HOME)/man/man8
+install-cpanm:
+ cp -p -- cpanm/profile.d/*.sh $(HOME)/.profile.d
+
install-curl:
cp -p -- curl/curlrc $(HOME)/.curlrc
@@ -526,7 +530,7 @@ install-perltidy: install-sh
mkdir -p -- $(XDG_CONFIG_HOME)/perltidy
cp -p -- perltidy/perltidyrc $(XDG_CONFIG_HOME)/perltidy/perltidyrc
-install-plenv: install-sh
+install-plenv: install-sh install-cpanm
cp -p -- plenv/profile.d/*.sh $(HOME)/.profile.d
cp -p -- plenv/shrc.d/*.sh $(HOME)/.shrc.d
diff --git a/cpanm/profile.d/cpanm.sh b/cpanm/profile.d/cpanm.sh
new file mode 100644
index 00000000..98b685e3
--- /dev/null
+++ b/cpanm/profile.d/cpanm.sh
@@ -0,0 +1,2 @@
+PERL_CPANM_HOME=${XDG_CACHE_HOME:-$HOME/.config}/cpanm
+export PERL_CPANM_HOME