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

PORTNAME=   pantry
PORTVERSION=    0.${DISTVERSION}
DISTVERSION=    18
CATEGORIES= misc
MASTER_SITES=   http://www.smileystation.com/pantry/downloads/ CENKES

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}/
    @${MV} ${WRKSRC}/CHANGELOG ${WRKSRC}/docs/

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

.include <bsd.port.mk>