Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2013 23:31:25 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333808 - head/textproc/multimarkdown
Message-ID:  <201311142331.rAENVPYW039459@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Thu Nov 14 23:31:25 2013
New Revision: 333808
URL: http://svnweb.freebsd.org/changeset/ports/333808

Log:
  Use bsd.git-clone.mk.

Modified:
  head/textproc/multimarkdown/Makefile

Modified: head/textproc/multimarkdown/Makefile
==============================================================================
--- head/textproc/multimarkdown/Makefile	Thu Nov 14 23:31:09 2013	(r333807)
+++ head/textproc/multimarkdown/Makefile	Thu Nov 14 23:31:25 2013	(r333808)
@@ -12,9 +12,9 @@ COMMENT=	Extended Markdown processor wit
 
 LICENSE=	MIT
 
-FETCH_DEPENDS=	git:${PORTSDIR}/devel/git
-
-WRKSRC=		${WRKDIR}/MultiMarkdown-4
+GITHUB_CREATOR=	fletcher
+GIT_PROJECT_NAME=	MultiMarkdown-4
+GIT_SUBMODULES=	yes
 
 ALL_TARGET=	${PORTNAME}
 
@@ -31,18 +31,6 @@ OPTIONS_SUB=	yes
 CONFLICTS_INSTALL=	mtools-*
 .endif
 
-do-fetch:
-	@if [ ! -e ${WRKSRC}/greg/Makefile ]; then \
-		${MKDIR} ${WRKDIR}; \
-		cd ${WRKDIR} && git clone https://github.com/fletcher/MultiMarkdown-4.git; \
-		cd ${WRKSRC} && git checkout ${PORTVERSION}; \
-		cd ${WRKSRC} && git submodule init; \
-		cd ${WRKSRC} && git submodule update; \
-	fi
-
-do-extract:
-	@${DO_NADA}	#normally do-extract starts with an rm -rf ${WRKSRC}
-
 post-patch:
 	@${REINPLACE_CMD} -E "s/^(CFLAGS).+=/\1 \+=/" ${WRKSRC}/Makefile ${WRKSRC}/greg/Makefile
 	@${REINPLACE_CMD} -E "s,^(xslt_path)=.*,\1=${DATADIR},; s,(xslt_path)/../,\1/," \
@@ -70,4 +58,6 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}/cheat-sheet
 	cd ${WRKSRC} && ${FIND} cheat-sheet -not -path '*/.git*' | \
 		${CPIO} -pdmu --quiet ${STAGEDIR}${DOCSDIR}
+
+.include "${.CURDIR}/bsd.git-clone.mk"
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311142331.rAENVPYW039459>