aboutsummaryrefslogtreecommitdiffstats
path: root/www/woof/Makefile
blob: 9896382cdbbd745e385143d9a69ecbbdd8fd3515 (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
# Created by: Dereckson <dereckson@gmail.com>
# $FreeBSD$

PORTNAME=   woof
PORTVERSION=    2009.12.27
CATEGORIES= www
MASTER_SITES=   http://www.home.unix-ag.org/simon/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/./-/g}
EXTRACT_SUFX=   .py
EXTRACT_ONLY=   # empty

MAINTAINER= dereckson@gmail.com
COMMENT=    Web Offer One File, an ad-hoc single file webserver

LICENSE=    GPLv2

USE_PYTHON= yes
NO_BUILD=   yes
PLIST_FILES=    bin/woof

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${PYTHON_REL} >= 270
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-woof-2009-12-27-python27.diff
.endif

do-extract:
    @${MKDIR} ${WRKSRC}
    @${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}/${DISTFILES}

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${DISTFILES} ${PREFIX}/bin/woof

.include <bsd.port.post.mk>