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 /app-text/jmupdf | |
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 'app-text/jmupdf')
-rw-r--r-- | app-text/jmupdf/Manifest | 2 | ||||
-rw-r--r-- | app-text/jmupdf/files/jmupdf-0.4.1-build-xml.patch | 27 | ||||
-rw-r--r-- | app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch | 11 | ||||
-rw-r--r-- | app-text/jmupdf/jmupdf-0.3.0.ebuild | 69 | ||||
-rw-r--r-- | app-text/jmupdf/jmupdf-0.4.1.ebuild | 70 | ||||
-rw-r--r-- | app-text/jmupdf/jmupdf-9999.ebuild | 70 | ||||
-rw-r--r-- | app-text/jmupdf/metadata.xml | 15 |
7 files changed, 264 insertions, 0 deletions
diff --git a/app-text/jmupdf/Manifest b/app-text/jmupdf/Manifest new file mode 100644 index 000000000000..7fbfc73bfae1 --- /dev/null +++ b/app-text/jmupdf/Manifest @@ -0,0 +1,2 @@ +DIST 2012-01-24-src-jmupdf-0.3.0.7z 4171032 SHA256 e2687e779de545c3c0692e3c19cf5ceb70fa1b04ce0dba2e3f5d0956113b817f SHA512 c4c296998f4c837accc5219e617176748f141fef42eb49f1a89638f915331bae0d87684d2e02b590691dae6684095083e329734ecdd578edd6d15ba9981aab5c WHIRLPOOL c6dd8da8452e749c8126ac488ed9ac527f898dcec9c3694a5be529d90a08d08f1362294f567a84075b9595049607619621cbf3b1055f4de7d64e76703e944aac +DIST 2012-02-23-source-jmupdf-0.4.1.7z 4212084 SHA256 cb7311021dce6e1e7425b088f4d60c12f43c0e26eff794b057d78e105cdbbbc0 SHA512 f16190d02f9c3f6fe9aa2acd7bd270b6e807b61e926cd1bc4e17628f2d62a45d0f024c2748e4eb0a20e7da55895289f6c74685cb371e101a0901235a48eb1f42 WHIRLPOOL e8e93d303e925d1c1313d9951b3306d01abcb9ce1bca50fb40054e807c67f0347ee7c2375de11fde4f957f56fdc98e70620698fb3a02ff8a9f651fb6a21ffe86 diff --git a/app-text/jmupdf/files/jmupdf-0.4.1-build-xml.patch b/app-text/jmupdf/files/jmupdf-0.4.1-build-xml.patch new file mode 100644 index 000000000000..3eb6a12c5f71 --- /dev/null +++ b/app-text/jmupdf/files/jmupdf-0.4.1-build-xml.patch @@ -0,0 +1,27 @@ +--- jmupdf-0.4.1/jmupdf/build.xml ++++ jmupdf-0.4.1/jmupdf/build.xml +@@ -1,7 +1,7 @@ + <?xml version="1.0" encoding="UTF-8"?>
+ <project name="jmupdf" default="jmupdf" basedir=".">
+
+- <property name="source.dir" value="${basedir}/bin"/>
++ <property name="source.dir" value="${basedir}/src"/>
+ <property name="target.dir" value="${basedir}"/>
+ <property name="build.dir" value="${basedir}/build"/>
+
+@@ -11,9 +11,12 @@ +
+ <mkdir dir="${build.dir}"/>
+
+- <copy todir="${build.dir}">
+- <fileset dir="${source.dir}" includes="**/*"/>
+- </copy>
++ <javac srcdir="${source.dir}"
++ includeantruntime="false"
++ destdir="${build.dir}"
++ debug="on"
++ source="1.5"
++ />
+
+ <jar destfile="${build.dir}/jmupdf.jar">
+ <manifest>
diff --git a/app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch b/app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch new file mode 100644 index 000000000000..c53e7bd0d813 --- /dev/null +++ b/app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch @@ -0,0 +1,11 @@ +--- jmupdf-0.4.1/jmupdf/src/com/examples/pdf/convert/Pdf_2_Png.java ++++ jmupdf-0.4.1/jmupdf/src/com/examples/pdf/convert/Pdf_2_Png.java +@@ -26,7 +26,7 @@ + */
+ pdfDoc.saveAsPng(
+ 1, // Page number
+- "e:\\tmp\\Lösung.png", // PNG file
++ "e:\\tmp\\Loesung.png", // PNG file
+ 2f, // Zoom
+ ImageType.IMAGE_TYPE_RGB); // Color space. Only RGB, ARGB & Gray.
+
diff --git a/app-text/jmupdf/jmupdf-0.3.0.ebuild b/app-text/jmupdf/jmupdf-0.3.0.ebuild new file mode 100644 index 000000000000..a039d8a10367 --- /dev/null +++ b/app-text/jmupdf/jmupdf-0.3.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic java-pkg-2 java-ant-2 multilib +EANT_BUILD_TARGET=${PN} + +DESCRIPTION="Java library for rendering PDF, XPS and CBZ (Comic Book) documents" +HOMEPAGE="https://code.google.com/p/jmupdf/" +SRC_URI="https://jmupdf.googlecode.com/files/2012-01-24-src-${P}.7z" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="system-mupdf" + +REQUIRED_USE="!system-mupdf" + +RDEPEND="system-mupdf? ( >=app-text/mupdf-1.2 ) + virtual/jdk:1.7" +DEPEND="${RDEPEND} + app-arch/p7zip + media-libs/libbmp" + +S=${WORKDIR}/${PN}/${PN} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-0.4.1-build-xml.patch + + edos2unix ../mupdf/jni/* + + sed -e "/^JVM_INCLUDES/s:=.*:= $(java-pkg_get-jni-cflags):" \ + -i ../mupdf/MakeJNI2 || die + sed -e "s:-pipe -O2::" \ + -i ../mupdf/Makerules || die + + rm -r ../mupdf/thirdparty || die + if use system-mupdf ; then + for i in android apps cbz cmaps debian draw fitz fonts ios pdf scripts viewer win32 xps ; do + einfo remove mupdf/${i} + rm -r ../mupdf/${i} || die + done + fi +} + +src_compile() { + local system-fitz=$(usex system-mupdf "FITZ_LIB=\"${EROOT}usr/$(get_libdir)/libfitz.so\"" "" ) + emake -C ../mupdf \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + SYS_FREETYPE_INC="$($(tc-getPKG_CONFIG) --cflags freetype2)" \ + "${system-fitz}" \ + JNI_DLL=build/libjmupdf.so \ + JNI_CMD="-shared -Wl,-soname -Wl,lib${PN}.so" \ + build/libjmupdf.so + + java-pkg-2_src_compile +} + +src_install() { + dolib.so ../mupdf/build/lib${PN}.so + + java-pkg_dojar build/${PN}{,-viewer}.jar + + dodoc Readme +} diff --git a/app-text/jmupdf/jmupdf-0.4.1.ebuild b/app-text/jmupdf/jmupdf-0.4.1.ebuild new file mode 100644 index 000000000000..08a2b4bb77ec --- /dev/null +++ b/app-text/jmupdf/jmupdf-0.4.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic java-pkg-2 java-ant-2 multilib +EANT_BUILD_TARGET=${PN} + +DESCRIPTION="Java library for rendering PDF, XPS and CBZ (Comic Book) documents" +HOMEPAGE="https://code.google.com/p/jmupdf/" +SRC_URI="https://jmupdf.googlecode.com/files/2012-02-23-source-${P}.7z" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="system-mupdf" + +REQUIRED_USE="!system-mupdf" + +RDEPEND="system-mupdf? ( >=app-text/mupdf-1.2 ) + virtual/jdk:1.7" +DEPEND="${RDEPEND} + app-arch/p7zip + media-libs/libbmp" + +S=${WORKDIR}/${PN}/${PN} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build-xml.patch \ + "${FILESDIR}"/${P}-umlaut.patch + + edos2unix ../mupdf/jni/* + + sed -e "/^JVM_INCLUDES/s:=.*:= $(java-pkg_get-jni-cflags):" \ + -i ../mupdf/MakeJNI2 || die + sed -e "s:-pipe -O2::" \ + -i ../mupdf/Makerules || die + + rm -r ../mupdf/thirdparty || die + if use system-mupdf ; then + for i in android apps cbz cmaps debian draw fitz fonts ios pdf scripts viewer win32 xps ; do + einfo remove mupdf/${i} + rm -r ../mupdf/${i} || die + done + fi +} + +src_compile() { + local system-fitz=$(usex system-mupdf "FITZ_LIB=\"${EROOT}usr/$(get_libdir)/libfitz.so\"" "" ) + emake -C ../mupdf \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + SYS_FREETYPE_INC="$($(tc-getPKG_CONFIG) --cflags freetype2)" \ + "${system-fitz}" \ + JNI_DLL=build/libjmupdf.so \ + JNI_CMD="-shared -Wl,-soname -Wl,lib${PN}.so" \ + build/libjmupdf.so + + java-pkg-2_src_compile +} + +src_install() { + dolib.so ../mupdf/build/lib${PN}.so + + java-pkg_dojar build/${PN}{,-viewer}.jar + + dodoc Readme +} diff --git a/app-text/jmupdf/jmupdf-9999.ebuild b/app-text/jmupdf/jmupdf-9999.ebuild new file mode 100644 index 000000000000..7a24be5c8613 --- /dev/null +++ b/app-text/jmupdf/jmupdf-9999.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils flag-o-matic git-2 java-pkg-2 java-ant-2 multilib +EANT_BUILD_TARGET=${PN} + +DESCRIPTION="Java library for rendering PDF, XPS and CBZ (Comic Book) documents" +HOMEPAGE="https://code.google.com/p/jmupdf/" +EGIT_REPO_URI="https://code.google.com/p/${PN}/" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="" +IUSE="system-mupdf" + +REQUIRED_USE="!system-mupdf" + +RDEPEND="system-mupdf? ( >=app-text/mupdf-1.2 ) + virtual/jdk:1.7" +DEPEND="${RDEPEND} + app-arch/p7zip + media-libs/libbmp" + +src_prepare() { + if ! grep javac ${PN}/build.xml >/dev/null ; then + epatch \ + "${FILESDIR}"/${PN}-0.4.1-build-xml.patch + fi + + edos2unix $(find mupdf/jni -type f) + + sed -e "/^JVM_INCLUDES/s:=.*:= $(java-pkg_get-jni-cflags):" \ + -i mupdf/MakeJNI2 || die + sed -e "s:-pipe -O2::" \ + -i mupdf/Makerules || die + + rm -r mupdf/thirdparty || die + if use system-mupdf ; then + for i in android apps cbz cmaps debian draw fitz fonts ios pdf scripts viewer win32 xps ; do + einfo remove mupdf/${i} + rm -r mupdf/${i} || die + done + fi +} + +src_compile() { + #append-cflags -Ijni/includes + emake -C mupdf \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + SYS_FREETYPE_INC="$($(tc-getPKG_CONFIG) --cflags freetype2)" \ + JNI_DLL=build/libjmupdf.so \ + JNI_CMD="-shared -Wl,-soname -Wl,lib${PN}.so" \ + build/libjmupdf.so + + cd ${PN} + java-pkg-2_src_compile +} + +src_install() { + dolib.so mupdf/build/lib${PN}.so + + cd ${PN} + java-pkg_dojar build/${PN}{,-viewer}.jar + + dodoc Readme +} diff --git a/app-text/jmupdf/metadata.xml b/app-text/jmupdf/metadata.xml new file mode 100644 index 000000000000..1e6990819e10 --- /dev/null +++ b/app-text/jmupdf/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<maintainer> +<email>xmw@gentoo.org</email> +<name>Michael Weber</name> +</maintainer> +<use> + <flag name="system-mupdf">Link against system version of app-text/mupdf</flag> +</use> +<longdescription> +JMuPdf is a Java library for rendering PDF, XPS and CBZ (Comic Book) documents. It can render pages and export them into various formats as well as generate a Java buffered image. It has the ability to render the whole page or sections (cropping). It can also extract page text, links, outlines, etc. +</longdescription> +</pkgmetadata> |