svn commit: r479271 - head/net/charm
Mathieu Arnold
mat at FreeBSD.org
Sun Sep 9 12:13:56 UTC 2018
On Sun, Sep 09, 2018 at 06:41:11AM +0000, Yuri Victorovich wrote:
> do-fetch:
> - @if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}" ]; then \
> - ${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \
> - cd ${DISTDIR}/${DIST_SUBDIR} && \
> - git clone -q ${GIT_URL} ${PORTNAME}-${DISTVERSIONFULL} && \
> - (cd ${PORTNAME}-${DISTVERSIONFULL} && git reset -q --hard ${DISTVERSIONFULL} && ${RM} -r .git) && \
> - ${FIND} ${PORTNAME}-${DISTVERSIONFULL} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \
> - ${FIND} ${PORTNAME}-${DISTVERSIONFULL} -print0 | LC_ALL=C ${SORT} -z | \
> - ${TAR} czf ${PORTNAME}-${DISTVERSIONFULL}${EXTRACT_SUFX} --format=bsdtar --uid 0 --gid 0 --options gzip:!timestamp --no-recursion --null -T - && \
> - ${RM} -r ${PORTNAME}-${DISTVERSIONFULL}; \
> + @if ! [ -f "${DISTDIR}/NAMD_2.12_Source.tar.gz" ]; then \
> + ${ECHO} "(!!)"; \
> + ${ECHO} "(!!) Please download the release tarball of the version 2.12 of NAMD (NAMD_2.12_Source.tar.gz)"; \
> + ${ECHO} "(!!) from https://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD,"; \
> + ${ECHO} "(!!) put it into ${DISTDIR}, and run 'make' again."; \
> + ${ECHO} "(!!)"; \
> + ${FALSE}; \
> fi
There is a canonical way to do that, inventing a new bad way is really
not the thing to do. For some examples on how to do that, please take a
look at:
audio/festlex-ogi/Makefile
biology/phrap/Makefile
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20180909/f0920dd5/attachment.sig>
More information about the svn-ports-head
mailing list