diff options
author | makc <makc@FreeBSD.org> | 2014-05-01 22:28:55 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2014-05-01 22:28:55 +0800 |
commit | 3584bf366b4b3c91d4f799c43b0abccc2628b3d5 (patch) | |
tree | 01461e7a7e0cbd151e62354e08b9acbdb8321122 | |
parent | 8cc8d9f65c451c5e4c3abf8fa5a2ea4014865ef7 (diff) | |
download | freebsd-ports-gnome-3584bf366b4b3c91d4f799c43b0abccc2628b3d5.tar.gz freebsd-ports-gnome-3584bf366b4b3c91d4f799c43b0abccc2628b3d5.tar.zst freebsd-ports-gnome-3584bf366b4b3c91d4f799c43b0abccc2628b3d5.zip |
math/jlatexmath:
- Update to 1.0.3
- Reduce build dependencies (follow README instructions)
- Fix packaging without FOP option
- Take maintainership
-rw-r--r-- | math/jlatexmath/Makefile | 18 | ||||
-rw-r--r-- | math/jlatexmath/distinfo | 4 | ||||
-rw-r--r-- | math/jlatexmath/pkg-plist | 21 |
3 files changed, 31 insertions, 12 deletions
diff --git a/math/jlatexmath/Makefile b/math/jlatexmath/Makefile index aaedc55d96fd..e510f365bfca 100644 --- a/math/jlatexmath/Makefile +++ b/math/jlatexmath/Makefile @@ -2,12 +2,12 @@ # $FreeBSD$ PORTNAME= jlatexmath -PORTVERSION= 0.9.7 +PORTVERSION= 1.0.3 CATEGORIES= math java MASTER_SITES= http://forge.scilab.org/upload/jlatexmath/files/ DISTNAME= ${PORTNAME}-src-all-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= makc@FreeBSD.org COMMENT= Java API to display mathematical formulas written in LaTeX LICENSE= GPLv2 @@ -26,23 +26,31 @@ OPTIONS_SUB= yes FOP_DESC= textproc/fop plugin (required for math/scilab) FOP_BUILD_DEPENDS= fop:${PORTSDIR}/textproc/fop \ - ${JAVALIBDIR}/xmlgraphics-commons.jar:${PORTSDIR}/graphics/xmlgraphics-commons \ + ${JAVALIBDIR}/xmlgraphics-commons.jar:${PORTSDIR}/graphics/xmlgraphics-commons +FOP_RUN_DEPENDS:= ${FOP_BUILD_DEPENDS} ${JAVASHAREDIR}/batik/batik.jar:${PORTSDIR}/graphics/batik \ ${JAVALIBDIR}/avalon-framework.jar:${PORTSDIR}/devel/avalon-framework \ ${JAVALIBDIR}/commons-io.jar:${PORTSDIR}/devel/jakarta-commons-io \ ${JAVALIBDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \ ${JAVALIBDIR}/xml-apis-ext.jar:${PORTSDIR}/textproc/xml-commons -FOP_RUN_DEPENDS:= ${FOP_BUILD_DEPENDS} FOP_ALL_TARGET= fop +.include <bsd.port.options.mk> + post-patch: ${REINPLACE_CMD} -e 's|/usr/share/java/fop.jar|${LOCALBASE}/share/java/fop/build/fop.jar|' ${WRKSRC}/fop.properties ${REINPLACE_CMD} -e 's|/usr/share/java/batik.jar|${LOCALBASE}/share/java/batik/batik.jar|' ${WRKSRC}/fop.properties ${REINPLACE_CMD} -e 's|/usr/share/java/|${JAVALIBDIR}/|' ${WRKSRC}/fop.properties +pre-install: +# Remove empty directory + -${RMDIR} ${WRKSRC}/examples/Macros/bin + do-install: - ${INSTALL_DATA} ${WRKSRC}/dist/jlatexmath-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/jlatexmath.jar +.if ${PORT_OPTIONS:MFOP} ${INSTALL_DATA} ${WRKSRC}/dist/jlatexmath-fop-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/jlatexmath-fop.jar +.endif + ${INSTALL_DATA} ${WRKSRC}/dist/jlatexmath-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/jlatexmath.jar (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}) .include <bsd.port.mk> diff --git a/math/jlatexmath/distinfo b/math/jlatexmath/distinfo index 170521076b84..57a3fe0c3f07 100644 --- a/math/jlatexmath/distinfo +++ b/math/jlatexmath/distinfo @@ -1,2 +1,2 @@ -SHA256 (jlatexmath-src-all-0.9.7.zip) = f27772c54e438034ea5cd70fc53b5cef8775578b50b41597bf23e2960c98d4f6 -SIZE (jlatexmath-src-all-0.9.7.zip) = 1177126 +SHA256 (jlatexmath-src-all-1.0.3.zip) = 58b14f0f30250b7cd3d1e5cfae20a8d5f999c01e9ff5e03508cbdb8f922dd7fd +SIZE (jlatexmath-src-all-1.0.3.zip) = 1203123 diff --git a/math/jlatexmath/pkg-plist b/math/jlatexmath/pkg-plist index 759d60eb2423..cf128631543d 100644 --- a/math/jlatexmath/pkg-plist +++ b/math/jlatexmath/pkg-plist @@ -4,6 +4,8 @@ %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/Example4.java %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/Example5.java %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/Example6.java +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/Example7.java +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/ExampleSwing2.java %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/Main.java %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Basic/lion.png %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Export/Convert.java @@ -16,15 +18,24 @@ %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Export/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Export/build.xml %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Export/lion.png +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/GIWS/LaTeXGenerator.giws.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/GIWS/README +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/GIWS/build.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/GIWS/src/org/scilab/forge/example/giws/LaTeXGenerator.java %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Macros/FooPackage.java %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Macros/Main.java %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Macros/Package_Foo.xml %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Macros/README +%%FOP%%%%JAVAJARDIR%%/jlatexmath-fop.jar %%JAVAJARDIR%%/jlatexmath.jar -%%FOP%%share/java/classes/jlatexmath-fop.jar -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/Macros/bin -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/Macros -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/Export %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/Basic +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/Export +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/GIWS/src/org/scilab/forge/example/giws +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/GIWS/src/org/scilab/forge/example +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/GIWS/src/org/scilab/forge +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/GIWS/src/org/scilab +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/GIWS/src/org +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/GIWS/src +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/GIWS +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/Macros %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -%%PORTEXAMPLES%%@exec mkdir -p %D/%%EXAMPLESDIR%%/Macros/bin |