aboutsummaryrefslogtreecommitdiff
path: root/deskutils/gnome-shell-extension-calculator/Makefile
blob: ce32233ba80a160c5ff252a79489a254be89bf2a (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
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $FreeBSD$

PORTNAME=	gnome-shell-extension-calculator
PORTVERSION=	0.0.0.20140520
PORTEVISION=	2
CATEGORIES=	deskutils gnome
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Simple calculator in the gnome-shell search overview

BUILD_DEPENDS=	gnome-shell>=0:${PORTSDIR}/x11/gnome-shell
RUN_DEPENDS=	gnome-shell>=0:${PORTSDIR}/x11/gnome-shell

USES=		gettext gmake pkgconfig tar:xz
USE_GITHUB=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

GH_ACCOUNT=	eonpatapon
GH_TAGNAME=	e4f4ac5
GH_PROJECT=	gnome-shell-extension-calc

PKGMESSAGE=	../gnome-shell-extra-extensions/pkg-message.slaves

NO_BUILD=	yes

post-patch:
		@${REINPLACE_CMD} -e 's|3.12"|3.12","3.14","3.16"|g' \
			${WRKSRC}/calc\@patapon.info/metadata.json

do-install:
		@${MKDIR} ${STAGEDIR}${PREFIX}/share/gnome-shell/extensions/
		@(cd ${WRKSRC} && ${CP} -pPR calc\@patapon.info ${STAGEDIR}${PREFIX}/share/gnome-shell/extensions/)

.include <bsd.port.mk>