Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2014 18:49:11 GMT
From:      Joseph Benden <joe@thrallingpenguin.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/190379: [patch] Add staging support to www/reportmagic
Message-ID:  <201405291849.s4TInBRP070329@cgiserv.freebsd.org>
Resent-Message-ID: <201405291850.s4TIo1WL004177@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190379
>Category:       ports
>Synopsis:       [patch] Add staging support to www/reportmagic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 29 18:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Benden
>Release:        FreeBSD 11
>Organization:
>Environment:
FreeBSD lucy 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r264887: Thu Apr 24 12:43:46 MST 2014     root@lucy:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Adds staging support to www/reportmagic.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/www/reportmagic/Makefile b/www/reportmagic/Makefile
index 1138f7d..f914ec4 100644
--- a/www/reportmagic/Makefile
+++ b/www/reportmagic/Makefile
@@ -24,9 +24,8 @@ RUN_DEPENDS=	analog:${PORTSDIR}/www/analog \
 WRKSRC=		${WRKDIR}/${DISTNAME}
 NO_BUILD=	YES
 
-NO_STAGE=	yes
 do-install:
-	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Install.PL -no_modules
+	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} ${PERL5} Install.PL -no_modules
 
 post-install:
 	@${ECHO}
diff --git a/www/reportmagic/files/patch-aa b/www/reportmagic/files/patch-aa
index 7bdb922..cee303f 100644
--- a/www/reportmagic/files/patch-aa
+++ b/www/reportmagic/files/patch-aa
@@ -1,18 +1,18 @@
---- Install.PL.orig	Wed Apr  2 09:21:00 2003
-+++ Install.PL	Fri Apr  4 19:59:41 2003
+--- Install.PL.orig	2003-04-02 02:21:00.000000000 -0700
++++ Install.PL	2014-05-29 11:23:05.000000000 -0700
 @@ -59,13 +59,13 @@
  # example to use the version number in your path. 
  # Make sure this remains in single quotes.
  #
 -$DEST = '/usr/local/bin/rmagic-$(VERSION)/';
-+$DEST = "$ENV{'PREFIX'}/reportmagic/";
++$DEST = "$ENV{'DESTDIR'}$ENV{'PREFIX'}/reportmagic/";
   
  #
  # Where do you want documentation to be installed?
  # You can use string concatenation, as in this example, 
  # to install the docs below the program.
 -$DOC = $DEST . 'docs/';
-+$DOC = "$ENV{'PREFIX'}/share/doc/reportmagic/";
++$DOC = "$ENV{'DESTDIR'}$ENV{'PREFIX'}/share/doc/reportmagic/";
  
  
  #


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405291849.s4TInBRP070329>