pkgsrc/devel/rubymine-bin/Makefile

55 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2019/05/10 12:48:39 mef Exp $
VERSION= 2018.3.5
DISTNAME= RubyMine-${VERSION}
PKGNAME= rubymine-bin-${VERSION}
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://download.jetbrains.com/ruby/
MAINTAINER= youri@NetBSD.org
HOMEPAGE= http://www.jetbrains.org/
COMMENT= JetBrain\'s ruby IDE
LICENSE= apache-2.0
USE_JAVA= yes
USE_JAVA2= 8
USE_TOOLS+= pax sed
REPLACE_PYTHON= bin/printenv.py \
bin/restart.py \
.include "../../mk/bsd.prefs.mk"
INSTALLATION_DIRS= rubymine-bin-${VERSION} \
share/applications
NO_BUILD= yes
SUBST_CLASSES+= jdk
SUBST_STAGE.jdk= pre-install
SUBST_MESSAGE.jdk= Adding JVM options
SUBST_FILES.jdk= bin/rubymine.sh
SUBST_VARS.jdk= PKG_JAVA_HOME
do-install:
cd ${WRKSRC} && \
${RM} -r bin/fsnotifier bin/fsnotifier-arm bin/rubymine.sh.orig\
bin/fsnotifier64 bin/libdbm64.so jre64 \
bin/libyjpagent-linux.so \
bin/libyjpagent-linux64.so \
lib/pty4j-native/linux/x86/libpty.so \
lib/pty4j-native/linux/x86_64/libpty.so \
plugins/performanceTesting/lib/libasyncProfiler-linux.so\
plugins/performanceTesting/lib/libasyncProfiler-macos.so && \
${ECHO} "idea.filewatcher.disabled=true" >> bin/idea.properties && \
${SED} -e "s|@@IDEA_HOME@@|${PREFIX}/${PKGNAME_NOREV}|g" \
${FILESDIR}/rubymine.desktop > \
${DESTDIR}${PREFIX}/share/applications/rubymine.desktop && \
pax -rw -pm * ${DESTDIR}${PREFIX}/${PKGNAME_NOREV}
.include "../../lang/python/application.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"