diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/flyingsaucer | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/flyingsaucer')
-rw-r--r-- | dev-java/flyingsaucer/Manifest | 1 | ||||
-rw-r--r-- | dev-java/flyingsaucer/files/7-itext-2.0.8.patch | 61 | ||||
-rw-r--r-- | dev-java/flyingsaucer/flyingsaucer-7-r2.ebuild | 76 | ||||
-rw-r--r-- | dev-java/flyingsaucer/metadata.xml | 11 |
4 files changed, 149 insertions, 0 deletions
diff --git a/dev-java/flyingsaucer/Manifest b/dev-java/flyingsaucer/Manifest new file mode 100644 index 000000000000..4593bdacc0bb --- /dev/null +++ b/dev-java/flyingsaucer/Manifest @@ -0,0 +1 @@ +DIST flyingsaucer-R7final-src.zip 7058444 SHA256 d4539358ae08b5278334ec66beea78a821c9e6fba1db6159317e4c94fb2bf135 SHA512 14c26a10f3493f3b9fc1fe5d3d11591cf4c09d781d1d2cccf5de15d4b5a0108f8780e168c32968338b82c7929cb083cc47aab539c53d140860505ff0e05f9135 WHIRLPOOL 742e2e0bab959e77d8363fec4e9dd234746b25c56401fee4e0796476411ab0b071ee682366b82ca0350ee66e62b60a5116ed3aa81a33ff1ecaded98cd74a5de3 diff --git a/dev-java/flyingsaucer/files/7-itext-2.0.8.patch b/dev-java/flyingsaucer/files/7-itext-2.0.8.patch new file mode 100644 index 000000000000..33b4ea37b994 --- /dev/null +++ b/dev-java/flyingsaucer/files/7-itext-2.0.8.patch @@ -0,0 +1,61 @@ +diff -u -r src.old/java/org/xhtmlrenderer/pdf/ITextFSImage.java src/java/org/xhtmlrenderer/pdf/ITextFSImage.java +--- src.old/java/org/xhtmlrenderer/pdf/ITextFSImage.java 2008-10-23 19:46:53.000000000 +0300 ++++ src/java/org/xhtmlrenderer/pdf/ITextFSImage.java 2008-10-23 19:48:05.000000000 +0300 +@@ -31,11 +31,11 @@ + } + + public int getWidth() { +- return (int)_image.plainWidth(); ++ return (int)_image.getPlainWidth(); + } + + public int getHeight() { +- return (int)_image.plainHeight(); ++ return (int)_image.getPlainHeight(); + } + + public void scale(int width, int height) { +diff -u -r src.old/java/org/xhtmlrenderer/pdf/ITextRenderer.java src/java/org/xhtmlrenderer/pdf/ITextRenderer.java +--- src.old/java/org/xhtmlrenderer/pdf/ITextRenderer.java 2008-10-23 19:46:53.000000000 +0300 ++++ src/java/org/xhtmlrenderer/pdf/ITextRenderer.java 2008-10-23 19:48:56.000000000 +0300 +@@ -234,7 +234,7 @@ + + _outputDevice.start(_doc); + _outputDevice.setWriter(writer); +- _outputDevice.initializePage(writer.getDirectContent(), firstPageSize.height()); ++ _outputDevice.initializePage(writer.getDirectContent(), firstPageSize.getHeight()); + + _root.getLayer().assignPagePaintingPositions(c, Layer.PAGED_MODE_PRINT); + +@@ -254,7 +254,7 @@ + doc.setPageSize(nextPageSize); + doc.newPage(); + _outputDevice.initializePage( +- writer.getDirectContent(), nextPageSize.height()); ++ writer.getDirectContent(), nextPageSize.getHeight()); + } + } + +diff -u -r src.old/java/org/xhtmlrenderer/pdf/ITextUserAgent.java src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java +--- src.old/java/org/xhtmlrenderer/pdf/ITextUserAgent.java 2008-10-23 19:46:53.000000000 +0300 ++++ src/java/org/xhtmlrenderer/pdf/ITextUserAgent.java 2008-10-23 19:50:00.000000000 +0300 +@@ -60,8 +60,8 @@ + PdfReader reader = _outputDevice.getReader(url); + PDFAsImage image = new PDFAsImage(url); + Rectangle rect = reader.getPageSizeWithRotation(1); +- image.setInitialWidth(rect.width()*_outputDevice.getDotsPerPoint()); +- image.setInitialHeight(rect.height()*_outputDevice.getDotsPerPoint()); ++ image.setInitialWidth(rect.getWidth()*_outputDevice.getDotsPerPoint()); ++ image.setInitialHeight(rect.getHeight()*_outputDevice.getDotsPerPoint()); + resource = new ImageResource(image); + } else { + Image image = Image.getInstance(url); +@@ -84,7 +84,7 @@ + + private void scaleToOutputResolution(Image image) { + float factor = _sharedContext.getDotsPerPixel(); +- image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor); ++ image.scaleAbsolute(image.getPlainWidth() * factor, image.getPlainHeight() * factor); + } + + public SharedContext getSharedContext() { diff --git a/dev-java/flyingsaucer/flyingsaucer-7-r2.ebuild b/dev-java/flyingsaucer/flyingsaucer-7-r2.ebuild new file mode 100644 index 000000000000..2ad2cd284d9d --- /dev/null +++ b/dev-java/flyingsaucer/flyingsaucer-7-r2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="100% Java XHTML+CSS renderer" +HOMEPAGE="https://xhtmlrenderer.dev.java.net/" +SRC_URI="http://www.pdoubleya.com/projects/${PN}/downloads/r${PV}/${PN}-R${PV}final-src.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="minimal svg ${JAVA_PKG_IUSE}" + +COMMON_DEP=" + >=dev-java/itext-2.0.8:0 + svg? ( dev-java/svgsalamander:0 )" + +# 1.5 because svgsalamander is 1.5 +RDEPEND=" + svg? ( >=virtual/jre-1.5 ) + !svg? ( >=virtual/jre-1.4 ) + ${COMMON_DEP}" + +DEPEND=" + svg? ( >=virtual/jdk-1.5 ) + !svg? ( >=virtual/jdk-1.4 ) + app-arch/unzip + ${COMMON_DEP}" + +S="${WORKDIR}" + +java_prepare() { + epatch "${FILESDIR}"/7-itext-2.0.8.patch + + # Save lib/minium.jar because it's not publicly available although it's in + # public domain, will separate if something else needs it + rm -v lib/itext*.jar lib/dev/*.jar lib/dev/*/*.jar || die + + cd lib || die + java-pkg_jar-from itext + + if use svg; then + java-pkg_jar-from svgsalamander + EANT_BUILD_TARGET+=" jar.svg" + fi + + use minimal || EANT_BUILD_TARGET=" jar.docbook jar.about jar.browser" +} + +# Investigate building demos/photogallery demos/filebrowser because +# the files seem to be missing for jar.photogaller jar.filebrowser +EANT_BUILD_TARGET="jar.core" +EANT_DOC_TARGET="docs" + +RESTRICT="test" + +# Needs X11. +src_test() { + eant test -Djava.awt.headless=true +} + +src_install() { + java-pkg_dojar build/*.jar lib/minium.jar + + dodoc README || die + + use doc && java-pkg_dojavadoc doc/user/api + use source && java-pkg_dosrc src/java/org +} diff --git a/dev-java/flyingsaucer/metadata.xml b/dev-java/flyingsaucer/metadata.xml new file mode 100644 index 000000000000..7cac896c1d96 --- /dev/null +++ b/dev-java/flyingsaucer/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + + <longdescription lang="en"> + Flying Saucer is a 100% Java XHTML+CSS renderer, including support + for table pagination, margin boxes, running elements, named pages, + and more. + </longdescription> +</pkgmetadata> |