ports/149646: [PATCH] Add a new knob R_MOD_AUTOPLIST in bsd.cran.mk

TAKATSU Tomonari tota at FreeBSD.org
Sat Aug 14 14:40:01 UTC 2010


>Number:         149646
>Category:       ports
>Synopsis:       [PATCH] Add a new knob R_MOD_AUTOPLIST in bsd.cran.mk
>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:   Sat Aug 14 14:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     TAKATSU Tomonari
>Release:        FreeBSD 8.1-RELEASE amd64
>Organization:
none (private)
>Environment:
System: FreeBSD photon.local.lan 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010
>Description:
I'd like to add a new knob R_MOD_AUTOPLIST in bsd.cran.mk, which allows
the packing list for most R-cran ports to be generated automatically.

Inspired by:	RUBYGEM_AUTOPLIST knob

Port maintainer (wen at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

Index: files/bsd.cran.mk
===================================================================
RCS file: /home/ncvs/ports/math/R-cran-sm/files/bsd.cran.mk,v
retrieving revision 1.1
diff -u -u -r1.1 bsd.cran.mk
--- files/bsd.cran.mk	22 Mar 2009 13:32:38 -0000	1.1
+++ files/bsd.cran.mk	14 Aug 2010 13:42:11 -0000
@@ -26,3 +26,13 @@
 	@cd ${WRKDIR} && ${R_INS} ${PORTNAME}
 .endif
 
+.if defined(R_MOD) && defined(R_MOD_AUTOPLIST)
+.if !target(post-install-script)
+post-install-script:
+	@${FIND} -ds ${PREFIX}/${R_MOD_DIR} -type f -print | ${SED} -E -e \
+		's,^${PREFIX}/?,,' > ${TMPPLIST}
+	@${FIND} -ds ${PREFIX}/${R_MOD_DIR} -type d -print | ${SED} -E -e \
+		's,^${PREFIX}/?, at dirrm ,' >> ${TMPPLIST}
+.endif
+.endif
+

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



More information about the freebsd-ports-bugs mailing list