/[gentoo-x86]/dev-java/miglayout/miglayout-4.0.ebuild
Gentoo

Contents of /dev-java/miglayout/miglayout-4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 1 06:45:52 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
marked x86 per bug 418043

(Portage version: 2.2.0_alpha108/cvs/Linux i686)

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/miglayout/miglayout-4.0.ebuild,v 1.3 2012/05/29 15:18:05 ago Exp $
4
5 EAPI="4"
6
7 JAVA_PKG_IUSE="doc examples source"
8
9 inherit java-pkg-2
10
11 DESCRIPTION="Easy to use yet very powerful Java Swing layout manager"
12 HOMEPAGE="http://www.miglayout.com/"
13 SRC_URI="http://www.migcalendar.com/miglayout/versions/${PV}/${P}-sources.jar"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE="swt"
19
20 COMMON_DEP="
21 swt? ( dev-java/swt:3.7 )"
22 RDEPEND="${COMMON_DEP}
23 >=virtual/jre-1.5"
24 DEPEND="${COMMON_DEP}
25 >=virtual/jdk-1.5
26 app-arch/unzip"
27
28 S="${WORKDIR}"
29
30 java_prepare() {
31 mv net/miginfocom/{demo,examples} . || die
32 mv demo/* examples || die
33
34 if ! use swt; then
35 rm -r net/miginfocom/swt || die
36 fi
37
38 find net -name '*.java' > sources.lst
39 }
40
41 src_compile() {
42 local classpath
43 use swt && classpath=( -classpath "$(java-pkg_getjars swt-3.7)" )
44
45 mkdir classes || die
46 ejavac "${classpath[@]}" -d classes @sources.lst || die
47 jar -cf ${PN}.jar -C classes . || die
48
49 if use doc; then
50 javadoc "${classpath[@]}" -author -version -d api @sources.lst || die
51 fi
52 }
53
54 src_install() {
55 java-pkg_dojar ${PN}.jar
56
57 use doc && java-pkg_dojavadoc api
58 use examples && java-pkg_doexamples examples
59 use source && java-pkg_dosrc net
60 }

  ViewVC Help
Powered by ViewVC 1.1.20