mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Pointyhat doesn't handle spaces in ${PORTDOCS} filenames very
gracefully. To avoid incurring its wrath, we just rename the file to a spaceless variety before installing it. Also, use cpio(1) instead of cp(1) so we don't risk mangling permissions. The plist is technically changing here, but it worked fine before and this is just to help the package build system, which hasn't been able to build a package yet. So, I'm skipping the PORTREVISION bump.
This commit is contained in:
parent
edd416aa5d
commit
3c04722204
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218350
@ -23,12 +23,18 @@ WRKSRC= ${WRKDIR}
|
||||
DATADIR= ${PREFIX}/share/smc
|
||||
NO_BUILD= yes
|
||||
|
||||
post-patch:
|
||||
# The pointyhat build system doesn't like spaces in $PORTDOCS,
|
||||
# so this makes it happier
|
||||
${MV} ${WRKSRC}/docs/Addon\ -\ Music\ Readme.txt \
|
||||
${WRKSRC}/docs/Addon_-_Music_Readme.txt
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${DATADIR}/music
|
||||
${CP} -Rv ${WRKSRC}/data/music/* ${DATADIR}/music/
|
||||
cd ${WRKSRC}/data && \
|
||||
${FIND} music | ${CPIO} -pdmvu ${DATADIR}
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= Addon\ \-\ Music\ Readme.txt license.txt
|
||||
PORTDOCS= Addon_-_Music_Readme.txt license.txt
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${DOCSDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user