public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-java/icedtea-web: metadata.xml ChangeLog icedtea-web-1.0.1.ebuild
@ 2011-02-18 12:38 Vlastimil Babka (caster)
  0 siblings, 0 replies; only message in thread
From: Vlastimil Babka (caster) @ 2011-02-18 12:38 UTC (permalink / raw
  To: gentoo-commits

caster      11/02/18 12:38:07

  Added:                metadata.xml ChangeLog icedtea-web-1.0.1.ebuild
  Log:
  Initial import from java-overlay, proxy-maintained by Andrew John Hughes <gnu_andrew@member.fsf.org>
  
  (Portage version: 2.2.0_alpha23/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-java/icedtea-web/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>java</herd>
<maintainer>
  <email>gnu_andrew@member.fsf.org</email>
  <name>Andrew John Hughes</name>
  <description>Proxy Maintainer</description>
</maintainer>
<maintainer>
  <email>caster@gentoo.org</email>
  <name>Vlastimil Babka</name>
  <description>Commiter (CC me)</description>
</maintainer>
<longdescription>FOSS Java Web Start and optional browser plugin implementation based on NetX, to be used with icedtea.</longdescription>
<use>
  <flag name="nsplugin">Enable the browser plugin (NPPlugin).</flag>
</use>
</pkgmetadata>



1.1                  dev-java/icedtea-web/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# ChangeLog for dev-java/icedtea-web
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/ChangeLog,v 1.1 2011/02/18 12:38:07 caster Exp $

*icedtea-web-1.0.1 (18 Feb 2011)

  18 Feb 2011; Vlastimil Babka <caster@gentoo.org> +icedtea-web-1.0.1.ebuild,
  +metadata.xml:
  Initial import from java-overlay, proxy-maintained by Andrew John Hughes
  <gnu_andrew@member.fsf.org>




1.1                  dev-java/icedtea-web/icedtea-web-1.0.1.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.0.1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.0.1.ebuild?rev=1.1&content-type=text/plain

Index: icedtea-web-1.0.1.ebuild
===================================================================
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.0.1.ebuild,v 1.1 2011/02/18 12:38:07 caster Exp $
# Build written by Andrew John Hughes (ahughes@redhat.com)

EAPI="2"

inherit eutils java-pkg-2 java-vm-2

LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
SLOT="6"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"

DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
HOMEPAGE="http://icedtea.classpath.org"

IUSE="doc +nsplugin"

RDEPEND="dev-java/icedtea:6
	 nsplugin? ( >=net-libs/xulrunner-1.9.1 )"
DEPEND="${RDEPEND}"

# a bit of hack so the VM switching is triggered without causing dependency troubles
JAVA_PKG_NV_DEPEND=">=virtual/jdk-1.6"
JAVA_PKG_WANT_SOURCE="1.6"
JAVA_PKG_WANT_TARGET="1.6"

pkg_setup() {
	# quite a hack since java-config does not provide a way for a package
	# to limit supported VM's for building and their preferred order
	if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
		einfo "Honoring user-set JAVA_PKG_FORCE_VM"
	elif has_version dev-java/icedtea:6; then
		JAVA_PKG_FORCE_VM="icedtea6"
	else
		JAVA_PKG_FORCE_VM=""
		# don't die just yet if merging a binpkg - bug #258423
		DIE_IF_NOT_BINPKG=true
	fi

	# if the previous failed, don't even run java eclasses pkg_setup
	# as it might also die when no VM is present
	if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then
		einfo "Forced vm ${JAVA_PKG_FORCE_VM}"
		java-vm-2_pkg_setup
		java-pkg-2_pkg_setup
	fi
}

unset_vars() {
	unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
}

src_unpack() {
	if [[ -n ${DIE_IF_NOT_BINPKG} ]]; then
		die "Unable to find a supported VM for building"
	fi

	default
}

src_configure() {
	local vmhome=$(java-config -O)
	local icedtea6dir="${ROOT}usr/$(get_libdir)/icedtea6"

	unset_vars

	if [[ ${vmhome} == ${icedtea6dir} ]] ; then
		installdir=${vmhome}
		VMHANDLE="icedtea6"
	else
		die "Unexpected install location of IcedTea6"
	fi

	elog "Installing IcedTea-Web in ${installdir}"
	if [ ! -e ${installdir} ] ; then
		eerror "Could not find JDK install directory ${installdir}."
	fi

	econf \
		--prefix=${installdir} \
		--with-jdk-home=${vmhome} \
		$(use_enable doc docs) \
		$(use_enable nsplugin plugin) \
		|| die "configure failed"
}

src_install() {
	emake -j1 DESTDIR="${D}" install || die "Install failed"
	dodoc AUTHORS README NEWS || die

	if use nsplugin; then
		local arch=${ARCH};
		use x86 && arch=i386;
		install_mozilla_plugin "${installdir}/jre/lib/${arch}/IcedTeaPlugin.so";
	fi
}

pkg_postinst() {
	java-vm_check-nsplugin
	java_mozilla_clean_

	if use nsplugin; then
		elog "The icedtea browser plugin (NPPlugin) can be enabled using eselect java-nsplugin"
		elog "Note that the plugin works only in browsers based on xulrunner-1.9.1 or later"
		elog "such as Firefox 3.5+, Chromium and perhaps some others too."
	fi
}

pkg_prerm() {
	# override the java-vm-2 eclass check for removing a system VM, as it doesn't make sense here
	:;
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-18 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18 12:38 [gentoo-commits] gentoo-x86 commit in dev-java/icedtea-web: metadata.xml ChangeLog icedtea-web-1.0.1.ebuild Vlastimil Babka (caster)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox