Add songbird 1.9.3.
[overlay.git] / app-text / ecub / ecub-1.09.ebuild
1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 DESCRIPTION="A simple to use EPUB and MobiPocket ebook creator"
6 HOMEPAGE="http://www.juliansmart.com/ecub"
7 SRC_URI="x86? ( http://www.anthemion.co.uk/ecub/ecub_${PV}-1_i386.deb )
8 amd64? ( http://www.anthemion.co.uk/ecub/ecub_${PV}-1_amd64.deb )"
9
10 # LICENSE="eCub"
11 SLOT="0"
12 KEYWORDS="x86 amd64"
13 IUSE=""
14
15 DEPEND="app-arch/deb2targz"
16 RDEPEND=""
17
18 src_unpack() {
19         ARCH_SUFFIX=""
20         if use x86 ; then
21                 ARCH_SUFFIX="i386"
22         fi
23         if use amd64 ; then
24                 ARCH_SUFFIX="amd64"
25         fi
26         DEBFILE="ecub_${PV}-1_${ARCH_SUFFIX}.deb"
27         TGZFILE="ecub_${PV}-1_${ARCH_SUFFIX}.tar.gz"
28         cd ${WORKDIR}
29         ln -s ${DISTDIR}/${DEBFILE} .
30         deb2targz ${DEBFILE}
31         tar xzf ${TGZFILE}
32         rm ${DEBFILE}
33 }
34
35 src_compile() {
36         true
37 }
38
39 src_install() {
40         dodir /usr/bin
41         dodir /usr/share
42         dodir /usr/share/applications
43         dodir /usr/share/pixmaps
44         cd ${WORKDIR}
45         cp -R "usr/share/ecub" "${D}usr/share/" || die
46         dosym /usr/share/ecub/ecub /usr/bin/ecub
47         insinto /usr/share/pixmaps
48         newins usr/share/ecub/appicons/ecub48x48.png ecub.png
49         insinto /usr/share/applications
50         doins usr/share/ecub/ecub.desktop
51 }
52