FreeBSD Bugzilla – Attachment 157825 Details for
Bug 200929
Implemented USE_SCMREPO: direct fetching of port source from SCM repository
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
USE_SCMREPO.patch (text/plain), 2.56 KB, created by
Yuri Victorovich
on 2015-06-17 06:09:47 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2015-06-17 06:09:47 UTC
Size:
2.56 KB
patch
obsolete
>Index: Mk/bsd.sites.mk >=================================================================== >--- Mk/bsd.sites.mk (revision 389897) >+++ Mk/bsd.sites.mk (working copy) >@@ -660,6 +660,61 @@ > .endif > .endif > >+# >+# In order to use subversion repository your port must define USE_SCMREPO and >+# the following variables, along with PORTNAME and PORTVERSION: >+# >+# SCMREPO_KIND - What kind of SCM to use, choices are svn, git >+# default: not set, mandatory >+# >+# SCMREPO_URL - URL of the subversion repository, including the branch part >+# default: not set, mandatory >+# >+# SCMREPO_REV - revision number to check out >+# default: not set, mandatory >+# >+ >+ >+.if defined(USE_SCMREPO) >+. if ${SCMREPO_KIND:Msvn} >+FETCH_DEPENDS= svn:${PORTSDIR}/devel/subversion >+SCMREPO_FETCH_CMD= svn export -q -r ${SCMREPO_REV} ${SCMREPO_URL} ${PORTNAME}-${PORTVERSION} >+. elif ${SCMREPO_KIND:Mgit} >+FETCH_DEPENDS= git:${PORTSDIR}/devel/git >+SCMREPO_FETCH_CMD= git clone -q ${SCMREPO_URL} ${PORTNAME}-${PORTVERSION} && \ >+ (cd ${PORTNAME}-${PORTVERSION} && git reset -q --hard ${SCMREPO_REV}) && \ >+ ${RM} -rf ${PORTNAME}-${PORTVERSION}/.git* >+. endif >+ >+do-fetch: >+ @${MKDIR} ${_DISTDIR} >+ @file=${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}; \ >+ if [ ! -f ${_DISTDIR}/$$file ]; then \ >+ if [ -f ${DISTINFO_FILE} -a "x${NO_CHECKSUM}" = "x" ]; then \ >+ _sha256sum=`alg=SHA256; ${DISTINFO_DATA}`; \ >+ if [ -z "$$_sha256sum" ]; then \ >+ ${ECHO_MSG} "=> $${DIR:+$$DIR/}$$file is not in ${DISTINFO_FILE}."; \ >+ ${ECHO_MSG} "=> Either ${DISTINFO_FILE} is out of date, or"; \ >+ ${ECHO_MSG} "=> $${DIR:+$$DIR/}$$file is spelled incorrectly."; \ >+ exit 1; \ >+ fi; \ >+ fi; \ >+ ${ECHO_MSG} "=> $$file doesn't seem to exist in ${_DISTDIR}."; \ >+ if [ ! -w ${_DISTDIR} ]; then \ >+ ${ECHO_MSG} "=> ${_DISTDIR} is not writable by you; cannot fetch."; \ >+ exit 1; \ >+ fi; \ >+ cd ${_DISTDIR} && \ >+ ${RM} -rf ${PORTNAME}-${PORTVERSION} && \ >+ ${ECHO_MSG} "=> checking out ${SCMREPO_KIND} repository ${SCMREPO_URL}, revision ${SCMREPO_REV}"; \ >+ ${SCMREPO_FETCH_CMD} && \ >+ ${FIND} ${PORTNAME}-${PORTVERSION} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \ >+ ${FIND} ${PORTNAME}-${PORTVERSION} -print0 | sort -z | \ >+ ${TAR} czf ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} --options gzip:!timestamp --no-recursion --null -T - && \ >+ ${RM} -rf ${PORTNAME}-${PORTVERSION}; \ >+ fi; >+.endif >+ > .if !defined(IGNORE_MASTER_SITE_GNOME) > MASTER_SITE_GNOME+= \ > https://download.gnome.org/%SUBDIR%/ \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200929
: 157825