mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.
This commit is contained in:
parent
b5c7760f0d
commit
985ad01865
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93884
@ -28,7 +28,7 @@ CONFIGURE_ARGS+= --with-itcl=${LOCALBASE}/lib/itcl3.2
|
||||
MAN1= tkdesk.1 cd-tkdesk.1 ed-tkdesk.1 od-tkdesk.1
|
||||
|
||||
pre-install:
|
||||
@find ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} ';'
|
||||
@${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} ';'
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${PREFIX}/bin/tkdesksh
|
||||
|
@ -27,7 +27,7 @@ post-extract:
|
||||
${RM} -f ${PLIST}.tmp; \
|
||||
for dir in gdk glib gtk; do \
|
||||
${MV} $${dir}/$${dir}.devhelp $${dir}/$${dir}20.devhelp; \
|
||||
find $${dir} -type f >> ${PLIST}.tmp ; \
|
||||
${FIND} $${dir} -type f >> ${PLIST}.tmp ; \
|
||||
${ECHO} "@dirrm share/doc/$${dir}20" >> ${PLIST}.tmp; \
|
||||
done; \
|
||||
${SED} -e 's/^gdk/share\/doc\/gdk20/' \
|
||||
|
@ -28,7 +28,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib"
|
||||
|
||||
post-patch:
|
||||
@find ${WRKSRC} -name "*.[ch]" | xargs ${REINPLACE_CMD} -e \
|
||||
@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|malloc\.h|stdlib.h|g'
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -38,8 +38,8 @@ post-install:
|
||||
${MKDIR} ${EG_DST_DIR}
|
||||
${TAR} -C ${EG_SRC_DIR} -cf - . | ${TAR} -C ${EG_DST_DIR} -xvf -
|
||||
${CHOWN} -R ${BINOWN}:${BINGRP} ${EG_DST_DIR}
|
||||
find ${EG_DST_DIR} -type d -print | xargs ${CHMOD} 0555
|
||||
find ${EG_DST_DIR} -type f -print | xargs ${CHMOD} 0444
|
||||
${FIND} ${EG_DST_DIR} -type d -print | ${XARGS} ${CHMOD} 0555
|
||||
${FIND} ${EG_DST_DIR} -type f -print | ${XARGS} ${CHMOD} 0444
|
||||
.else
|
||||
PLIST= ${WRKDIR}/PLIST.nodocs
|
||||
pre-install:
|
||||
|
@ -38,8 +38,8 @@ post-install:
|
||||
${MKDIR} ${EG_DST_DIR}
|
||||
${TAR} -C ${EG_SRC_DIR} -cf - . | ${TAR} -C ${EG_DST_DIR} -xvf -
|
||||
${CHOWN} -R ${BINOWN}:${BINGRP} ${EG_DST_DIR}
|
||||
find ${EG_DST_DIR} -type d -print | xargs ${CHMOD} 0555
|
||||
find ${EG_DST_DIR} -type f -print | xargs ${CHMOD} 0444
|
||||
${FIND} ${EG_DST_DIR} -type d -print | ${XARGS} ${CHMOD} 0555
|
||||
${FIND} ${EG_DST_DIR} -type f -print | ${XARGS} ${CHMOD} 0444
|
||||
${MKDIR} ${PREFIX}/share/doc/py-gtk
|
||||
${INSTALL_DATA} ${WRKSRC}/MAPPING ${PREFIX}/share/doc/py-gtk
|
||||
.else
|
||||
|
@ -29,7 +29,7 @@ DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
|
||||
post-build:
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/demo
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
@find ${WRKSRC} -name "*.so" | xargs strip
|
||||
@${FIND} ${WRKSRC} -name "*.so" | ${XARGS} strip
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
|
@ -29,7 +29,7 @@ DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
|
||||
post-build:
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/demo
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
@find ${WRKSRC} -name "*.so" | xargs strip
|
||||
@${FIND} ${WRKSRC} -name "*.so" | ${XARGS} strip
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
|
@ -29,7 +29,7 @@ DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
|
||||
post-build:
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/demo
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
@find ${WRKSRC} -name "*.so" | xargs strip
|
||||
@${FIND} ${WRKSRC} -name "*.so" | ${XARGS} strip
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
|
@ -29,7 +29,7 @@ DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
|
||||
post-build:
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/demo
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
@find ${WRKSRC} -name "*.so" | xargs strip
|
||||
@${FIND} ${WRKSRC} -name "*.so" | ${XARGS} strip
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
|
@ -52,7 +52,7 @@ INSTALLS_SHLIB= yes
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@find ${WRKSRC}/src -name \*.h ! -name y.tab.h \
|
||||
@${FIND} ${WRKSRC}/src -name \*.h ! -name y.tab.h \
|
||||
| ${SED} -e "s,${WRKSRC},..," \
|
||||
| eval `${AWK} '{print "ln -sf",$$1,"${WRKSRC}/include"}'`
|
||||
|
||||
|
@ -44,8 +44,8 @@ post-install:
|
||||
@${ECHO_MSG} "==> Installing extra docs under ${PREFIX}/share/doc/v..."
|
||||
${MKDIR} ${PREFIX}/share/doc/v
|
||||
${CP} -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/v
|
||||
find ${PREFIX}/share/doc/v -type d -exec ${CHMOD} 755 {} \;
|
||||
find ${PREFIX}/share/doc/v -type f -exec ${CHMOD} 644 {} \;
|
||||
${FIND} ${PREFIX}/share/doc/v -type d -exec ${CHMOD} 755 {} \;
|
||||
${FIND} ${PREFIX}/share/doc/v -type f -exec ${CHMOD} 644 {} \;
|
||||
@${ECHO_MSG} "==> Extra docs installed. Note, you will need *tex to read 'em."
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
Loading…
Reference in New Issue
Block a user