/[gentoo-x86]/dev-java/jgoodies-looks/jgoodies-looks-2.3.1.ebuild
Gentoo

Contents of /dev-java/jgoodies-looks/jgoodies-looks-2.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Oct 17 12:30:01 2010 UTC (4 years, 2 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -4 lines
Remove old.

(Portage version: 2.2_rc91/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jgoodies-looks/jgoodies-looks-2.3.1.ebuild,v 1.4 2010/10/15 12:32:07 ranger Exp $
4
5 JAVA_PKG_IUSE="doc source"
6
7 inherit eutils java-pkg-2 java-ant-2
8
9 MY_PN="looks"
10 MY_PV="${PV//./_}"
11 MY_P="${MY_PN}-${MY_PV}"
12 DESCRIPTION="JGoodies Looks Library"
13 HOMEPAGE="http://www.jgoodies.com/"
14 SRC_URI="http://www.jgoodies.com/download/libraries/${MY_PN}/${MY_P}.zip"
15
16 LICENSE="BSD"
17 SLOT="2.0"
18 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
19 IUSE=""
20
21 DEPEND=">=virtual/jdk-1.4
22 app-arch/unzip"
23 RDEPEND=">=virtual/jre-1.4"
24
25 S="${WORKDIR}/${MY_PN}-${PV}"
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30
31 # remove the bootclasspath brokedness, make building demo optional
32 epatch "${FILESDIR}/${PN}-2.0.4-build.xml.patch"
33
34 # unzip the look&feel settings from bundled jar before we delete it
35 unzip -j looks-${PV}.jar META-INF/services/javax.swing.LookAndFeel \
36 || die "unzip of javax.swing.LookAndFeel failed"
37 # and rename it to what build.xml expects
38 mv javax.swing.LookAndFeel all.txt
39
40 rm -v *.jar demo/*.jar lib/*.jar || die
41 rm -rv docs/api || die
42 }
43
44 src_compile() {
45 # bug #150970
46 java-pkg_filter-compiler jikes
47
48 # jar target fails unless we make descriptors.dir an existing directory
49 # I checked the ustream binary distribution and they also don't actually
50 # put anything there.
51 # 31.7.2006 betelgeuse@gentoo.org
52 # update: it's where it looks for all.txt file
53 # 16.1.2007 caster@gentoo.org
54 eant -Ddescriptors.dir="${S}" jar-all $(use_doc)
55 }
56
57 src_install() {
58 java-pkg_dojar build/looks.jar
59
60 dodoc RELEASE-NOTES.txt || die
61 dohtml README.html || die
62 if use doc; then
63 java-pkg_dohtml -r docs/*
64 java-pkg_dojavadoc build/docs/api
65 fi
66 use source && java-pkg_dosrc src/core/com
67 }

  ViewVC Help
Powered by ViewVC 1.1.20