aboutsummaryrefslogtreecommitdiffstats
path: root/misc/py-yolk/Makefile
blob: 39cba03c817a397fc974ebc5f8d3cc418b2d1307 (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
50
51
# New ports collection makefile for:    yolk
# Date created:     2007-03-11
# Whom:         Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   yolk
PORTVERSION=    0.1.0
CATEGORIES= misc python
MASTER_SITES=   ${MASTER_SITE_CHEESESHOP} \
        http://nivi.interfree.it/distfiles/${PORTNAME}/
MASTER_SITE_SUBDIR= source/y/${PORTNAME}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= nivit@FreeBSD.org
COMMENT=    A Python tool for listing packages installed by setuptools

OPTIONS=    PYPI_RSS    "Enable fetching PyPI RSS feed" On
OPTIONSFILE=    ${PORT_DBDIR}/py-${PORTNAME}/options

USE_PYTHON= yes
USE_PYDISTUTILS=    easy_install

.if !defined (NO_INSTALL_MAN)
MAN1=   ${PORTNAME}.1
.endif

PLIST_SUB=  PORTEXAMPLES=${PORTEXAMPLES}

.include <bsd.port.pre.mk>

post-install:
.if !defined (NO_INSTALL_MAN)
    @${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1
.endif
.if !defined (NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    @cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} ";"
    @cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} ";"
.endif

.if defined (WITH_PYPI_RSS)
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree
.endif

.if !defined (NOPORTEXAMPLES)
EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}
.endif

.include <bsd.port.post.mk>