{"thread":{"id":"21225","subject":"[PATCH] NO_PERL_MAKEMAKER should behave more like ExtUtils::MakeMaker","startedAt":"2009-10-13T11:14:31Z","lastAt":"2009-10-13T11:14:31Z","messageCount":1,"participants":["Tom G. Christensen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"124842","messageId":"1255432471-14168-1-git-send-email-tgc@statsbiblioteket.dk","threadId":"21225","inReplyTo":null,"subject":"[PATCH] NO_PERL_MAKEMAKER should behave more like ExtUtils::MakeMaker","fromName":"Tom G. Christensen","fromEmail":"tgc@statsbiblioteket.dk","sentAt":"2009-10-13T11:14:31Z","receivedAt":"2009-10-13T11:14:31Z","isPatch":true,"sender":{"key":"tgc@statsbiblioteket.dk","avatar":"https://avatars.githubusercontent.com/u/912180?v=4"},"body":"This change makes NO_PERL_MAKEMAKER behave more as ExtUtils::MakeMaker\nby installing the modules into the perl libdir and not $(prefix)/lib.\nIt will default to sitelib but will allow the user to choose by setting\nthe INSTALLDIRS variable which is also honored by ExtUtils::MakeMaker.\n\nSigned-off-by: Tom G. Christensen <tgc@statsbiblioteket.dk>\n---\n perl/Makefile |    7 ++++++-\n 1 files changed, 6 insertions(+), 1 deletions(-)\n\ndiff --git a/perl/Makefile b/perl/Makefile\nindex 4ab21d6..264cfc1 100644\n--- a/perl/Makefile\n+++ b/perl/Makefile\n@@ -20,7 +20,12 @@ clean:\n \t$(RM) $(makfile).old\n \n ifdef NO_PERL_MAKEMAKER\n-instdir_SQ = $(subst ','\\'',$(prefix)/lib)\n+perllib = site\n+ifdef INSTALLDIRS\n+perllib = $(INSTALLDIRS)\n+endif\n+perlinstdir := $(shell sh -c \"$(PERL_PATH_SQ) -V:install$(perllib)lib | cut -d\\' -f2\")\n+instdir_SQ = $(subst ','\\'',$(perlinstdir))\n $(makfile): ../GIT-CFLAGS Makefile\n \techo all: private-Error.pm Git.pm > $@\n \techo '\tmkdir -p blib/lib' >> $@\n-- \n1.6.4.4\n"}]}