Use $SUB_FILES to dynamically adjust pkg-message
PR: ports/142769 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
This commit is contained in:
parent
355fd44280
commit
f2d5da124b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=258953
2 changed files with 2 additions and 3 deletions
|
@ -18,11 +18,12 @@ COMMENT= Powerful IMAP/Maildir synchronization and reader support
|
|||
|
||||
.if !defined(WITHOUT_X11)
|
||||
RUN_DEPENDS= ${TKINTER}:${PORTSDIR}/x11-toolkits/py-tkinter
|
||||
|
||||
TKINTER= ${PYTHON_SITELIBDIR}/_tkinter.so
|
||||
.endif
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
|
@ -37,8 +38,6 @@ post-install:
|
|||
.endif
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
|
||||
@${SED} -e 's!%%EXAMPLESDIR%%!${EXAMPLESDIR}!' \
|
||||
${MASTERDIR}/pkg-message > ${PKGMESSAGE}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue