openbsd-ports/devel/intellij/Makefile
jasper 7dc6106b1c * Add missing RUN_DEPENDS
* make ownership and permissions a bit more explicit.

from daniel dickman (MAINTAINER)
2010-05-02 16:56:19 +00:00

63 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2010/05/02 16:56:19 jasper Exp $
SHARED_ONLY= Yes
COMMENT= IntelliJ Java IDE
V= 9.0.2
DISTNAME= ideaIC-${V}
PKGNAME= intellij-${V}p0
CATEGORIES= java devel
HOMEPAGE= http://www.jetbrains.com/idea/
MAINTAINER= Daniel Dickman <didickman@gmail.com>
# Apache v2.0
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://download.jetbrains.com/idea/
MODULES= java
MODJAVA_VER= 1.6
BUILD_DEPENDS= ${MODJAVA_RUN_DEPENDS}
RUN_DEPENDS= ::devel/desktop-file-utils
NO_REGRESS= Yes
SUBST_VARS+= JAVA_HOME
WRKDIST= ${WRKDIR}/idea-IC-95.66
IJ= ${PREFIX}/intellij
# If NO_BUILD is set, JAVA_HOME doesn't get defined. So do
# a no-op for do-build.
do-build:
@true
do-install:
${INSTALL_DATA_DIR} ${IJ}
@tar -czf - -C ${WRKDIST} . | tar xzf - -C ${IJ}
@${SUBST_CMD} -c ${FILESDIR}/idea \
${PREFIX}/bin/idea
@chmod ${BINMODE} ${PREFIX}/bin/idea
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/idea
@ln -s ${TRUEPREFIX}/bin/idea ${PREFIX}/bin/intellij
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${IJ}
${INSTALL_MAN} ${FILESDIR}/idea.1 ${PREFIX}/man/man1
@${INSTALL_DATA_DIR} ${PREFIX}/share/applications
cd ${WRKDIST}/lib && ${JAVA_HOME}/bin/jar xf icons.jar
${INSTALL_DATA} ${WRKDIST}/lib/icon.png ${IJ}/idea.png
@${SUBST_CMD} -c ${FILESDIR}/intellij.desktop \
${PREFIX}/share/applications/intellij.desktop
@chmod ${SHAREMODE} \
${PREFIX}/share/applications/intellij.desktop
@chown ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/share/applications/intellij.desktop
.include <bsd.port.mk>