# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils DESCRIPTION=" XML Editor is a complete cross platform XML editor providing the tools for XML authoring, XML conversion, XML Schema, DTD, Relax NG and Schematron development, XPath, XSLT, XQuery debugging, SOAP and WSDL testing." HOMEPAGE="http://www.oxygenxml.com" SRC_URI="http://mirror.oxygenxml.com/InstData/Editor/All/oxygen.tar.gz -> ${P}.tar.gz" LICENSE="Oxygen" SLOT="0" KEYWORDS="~ppc" RDEPEND=">=virtual/jre-1.5" RESTRICT="strip" INSTALL_DIR="/opt/${PN}" S=${WORKDIR}/oxygen src_unpack () { unpack ${A} cd ${S} } src_install() { dodir ${INSTALL_DIR} cp -R ${S}/* ${D}/${INSTALL_DIR}/ || die "Install failed!" dosym ${INSTALL_DIR}/oxygen.sh /usr/bin/oxygenxml doicon ${S}/Oxygen128.png make_desktop_entry "oxygenxml" " XML Editor" ${D}/${INSTALL_DIR}/Oxygen128.png "Application;Development" } pkg_postinst() { einfo "To run XML Editor execute \"oxygenxml\"." }