freebsd-ports/editors/linux-sublime3/Makefile
Steve Wills 4298e83631 editors/linux-sublime3: update to build 3176
PR:		228445
Submitted by:	Pedro F. Giffuni <pfg@FreeBSD.org>
Approved by:	maintainer timeout (miguelmclara@gmail.com, > 2 weeks)
2018-06-09 21:38:38 +00:00

44 lines
1.7 KiB
Makefile

# Created by: Miguel Clara <miguelmclara@gmail.com>
# $FreeBSD$
PORTNAME= sublime
PORTVERSION= 3.1.76
CATEGORIES= editors linux
MASTER_SITES= http://download.sublimetext.com/
PKGNAMEPREFIX= linux-
PKGNAMESUFFIX= 3
DISTNAME_amd64= sublime_text_3_build_${PORTVERSION:S/.//g}_x64
DISTNAME_i386= sublime_text_3_build_${PORTVERSION:S/.//g}_x32
MAINTAINER= miguelmclara@gmail.com
COMMENT= Sophisticated text editor for code, markup and prose
USES= desktop-file-utils linux tar:bzip2
USE_LINUX= xorglibs gtk2
INSTALLS_ICONS= yes
WRKSRC= ${WRKDIR}/sublime_text_3
CONFLICTS_INSTALL= linux-sublime-[0-9]*
NO_BUILD= yes
SUB_FILES= sublime
do-install:
@${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}
${INSTALL_SCRIPT} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
.include <bsd.port.mk>