1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00

Use bsd.git-clone.mk.

This commit is contained in:
Adam Weinberger 2013-11-14 23:31:25 +00:00
parent b6737862c1
commit 173508a456
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333808

View File

@ -12,9 +12,9 @@ COMMENT= Extended Markdown processor with more features, written in C
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>