summaryrefslogtreecommitdiff
path: root/finance/moneyguru/Makefile
blob: 024dd0ddc3c834cfca4c6776f355cfc0238e3f3b (plain)
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
53
54
# $NetBSD: Makefile,v 1.4 2014/01/25 11:11:20 wiz Exp $
#
# any of ~* is fine, they are the same and just there for Ubuntu
# so moneyguru's built for all releases
DISTNAME=	2.7.1
PKGNAME=	moneyguru-${DISTNAME}
CATEGORIES=	finance
MASTER_SITES=	https://github.com/hsoft/moneyguru/archive/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.hardcoded.net/moneyguru/
COMMENT=	Personal finance management application
LICENSE=	modified-bsd

DEPENDS+=	${PYPKGPREFIX}-polib-[0-9]*:../../devel/py-polib
DEPENDS+=	${PYPKGPREFIX}-qt4-[0-9]*:../../x11/py-qt4
DEPENDS+=	${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
DEPENDS+=	${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree

DIST_SUBDIR=	moneyguru
EXTRACT_USING=	bsdtar

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES=	c
USE_TOOLS=	pax

PYTHON_VERSIONS_INCOMPATIBLE=	26 27 # 3.x only
PY_PATCHPLIST=		yes
REPLACE_PYTHON+=	cocoa/waf
REPLACE_PYTHON+=	cocoa/wscript
REPLACE_PYTHON+=	psmtabbarcontrol/waf
REPLACE_PYTHON+=	psmtabbarcontrol/wscript
REPLACE_PYTHON+=	run_template_cocoa.py
REPLACE_PYTHON+=	run_template_qt.py

INSTALLATION_DIRS=	bin share/applications share/moneyguru

do-configure:
	cd ${WRKSRC} && ${PYTHONBIN} configure.py

do-build:
	cd ${WRKSRC} && ${PYTHONBIN} build.py
	${CHMOD} +x ${WRKSRC}/run.py

do-install:
	cd ${WRKSRC} && pax -pe -rw ambuttonbar build cocoa cocoalib core data help hscommon images locale plugin_examples psmtabbarcontrol qt qtlib run.py ${DESTDIR}${PREFIX}/share/moneyguru
	${INSTALL_DATA} ${WRKSRC}/debian/moneyguru.desktop ${DESTDIR}${PREFIX}/share/applications
	${LN} -s ${DESTDIR}${PREFIX}/share/moneyguru/run.py ${DESTDIR}${PREFIX}/bin/moneyguru

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"