blob: 0ffb6a02f03f99a789d705e7ad88dc369bfcaaff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Boris Samorodov <bsam@FreeBSD.org>
# $FreeBSD$
PORTNAME= pycharm
PORTVERSION= 2017.1
CATEGORIES= java devel python
MASTER_SITES= https://download.jetbrains.com/python/ \
http://download.jetbrains.com/python/
DISTNAME= ${PORTNAME}-community-${PORTVERSION}
PKGNAMEPREFIX= intellij-
MAINTAINER= bsam@FreeBSD.org
COMMENT= IntelliJ PyCharm Community Edition
LICENSE= APACHE20
RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \
intellij-pty4j>0:java/intellij-pty4j
USE_JAVA= yes
JAVA_VERSION= 1.7+
NO_ARCH= yes
NO_BUILD= yes
.include "${.CURDIR}/../intellij/common.mk"
SUB_FILES+= pkg-message pycharm pycharm-ce.desktop
SUB_LIST+= IDEA_HOME=${IDEA_HOME}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
@${TAR} -czf - -C ${WRKSRC} . | ${TAR} xzf - -C ${STAGEDIR}${DATADIR}
# Linux/Windows/OS X only so remove them
@${RM} ${STAGEDIR}${DATADIR}/bin/fsnotifier \
${STAGEDIR}${DATADIR}/bin/fsnotifier-arm \
${STAGEDIR}${DATADIR}/bin/fsnotifier64 \
${STAGEDIR}${DATADIR}/bin/libbreakgen.so \
${STAGEDIR}${DATADIR}/bin/libbreakgen64.so \
# Remove the bundled native Pty4J support libraries, they are replaced
# by java/intellij-pty4j
@${RM} -r ${STAGEDIR}${DATADIR}/lib/libpty
# Remove bundled linux-only JRE
@${RM} -r ${STAGEDIR}${DATADIR}/jre
@${RM} -r ${STAGEDIR}${DATADIR}/helpers/pydev/pydevd_attach_to_process
@${RM} ${STAGEDIR}${DATADIR}/lib/pty4j-0.5.jar
${INSTALL_SCRIPT} ${WRKDIR}/pycharm ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKDIR}/pycharm-ce.desktop ${STAGEDIR}${PREFIX}/share/applications/
#cd ${WRKSRC}/lib && ${JAVA_HOME}/bin/jar xf icons.jar
# TODO: Remove and enable fsnotifier when devel/libinotify is fixed
# Disable filewatcher warning message on IDEA startup
${ECHO} "idea.filewatcher.disabled=true" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
# Use fsnotifier replacement provided by java/intellij-fsnotifier
# ${ECHO} "idea.filewatcher.executable.path=${IDEA_HOME}/bin/fsnotifier" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
.include <bsd.port.mk>
|