summaryrefslogtreecommitdiffstats
path: root/editors/linux-sublime3/Makefile
blob: 1b8bb6bca453db53b011aa77fdf6f099b5d529b3 (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
# Created by: Miguel Clara <miguelmclara@gmail.com>
# $FreeBSD$

PORTNAME=	sublime
PORTVERSION=	3.1.26
CATEGORIES=	editors linux
MASTER_SITES=	http://download.sublimetext.com/
PKGNAMEPREFIX=	linux-
PKGNAMESUFFIX=	3
DISTNAME_i386=	sublime_text_3_build_3126_x32
DISTNAME_x86_64=sublime_text_3_build_3126_x64

MAINTAINER=	miguelmclara@gmail.com
COMMENT=	Sophisticated text editor for code, markup and prose

USES=		desktop-file-utils linux tar:bzip2
USE_LINUX=	xorglibs gtk2

INSTALLS_ICONS=	yes
WRKSRC=		${WRKDIR}/sublime_text_3

CONFLICTS_INSTALL=	linux-sublime-[0-9]*

NO_BUILD=
SUB_FILES=	sublime

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR} \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/

	${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
	${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
	${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
	${INSTALL_DATA} ${WRKSRC}/Icon/128x128/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
	${INSTALL_DATA} ${WRKSRC}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
	${INSTALL_DATA} ${WRKSRC}/sublime_text.desktop ${STAGEDIR}${PREFIX}/share/applications/
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime

.include <bsd.port.mk>
OpenPOWER on IntegriCloud