Gentoo Archives: gentoo-commits

From: "William Thomson (wltjr)" <wltjr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/itext: ChangeLog itext-2.1.1.ebuild itext-2.1.0.ebuild
Date: Thu, 08 May 2008 21:39:31
Message-Id: E1JuDpo-0004kx-EL@stork.gentoo.org
1 wltjr 08/05/08 21:39:28
2
3 Modified: ChangeLog
4 Added: itext-2.1.1.ebuild itext-2.1.0.ebuild
5 Log:
6 Running behind, bumped package to two latest releases, added two new USE flags rtf & rups
7 (Portage version: 2.1.5_rc6)
8
9 Revision Changes Path
10 1.75 dev-java/itext/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/itext/ChangeLog?rev=1.75&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/itext/ChangeLog?rev=1.75&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/itext/ChangeLog?r1=1.74&r2=1.75
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/itext/ChangeLog,v
19 retrieving revision 1.74
20 retrieving revision 1.75
21 diff -u -r1.74 -r1.75
22 --- ChangeLog 11 Mar 2008 15:14:28 -0000 1.74
23 +++ ChangeLog 8 May 2008 21:39:27 -0000 1.75
24 @@ -1,6 +1,14 @@
25 # ChangeLog for dev-java/itext
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/itext/ChangeLog,v 1.74 2008/03/11 15:14:28 ranger Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/itext/ChangeLog,v 1.75 2008/05/08 21:39:27 wltjr Exp $
29 +
30 +*itext-2.1.1 (07 May 2008)
31 +*itext-2.1.0 (07 May 2008)
32 +
33 + 07 May 2008; William L. Thomson Jr. <wltjr@g.o>
34 + +itext-2.1.0.ebuild, +itext-2.1.1.ebuild:
35 + Running behind, bumped package to two latest releases, added two new USE
36 + flags rtf & rups
37
38 11 Mar 2008; Brent Baude <ranger@g.o> itext-2.0.8.ebuild:
39 stable ppc64, bug 212669
40
41
42
43 1.1 dev-java/itext/itext-2.1.1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/itext/itext-2.1.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/itext/itext-2.1.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: itext-2.1.1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/itext/itext-2.1.1.ebuild,v 1.1 2008/05/08 21:39:27 wltjr Exp $
53
54 JAVA_PKG_IUSE="doc source"
55
56 inherit java-pkg-2 java-ant-2
57
58 DESCRIPTION="A Java library that generate documents in the Portable Document Format (PDF) and/or HTML."
59 HOMEPAGE="http://www.lowagie.com/iText/"
60 DISTFILE="${PN/it/iT}-src-${PV}.tar.gz"
61 ASIANJAR="iTextAsian.jar"
62 ASIANCMAPSJAR="iTextAsianCmaps.jar"
63 SRC_URI="mirror://sourceforge/itext/${DISTFILE}
64 cjk? ( mirror://sourceforge/itext/${ASIANJAR}
65 mirror://sourceforge/itext/${ASIANCMAPSJAR} )"
66
67 LICENSE="MPL-1.1"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
70 IUSE="cjk rtf rups"
71
72 BCV="1.38"
73
74 COMMON_DEPEND=">=dev-java/bcmail-${BCV}
75 >=dev-java/bcprov-${BCV}"
76 DEPEND="|| ( =virtual/jdk-1.6* =virtual/jdk-1.5* !doc? ( !rups? ( =virtual/jdk-1.4* ) ) )
77 ${COMMON_DEPEND}"
78 RDEPEND="!doc? ( !rups? ( >=virtual/jre-1.4 ) )
79 doc? ( !rups? ( >=virtual/jre-1.5 ) )
80 !doc? ( rups? ( >=virtual/jre-1.5 ) )
81 doc? ( rups? ( >=virtual/jre-1.5 ) )
82 ${COMMON_DEPEND}"
83
84 S="${WORKDIR}/src"
85
86 src_unpack() {
87 mkdir "${S}" && cd "${S}"
88 unpack ${DISTFILE}
89
90 if use cjk; then
91 cp "${DISTDIR}/${ASIANJAR}" "${DISTDIR}/${ASIANCMAPSJAR}" "${WORKDIR}" \
92 || die "Could not copy asian fonts"
93 fi
94
95 sed -i -e 's|<link href="http://java.sun.com/j2se/1.4/docs/api/" />||' \
96 -e 's|<link href="http://www.bouncycastle.org/docs/docs1.4/" />||' \
97 "${S}/ant/site.xml"
98
99 java-ant_bsfix_files ant/*.xml || die "failed to rewrite build xml files"
100
101 mkdir -p "${WORKDIR}/lib" || die "Failed to create ${WORKDIR}/lib"
102 cd "${WORKDIR}/lib" || die "Could not cd ${WORKDIR}/lib"
103 java-pkg_jar-from bcmail bcmail.jar "bcmail-jdk14-${BCV/./}.jar"
104 java-pkg_jar-from bcprov bcprov.jar "bcprov-jdk14-${BCV/./}.jar"
105 }
106
107 src_compile() {
108 eant jar $(use_doc javadoc) \
109 $(use rtf && echo "jar.rtf") \
110 $(use rups && echo "jar.rups")
111 }
112
113 src_install() {
114 cd "${WORKDIR}"
115 java-pkg_dojar lib/iText.jar
116 use rtf && java-pkg_dojar lib/iText-rtf.jar
117 use rups && java-pkg_dojar lib/iText-rups.jar
118 if use cjk; then
119 java-pkg_dojar "${ASIANJAR}"
120 java-pkg_dojar "${ASIANCMAPSJAR}"
121 fi
122
123 use source && java-pkg_dosrc src/core/com src/rups/com
124 use doc && java-pkg_dojavadoc build/docs
125 }
126
127
128
129 1.1 dev-java/itext/itext-2.1.0.ebuild
130
131 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/itext/itext-2.1.0.ebuild?rev=1.1&view=markup
132 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/itext/itext-2.1.0.ebuild?rev=1.1&content-type=text/plain
133
134 Index: itext-2.1.0.ebuild
135 ===================================================================
136 # Copyright 1999-2008 Gentoo Foundation
137 # Distributed under the terms of the GNU General Public License v2
138 # $Header: /var/cvsroot/gentoo-x86/dev-java/itext/itext-2.1.0.ebuild,v 1.1 2008/05/08 21:39:27 wltjr Exp $
139
140 JAVA_PKG_IUSE="doc source"
141
142 inherit java-pkg-2 java-ant-2
143
144 DESCRIPTION="A Java library that generate documents in the Portable Document Format (PDF) and/or HTML."
145 HOMEPAGE="http://www.lowagie.com/iText/"
146 DISTFILE="${PN/it/iT}-src-${PV}.tar.gz"
147 ASIANJAR="iTextAsian.jar"
148 ASIANCMAPSJAR="iTextAsianCmaps.jar"
149 SRC_URI="mirror://sourceforge/itext/${DISTFILE}
150 cjk? ( mirror://sourceforge/itext/${ASIANJAR}
151 mirror://sourceforge/itext/${ASIANCMAPSJAR} )"
152
153 LICENSE="MPL-1.1"
154 SLOT="0"
155 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
156 IUSE="cjk rtf rups"
157
158 BCV="1.38"
159
160 COMMON_DEPEND=">=dev-java/bcmail-${BCV}
161 >=dev-java/bcprov-${BCV}"
162 DEPEND="|| ( =virtual/jdk-1.6* =virtual/jdk-1.5* !doc? ( !rups? ( =virtual/jdk-1.4* ) ) )
163 ${COMMON_DEPEND}"
164 RDEPEND="!doc? ( !rups? ( >=virtual/jre-1.4 ) )
165 doc? ( !rups? ( >=virtual/jre-1.5 ) )
166 !doc? ( rups? ( >=virtual/jre-1.5 ) )
167 doc? ( rups? ( >=virtual/jre-1.5 ) )
168 ${COMMON_DEPEND}"
169
170 S="${WORKDIR}/src"
171
172 src_unpack() {
173 mkdir "${S}" && cd "${S}"
174 unpack ${DISTFILE}
175
176 if use cjk; then
177 cp "${DISTDIR}/${ASIANJAR}" "${DISTDIR}/${ASIANCMAPSJAR}" "${WORKDIR}" \
178 || die "Could not copy asian fonts"
179 fi
180
181 sed -i -e 's|<link href="http://java.sun.com/j2se/1.4/docs/api/" />||' \
182 -e 's|<link href="http://www.bouncycastle.org/docs/docs1.4/" />||' \
183 "${S}/ant/site.xml"
184
185 java-ant_bsfix_files ant/*.xml || die "failed to rewrite build xml files"
186
187 mkdir -p "${WORKDIR}/lib" || die "Failed to create ${WORKDIR}/lib"
188 cd "${WORKDIR}/lib" || die "Could not cd ${WORKDIR}/lib"
189 java-pkg_jar-from bcmail bcmail.jar "bcmail-jdk14-${BCV/./}.jar"
190 java-pkg_jar-from bcprov bcprov.jar "bcprov-jdk14-${BCV/./}.jar"
191 }
192
193 src_compile() {
194 eant jar $(use_doc javadoc) \
195 $(use rtf && echo "jar.rtf") \
196 $(use rups && echo "jar.rups")
197 }
198
199 src_install() {
200 cd "${WORKDIR}"
201 java-pkg_dojar lib/iText.jar
202 use rtf && java-pkg_dojar lib/iText-rtf.jar
203 use rups && java-pkg_dojar lib/iText-rups.jar
204 if use cjk; then
205 java-pkg_dojar "${ASIANJAR}"
206 java-pkg_dojar "${ASIANCMAPSJAR}"
207 fi
208
209 use source && java-pkg_dosrc src/core/com src/rups/com
210 use doc && java-pkg_dojavadoc build/docs
211 }
212
213
214
215 --
216 gentoo-commits@l.g.o mailing list