diff options
Diffstat (limited to 'editors/linux-sublime')
-rw-r--r-- | editors/linux-sublime/Makefile | 14 | ||||
-rw-r--r-- | editors/linux-sublime/files/sublime.in | 4 |
2 files changed, 6 insertions, 12 deletions
diff --git a/editors/linux-sublime/Makefile b/editors/linux-sublime/Makefile index a739f04..2430f7c 100644 --- a/editors/linux-sublime/Makefile +++ b/editors/linux-sublime/Makefile @@ -3,7 +3,7 @@ PORTNAME= sublime PORTVERSION= 2.0.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= editors linux MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/ DISTNAME= Sublime%20Text%202.0.2 @@ -12,22 +12,16 @@ PKGNAMEPREFIX= linux- MAINTAINER= johannes@perceivon.net COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose -USES= tar:bzip2 INSTALLS_ICONS= yes +USES= linux tar:bzip2 +USE_LINUX= xorglibs gtk2 WRKSRC= ${WRKDIR}/"Sublime Text 2" NO_BUILD= -STRIP= # don't strip linux binaries. SUB_FILES= sublime CONFLICTS_INSTALL= linux-sublime3-[0-9]* -USE_LINUX= c6 -USE_LINUX_APPS= xorglibs gtk2 - -post-patch: - ${BRANDELF} -t Linux ${WRKSRC}/sublime_text - do-install: @${MKDIR} ${STAGEDIR}${DATADIR} @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ @@ -44,6 +38,6 @@ do-install: @${RM} -rf ${WRKSRC}/Icon/ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} @${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text - @${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime + @${INSTALL_SCRIPT} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime .include <bsd.port.mk> diff --git a/editors/linux-sublime/files/sublime.in b/editors/linux-sublime/files/sublime.in index 4687cde..f81349b 100644 --- a/editors/linux-sublime/files/sublime.in +++ b/editors/linux-sublime/files/sublime.in @@ -1,2 +1,2 @@ -#!/compat/linux/bin/sh -%%DATADIR%%/sublime_text $* +#!/bin/sh +exec %%DATADIR%%/sublime_text "$@" |