/[gentoo-x86]/dev-java/pat/pat-1.5.3.ebuild
Gentoo

Contents of /dev-java/pat/pat-1.5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Nov 3 13:29:16 2012 UTC (20 months, 1 week ago) by ago
Branch: MAIN
Changes since 1.1: +3 -3 lines
Add ~amd64, wrt bug #440784

(Portage version: 2.1.11.9/cvs/Linux x86_64)

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/pat/pat-1.5.3.ebuild,v 1.1 2007/12/15 20:25:23 betelgeuse Exp $
4
5 JAVA_PKG_IUSE="doc source"
6
7 inherit versionator java-pkg-2
8
9 DESCRIPTION="Regular Expressions in Java"
10 HOMEPAGE="http://www.javaregex.com"
11
12 MY_PV=$(delete_all_version_separators)
13 MAJORMINOR=$(get_version_component_range 1-2)
14 DOC_VER=$(delete_all_version_separators ${MAJORMINOR})
15 MY_P=${PN}-${PV}
16
17 SRC_URI="http://www.javaregex.com/binaries/${PN}srcfree${MY_PV}.jar
18 doc? ( http://www.javaregex.com/binaries/patdocs${DOC_VER}.jar )"
19
20 LICENSE="LGPL-2.1"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86"
23
24 RDEPEND=">=virtual/jre-1.4"
25 DEPEND=">=virtual/jdk-1.4
26 app-arch/unzip"
27
28 S=${WORKDIR}
29
30 src_compile() {
31 ejavac $(find . -name "*.java")
32 jar cf ${PN}.jar $(find . -name "*.class")
33 }
34
35 src_install() {
36 java-pkg_dojar *.jar
37 if use doc; then
38 dohtml docs/*.{html,jpg}
39 java-pkg_dojavadoc --symlink javadoc docs/*.javadoc
40 fi
41 use source && java-pkg_dosrc com
42 }

  ViewVC Help
Powered by ViewVC 1.1.20