Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2014 19:17:03 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338817 - head/editors/jedit
Message-ID:  <201401051917.s05JH3Lh034128@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sun Jan  5 19:17:03 2014
New Revision: 338817
URL: http://svnweb.freebsd.org/changeset/ports/338817

Log:
  - Fix the man page installation. Install all files manually. The java installer seems not to respect the paths.

Modified:
  head/editors/jedit/Makefile

Modified: head/editors/jedit/Makefile
==============================================================================
--- head/editors/jedit/Makefile	Sun Jan  5 18:37:28 2014	(r338816)
+++ head/editors/jedit/Makefile	Sun Jan  5 19:17:03 2014	(r338817)
@@ -8,7 +8,6 @@ CATEGORIES=	editors java
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}${PORTVERSION}install
 EXTRACT_SUFX=	.jar
-EXTRACT_ONLY=
 
 MAINTAINER=	danilo@FreeBSD.org
 COMMENT=	Powerful programmer\'s text editor written in Java
@@ -37,12 +36,22 @@ SUB_FILES=	jedit.sh
 DESKTOP_ENTRIES="jEdit" "${COMMENT}" "${PORTNAME}" \
 	"${PORTNAME}" "Development;" false
 
+post-extract:
+	@(cd ${WRKDIR}/installer ; ${TAR} -xjf jedit-api.tar.bz2 ;\
+		${TAR} -xjf jedit-macros.tar.bz2 ; \
+		${TAR} -xjf jedit-program.tar.bz2)
+
 do-install:
-	@${PRINTF} "${STAGEDIR}${DATADIR}\n${WRKDIR}\n${STAGEDIR}${PREFIX}/man/man1\nY\nY\nY" | \
-		${SETENV} CLASSPATH=${DISTDIR}/${DISTNAME}.jar \
-		${JAVA} installer.Install text
-	@${INSTALL_SCRIPT} ${WRKDIR}/jedit.sh ${STAGEDIR}${PREFIX}/bin/jedit
-	@${INSTALL_DATA} ${STAGEDIR}${DATADIR}/doc/jedit.png \
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKDIR}/installer/${PORTNAME}.jar ${STAGEDIR}${DATADIR}/
+.for dir in doc jars keymaps modes properties startup
+	(cd ${WRKDIR}/installer ; ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}/)
+.endfor
+	(cd ${WRKDIR}/installer ; ${TAR} --exclude 'modes' --exclude 'keymaps' \
+		-chf - macros | ${TAR}  -xf - -C ${STAGEDIR}${DATADIR}/)
+	${INSTALL_SCRIPT} ${WRKDIR}/jedit.sh ${STAGEDIR}${PREFIX}/bin/jedit
+	${INSTALL_DATA} ${STAGEDIR}${DATADIR}/doc/jedit.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+	${INSTALL_MAN} ${WRKDIR}/jedit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401051917.s05JH3Lh034128>