1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/misc/metalink-checker/Makefile
Emanuel Haupt 9aa8321c65 - Support staging
- USES -> dos2unix
2014-02-28 07:12:57 +00:00

36 lines
817 B
Makefile

# Created by: 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= ports@FreeBSD.org
COMMENT= Python script to check metalink files and complete a basic download
LICENSE= GPLv2
USES= dos2unix
USE_PYTHON= yes
NO_BUILD= yes
PORTDOCS= README
PLIST_FILES= bin/${PORTNAME}.py
post-patch:
@${REINPLACE_CMD} -E \
-e "s|#!/usr/bin/env[[:space:]]python|#!${PYTHON_CMD}|" \
${WRKSRC}/${PORTNAME}.py
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>