aboutsummaryrefslogtreecommitdiff
path: root/misc/metalink-checker/Makefile
blob: c345bbca911f54ffa34c2e93dc7f326f81237bb3 (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
PORTNAME=	metalink
PORTVERSION=	1.3
CATEGORIES=	misc
MASTER_SITES=	SF/${PORTNAME}s/Metalink%20Checker/2007
PKGNAMESUFFIX?=	-checker
DISTNAME=	checker-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Python script to check metalink files and complete a basic download
WWW=		http://metalinks.sourceforge.net/

LICENSE=	GPLv2+

USES=		dos2unix python
NO_BUILD=	yes
NO_ARCH=	yes

PORTDOCS=	README
PLIST_FILES=	bin/${PORTNAME}.py

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -E \
		-e "s|#!/usr/bin/env[[:space:]]python|#!${PYTHON_CMD}|" \
		${WRKSRC}/${PORTNAME}.py

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>