mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Fix pkg-plist when installing to non-standard prefix
- Delete %%GAUCHE_LIBDIR%% as well - FIx permissions by replacing 'cp's to COPYTREE macro. PR: ports/101396 Submitted by: stas Approved by: maintainer (Erik Greenwald)
This commit is contained in:
parent
fd27b6f680
commit
d00138b689
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173429
@ -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 @@ BUILD_DEPENDS= gauche-config:${PORTSDIR}/lang/gauche
|
||||
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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user