pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Module-Install-RTx make



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3915288bc7a4
branches:  trunk
changeset: 336489:3915288bc7a4
user:      spz <spz%pkgsrc.org@localhost>
date:      Tue Jul 16 06:20:17 2019 +0000

description:
make
INSTALLVENDORMAN1DIR => "@PREFIX@/@PKGMANDIR@/man1"
INSTALLVENDORMAN3DIR => "@PREFIX@/@PKGMANDIR@/man3"
and INSTALLVENDORARCH located with the rest of the plugin
instead of hardwiring them to /usr/share/man/*

diffstat:

 devel/p5-Module-Install-RTx/Makefile                                |   9 +++-
 devel/p5-Module-Install-RTx/distinfo                                |   3 +-
 devel/p5-Module-Install-RTx/patches/patch-lib_Module_Install_RTx.pm |  19 ++++++++++
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (60 lines):

diff -r f50a57380bc2 -r 3915288bc7a4 devel/p5-Module-Install-RTx/Makefile
--- a/devel/p5-Module-Install-RTx/Makefile      Mon Jul 15 22:58:50 2019 +0000
+++ b/devel/p5-Module-Install-RTx/Makefile      Tue Jul 16 06:20:17 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.23 2019/06/30 20:15:20 nia Exp $
+# $NetBSD: Makefile,v 1.24 2019/07/16 06:20:17 spz Exp $
 
 DISTNAME=      Module-Install-RTx-0.40
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Module/}
 
@@ -15,5 +15,10 @@
 
 PERL5_PACKLIST=                auto/Module/Install/RTx/.packlist
 
+SUBST_CLASSES+=         manpath
+SUBST_STAGE.manpath=    pre-configure
+SUBST_FILES.manpath=    lib/Module/Install/RTx.pm
+SUBST_VARS.manpath=    PREFIX PKGMANDIR
+
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f50a57380bc2 -r 3915288bc7a4 devel/p5-Module-Install-RTx/distinfo
--- a/devel/p5-Module-Install-RTx/distinfo      Mon Jul 15 22:58:50 2019 +0000
+++ b/devel/p5-Module-Install-RTx/distinfo      Tue Jul 16 06:20:17 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.10 2018/03/04 11:22:12 wiz Exp $
+$NetBSD: distinfo,v 1.11 2019/07/16 06:20:17 spz Exp $
 
 SHA1 (Module-Install-RTx-0.40.tar.gz) = a56c22047dfa0d0dbf01f8c08026b8a6be31054c
 RMD160 (Module-Install-RTx-0.40.tar.gz) = db6ab2a3835d58e9c0c4f1cbf1be5b457516dedf
 SHA512 (Module-Install-RTx-0.40.tar.gz) = c97408f9062764db827f437570a174e843249e15019c06ed2681c5c19819d22a1e9d230c715cca58bd8dc660ae904e82ca8e9fff1cbff5645a3397c17ff893c5
 Size (Module-Install-RTx-0.40.tar.gz) = 27220 bytes
+SHA1 (patch-lib_Module_Install_RTx.pm) = 707f961ddaccfcae7295ebf54c7c43ce45ff7069
diff -r f50a57380bc2 -r 3915288bc7a4 devel/p5-Module-Install-RTx/patches/patch-lib_Module_Install_RTx.pm
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Module-Install-RTx/patches/patch-lib_Module_Install_RTx.pm       Tue Jul 16 06:20:17 2019 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-lib_Module_Install_RTx.pm,v 1.1 2019/07/16 06:20:18 spz Exp $
+
+fix up installpaths
+
+--- lib/Module/Install/RTx.pm.orig     2018-03-02 20:05:16.000000000 +0000
++++ lib/Module/Install/RTx.pm
+@@ -173,9 +173,9 @@ install ::
+     # INSTALLDIRS=vendor should install manpages into /usr/share/man.
+     # That is the default path in most distributions. Need input from
+     # Redhat, Centos etc.
+-    $self->makemaker_args( INSTALLVENDORMAN1DIR => "/usr/share/man/man1" );
+-    $self->makemaker_args( INSTALLVENDORMAN3DIR => "/usr/share/man/man3" );
+-    $self->makemaker_args( INSTALLVENDORARCH => "/usr/share/man" );
++    $self->makemaker_args( INSTALLVENDORMAN1DIR => "@PREFIX@/@PKGMANDIR@/man1" );
++    $self->makemaker_args( INSTALLVENDORMAN3DIR => "@PREFIX@/@PKGMANDIR@/man3" );
++    $self->makemaker_args( INSTALLVENDORARCH => "$RT::PluginPath/$name/$Config{api_versionstring}/$Config{archname}" );
+ 
+     if (%has_etc) {
+         print "For first-time installation, type 'make initdb'.\n";



Home | Main Index | Thread Index | Old Index