View | Details | Raw Unified | Return to bug 198449 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/bsd.sites.mk (+42 lines)
Lines 546-551 Link Here
546
.endif
546
.endif
547
.endif
547
.endif
548
548
549
#
550
# In order to use subversion repository your port must define USE_SVNREPO and
551
# the following variables, along with PORTNAME and PORTVERSION:
552
#
553
# SVNREPO_URL   - URL of the subversion repository, including the branch part
554
#                 default: not set, mandatory
555
#
556
# SVNREPO_REV   - revision number to check out
557
#                 default: not set, mandatory
558
#
559
560
.if defined(USE_SVNREPO)
561
FETCH_DEPENDS=    svn:${PORTSDIR}/devel/subversion
562
do-fetch:
563
	@${MKDIR} ${_DISTDIR}
564
	@file=${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}; \
565
	if [ ! -f ${_DISTDIR}/$$file ]; then \
566
		if [ -f ${DISTINFO_FILE} -a "x${NO_CHECKSUM}" = "x" ]; then \
567
			_sha256sum=`alg=SHA256; ${DISTINFO_DATA}`; \
568
			if [ -z "$$_sha256sum" ]; then \
569
				${ECHO_MSG} "=> $${DIR:+$$DIR/}$$file is not in ${DISTINFO_FILE}."; \
570
				${ECHO_MSG} "=> Either ${DISTINFO_FILE} is out of date, or"; \
571
				${ECHO_MSG} "=> $${DIR:+$$DIR/}$$file is spelled incorrectly."; \
572
				exit 1; \
573
			fi; \
574
		fi; \
575
		${ECHO_MSG} "=> $$file doesn't seem to exist in ${_DISTDIR}."; \
576
		if [ ! -w ${_DISTDIR} ]; then \
577
		   ${ECHO_MSG} "=> ${_DISTDIR} is not writable by you; cannot fetch."; \
578
		   exit 1; \
579
		fi; \
580
		cd ${_DISTDIR} && \
581
		    ${RM} -rf ${PORTNAME}-${PORTVERSION} && \
582
		    ${ECHO_MSG} "=> checking out subversion repository ${SVNREPO_URL}, revision ${SVNREPO_REV}"; \
583
		    svn export -q -r ${SVNREPO_REV} ${SVNREPO_URL} ${PORTNAME}-${PORTVERSION} && \
584
		    ${FIND} ${PORTNAME}-${PORTVERSION} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \
585
		    ${FIND} ${PORTNAME}-${PORTVERSION} -print0 | sort -z | \
586
		        ${TAR} czf ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} --options gzip:!timestamp --no-recursion --null -T - && \
587
		    ${RM} -rf ${PORTNAME}-${PORTVERSION}; \
588
	fi;
589
.endif
590
549
.if !defined(IGNORE_MASTER_SITE_GNOME)
591
.if !defined(IGNORE_MASTER_SITE_GNOME)
550
MASTER_SITE_GNOME+= \
592
MASTER_SITE_GNOME+= \
551
	https://download.gnome.org/%SUBDIR%/ \
593
	https://download.gnome.org/%SUBDIR%/ \

Return to bug 198449