The do-install logic didn't work with stage.
This commit is contained in:
parent
92d9f8b89d
commit
676d8be6ae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360455
2 changed files with 11 additions and 11 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= ephem
|
||||
PORTVERSION= 4.28
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= astro
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= trevor
|
||||
|
@ -17,14 +18,13 @@ ALL_TARGET=
|
|||
CFLAGS+= -Wno-implicit -Wno-return-type
|
||||
|
||||
do-install:
|
||||
-cd ${WRKSRC}; \
|
||||
${INSTALL_PROGRAM} ephem ${STAGEDIR}${PREFIX}/bin; \
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/ephem; \
|
||||
${INSTALL_DATA} Man.txt ${STAGEDIR}${PREFIX}/share/ephem/; \
|
||||
[ ! -f ${PREFIX}/share/ephem/ephem.db ] && ${INSTALL_DATA} ephem.db ${STAGEDIR}${PREFIX}/share/ephem/; \
|
||||
[ ! -f ${PREFIX}/share/ephem/ephem.cfg ] && ${INSTALL_DATA} ephem.cfg ${STAGEDIR}${PREFIX}/share/ephem/
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ephem ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/Man.txt ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ephem.cfg ${STAGEDIR}${DATADIR}/ephem.cfg.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/ephem.db ${STAGEDIR}${DATADIR}/ephem.db.sample
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG} Don\'t forget to edit ${PREFIX}/share/ephem/ephem.cfg!
|
||||
@${ECHO_MSG} "Don't forget to edit ${PREFIX}/share/ephem/ephem.cfg!"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
bin/ephem
|
||||
share/ephem/Man.txt
|
||||
share/ephem/ephem.cfg
|
||||
share/ephem/ephem.db
|
||||
@dirrm share/ephem
|
||||
%%DATADIR%%/Man.txt
|
||||
@sample %%DATADIR%%/ephem.cfg.sample
|
||||
@sample %%DATADIR%%/ephem.db.sample
|
||||
@dirrm %%DATADIR%%
|
||||
|
|
Loading…
Reference in a new issue