/[gentoo-x86]/sci-libs/jmol-acme/jmol-acme-1.0.ebuild
Gentoo

Contents of /sci-libs/jmol-acme/jmol-acme-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jun 26 10:21:07 2011 UTC (2 years, 9 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +6 -7 lines
Straight out QA issues

(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/jmol-acme/jmol-acme-1.0.ebuild,v 1.4 2010/01/21 11:12:09 markusle Exp $
4
5 EAPI=4
6
7 inherit java-pkg-2 java-ant-2
8
9 MY_P="Acme"
10
11 # It proved difficult to recompile the whole Acme package, so we'll only take what we need.
12
13 DESCRIPTION="Portions of the Acme collection required for jMol"
14 HOMEPAGE="http://www.acme.com/"
15 SRC_URI="http://www.acme.com/resources/classes/${MY_P}.tar.gz"
16
17 LICENSE="BSD-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE=""
21
22 DEPEND=">=virtual/jdk-1.4"
23 RDEPEND=">=virtual/jre-1.4"
24
25 S=${WORKDIR}/${MY_P}
26
27 src_prepare() {
28 mkdir -p classes
29 find . -name \*.class -delete
30 java-pkg_filter-compiler jikes
31 }
32
33 src_compile() {
34 cp "${FILESDIR}/src.list" "${T}" || die
35 ejavac -sourcepath "" -d "${S}/classes" "@${T}/src.list"
36 jar cf "${PN}.jar" -C classes . || die "failed to create jar"
37 }
38
39 src_install() {
40 java-pkg_dojar ${PN}.jar
41 }

  ViewVC Help
Powered by ViewVC 1.1.20