diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/freehep-graphicsio-emf |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/freehep-graphicsio-emf')
4 files changed, 111 insertions, 0 deletions
diff --git a/dev-java/freehep-graphicsio-emf/Manifest b/dev-java/freehep-graphicsio-emf/Manifest new file mode 100644 index 000000000000..3bff375bb504 --- /dev/null +++ b/dev-java/freehep-graphicsio-emf/Manifest @@ -0,0 +1,6 @@ +AUX github-30.patch 1643 SHA256 ba7ef928571b8cfa250fa39d92e6179a83b0d3d3e7afa76feee844b9b47e33ab SHA512 63a89ce9bfe23a0c0110e69d34fc76faf2f18c2f2361044fbe426c36f10f596279c958734398efcadc84890a2ecd08dbaf23bdc3c16aa2208fa8b9aab37b4e43 WHIRLPOOL e53c2e917ebb4c70db99cde23a77d1225764899e6272c52e6babde71780910c12250e350fe4f3086fc2da71b96a167c8325602838a738d6f2b7a3a5d9c48e116 +DIST freehep-vectorgraphics-2.4.tar.gz 4118379 SHA256 2c7e1bbb3c056e9de83e5f7d9e0b2aeb3f46734000cdd0f18423eb43216305dd SHA512 b5cf083cc6951e7c4b438d5e648f61ca20b23e02163a8cfc4669beaaec2fa9e33338b0ba6875bfe4a3864ac48f9774acfedc2a3b2f59a7488ef99a4817e39382 WHIRLPOOL 62d61e05935348cf8b5d81033408729b02377f8a91760d08ab98a8e1451ea4d44e992a98dfb951978272ca842dbfa0d2885430cd16428dcf4da005aa092fbe76 +EBUILD freehep-graphicsio-emf-2.4.ebuild 1615 SHA256 3fbe512af86a9cff485cc5eb2760872dca11a750c8d74d65958d54102d7be651 SHA512 dd0c9cd16357e1c244d1417f63c725a3fa5e3e120fa50c68e4106920a6c348a5c36217af3399c688fcce843e12c92582362d632f3ec644a9d5ea5b6c5d5aa915 WHIRLPOOL 08db07a72aa088954da3dcba3d58e46633100ed75044e5eb576533f2de91101f801ac47c23fb611fe6000307b0dc56a7089622cd4cc4ff78fb14dd05427cca80 +MISC ChangeLog 2832 SHA256 d9cad047f95af039a9d8300ad50245cb7f79681b83cd387c14f51dd25e639cf3 SHA512 efdd684debc5adb344d32b257f6ce0263d5fd523cf1f517f5c6d0ebdb86dffdf962acd42e81ff67f2b23914e5648e07428a2737489695df7638cfc1bafe10452 WHIRLPOOL ca2657c358b3aae90ea681e510b392473969ae9ad00117df2857d2d09c51cd8268ef461d782d64714e64072dbcd11cb74483ea0610b294155585635c0b0c7dd2 +MISC ChangeLog-2015 624 SHA256 935555372b5de87abe9a131a79cda265759e77770d613d8e5f74f657a76dff42 SHA512 d6f6f24f5b34f8b0dabf929297137fdf682d580c99837a9e22bea5bc24c314429ffd609e3804b1da9459fb4f862b0fad710454c33c4e243920751b0babc434b8 WHIRLPOOL 5662b687aa388903219ca750cf8eb29bbd9033371c6e6cf8946553d35660d80d135047561da45877e2c7d9bb255981214e6ab33b2593b6488c69725a2dbf6c02 +MISC metadata.xml 331 SHA256 46edbbd64cdb8b94bfee03ae75cc28e0fd886959865b0fb970f3b718f2d91d79 SHA512 f7bb0530f563d9ba4e8062f41b32340ac316e267adfffc964156bc4e87a469a7bde0a1af4553240c9dc167d405a3e892ebe501043ca5399e03377164eb71bfb5 WHIRLPOOL 78678288aae234c47de4b7b3038b3009a07e3a9ad7f3e2d112a9bf226a1d8f56ab048a895db2cb18596e404c74bd7ba9e9ade58757a10ed9f564217ada744872 diff --git a/dev-java/freehep-graphicsio-emf/files/github-30.patch b/dev-java/freehep-graphicsio-emf/files/github-30.patch new file mode 100644 index 000000000000..c652ec6b861b --- /dev/null +++ b/dev-java/freehep-graphicsio-emf/files/github-30.patch @@ -0,0 +1,34 @@ +https://github.com/freehep/freehep-vectorgraphics/issues/30 + +diff -Naur freehep-vectorgraphics-freehep-vectorgraphics-2.4.orig/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFConverter.java freehep-vectorgraphics-freehep-vectorgraphics-2.4/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFConverter.java +--- freehep-vectorgraphics-freehep-vectorgraphics-2.4.orig/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFConverter.java 2014-09-02 09:59:14.000000000 +0100 ++++ freehep-vectorgraphics-freehep-vectorgraphics-2.4/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMFConverter.java 2016-05-25 22:50:41.859734476 +0100 +@@ -4,6 +4,7 @@ + import org.freehep.graphicsbase.util.export.ExportFileType; + + import java.util.List; ++import java.util.Properties; + import java.io.FileInputStream; + import java.io.File; + +@@ -64,9 +65,10 @@ + destFileName += type.toLowerCase(); + } + ++ Properties p = new Properties(); ++ + // TODO there is no possibility to use Constants of base class! + /* create SVG properties +- Properties p = new Properties(); + p.put(SVGGraphics2D.EMBED_FONTS, Boolean.toString(false)); + p.put(SVGGraphics2D.CLIP, Boolean.toString(true)); + p.put(SVGGraphics2D.COMPRESS, Boolean.toString(false)); +@@ -82,7 +84,7 @@ + new File(destFileName), + emfPanel, + emfPanel, +- null, ++ p, + "Freehep EMF converter"); + } catch (Exception e) { + e.printStackTrace(); diff --git a/dev-java/freehep-graphicsio-emf/freehep-graphicsio-emf-2.4.ebuild b/dev-java/freehep-graphicsio-emf/freehep-graphicsio-emf-2.4.ebuild new file mode 100644 index 000000000000..597c3c26fadd --- /dev/null +++ b/dev-java/freehep-graphicsio-emf/freehep-graphicsio-emf-2.4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MY_PN="freehep-vectorgraphics" +MY_P="${MY_PN}-${PV}" +JAVA_PKG_IUSE="doc source" + +inherit eutils java-pkg-2 java-pkg-simple + +DESCRIPTION="High Energy Physics Java library - FreeHEP Enhanced Metafile Format Driver" +HOMEPAGE="http://java.freehep.org/" +SRC_URI="https://github.com/freehep/${MY_PN}/archive/${MY_P}.tar.gz" +LICENSE="Apache-2.0 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +CDEPEND="~dev-java/freehep-graphics2d-${PV}:${SLOT} + ~dev-java/freehep-graphicsbase-${PV}:${SLOT} + ~dev-java/freehep-graphicsio-${PV}:${SLOT} + dev-java/freehep-io:0" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.7 + test? ( + ~dev-java/freehep-graphicsio-tests-${PV}:${SLOT} + dev-java/junit:4 + )" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.7" + +S="${WORKDIR}/${MY_PN}-${MY_P}/${PN}" +JAVA_SRC_DIR="src/main/java" +JAVA_GENTOO_CLASSPATH="freehep-graphics2d,freehep-graphicsbase,freehep-graphicsio,freehep-io" + +java_prepare() { + epatch "${FILESDIR}"/github-30.patch +} + +src_compile() { + java-pkg-simple_src_compile + java-pkg_addres ${PN}.jar src/main/resources +} + +src_install() { + java-pkg-simple_src_install + java-pkg_register-optional-dependency freehep-graphicsio-svg + java-pkg_dolauncher emf2svg --main org.freehep.graphicsio.emf.EMF2SVG +} + +src_test() { + local DIR=src/test/java + local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4,freehep-graphicsio-tests,${JAVA_GENTOO_CLASSPATH})" + + ejavac -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java") + ejunit4 -classpath "${CP}" org.freehep.graphicsio.emf.test.EMFTestSuite +} diff --git a/dev-java/freehep-graphicsio-emf/metadata.xml b/dev-java/freehep-graphicsio-emf/metadata.xml new file mode 100644 index 000000000000..696a250adce4 --- /dev/null +++ b/dev-java/freehep-graphicsio-emf/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="github">freehep/freehep-vectorgraphics</remote-id> + </upstream> +</pkgmetadata> |