# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="open and view PDF-Documents, create, complete and save PDF-Forms, as well as send them" HOMEPAGE="http://www.cabaret-solutions.com/" SRC_URI=" x86? ( http://www.cabaret-solutions.com/misc/downloads/${PN}_${PV}_linux-gtk.tar.gz ) amd64? ( http://www.cabaret-solutions.com/misc/downloads/${PN}_${PV}_linux-gtk-x86_64.tar.gz ) " LICENSE="FREE for personal use" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="" RDEPEND="virtual/jre" #RESTRICT="fetch" src_compile() { einfo "Nothing to compile for ${P}." } src_unpack() { unpack "${A}" cd "${S}/" # new interface sed -i -e 's:\"`dirname\ $0`\":\/opt\/cabaretstage\/:' \ cabaretstage.sh || die "sed failed" } pkg_nofetch() { einfo "Download ${PN} manually from cabaret's website at" einfo ${HOMEPAGE} einfo "" einfo "Choose DOWNLOADS" einfo "Choose Linux tab" einfo "Choose either x86-32 or x86-64 version" einfo "" einfo "Then place the file ${SRC_URI}" einfo "into ${DISTDIR} and restart the emerge." } src_install () { dodir /opt/${PN} cp -R "${S}"/* ${D}/opt/${PN} dosym /opt/${PN}/cabaretstage.sh /opt/bin/cabaretstage dosym /opt/${PN}/cabaret.png /usr/share/icons/hicolor/48x48/apps/cabaret.png make_desktop_entry "${PN}" "CABAReT Stage PDF tool" cabaret Office } pkg_postinst() { elog "To run ${PN} just type \"${PN}\"" }