Rev 208 | Rev 210 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# This ebuild is a modified version of ebuild from java overlay.
EAPI="5"
inherit eutils
ICON="sweethome3d"
MY_PN="SweetHome3D"
DESCRIPTION="Sweet Home 3D is a free interior design application."
HOMEPAGE="http://sweethome3d.sourceforge.net/"
SRC_URI="amd64? ( mirror://sourceforge/sweethome3d/${MY_PN}-${PV}-linux-x64.tgz )
x86? ( mirror://sourceforge/sweethome3d/${MY_PN}-${PV}-linux-x86.tgz )
http://dev.gentoo.org/~fordfrog/distfiles/${ICON}.png"
LICENSE="GPL-3"
IUSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=">=virtual/jre-1.6
!media-gfx/sweethome3d"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_PN}-${PV}"
src_unpack() {
x86? unpack ${MY_PN}-${PV}-linux-x86.tgz
amd64? unpack ${MY_PN}-${PV}-linux-x64.tgz
}
src_install() {
dodir /opt/sweethome3d-bin
insinto /opt/sweethome3d-bin
doins -r lib
exeinto /opt/sweethome3d-bin
doexe SweetHome3D
sed -i -e 's/\"$PROGRAM_DIR\"\/jre1.6.0_45\/bin\///g' ${D}/opt/sweethome3d-bin/${MY_PN} || die "Sed broke!"
dosym /opt/sweethome3d-bin/${MY_PN} /usr/bin/${MY_PN}
doicon "${DISTDIR}"/${ICON}.png
dodoc -r *.TXT
dohtml -r THIRDPARTY-LICENSE-JMF.HTML
make_desktop_entry ${MY_PN} "${MY_PN}" "${ICON}"
}