summaryrefslogtreecommitdiff
path: root/editors/xemacs-wp-packages/Makefile
diff options
context:
space:
mode:
authorKiriyama Kazuhiko <kiri@FreeBSD.org>2001-04-20 14:57:38 +0000
committerKiriyama Kazuhiko <kiri@FreeBSD.org>2001-04-20 14:57:38 +0000
commit1ad09c8763edf4289dcf03ba9dbae4a1d55e4f88 (patch)
treeb02098f4874a9b7cc208139916d7bdef9a0469ac /editors/xemacs-wp-packages/Makefile
parentUpdate 2.4 -> 2.5 : (diff)
Change pkg-plist to be automatically generated.
Reviewed by: knu
Notes
Notes: svn path=/head/; revision=41731
Diffstat (limited to 'editors/xemacs-wp-packages/Makefile')
-rw-r--r--editors/xemacs-wp-packages/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/editors/xemacs-wp-packages/Makefile b/editors/xemacs-wp-packages/Makefile
index bbc949153cde..9f7b88a02b96 100644
--- a/editors/xemacs-wp-packages/Makefile
+++ b/editors/xemacs-wp-packages/Makefile
@@ -22,9 +22,10 @@ DIST_SUBDIR= xemacs
MAINTAINER= kiri@FreeBSD.org
NO_BUILD= yes
-WRKSRC= ${WRKDIR}/xemacs-packages
+WRKSRC= ${WRKDIR}/${PACKAGES_SUBDIR}
XEMACSDIR= ${PREFIX}/lib/xemacs
+PACKAGES_SUBDIR= xemacs-packages
do-extract:
@${MKDIR} ${WRKSRC}
@@ -35,9 +36,15 @@ do-extract:
do-install:
${MKDIR} ${XEMACSDIR}
- ${CP} -Rp ${WRKDIR}/xemacs-packages ${XEMACSDIR}
+ ${CP} -R ${WRKSRC} ${XEMACSDIR}
post-install:
+ @cd ${WRKDIR} && \
+ find ${PACKAGES_SUBDIR} -type f|sort|${SED} 's:^:lib/xemacs/:' >> ${TMPPLIST}; \
+ find ${PACKAGES_SUBDIR}/*/* -type d|sort -r|${SED} 's:^:@dirrm lib/xemacs/:'>> ${TMPPLIST}
+ @${ECHO} '@unexec rmdir %D/lib/xemacs/${PACKAGES_SUBDIR}/* 2>/dev/null || true' >> ${TMPPLIST}
+ @${ECHO} '@unexec rmdir %D/lib/xemacs/${PACKAGES_SUBDIR} 2>/dev/null || true' >> ${TMPPLIST}
+ @${ECHO} '@unexec rmdir %D/lib/xemacs 2>/dev/null || true' >> ${TMPPLIST}
@${ECHO_MSG} " This is the set of the packages for xemacs with the wp category. You can"
@${ECHO_MSG} "install other packages provided by XEmacs.org with editors/xemacs-*-packages"
@${ECHO_MSG} "ports. These ports are prepared for corresponding XEmacs packages except for"