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:
parent
582155b400
commit
83dd77ee41
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373471
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
PORTNAME= sublime
|
PORTNAME= sublime
|
||||||
PORTVERSION= 3.0.65
|
PORTVERSION= 3.0.65
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= editors linux
|
CATEGORIES= editors linux
|
||||||
MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/
|
MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/
|
||||||
PKGNAMEPREFIX= linux-
|
PKGNAMEPREFIX= linux-
|
||||||
@ -11,41 +12,39 @@ DISTNAME= sublime_text_3_build_3065_x32
|
|||||||
MAINTAINER= miguelmclara@gmail.com
|
MAINTAINER= miguelmclara@gmail.com
|
||||||
COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose
|
COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose
|
||||||
|
|
||||||
USES= tar:bzip2
|
USES= tar:bzip2 desktop-file-utils
|
||||||
INSTALLS_ICONS= yes
|
INSTALLS_ICONS= yes
|
||||||
WRKSRC= ${WRKDIR}/sublime_text_3
|
WRKSRC= ${WRKDIR}/sublime_text_3
|
||||||
|
|
||||||
CONFLICTS= linux-sublime-[0-24-9]*
|
CONFLICTS= linux-sublime-[0-24-9]*
|
||||||
|
|
||||||
NO_BUILD=
|
NO_BUILD=
|
||||||
STRIP= # don't strip linux binaries.
|
|
||||||
SUB_FILES= sublime
|
SUB_FILES= sublime
|
||||||
|
|
||||||
USE_LINUX= yes
|
USE_LINUX= yes
|
||||||
USE_LINUX_APPS= xorglibs
|
USE_LINUX_APPS= xorglibs gtk2
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${BRANDELF} -t Linux ${WRKSRC}/sublime_text
|
${BRANDELF} -t Linux ${WRKSRC}/sublime_text
|
||||||
${BRANDELF} -t Linux ${WRKSRC}/plugin_host
|
${BRANDELF} -t Linux ${WRKSRC}/plugin_host
|
||||||
${RM} -rf ${WRKSRC}/lib
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
@${MKDIR} ${STAGEDIR}${DATADIR} \
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ \
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ \
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ \
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ \
|
||||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/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/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/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/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/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}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
|
||||||
@${RM} -rf ${WRKSRC}/Icon/
|
${INSTALL_DATA} ${WRKSRC}/sublime_text.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
||||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
||||||
@${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text
|
${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text
|
||||||
@${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host
|
${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host
|
||||||
@${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
|
${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#!/compat/linux/bin/sh
|
#!/compat/linux/bin/sh
|
||||||
%%DATADIR%%/sublime_text
|
%%DATADIR%%/sublime_text $*
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
bin/sublime
|
bin/sublime
|
||||||
|
share/applications/sublime_text.desktop
|
||||||
share/icons/hicolor/128x128/apps/sublime-text.png
|
share/icons/hicolor/128x128/apps/sublime-text.png
|
||||||
share/icons/hicolor/16x16/apps/sublime-text.png
|
share/icons/hicolor/16x16/apps/sublime-text.png
|
||||||
share/icons/hicolor/256x256/apps/sublime-text.png
|
share/icons/hicolor/256x256/apps/sublime-text.png
|
||||||
share/icons/hicolor/32x32/apps/sublime-text.png
|
share/icons/hicolor/32x32/apps/sublime-text.png
|
||||||
share/icons/hicolor/48x48/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/ASP.sublime-package
|
||||||
%%DATADIR%%/Packages/ActionScript.sublime-package
|
%%DATADIR%%/Packages/ActionScript.sublime-package
|
||||||
%%DATADIR%%/Packages/AppleScript.sublime-package
|
%%DATADIR%%/Packages/AppleScript.sublime-package
|
||||||
|
Loading…
Reference in New Issue
Block a user