1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/misc/metalink-checker/Makefile
Mario Sergio Fujikawa Ferreira e59a981e69 New port metalink-checker version 1.3: Python script to check
metalink files and complete a basic download
2008-08-10 10:50:38 +00:00

49 lines
981 B
Makefile

# 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
MASTER_SITE_SUBDIR= metalinks
PKGNAMESUFFIX?= -checker
DISTNAME= checker-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
COMMENT= Python script to check metalink files and complete a basic download
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>