aboutsummaryrefslogtreecommitdiffstats
path: root/misc/metalink-checker/Makefile
blob: 6e8d621b325c10af395348f8aae0e285e7c6beca (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
# New ports collection makefile for:    Metalink checker
# Date created:     Sun 10 Aug 2008 04:22:51 UTC
# Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   metalink
PORTVERSION=    1.3
CATEGORIES= misc
MASTER_SITES=   SF/${PORTNAME}s/Metalink%20Checker/2007
PKGNAMESUFFIX?= -checker
DISTNAME=   checker-${PORTVERSION}

MAINTAINER= lioux@FreeBSD.org
COMMENT=    Python script to check metalink files and complete a basic download

LICENSE=    GPLv2

USE_DOS2UNIX=   yes
USE_PYTHON= yes
NO_BUILD=   yes

# Documents to install
DOC_FILES=  \
        README

.ifndef(NOPORTDOCS)
PORTDOCS=   *
.endif

PLIST_FILES=    bin/${PORTNAME}.py

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

do-install:
# docs
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
    @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${PREFIX}/bin

.include <bsd.port.mk>