blob: 57ff1b4e11a5c7d6d276c3a16d5c16684cd8f237 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# New ports collection makefile for: Markdown
# Date created: 13 October 2005
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= markdown
PORTVERSION= 1.0.1
CATEGORIES= textproc perl5
MASTER_SITES= http://daringfireball.net/projects/downloads/
DISTNAME= Markdown_${PORTVERSION}
MAINTAINER= tobez@FreeBSD.org
COMMENT= A text-to-HTML conversion tool for web writers
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_ZIP= yes
USE_PERL5= yes
NO_BUILD= yes
.if !defined(NOPORTDOCS)
PORTDOCS= License.text Markdown-Readme.text
.endif
PLIST_FILES= bin/markdown
post-patch:
${PERL} -pi -e "s#/usr/bin/perl#${PERL}#" ${WRKSRC}/Markdown.pl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/Markdown.pl ${PREFIX}/bin/markdown
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} "${WRKSRC}/License.text" ${DOCSDIR}/License.text
${INSTALL_DATA} "${WRKSRC}/Markdown Readme.text" ${DOCSDIR}/Markdown-Readme.text
.endif
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>
|