blob: ea3b4749028eaed505b5f24f9081fa48ba0c0b1c (
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
48
49
50
|
# New ports collection makefile for: codespell
# Date created: 6 August 2011
# Whom: Glen Barber <gjb@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= codespell
PORTVERSION= 1.3
CATEGORIES= textproc
MASTER_SITES= http://packages.profusion.mobi/${PORTNAME}/ \
http://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
MAINTAINER= gjb@FreeBSD.org
COMMENT= Source code spelling checker
LICENSE= GPLv2
USE_PYTHON= 3.1+
PLIST_FILES= bin/codespell
PORTDOCS= COPYING README TODO
PORTEXAMPLES= *
SUB_FILES+= pkg-message
.include <bsd.port.pre.mk>
do-build:
${REINPLACE_CMD} 's|#!/usr/bin/env python3|#!${LOCALBASE}/bin/${PYTHON_VERSION}|' \
${WRKSRC}/codespell.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/codespell.py ${PREFIX}/bin/codespell
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
. for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
. endfor
.endif
.for i in data example
@${MKDIR} ${EXAMPLESDIR}/${i}
@${INSTALL_DATA} ${WRKSRC}/${i}/* ${EXAMPLESDIR}/${i}
.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|