aboutsummaryrefslogtreecommitdiff
path: root/finance/mybudget/Makefile
blob: 815565986332996ea6b47d7ddba641900afa45ba (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
52
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$

PORTNAME=	myBudget
PORTVERSION=	0.60
PORTREVISION=	10
CATEGORIES=	finance gnome
MASTER_SITES=	http://www.abisource.com/~msevior/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Gtk+-2 finance manager

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/LICENSE

NO_ARCH=	yes
NO_BUILD=	yes
USE_GNOME=	pygnome2
INSTALL_ICONS=	yes

USES=		python:2.7 shebangfix
SHEBANG_FILES=	myBudget.py

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e \
		"/^sPREFIX/s|=.*| = '${PREFIX}/share'|" ${WRKSRC}/myBudget.py

do-install:
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} myBudget.py \
		${STAGEDIR}${PREFIX}/bin/myBudget)
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} *.myb *.png *.txt \
		${STAGEDIR}${DATADIR})
	@${MKDIR} ${STAGEDIR}${DATADIR}/glade
	(cd ${WRKSRC}/glade && ${INSTALL_DATA} *.* \
		${STAGEDIR}${DATADIR}/glade)
	@${MKDIR} ${STAGEDIR}${DATADIR}/po
	(cd ${WRKSRC}/po && ${INSTALL_DATA} *.po \
		${STAGEDIR}${DATADIR}/po)
	(cd ${WRKSRC} && ${INSTALL_DATA} *.desktop \
		${STAGEDIR}${PREFIX}/share/applications)
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
	(cd ${WRKSRC} && ${INSTALL_DATA} *.svg \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps)

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>