aboutsummaryrefslogtreecommitdiffstats
path: root/misc/pantry/Makefile
blob: fc56cdea4fd627c3cce0fa49a5bdab6a2d0b7374 (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
# New ports collection makefile for:    pantry
# Date created:     21 July 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pantry
PORTVERSION=    0.${DISTVERSION}
DISTVERSION=    15
CATEGORIES= misc
MASTER_SITES=   SF

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Command-line nutrition analysis program

RUN_DEPENDS=    py*-bsddb>=2:${PORTSDIR}/databases/py-bsddb

USE_PYTHON= yes
USE_PYDISTUTILS=yes
MAN1=   ${PORTNAME}.1
PYDISTUTILS_PKGVERSION= ${DISTVERSION}

post-extract:
    @${MV} ${WRKSRC}/docs/${PORTNAME}.1 ${WRKSRC}/

post-install:
    @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
.ifndef NOPORTDOCS
    @${INSTALL} -d ${DOCSDIR}/
    @cd ${WRKSRC}/docs/&&${COPYTREE_SHARE} . ${DOCSDIR}/
.endif
.ifndef NOPORTEXAMPLES
    @${INSTALL} -d ${EXAMPLESDIR}/
    @cd ${WRKSRC}/examples/&&${COPYTREE_SHARE} . ${EXAMPLESDIR}/
.endif
.ifndef NOPORTDATA
    @${INSTALL} -d ${DATADIR}/
    @${INSTALL_DATA} ${WRKSRC}/master ${DATADIR}/
.endif

.include <bsd.port.mk>