summaryrefslogtreecommitdiff
blob: 08262b49b498e18983c480e7ff516cfa1f907f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/java-sdk-docs/java-sdk-docs-1.2.2.006.ebuild,v 1.1.1.1 2005/11/30 09:47:43 chriswhite Exp $

At="jdk-1_2_2_006-doc.tar.gz"
S="${WORKDIR}/jdk1.2.2/docs"
SRC_URI="jdk-1_2_2_006-doc.tar.gz"
DESCRIPTION="Javadoc for Java SDK version 1.2.2"
HOMEPAGE="http://java.sun.com/products/archive/"
LICENSE="sun-j2sl"
SLOT="1.2"
KEYWORDS="~x86"
RESTRICT="fetch"
IUSE=""

DOWNLOAD_URL="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=7549-j2sdk-1.2.2_006-doc-oth-JPR&SiteId=JSC&TransactionId=noreg"

pkg_nofetch() {
	einfo "Please download ${SRC_URI} from"
	einfo "${DOWNLOAD_URL}"
	einfo "and move it to ${DISTDIR}"
}

src_install(){
	dohtml index.html

	# Copy each of the directories over.
	local dirs="api guide images relnotes tooldocs"
	for i in $dirs ; do
		cp -dPR $i ${D}/usr/share/doc/${P}/html
	done
}