1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

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>
This commit is contained in:
Bartek Rutkowski 2014-11-26 23:46:37 +00:00
parent 582155b400
commit 83dd77ee41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373471
3 changed files with 28 additions and 23 deletions

View File

@ -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/
@${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/
@${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
${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>

View File

@ -1,2 +1,2 @@
#!/compat/linux/bin/sh
%%DATADIR%%/sublime_text
%%DATADIR%%/sublime_text $*

View File

@ -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