summaryrefslogtreecommitdiff
path: root/deskutils/hs-arbtt/Makefile
blob: 6750f3427358284360f9da81ebc1d8d9d33d3ba0 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
PORTNAME=		arbtt
PORTVERSION=		0.10.2
PORTREVISION=		2
CATEGORIES=		deskutils haskell

MAINTAINER=		mail@dbalan.in
COMMENT=		Completely automatic time tracker for X11 desktop

LICENSE=		GPLv2
LICENSE_FILE=		${WRKSRC}/LICENSE

LIB_DEPENDS=		libpcre.so:devel/pcre

USES=			xorg cabal
USE_XORG=		x11 xscrnsaver xext xrandr xinerama
USE_CABAL=		X11-1.9.1 \
			aeson-1.4.7.1_1 \
			attoparsec-0.13.2.4 \
			base-compat-0.11.1 \
			base-compat-batteries-0.11.1 \
			base-orphans-0.8.2 \
			bytestring-progress-1.4 \
			conduit-1.3.2 \
			data-default-0.7.1.1 \
			data-default-class-0.1.2.0 \
			data-default-instances-containers-0.0.1 \
			data-default-instances-dlist-0.0.1 \
			data-default-instances-old-locale-0.0.1 \
			dlist-0.8.0.8 \
			hashable-1.3.0.0_1 \
			hsc2hs-0.68.7 \
			integer-logarithms-1.0.3_2 \
			mono-traversable-1.0.15.1 \
			old-locale-1.0.0.7_2 \
			pcre-light-0.4.1.0 \
			primitive-0.7.1.0 \
			random-1.2.0 \
			resourcet-1.2.4.2 \
			scientific-0.3.6.2 \
			split-0.2.3.4 \
			splitmix-0.1 \
			strict-0.3.2 \
			tagged-0.8.6_2 \
			terminal-progress-bar-0.4.1 \
			terminal-size-0.3.2.1 \
			th-abstraction-0.3.2.0 \
			time-compat-1.9.3 \
			unliftio-core-0.2.0.1_1 \
			unordered-containers-0.2.12.0 \
			utf8-string-1.0.1.1_3 \
			uuid-types-1.0.3_3 \
			vector-0.12.1.2 \
			vector-algorithms-0.8.0.3

EXECUTABLES=		arbtt-capture arbtt-stats arbtt-recover arbtt-import arbtt-dump

SUB_FILES=		pkg-message
SUB_LIST=		EXAMPLESDIR=${EXAMPLESDIR}

OPTIONS_DEFINE=		MANPAGES
OPTIONS_SUB=		yes

OPTIONS_DEFAULT=	MANPAGES

MANPAGES_BUILD_DEPENDS=	${LOCALBASE}/share/xsl/docbook/manpages/profile-docbook.xsl:textproc/docbook-xsl \
				xsltproc:textproc/libxslt

post-patch-MANPAGES-on:
	@${REINPLACE_CMD} -e "s|/usr/share/xml/docbook/stylesheet/nwalsh/manpages/profile-docbook.xsl|${LOCALBASE}/share/xsl/docbook/manpages/profile-docbook.xsl|g" \
		${WRKSRC}/doc/Makefile

post-install:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_MAN} ${WRKSRC}/categorize.cfg ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_MAN} ${WRKSRC}/arbtt-capture.desktop ${STAGEDIR}${EXAMPLESDIR}

post-install-MANPAGES-on:
	cd ${WRKSRC}/doc && ${MAKE} man
.for l in arbtt-stats arbtt-recover arbtt-import arbtt-dump arbtt-capture
	${INSTALL_MAN} ${WRKSRC}/doc/man/man1/${l}.1 ${STAGEDIR}${PREFIX}/man/man1/
.endfor

.include <bsd.port.mk>