diff options
Diffstat (limited to 'editors/sublime3/Makefile')
-rw-r--r-- | editors/sublime3/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/editors/sublime3/Makefile b/editors/sublime3/Makefile new file mode 100644 index 000000000000..8700ee39c313 --- /dev/null +++ b/editors/sublime3/Makefile @@ -0,0 +1,51 @@ +# Created by: Miguel Clara <miguelmclara@gmail.com> +# $FreeBSD$ + +PORTNAME= sublime +PORTVERSION= 3.0.65 +CATEGORIES= editors linux +MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/ +PKGNAMEPREFIX= linux- +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 + +CONFLICTS= linux-sublime-[0-24-9]* + +NO_BUILD= +STRIP= # don't strip linux binaries. +SUB_FILES= sublime + +USE_LINUX= yes +USE_LINUX_APPS= xorglibs + +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 + +.include <bsd.port.mk> |