View | Details | Raw Unified | Return to bug 194669 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-22 / +20 lines)
Lines 11-51 Link Here
11
MAINTAINER=	miguelmclara@gmail.com
11
MAINTAINER=	miguelmclara@gmail.com
12
COMMENT=	Sublime Text is a sophisticated text editor for code, markup and prose
12
COMMENT=	Sublime Text is a sophisticated text editor for code, markup and prose
13
13
14
USES=	tar:bzip2
14
USES=		tar:bzip2 desktop-file-utils
15
INSTALLS_ICONS=	yes
15
INSTALLS_ICONS= yes
16
WRKSRC=	${WRKDIR}/sublime_text_3
16
WRKSRC=		${WRKDIR}/sublime_text_3
17
17
18
CONFLICTS=	linux-sublime-[0-24-9]*
18
CONFLICTS=	linux-sublime-[0-24-9]*
19
19
20
NO_BUILD=
20
NO_BUILD=
21
STRIP=	# don't strip linux binaries.
22
SUB_FILES=	sublime
21
SUB_FILES=	sublime
23
22
24
USE_LINUX=	yes
23
USE_LINUX=	yes
25
USE_LINUX_APPS=	xorglibs
24
USE_LINUX_APPS=	xorglibs gtk2
26
25
27
post-patch:
26
post-patch:
28
	${BRANDELF} -t Linux ${WRKSRC}/sublime_text
27
	${BRANDELF} -t Linux ${WRKSRC}/sublime_text
29
	${BRANDELF} -t Linux ${WRKSRC}/plugin_host
28
	${BRANDELF} -t Linux ${WRKSRC}/plugin_host
30
	${RM} -rf ${WRKSRC}/lib
31
29
32
do-install:
30
do-install:
33
	@${MKDIR} ${STAGEDIR}${DATADIR}
31
	@${MKDIR} ${STAGEDIR}${DATADIR} \
34
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
32
		${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ \
35
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
33
		${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ \
36
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
34
		${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ \
37
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
35
		${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ \
38
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
36
		${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
39
37
40
	@${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
38
	${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
41
	@${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
39
	${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
42
	@${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
40
	${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
43
	@${INSTALL_DATA} ${WRKSRC}/Icon/128x128/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
41
	${INSTALL_DATA} ${WRKSRC}/Icon/128x128/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
44
	@${INSTALL_DATA} ${WRKSRC}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
42
	${INSTALL_DATA} ${WRKSRC}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
45
	@${RM} -rf ${WRKSRC}/Icon/
43
	${INSTALL_DATA} ${WRKSRC}/sublime_text.desktop ${STAGEDIR}${PREFIX}/share/applications/
46
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
44
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
47
	@${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text
45
	${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text
48
	@${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host
46
	${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host
49
	@${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
47
	${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
50
48
51
.include <bsd.port.mk>
49
.include <bsd.port.mk>
(-)files/patch-sublime_text.desktop (+21 lines)
Line 0 Link Here
1
--- sublime_text.desktop.orig	2014-08-27
2
+++ sublime_text.desktop
3
@@ -5,5 +5,5 @@
4
 GenericName=Text Editor
5
 Comment=Sophisticated text editor for code, markup and prose
6
-Exec=/opt/sublime_text/sublime_text %F
7
+Exec=sublime %F
8
 Terminal=false
9
 MimeType=text/plain;
10
@@ -13,11 +13,2 @@
11
 Actions=Window;Document;
12
 
13
-[Desktop Action Window]
14
-Name=New Window
15
-Exec=/opt/sublime_text/sublime_text -n
16
-OnlyShowIn=Unity;
17
-
18
-[Desktop Action Document]
19
-Name=New File
20
-Exec=/opt/sublime_text/sublime_text --command new_file
21
-OnlyShowIn=Unity;
(-)files/sublime.in (-1 / +1 lines)
Lines 1-2 Link Here
1
#!/compat/linux/bin/sh
1
#!/compat/linux/bin/sh
2
%%DATADIR%%/sublime_text
2
%%DATADIR%%/sublime_text $*
(-)pkg-plist (+6 lines)
Lines 1-9 Link Here
1
bin/sublime
1
bin/sublime
2
share/applications/sublime_text.desktop
2
share/icons/hicolor/128x128/apps/sublime-text.png
3
share/icons/hicolor/128x128/apps/sublime-text.png
3
share/icons/hicolor/16x16/apps/sublime-text.png
4
share/icons/hicolor/16x16/apps/sublime-text.png
4
share/icons/hicolor/256x256/apps/sublime-text.png
5
share/icons/hicolor/256x256/apps/sublime-text.png
5
share/icons/hicolor/32x32/apps/sublime-text.png
6
share/icons/hicolor/32x32/apps/sublime-text.png
6
share/icons/hicolor/48x48/apps/sublime-text.png
7
share/icons/hicolor/48x48/apps/sublime-text.png
8
%%DATADIR%%/Icon/128x128/sublime-text.png
9
%%DATADIR%%/Icon/16x16/sublime-text.png
10
%%DATADIR%%/Icon/256x256/sublime-text.png
11
%%DATADIR%%/Icon/32x32/sublime-text.png
12
%%DATADIR%%/Icon/48x48/sublime-text.png
7
%%DATADIR%%/Packages/ASP.sublime-package
13
%%DATADIR%%/Packages/ASP.sublime-package
8
%%DATADIR%%/Packages/ActionScript.sublime-package
14
%%DATADIR%%/Packages/ActionScript.sublime-package
9
%%DATADIR%%/Packages/AppleScript.sublime-package
15
%%DATADIR%%/Packages/AppleScript.sublime-package

Return to bug 194669