diff options
Diffstat (limited to 'app-office/openproj-bin/openproj-bin-1.4.ebuild')
-rw-r--r-- | app-office/openproj-bin/openproj-bin-1.4.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-office/openproj-bin/openproj-bin-1.4.ebuild b/app-office/openproj-bin/openproj-bin-1.4.ebuild new file mode 100644 index 000000000000..44ccbde775cf --- /dev/null +++ b/app-office/openproj-bin/openproj-bin-1.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/openproj-bin/openproj-bin-1.4.ebuild,v 1.1 2010/12/01 13:37:38 vapier Exp $ + +EAPI="2" + +inherit eutils + +MY_PN=${PN/-bin} +MY_P="${MY_PN}-${PV}" +DESCRIPTION="free open source desktop alternative to Microsoft Project" +HOMEPAGE="http://openproj.org/" +SRC_URI="mirror://sourceforge/openproj/${MY_P}.tar.gz + http://openproj.cvs.sourceforge.net/viewvc/openproj/openproj_build/resources/openproj.desktop?revision=1.2 -> ${MY_PN}-1.2.desktop + http://openproj.cvs.sourceforge.net/viewvc/openproj/openproj_build/resources/openproj.png?revision=1.1 -> ${MY_PN}-1.1.png" + +LICENSE="CPAL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND="" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${MY_P}.tar.gz + cp "${DISTDIR}"/${MY_PN}-*.{desktop,png} ./ || die + cd "${S}" + rm -rf license openproj.bat readme.html +} + +src_prepare() { + sed -i \ + -e "/^OPENPROJ_HOME0=/s:=.*:=/opt/${MY_PN}:" \ + openproj.sh || die +} + +src_install() { + local d="/opt/${MY_PN}" + insinto ${d} + doins -r * || die + fperms a+rx ${d}/openproj.sh + + dodir /opt/bin + dosym ../${MY_PN}/openproj.sh /opt/bin/openproj || die + + newmenu ../${MY_PN}-*.desktop ${MY_PN}.desktop || die + newmenu ../${MY_PN}-*.png ${MY_PN}.png || die +} |