/[gentoo-x86]/dev-java/itext/itext-2.1.5-r1.ebuild
Gentoo

Contents of /dev-java/itext/itext-2.1.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Aug 15 13:45:51 2013 UTC (10 months, 3 weeks ago) by tomwij
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revision bump. Slotted bcmail and bcprov dependencies. Punted old and broken version.

(Portage version: 2.2.0/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 6D34E57D)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/itext/itext-2.1.5-r1.ebuild,v 1.1 2012/05/08 12:20:43 sera Exp $
4
5 EAPI="4"
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit java-pkg-2 java-ant-2
10
11 DISTFILE="${PN/it/iT}-src-${PV}.tar.gz"
12 ASIANJAR="iTextAsian.jar"
13 ASIANCMAPSJAR="iTextAsianCmaps.jar"
14
15 DESCRIPTION="A Java library that generate documents in the Portable Document Format (PDF) and/or HTML."
16 HOMEPAGE="http://www.lowagie.com/iText/"
17 SRC_URI="mirror://sourceforge/itext/${DISTFILE}
18 cjk? ( mirror://sourceforge/itext/${ASIANJAR}
19 mirror://sourceforge/itext/${ASIANCMAPSJAR} )"
20
21 LICENSE="MPL-1.1"
22 SLOT="0"
23 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
24 IUSE="cjk rtf rups"
25
26 COMMON_DEPEND="
27 dev-java/bcmail:0
28 dev-java/bcprov:0
29 rups? (
30 dev-java/dom4j:1
31 dev-java/pdf-renderer:0
32 )"
33 RDEPEND="${COMMON_DEPEND}
34 >=virtual/jre-1.5"
35 DEPEND="${COMMON_DEPEND}
36 >=virtual/jdk-1.5
37 cjk? ( app-arch/unzip )"
38
39 S="${WORKDIR}/src"
40
41 src_unpack() {
42 unpack ${DISTFILE}
43 }
44
45 java_prepare() {
46 sed -i -e 's|<link href="http://java.sun.com/j2se/1.4/docs/api/" />||' \
47 -e 's|<link href="http://www.bouncycastle.org/docs/docs1.4/" />||' \
48 "${S}/ant/site.xml"
49
50 java-ant_bsfix_files ant/*.xml || die "failed to rewrite build xml files"
51 }
52
53 JAVA_ANT_REWRITE_CLASSPATH="true"
54 JAVA_ANT_ENCODING="utf8"
55
56 src_compile() {
57 EANT_GENTOO_CLASSPATH="bcmail,bcprov"
58 use rups && EANT_GENTOO_CLASSPATH+=",dom4j-1,pdf-renderer"
59
60 java-pkg-2_src_compile \
61 $(use rtf && echo "jar.rtf") \
62 $(use rups && echo "jar.rups")
63 }
64
65 src_install() {
66 cd "${WORKDIR}"
67 java-pkg_dojar lib/iText.jar
68 use rtf && java-pkg_dojar lib/iText-rtf.jar
69 use rups && java-pkg_dojar lib/iText-rups.jar
70 if use cjk; then
71 java-pkg_dojar "${DISTDIR}/${ASIANJAR}"
72 java-pkg_dojar "${DISTDIR}/${ASIANCMAPSJAR}"
73 fi
74
75 use source && java-pkg_dosrc src/core/com src/rups/com
76 use doc && java-pkg_dojavadoc build/docs
77 }

  ViewVC Help
Powered by ViewVC 1.1.20