aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/py-tarfile/Makefile
blob: 77d2e2e710fad91d78b303965e0d254b65c94dc4 (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
# New ports collection makefile for:    py-tarfile
# Date created:     26 March 2002
# Whom:         Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
#

PORTNAME=   tarfile
PORTVERSION=    0.3
CATEGORIES= archivers python
MASTER_SITES=   http://www.gustaebel.de/lars/tarfile/ \
        http://www3.kr.freebsd.org/~perky/distfiles/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= perky@fallin.lv

USE_PYTHON= yes
SETUP_CMD=  cd ${WRKSRC} && ${PYTHON_CMD} setup.py

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 200
IGNORE=     needs Python 2.0 at least
.else
.if ${PYTHON_REL} < 220
PLIST_SUB+= UNDERPY22=""
.else
PLIST_SUB+= UNDERPY22="@comment "
.endif
.endif

do-build:
    ${SETUP_CMD} build

do-install:
    ${SETUP_CMD} install -c -O1 --prefix=${PREFIX}

.include <bsd.port.post.mk>