mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 09:19:15 -04:00
Automagically generating pkg-plist.
This commit is contained in:
parent
545bf7ae46
commit
4284dc71cc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70554
2 changed files with 17 additions and 5358 deletions
|
@ -18,7 +18,6 @@ MAINTAINER= znerd@FreeBSD.org
|
||||||
NO_CDROM= "License does not allow distribution with fee."
|
NO_CDROM= "License does not allow distribution with fee."
|
||||||
RESTRICTED= "This software is under license and export control."
|
RESTRICTED= "This software is under license and export control."
|
||||||
|
|
||||||
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
|
|
||||||
TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
|
TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER}
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs
|
WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs
|
||||||
|
@ -29,13 +28,26 @@ NO_BUILD= yes
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
do-install:
|
pre-install:
|
||||||
@${ECHO} -n ">> Creating directory ${TARGET_DIR}..."
|
@${ECHO_CMD} -n ">> Removing ${PLIST}..."
|
||||||
@${MKDIR} ${TARGET_DIR}
|
@${RM} -f ${PLIST}
|
||||||
@${ECHO} " [ DONE ]"
|
@${TOUCH} ${PLIST}
|
||||||
|
@${ECHO_CMD} " [ DONE ]"
|
||||||
|
|
||||||
@${ECHO} -n ">> Copying files..."
|
do-install:
|
||||||
|
@${ECHO_CMD} -n ">> Creating directory ${TARGET_DIR}..."
|
||||||
|
@${MKDIR} ${TARGET_DIR}
|
||||||
|
@${ECHO_CMD} " [ DONE ]"
|
||||||
|
|
||||||
|
@${ECHO_CMD} -n ">> Copying files..."
|
||||||
@${CP} -r ${WRKSRC}/* ${TARGET_DIR}
|
@${CP} -r ${WRKSRC}/* ${TARGET_DIR}
|
||||||
@${ECHO} " [ DONE ]"
|
@${ECHO_CMD} " [ DONE ]"
|
||||||
|
|
||||||
|
@${ECHO_CMD} -n ">> Creating packing list..."
|
||||||
|
@${FIND} ${TARGET_DIR} -type f -print | \
|
||||||
|
${SED} "s,${PREFIX}/*,," >> ${PLIST}
|
||||||
|
@${FIND} ${TARGET_DIR} -type d -print | sort -r | \
|
||||||
|
${SED} -e "s,${PREFIX}/*,," -e "s,^,@dirrm ,g" >> ${PLIST}
|
||||||
|
@${ECHO_CMD} " [ DONE ]"
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue