Import misc/metalink-checker version 1.3
[dports.git] / misc / metalink-checker / Makefile
1 # New ports collection makefile for:    Metalink checker
2 # Date created:         Sun 10 Aug 2008 04:22:51 UTC
3 # Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
4 #
5 # $FreeBSD: ports/misc/metalink-checker/Makefile,v 1.4 2012/11/17 05:59:41 svnexp Exp $
6 #
7
8 PORTNAME=       metalink
9 PORTVERSION=    1.3
10 CATEGORIES=     misc
11 MASTER_SITES=   SF/${PORTNAME}s/Metalink%20Checker/2007
12 PKGNAMESUFFIX?= -checker
13 DISTNAME=       checker-${PORTVERSION}
14
15 MAINTAINER=     lioux@FreeBSD.org
16 COMMENT=        Python script to check metalink files and complete a basic download
17
18 LICENSE=        GPLv2
19
20 USE_DOS2UNIX=   yes
21 USE_PYTHON=     yes
22 NO_BUILD=       yes
23
24 # Documents to install
25 DOC_FILES=      \
26                 README
27
28 .ifndef(NOPORTDOCS)
29 PORTDOCS=       *
30 .endif
31
32 PLIST_FILES=    bin/${PORTNAME}.py
33
34 do-patch:
35         @${REINPLACE_CMD} -E \
36                 -e "s|#!/usr/bin/env[[:space:]]python|#!${PYTHON_CMD}|" \
37                 ${WRKSRC}/${PORTNAME}.py
38
39 do-install:
40 # docs
41 .ifndef(NOPORTDOCS)
42         @${MKDIR} ${DOCSDIR}
43 .for file in ${DOC_FILES}
44         @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
45 .endfor
46 .endif
47         @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${PREFIX}/bin
48
49 .include <bsd.port.mk>