Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/jmupdf/files/, app-text/jmupdf/
Date: Wed, 06 Dec 2017 21:55:03
Message-Id: 1512597285.1f77848d5e65908cd118eaa3c3f41039ba0a83ed.chewi@gentoo
1 commit: 1f77848d5e65908cd118eaa3c3f41039ba0a83ed
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 6 21:42:36 2017 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 6 21:54:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f77848d
7
8 app-text/jmupdf: Remove last-rited package
9
10 app-text/jmupdf/Manifest | 1 -
11 app-text/jmupdf/files/jmupdf-0.4.1-build-xml.patch | 27 --------
12 app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch | 11 ----
13 app-text/jmupdf/jmupdf-0.4.1-r1.ebuild | 74 ----------------------
14 app-text/jmupdf/jmupdf-9999.ebuild | 69 --------------------
15 app-text/jmupdf/metadata.xml | 18 ------
16 6 files changed, 200 deletions(-)
17
18 diff --git a/app-text/jmupdf/Manifest b/app-text/jmupdf/Manifest
19 deleted file mode 100644
20 index c39f1f18085..00000000000
21 --- a/app-text/jmupdf/Manifest
22 +++ /dev/null
23 @@ -1 +0,0 @@
24 -DIST 2012-02-23-source-jmupdf-0.4.1.7z 4212084 SHA256 cb7311021dce6e1e7425b088f4d60c12f43c0e26eff794b057d78e105cdbbbc0 SHA512 f16190d02f9c3f6fe9aa2acd7bd270b6e807b61e926cd1bc4e17628f2d62a45d0f024c2748e4eb0a20e7da55895289f6c74685cb371e101a0901235a48eb1f42 WHIRLPOOL e8e93d303e925d1c1313d9951b3306d01abcb9ce1bca50fb40054e807c67f0347ee7c2375de11fde4f957f56fdc98e70620698fb3a02ff8a9f651fb6a21ffe86
25
26 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
27 deleted file mode 100644
28 index 3eb6a12c5f7..00000000000
29 --- a/app-text/jmupdf/files/jmupdf-0.4.1-build-xml.patch
30 +++ /dev/null
31 @@ -1,27 +0,0 @@
32 ---- jmupdf-0.4.1/jmupdf/build.xml
33 -+++ jmupdf-0.4.1/jmupdf/build.xml
34 -@@ -1,7 +1,7 @@
35 - <?xml version="1.0" encoding="UTF-8"?>
36 - <project name="jmupdf" default="jmupdf" basedir=".">
37 -
38 -- <property name="source.dir" value="${basedir}/bin"/>
39 -+ <property name="source.dir" value="${basedir}/src"/>
40 - <property name="target.dir" value="${basedir}"/>
41 - <property name="build.dir" value="${basedir}/build"/>
42 -
43 -@@ -11,9 +11,12 @@
44 -
45 - <mkdir dir="${build.dir}"/>
46 -
47 -- <copy todir="${build.dir}">
48 -- <fileset dir="${source.dir}" includes="**/*"/>
49 -- </copy>
50 -+ <javac srcdir="${source.dir}"
51 -+ includeantruntime="false"
52 -+ destdir="${build.dir}"
53 -+ debug="on"
54 -+ source="1.5"
55 -+ />
56 -
57 - <jar destfile="${build.dir}/jmupdf.jar">
58 - <manifest>
59
60 diff --git a/app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch b/app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch
61 deleted file mode 100644
62 index c53e7bd0d81..00000000000
63 --- a/app-text/jmupdf/files/jmupdf-0.4.1-umlaut.patch
64 +++ /dev/null
65 @@ -1,11 +0,0 @@
66 ---- jmupdf-0.4.1/jmupdf/src/com/examples/pdf/convert/Pdf_2_Png.java
67 -+++ jmupdf-0.4.1/jmupdf/src/com/examples/pdf/convert/Pdf_2_Png.java
68 -@@ -26,7 +26,7 @@
69 - */
70 - pdfDoc.saveAsPng(
71 - 1, // Page number
72 -- "e:\\tmp\\Lösung.png", // PNG file
73 -+ "e:\\tmp\\Loesung.png", // PNG file
74 - 2f, // Zoom
75 - ImageType.IMAGE_TYPE_RGB); // Color space. Only RGB, ARGB & Gray.
76 -
77
78 diff --git a/app-text/jmupdf/jmupdf-0.4.1-r1.ebuild b/app-text/jmupdf/jmupdf-0.4.1-r1.ebuild
79 deleted file mode 100644
80 index df7924d2755..00000000000
81 --- a/app-text/jmupdf/jmupdf-0.4.1-r1.ebuild
82 +++ /dev/null
83 @@ -1,74 +0,0 @@
84 -# Copyright 1999-2013 Gentoo Foundation
85 -# Distributed under the terms of the GNU General Public License v2
86 -
87 -EAPI=5
88 -
89 -inherit eutils flag-o-matic java-pkg-2 java-ant-2 multilib
90 -EANT_BUILD_TARGET=${PN}
91 -
92 -DESCRIPTION="Java library for rendering PDF, XPS and CBZ (Comic Book) documents"
93 -HOMEPAGE="https://code.google.com/p/jmupdf/"
94 -SRC_URI="https://jmupdf.googlecode.com/files/2012-02-23-source-${P}.7z"
95 -
96 -LICENSE="GPL-1"
97 -SLOT="0"
98 -KEYWORDS="~amd64 ~x86"
99 -IUSE="system-mupdf"
100 -
101 -REQUIRED_USE="!system-mupdf"
102 -
103 -RDEPEND="
104 - media-libs/freetype:2
105 - media-libs/openjpeg:0=
106 - system-mupdf? ( >=app-text/mupdf-1.2 )
107 - virtual/jdk:1.7
108 -"
109 -DEPEND="${RDEPEND}
110 - app-arch/p7zip
111 - media-libs/libbmp
112 -"
113 -
114 -S=${WORKDIR}/${PN}/${PN}
115 -
116 -src_prepare() {
117 - epatch \
118 - "${FILESDIR}"/${P}-build-xml.patch \
119 - "${FILESDIR}"/${P}-umlaut.patch
120 -
121 - edos2unix ../mupdf/jni/*
122 -
123 - sed -e "/^JVM_INCLUDES/s:=.*:= $(java-pkg_get-jni-cflags):" \
124 - -i ../mupdf/MakeJNI2 || die
125 - sed -e "s:-pipe -O2::" \
126 - -i ../mupdf/Makerules || die
127 -
128 - rm -r ../mupdf/thirdparty || die
129 - if use system-mupdf ; then
130 - for i in android apps cbz cmaps debian draw fitz fonts ios pdf scripts viewer win32 xps ; do
131 - einfo remove mupdf/${i}
132 - rm -r ../mupdf/${i} || die
133 - done
134 - fi
135 -}
136 -
137 -src_compile() {
138 - local system-fitz=$(usex system-mupdf "FITZ_LIB=\"${EROOT}usr/$(get_libdir)/libfitz.so\"" "" )
139 - emake -C ../mupdf \
140 - CC="$(tc-getCC)" \
141 - AR="$(tc-getAR)" \
142 - SYS_FREETYPE_INC="$($(tc-getPKG_CONFIG) --cflags freetype2)" \
143 - "${system-fitz}" \
144 - JNI_DLL=build/libjmupdf.so \
145 - JNI_CMD="-shared -Wl,-soname -Wl,lib${PN}.so" \
146 - build/libjmupdf.so
147 -
148 - java-pkg-2_src_compile
149 -}
150 -
151 -src_install() {
152 - dolib.so ../mupdf/build/lib${PN}.so
153 -
154 - java-pkg_dojar build/${PN}{,-viewer}.jar
155 -
156 - dodoc Readme
157 -}
158
159 diff --git a/app-text/jmupdf/jmupdf-9999.ebuild b/app-text/jmupdf/jmupdf-9999.ebuild
160 deleted file mode 100644
161 index a2b0354b57e..00000000000
162 --- a/app-text/jmupdf/jmupdf-9999.ebuild
163 +++ /dev/null
164 @@ -1,69 +0,0 @@
165 -# Copyright 1999-2013 Gentoo Foundation
166 -# Distributed under the terms of the GNU General Public License v2
167 -
168 -EAPI=5
169 -
170 -inherit eutils flag-o-matic git-2 java-pkg-2 java-ant-2 multilib
171 -EANT_BUILD_TARGET=${PN}
172 -
173 -DESCRIPTION="Java library for rendering PDF, XPS and CBZ (Comic Book) documents"
174 -HOMEPAGE="https://code.google.com/p/jmupdf/"
175 -EGIT_REPO_URI="https://code.google.com/p/${PN}/"
176 -
177 -LICENSE="GPL-1"
178 -SLOT="0"
179 -KEYWORDS=""
180 -IUSE="system-mupdf"
181 -
182 -REQUIRED_USE="!system-mupdf"
183 -
184 -RDEPEND="system-mupdf? ( >=app-text/mupdf-1.2 )
185 - virtual/jdk:1.7"
186 -DEPEND="${RDEPEND}
187 - app-arch/p7zip
188 - media-libs/libbmp"
189 -
190 -src_prepare() {
191 - if ! grep javac ${PN}/build.xml >/dev/null ; then
192 - epatch \
193 - "${FILESDIR}"/${PN}-0.4.1-build-xml.patch
194 - fi
195 -
196 - edos2unix $(find mupdf/jni -type f)
197 -
198 - sed -e "/^JVM_INCLUDES/s:=.*:= $(java-pkg_get-jni-cflags):" \
199 - -i mupdf/MakeJNI2 || die
200 - sed -e "s:-pipe -O2::" \
201 - -i mupdf/Makerules || die
202 -
203 - rm -r mupdf/thirdparty || die
204 - if use system-mupdf ; then
205 - for i in android apps cbz cmaps debian draw fitz fonts ios pdf scripts viewer win32 xps ; do
206 - einfo remove mupdf/${i}
207 - rm -r mupdf/${i} || die
208 - done
209 - fi
210 -}
211 -
212 -src_compile() {
213 - #append-cflags -Ijni/includes
214 - emake -C mupdf \
215 - CC="$(tc-getCC)" \
216 - AR="$(tc-getAR)" \
217 - SYS_FREETYPE_INC="$($(tc-getPKG_CONFIG) --cflags freetype2)" \
218 - JNI_DLL=build/libjmupdf.so \
219 - JNI_CMD="-shared -Wl,-soname -Wl,lib${PN}.so" \
220 - build/libjmupdf.so
221 -
222 - cd ${PN}
223 - java-pkg-2_src_compile
224 -}
225 -
226 -src_install() {
227 - dolib.so mupdf/build/lib${PN}.so
228 -
229 - cd ${PN}
230 - java-pkg_dojar build/${PN}{,-viewer}.jar
231 -
232 - dodoc Readme
233 -}
234
235 diff --git a/app-text/jmupdf/metadata.xml b/app-text/jmupdf/metadata.xml
236 deleted file mode 100644
237 index 42a250af9af..00000000000
238 --- a/app-text/jmupdf/metadata.xml
239 +++ /dev/null
240 @@ -1,18 +0,0 @@
241 -<?xml version="1.0" encoding="UTF-8"?>
242 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
243 -<pkgmetadata>
244 -<maintainer type="person">
245 -<email>xmw@g.o</email>
246 -<name>Michael Weber</name>
247 -</maintainer>
248 -<maintainer type="project">
249 - <email>java@g.o</email>
250 - <name>Java</name>
251 -</maintainer>
252 -<use>
253 - <flag name="system-mupdf">Link against system version of app-text/mupdf</flag>
254 -</use>
255 -<longdescription>
256 -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.
257 -</longdescription>
258 -</pkgmetadata>