pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel Convert to user-destdir.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/480a86ed71c7
branches:  trunk
changeset: 590032:480a86ed71c7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jun 26 09:54:40 2011 +0000

description:
Convert to user-destdir.

diffstat:

 devel/RTx-RightsMatrix/Makefile         |   5 ++++-
 devel/RTx-RightsMatrix/distinfo         |   4 ++--
 devel/RTx-RightsMatrix/patches/patch-aa |  12 +++++++-----
 devel/RTx-Shredder/Makefile             |   5 ++++-
 devel/RTx-Shredder/distinfo             |   4 ++--
 devel/RTx-Shredder/patches/patch-aa     |   7 ++++---
 6 files changed, 23 insertions(+), 14 deletions(-)

diffs (107 lines):

diff -r ae55b9c2f646 -r 480a86ed71c7 devel/RTx-RightsMatrix/Makefile
--- a/devel/RTx-RightsMatrix/Makefile   Sat Jun 25 11:32:09 2011 +0000
+++ b/devel/RTx-RightsMatrix/Makefile   Sun Jun 26 09:54:40 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2010/08/21 16:33:08 seb Exp $
+# $NetBSD: Makefile,v 1.5 2011/06/26 09:54:40 wiz Exp $
 #
 
 DISTNAME=      RTx-RightsMatrix-0.03.00
@@ -13,6 +13,9 @@
 
 DEPENDS+=      rt>=3.4.5:../../devel/rt3
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+MAKE_ENV+=     DESTDIR=${DESTDIR}
+
 .include "../../devel/rt3/dirs.mk"
 
 PLIST_SUBST+=          RT_SHARE_DIR=share/rt3
diff -r ae55b9c2f646 -r 480a86ed71c7 devel/RTx-RightsMatrix/distinfo
--- a/devel/RTx-RightsMatrix/distinfo   Sat Jun 25 11:32:09 2011 +0000
+++ b/devel/RTx-RightsMatrix/distinfo   Sun Jun 26 09:54:40 2011 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/05/01 09:43:11 cube Exp $
+$NetBSD: distinfo,v 1.2 2011/06/26 09:54:40 wiz Exp $
 
 SHA1 (RTx-RightsMatrix-0.03.00.tgz) = 95345e935293d90bdd1d08a60290f72e0e5c0b94
 RMD160 (RTx-RightsMatrix-0.03.00.tgz) = f85820289db564eb887e44830e08276db62cff9a
 Size (RTx-RightsMatrix-0.03.00.tgz) = 29898 bytes
-SHA1 (patch-aa) = 5230c031f94d6f3af8f1b7afdd14a96dbd7def1f
+SHA1 (patch-aa) = 2cae70586bf0a4bf95ec89898add5a268a62c197
diff -r ae55b9c2f646 -r 480a86ed71c7 devel/RTx-RightsMatrix/patches/patch-aa
--- a/devel/RTx-RightsMatrix/patches/patch-aa   Sat Jun 25 11:32:09 2011 +0000
+++ b/devel/RTx-RightsMatrix/patches/patch-aa   Sun Jun 26 09:54:40 2011 +0000
@@ -1,13 +1,15 @@
-$NetBSD: patch-aa,v 1.1.1.1 2006/05/01 09:43:11 cube Exp $
+$NetBSD: patch-aa,v 1.2 2011/06/26 09:54:40 wiz Exp $
 
---- inc/Module/Install/RTx.pm.orig     2005-09-27 00:23:22.000000000 +0200
+--- inc/Module/Install/RTx.pm.orig     2005-10-28 20:04:16.000000000 +0000
 +++ inc/Module/Install/RTx.pm
-@@ -29,7 +29,8 @@ sub RTx {
+@@ -28,8 +28,9 @@ sub RTx {
+     @ARGV = grep { /PREFIX=(.*)/ ? (($prefix = $1), 0) : 1 } @ARGV;
  
      if ($prefix) {
-         $RT::LocalPath = $prefix;
+-        $RT::LocalPath = $prefix;
 -        $INC{'RT.pm'} = "$RT::LocalPath/lib/RT.pm";
-+        $RT::LocalHtmlPath = "$prefix/share/rt3/html";
++        $RT::LocalPath = "$ENV{DESTDIR}$prefix";
++        $RT::LocalHtmlPath = "$ENV{DESTDIR}$prefix/share/rt3/html";
 +        $INC{'RT.pm'} = "$RT::LocalPath/lib/rt3/RT.pm";
      }
      else {
diff -r ae55b9c2f646 -r 480a86ed71c7 devel/RTx-Shredder/Makefile
--- a/devel/RTx-Shredder/Makefile       Sat Jun 25 11:32:09 2011 +0000
+++ b/devel/RTx-Shredder/Makefile       Sun Jun 26 09:54:40 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2010/08/21 16:33:08 seb Exp $
+# $NetBSD: Makefile,v 1.6 2011/06/26 09:56:36 wiz Exp $
 #
 
 DISTNAME=      RTx-Shredder-0.03
@@ -14,6 +14,9 @@
 BUILD_DEPENDS+=        p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
 BUILD_DEPENDS+=        p5-DBD-SQLite-[0-9]*:../../databases/p5-DBD-SQLite
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+MAKE_ENV+=             DESTDIR=${DESTDIR}
+
 .include "../../devel/rt3/dirs.mk"
 
 PKG_USERS_VARS+=       APACHE_USER
diff -r ae55b9c2f646 -r 480a86ed71c7 devel/RTx-Shredder/distinfo
--- a/devel/RTx-Shredder/distinfo       Sat Jun 25 11:32:09 2011 +0000
+++ b/devel/RTx-Shredder/distinfo       Sun Jun 26 09:54:40 2011 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/05/01 09:42:13 cube Exp $
+$NetBSD: distinfo,v 1.2 2011/06/26 09:56:36 wiz Exp $
 
 SHA1 (RTx-Shredder-0.03.tar.gz) = e0bb6dd1128d5d6603c1d434456bddbe3de748da
 RMD160 (RTx-Shredder-0.03.tar.gz) = 43d5aabccea3e24f971962123a0df587fa98847c
 Size (RTx-Shredder-0.03.tar.gz) = 43315 bytes
-SHA1 (patch-aa) = 5230c031f94d6f3af8f1b7afdd14a96dbd7def1f
+SHA1 (patch-aa) = 281a8fe1e0c46f0df36e05e88ab52d77ad4c5d9d
diff -r ae55b9c2f646 -r 480a86ed71c7 devel/RTx-Shredder/patches/patch-aa
--- a/devel/RTx-Shredder/patches/patch-aa       Sat Jun 25 11:32:09 2011 +0000
+++ b/devel/RTx-Shredder/patches/patch-aa       Sun Jun 26 09:54:40 2011 +0000
@@ -1,13 +1,14 @@
-$NetBSD: patch-aa,v 1.1.1.1 2006/05/01 09:42:13 cube Exp $
+$NetBSD: patch-aa,v 1.2 2011/06/26 09:56:36 wiz Exp $
 
 --- inc/Module/Install/RTx.pm.orig     2005-09-27 00:23:22.000000000 +0200
 +++ inc/Module/Install/RTx.pm
 @@ -29,7 +29,8 @@ sub RTx {
  
      if ($prefix) {
-         $RT::LocalPath = $prefix;
+-        $RT::LocalPath = $prefix;
 -        $INC{'RT.pm'} = "$RT::LocalPath/lib/RT.pm";
-+        $RT::LocalHtmlPath = "$prefix/share/rt3/html";
++        $RT::LocalPath = "$ENV{DESTDIR}$prefix";
++        $RT::LocalHtmlPath = "$ENV{DESTDIR}$prefix/share/rt3/html";
 +        $INC{'RT.pm'} = "$RT::LocalPath/lib/rt3/RT.pm";
      }
      else {



Home | Main Index | Thread Index | Old Index