summaryrefslogtreecommitdiff
path: root/dev-java/freehep-graphics2d
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/freehep-graphics2d
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/freehep-graphics2d')
-rw-r--r--dev-java/freehep-graphics2d/Manifest6
-rw-r--r--dev-java/freehep-graphics2d/freehep-graphics2d-2.4.ebuild73
-rw-r--r--dev-java/freehep-graphics2d/metadata.xml11
3 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/freehep-graphics2d/Manifest b/dev-java/freehep-graphics2d/Manifest
new file mode 100644
index 000000000000..75b5c7e01160
--- /dev/null
+++ b/dev-java/freehep-graphics2d/Manifest
@@ -0,0 +1,6 @@
+DIST freehep-chartable-converter-plugin-2.2.1.tar.gz 18159 SHA256 076086b08f775ad52a1ce58389167f048f594864ad6b198c92d540a30f96ae35 SHA512 4caac8b83b9efdee59e2a801bb001fdf7bab144bb5734bdb89ef3e1163bc9ffd05b2c8c59d611665573c432045a854fba28eb4d24260baea5286b34ae298add1 WHIRLPOOL a97d2c8685c29ae7d1dccf653577dd15cf085cf5439744f5c0dd904ebb8d85d9a6e6e825059230bc2baf4e519b87bfda136db2fac22202d878ae84b0382503bc
+DIST freehep-vectorgraphics-2.4.tar.gz 4118379 SHA256 2c7e1bbb3c056e9de83e5f7d9e0b2aeb3f46734000cdd0f18423eb43216305dd SHA512 b5cf083cc6951e7c4b438d5e648f61ca20b23e02163a8cfc4669beaaec2fa9e33338b0ba6875bfe4a3864ac48f9774acfedc2a3b2f59a7488ef99a4817e39382 WHIRLPOOL 62d61e05935348cf8b5d81033408729b02377f8a91760d08ab98a8e1451ea4d44e992a98dfb951978272ca842dbfa0d2885430cd16428dcf4da005aa092fbe76
+EBUILD freehep-graphics2d-2.4.ebuild 2117 SHA256 29a30e1461eeba11ecdae9c910d6992677b155d285e3c8421eb67e9872720dde SHA512 ffb2db76c69531324a98993d79581b925e3b635072d24aee77d35ccccdaba730d0dee1de6fe9c50cada3a74bd96c32625205b6da0d0591f9f4bd3e5cebc1b3c1 WHIRLPOOL 7f4cff28797ba44e85fde7afb458fdfec1baa0ced86668e86b9e694c46843ef9300bdab8ae1c4a4bbbf00c8cca3299384b6c25c02aaea16ae1653f427b39cfe1
+MISC ChangeLog 2716 SHA256 8567987acf052bfc8da1afb1d6dad912beb166fca3625d3cc50611d7aceeeb9c SHA512 7253228c21e1551bc067d5dc68217ffca9a99cc8f7d83d1469ddb8ae13ccf56c2c24b961fe61b6150a95181604d4d782cdab626ef8183ee65570ce369e94ce3a WHIRLPOOL 75f3e9b5a2249ac919fb7fc0f003738950cd297e13ba3c8e3db43879bcc51c458d4486212817b36e30182a95dbabb88ba2753c885d05deb8c022eada84a58dba
+MISC ChangeLog-2015 604 SHA256 102006a30d997c7fb0709e8e4534a4278b4f4e027ffd4a933ac8a7db94ab05dd SHA512 7b5ccc91256c7dddc6bbf6a516c71211020b407c034000207843aaef029193c036917b84829c91904d3e065e5739c8eb54b861ed04c799d7b48d5e02d2a2b1f4 WHIRLPOOL 6dabd2374ff04e3bc0a29b94b2bc7a8f49d2ba7435585f061df4ae2a01bf4f6ab31f69b4dd00db7d2a7f08d32ec6707678d20a25fead8ae3b69372101d9beae0
+MISC metadata.xml 331 SHA256 46edbbd64cdb8b94bfee03ae75cc28e0fd886959865b0fb970f3b718f2d91d79 SHA512 f7bb0530f563d9ba4e8062f41b32340ac316e267adfffc964156bc4e87a469a7bde0a1af4553240c9dc167d405a3e892ebe501043ca5399e03377164eb71bfb5 WHIRLPOOL 78678288aae234c47de4b7b3038b3009a07e3a9ad7f3e2d112a9bf226a1d8f56ab048a895db2cb18596e404c74bd7ba9e9ade58757a10ed9f564217ada744872
diff --git a/dev-java/freehep-graphics2d/freehep-graphics2d-2.4.ebuild b/dev-java/freehep-graphics2d/freehep-graphics2d-2.4.ebuild
new file mode 100644
index 000000000000..97a88563854a
--- /dev/null
+++ b/dev-java/freehep-graphics2d/freehep-graphics2d-2.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+CHARTABLE_PN="freehep-chartable-converter-plugin"
+CHARTABLE_P="${CHARTABLE_PN}-2.2.1"
+
+MY_PN="freehep-vectorgraphics"
+MY_P="${MY_PN}-${PV}"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="High Energy Physics Java library - FreeHEP Graphics 2D Library"
+HOMEPAGE="http://java.freehep.org/"
+SRC_URI="https://github.com/freehep/${MY_PN}/archive/${MY_P}.tar.gz
+ https://github.com/freehep/${CHARTABLE_PN}/archive/${CHARTABLE_P}.tar.gz"
+LICENSE="Apache-2.0 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+CDEPEND="~dev-java/freehep-graphicsbase-${PV}:${SLOT}"
+
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.7
+ test? ( 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-graphicsbase"
+
+src_compile() {
+ # This package uses a custom Maven plugin to generate some
+ # sources. We're not using Maven but we can run it manually. We
+ # could package the plugin separately but it's not used elsewhere.
+
+ local SRC ENC CP="${WORKDIR}"/${CHARTABLE_PN}-${CHARTABLE_P}/src/main/java CLASS=org/freehep/graphics2d/font/encoding/CharTableConverter
+ ejavac "${CP}/${CLASS}.java"
+
+ for SRC in src/main/encoding/{Expert,Symbol,Zapfdingbats}.utf-16; do
+ ebegin "Converting ${SRC}"
+ java -cp "${CP}" ${CLASS} ${JAVA_SRC_DIR} org.freehep.graphics2d.font ${SRC} || die
+ eend $?
+ done
+
+ SRC=src/main/encoding/Latin.utf-16
+
+ for ENC in ISO MAC WIN PDF STD; do
+ ebegin "Converting ${SRC} (${ENC})"
+ java -cp "${CP}" ${CLASS} ${JAVA_SRC_DIR} org.freehep.graphics2d.font ${SRC} ${ENC} || die
+ eend $?
+ done
+
+ java-pkg-simple_src_compile
+}
+
+src_test() {
+ local DIR=src/test/java
+ local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
+ local TESTS=$(find ${DIR} -name "Test*.java")
+ TESTS="${TESTS//src\/test\/java\/}"
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}
diff --git a/dev-java/freehep-graphics2d/metadata.xml b/dev-java/freehep-graphics2d/metadata.xml
new file mode 100644
index 000000000000..696a250adce4
--- /dev/null
+++ b/dev-java/freehep-graphics2d/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>