summaryrefslogtreecommitdiff
path: root/finance/moneyguru/Makefile
blob: 22203c3a32c98b0ab7902ca817c718da5ee03070 (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
# $NetBSD: Makefile,v 1.1 2012/10/27 19:43:18 wiz Exp $
#

# any of ~* is fine, they are the same and just there for Ubuntu
# so moneyguru's built for all releases
DISTNAME=	moneyguru_2.6.1~quantal
PKGNAME=	${DISTNAME:S/_/-/:S/~quantal//}
CATEGORIES=	finance
MASTER_SITES=	https://launchpad.net/~hsoft/+archive/ppa/+files/

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

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

FETCH_USING=	curl

WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
USE_LANGUAGES=	c
USE_TOOLS=	pax

PYTHON_VERSIONS_INCLUDE_3X=	yes
PYTHON_VERSIONS_ACCEPTED=	32
PY_PATCHPLIST=			yes
REPLACE_PYTHON=			src/run.py

INSTALLATION_DIRS=	bin share/applications share/moneyguru

# remove pre-compiled file for wrong architecture
post-extract:
	${RM} ${WRKSRC}/src/core/model/_amount.cpython-32mu.so

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

do-install:
	cd ${WRKSRC}/src && pax -pe -rw * ${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"