aboutsummaryrefslogtreecommitdiff
path: root/deskutils/superkaramba-lwp/Makefile
blob: d6387d8dc347f0be135dab84841a6ac9df4d7afa (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
53
# New ports collection makefile for:	superkaramba-lwp
# Date created:				Sun, May 28, 2006
# Whom:					Jason E. Hale <bsdkaffee@gmail.com>
#
# $FreeBSD$

PORTNAME=		lwp
PORTVERSION=		15.0
PORTREVISION=	3
CATEGORIES=		deskutils kde
MASTER_SITES=		http://www.message.co.nz/~matt-sarah/ \
			http://liquidweather.net/
PKGNAMEPREFIX=		superkaramba-
EXTRACT_SUFX=		.skz

MAINTAINER=		bsdkaffee@gmail.com
COMMENT=		Liquid Weather ++ a Superkaramba weather applet

EXTRACT_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
BUILD_DEPENDS=		zip:${PORTSDIR}/archivers/zip
RUN_DEPENDS=		convert:${PORTSDIR}/graphics/ImageMagick \
			superkaramba:${PORTSDIR}/misc/kdeutils3 \
			${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab \
			pyuic:${PORTSDIR}/x11-toolkits/py-qt

USE_PYTHON=		yes

WRKSRC=			${WRKDIR}/${DISTNAME}

EXTRACT_CMD=		${UNZIP_CMD}
EXTRACT_BEFORE_ARGS=	-q -d ${DISTNAME}
EXTRACT_AFTER_ARGS=	# empty

NO_BUILD=		yes

PLIST_SUB=		LWPVER=${DISTFILES}

.include <bsd.port.pre.mk>

post-extract:
	@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' \
		test_gui.py
	@cd ${WRKSRC} && ${RM} *~ splash/digikam3.db

pre-install:
	@cd ${WRKSRC} && zip -qr ${DISTFILES} *

do-install:
	@${MKDIR} ${PREFIX}/share/apps/superkaramba/themes
	@cd ${WRKSRC} && ${INSTALL_DATA} ${DISTFILES} \
		${PREFIX}/share/apps/superkaramba/themes

.include <bsd.port.post.mk>