/[gentoo-x86]/dev-java/simplyhtml/simplyhtml-0.13.1.ebuild
Gentoo

Contents of /dev-java/simplyhtml/simplyhtml-0.13.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Sep 29 17:59:03 2012 UTC (21 months, 1 week ago) by grobian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
Marked ~x64-macos

(Portage version: 2.2.01.21003-prefix/cvs/SunOS i386)

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/simplyhtml/simplyhtml-0.13.1.ebuild,v 1.8 2011/12/27 18:45:58 halcy0n Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="doc source"
7 inherit java-pkg-2 java-ant-2 versionator
8
9 MY_PN="SimplyHTML"
10 MY_PV="$(replace_all_version_separators _)"
11 #MY_P="${MY_PN}_${PV}"
12
13 DESCRIPTION="Text processing application based on HTML and CSS files."
14 HOMEPAGE="http://${PN}.sourceforge.net"
15 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}_src_${MY_PV}.tar.gz"
16 #SRC_URI="mirror://gentoo/${P}.tar.bz2"
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
20 IUSE=""
21
22 COMMON_DEP="dev-java/javahelp
23 dev-java/gnu-regexp"
24 DEPEND=">=virtual/jdk-1.4
25 ${COMMON_DEP}"
26 RDEPEND=">=virtual/jre-1.4
27 ${COMMON_DEP}"
28
29 S="${WORKDIR}/${PN}-${MY_PV}/src"
30
31 JAVA_PKG_FILTER_COMPILER="jikes"
32
33 java_prepare() {
34 # it wants to copy lib jars
35 sed -i '/copy file/d' build.xml || die
36 }
37
38 src_compile() {
39 local cp="$(java-pkg_getjars javahelp,gnu-regexp-1)"
40 eant -Dclasspath="${cp}" jar $(use_doc)
41 }
42
43 src_install() {
44 cd ..
45 java-pkg_dojar dist/lib/${MY_PN}*.jar
46
47 dodoc readme.txt || die
48
49 use doc && java-pkg_dojavadoc dist/api
50 use source && java-pkg_dosrc src/com src/de
51 }

  ViewVC Help
Powered by ViewVC 1.1.20