Date: Sat, 5 Aug 2006 09:35:20 +0400 (MSD) From: Stanislav Sedov <ssedov@mbsd.msk.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: erik@smluc.org Subject: ports/101396: [PATCH] devel/gauche-readline: fix plist on non-standard prefixes, fix permissions Message-ID: <20060805053520.26F8F120B1@fonon.realnet> Resent-Message-ID: <200608050540.k755eEH1006644@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 101396 >Category: ports >Synopsis: [PATCH] devel/gauche-readline: fix plist on non-standard prefixes, fix permissions >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 05 05:40:13 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Stanislav Sedov >Release: FreeBSD 7.0-CURRENT i386 >Organization: MBSD labs, Inc. >Environment: System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug 2 21:44:37 MSD >Description: - Fix pkg-plist when installing to non-standard prefix - Delete %%GAUCHE_LIBDIR%% as well - FIx permissions by replacing 'cp's to COPYTREE macro. Copy of this message was sent to (erik@smluc.org). >How-To-Repeat: >Fix: --- gauche-readline-0.1_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/gauche-readline/Makefile /var/tmp/tmp4/gauche-readline/Makefile --- /usr/ports/devel/gauche-readline/Makefile Sun May 16 11:30:08 2004 +++ /var/tmp/tmp4/gauche-readline/Makefile Sat Aug 5 09:29:05 2006 @@ -7,6 +7,7 @@ PORTNAME= readline PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= devel scheme MASTER_SITES= http://www.shiro.dreamhost.com/scheme/vault/ PKGNAMEPREFIX= gauche- @@ -22,7 +23,18 @@ GAUCHE_LIBDIR= share/gauche/site/lib PLIST_SUB+= GAUCHE_LIBDIR=${GAUCHE_LIBDIR} +# XXX: exists untill it will be committed to bsd.port.mk +COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \ + 2>&1) && \ + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \ + ${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \ + ${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' -- + do-install: - ${CP} -R ${WRKSRC}/readline* `gauche-config --sitelibdir` +.if !exists(${PREFIX}/share/gauche/site/lib) + ${MKDIR} ${PREFIX}/share/gauche/site/lib +.endif + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "readline.scm readline" \ + ${PREFIX}/share/gauche/site/lib) .include <bsd.port.mk> diff -ruN --exclude=CVS /usr/ports/devel/gauche-readline/pkg-plist /var/tmp/tmp4/gauche-readline/pkg-plist --- /usr/ports/devel/gauche-readline/pkg-plist Sat Jan 17 01:27:51 2004 +++ /var/tmp/tmp4/gauche-readline/pkg-plist Sat Aug 5 00:55:07 2006 @@ -3,3 +3,6 @@ %%GAUCHE_LIBDIR%%/readline/keymap.scm %%GAUCHE_LIBDIR%%/readline/term-util.scm @dirrm %%GAUCHE_LIBDIR%%/readline +@dirrmtry %%GAUCHE_LIBDIR%% +@dirrmtry share/gauche/site +@dirrmtry share/gauche --- gauche-readline-0.1_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060805053520.26F8F120B1>