Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2010 23:16:10 +0900 (JST)
From:      TAKATSU Tomonari <tota@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        wen@FreeBSD.org
Subject:   ports/149646: [PATCH] Add a new knob R_MOD_AUTOPLIST in bsd.cran.mk
Message-ID:  <201008141416.o7EEGAl8047955@rtfm.jp>
Resent-Message-ID: <201008141440.o7EEe10l077422@freefall.freebsd.org>

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

>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@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}/?,@dirrm ,' >> ${TMPPLIST}
+.endif
+.endif
+

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



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