- Fix build by not modifying file under DISTDIR

- Don't include PORTREVISION into DIST_SUBDIR
This commit is contained in:
Dmitry Marakasov 2015-02-03 19:19:47 +00:00
parent 0f41cea653
commit b7e97ad51e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378368

View file

@ -7,24 +7,28 @@ CATEGORIES= devel
MASTER_SITES= http://www.gnome.org/~newren/eg/download/${PORTVERSION}/
DISTNAME= eg
EXTRACT_SUFX= # none
EXTRACT_ONLY= # none
MAINTAINER= ports@FreeBSD.org
COMMENT= Easy wrapper for git
RUN_DEPENDS= git:${PORTSDIR}/devel/git
DIST_SUBDIR= eg/${PORTVERSION}_${PORTREVISION}
DISTREVISION= 0 # bump this if distfile is changed inplace
DIST_SUBDIR= eg/${PORTVERSION}_${DISTREVISION}
USES= perl5 shebangfix
SHEBANG_FILES= ${_DISTDIR}/eg
SHEBANG_FILES= ${WRKDIR}/eg
USE_PERL5= run
NO_WRKSUBDIR= yes
NO_BUILD= yes
PLIST_FILES= bin/eg bin/easygit
do-extract:
@${CP} ${_DISTDIR}/${DISTNAME} ${WRKDIR}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${_DISTDIR}/eg ${STAGEDIR}${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKDIR}/eg ${STAGEDIR}${PREFIX}/bin/
cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s ./eg ${STAGEDIR}${PREFIX}/bin/easygit
.include <bsd.port.mk>