ports/101396: [PATCH] devel/gauche-readline: fix plist on non-standard prefixes, fix permissions
Stanislav Sedov
ssedov at mbsd.msk.ru
Sat Aug 5 05:40:17 UTC 2006
>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 at 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
+ at dirrmtry %%GAUCHE_LIBDIR%%
+ at dirrmtry share/gauche/site
+ at dirrmtry share/gauche
--- gauche-readline-0.1_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list