aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2014-11-27 07:46:37 +0800
committerrobak <robak@FreeBSD.org>2014-11-27 07:46:37 +0800
commit281299d90e47657118cddaad11ccac07d84872a2 (patch)
tree9899bcc1896059d98866f64fa114389d9e2ad9ea /editors
parent36caf0d4ab93e20fd6712affcf532d8af5f8d73f (diff)
downloadfreebsd-ports-gnome-281299d90e47657118cddaad11ccac07d84872a2.tar.gz
freebsd-ports-gnome-281299d90e47657118cddaad11ccac07d84872a2.tar.zst
freebsd-ports-gnome-281299d90e47657118cddaad11ccac07d84872a2.zip
editors/sublime3: various fixes
- Fix desktop file and icons - Add gtk2 dependency - Fix pkg-plist (remove unneeded files and and /Icons needed for the Title/taskbar) - Remove "STRIP" in the Makefile - Remove "@" where except for MKDIR in the Makefile PR: 194669 Submitted by: Miguel Clara <miguelmclara@gmail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/sublime3/Makefile45
-rw-r--r--editors/sublime3/files/sublime.in2
-rw-r--r--editors/sublime3/pkg-plist6
3 files changed, 29 insertions, 24 deletions
diff --git a/editors/sublime3/Makefile b/editors/sublime3/Makefile
index 8700ee39c313..5f1c6b130ea1 100644
--- a/editors/sublime3/Makefile
+++ b/editors/sublime3/Makefile
@@ -3,6 +3,7 @@
PORTNAME= sublime
PORTVERSION= 3.0.65
+PORTREVISION= 1
CATEGORIES= editors linux
MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/
PKGNAMEPREFIX= linux-
@@ -11,41 +12,39 @@ DISTNAME= sublime_text_3_build_3065_x32
MAINTAINER= miguelmclara@gmail.com
COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose
-USES= tar:bzip2
-INSTALLS_ICONS= yes
-WRKSRC= ${WRKDIR}/sublime_text_3
+USES= tar:bzip2 desktop-file-utils
+INSTALLS_ICONS= yes
+WRKSRC= ${WRKDIR}/sublime_text_3
CONFLICTS= linux-sublime-[0-24-9]*
NO_BUILD=
-STRIP= # don't strip linux binaries.
SUB_FILES= sublime
USE_LINUX= yes
-USE_LINUX_APPS= xorglibs
+USE_LINUX_APPS= xorglibs gtk2
post-patch:
${BRANDELF} -t Linux ${WRKSRC}/sublime_text
${BRANDELF} -t Linux ${WRKSRC}/plugin_host
- ${RM} -rf ${WRKSRC}/lib
do-install:
- @${MKDIR} ${STAGEDIR}${DATADIR}
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
- @${MKDIR} ${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/
- @${RM} -rf ${WRKSRC}/Icon/
- @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
- @${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text
- @${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host
- @${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
+ @${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}
+ ${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text
+ ${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host
+ ${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
.include <bsd.port.mk>
diff --git a/editors/sublime3/files/sublime.in b/editors/sublime3/files/sublime.in
index fa3f9b266de2..4687cded1cf1 100644
--- a/editors/sublime3/files/sublime.in
+++ b/editors/sublime3/files/sublime.in
@@ -1,2 +1,2 @@
#!/compat/linux/bin/sh
-%%DATADIR%%/sublime_text
+%%DATADIR%%/sublime_text $*
diff --git a/editors/sublime3/pkg-plist b/editors/sublime3/pkg-plist
index b4dfebd8b4a0..ab75997cb0db 100644
--- a/editors/sublime3/pkg-plist
+++ b/editors/sublime3/pkg-plist
@@ -1,9 +1,15 @@
bin/sublime
+share/applications/sublime_text.desktop
share/icons/hicolor/128x128/apps/sublime-text.png
share/icons/hicolor/16x16/apps/sublime-text.png
share/icons/hicolor/256x256/apps/sublime-text.png
share/icons/hicolor/32x32/apps/sublime-text.png
share/icons/hicolor/48x48/apps/sublime-text.png
+%%DATADIR%%/Icon/128x128/sublime-text.png
+%%DATADIR%%/Icon/16x16/sublime-text.png
+%%DATADIR%%/Icon/256x256/sublime-text.png
+%%DATADIR%%/Icon/32x32/sublime-text.png
+%%DATADIR%%/Icon/48x48/sublime-text.png
%%DATADIR%%/Packages/ASP.sublime-package
%%DATADIR%%/Packages/ActionScript.sublime-package
%%DATADIR%%/Packages/AppleScript.sublime-package