/[gentoo-x86]/net-misc/pxes/pxes-0.9-r1.ebuild
Gentoo

Contents of /net-misc/pxes/pxes-0.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Sep 18 14:13:48 2006 UTC (13 years, 2 months ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Change to using virtual/cdrtools for bug #147880, cleaning up older ebuilds, and adding dependency for virtual/cdrtools if USE=dvdr, also.
(Portage version: 2.1.1)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/pxes/pxes-0.9-r1.ebuild,v 1.5 2006/03/20 21:12:27 wolf31o2 Exp $
4
5 inherit eutils perl-app
6
7 IUSE="cdr"
8 MY_PV=${PV}-1
9 DESCRIPTION="PXES is a package for building thin clients using multiple types of clients"
10 HOMEPAGE="http://pxes.sourceforge.net"
11 SRC_URI="mirror://sourceforge/pxes/${PN}-base-i586-${MY_PV}.tar.gz
12 mirror://sourceforge/pxes/pxesconfig-${MY_PV}.tar.gz"
13
14 KEYWORDS="amd64 x86"
15
16 SLOT="0"
17 LICENSE="GPL-2"
18 DEPEND=">=dev-lang/perl-5.8.0-r12"
19
20 RDEPEND="${DEPEND}
21 dev-perl/gtk-perl
22 >=dev-perl/glade-perl-0.61
23 sys-fs/squashfs-tools
24 cdr? ( app-cdr/cdrtools )"
25
26 dir=/opt/${P}
27 Ddir=${D}/${dir}
28
29 die_from_busted_gtk-perl() {
30 ewarn "PXES requires that gtk-perl was built with USE=gnome. You can"
31 ewarn "fix this by doing the following:"
32 echo
33 einfo "mkdir -p /etc/portage"
34 einfo "echo 'dev-perl/gtk-perl gnome' >> /etc/portage/package.use"
35 einfo "emerge --oneshot dev-perl/gtk-perl"
36 die "gtk-perl requires USE=gnome"
37 }
38
39 pkg_setup() {
40 built_with_use dev-perl/gtk-perl gnome || die_from_busted_gtk-perl
41 }
42
43 src_compile() {
44 cd ${WORKDIR}/pxesconfig-${PV}
45 SRC_PREP="yes"
46 perl Makefile.PL PREFIX=${D}/usr INSTALLDIRS=vendor DESTDIR=${D}
47 perl-app_src_compile || die
48 }
49
50 src_install() {
51 dodir ${dir}
52 cp -r ${S}/stock ${Ddir} || die "Copying files"
53 cp -pPR ${S}/tftpboot ${D} || die "Copying tftpboot"
54 dodir ${dir}/tools
55 dosym /usr/bin/mksquashfs ${dir}/tools/mksquashfs
56 dodoc Documentation/ChangeLog
57 dohtml -r Documentation/html/*
58 cd ${WORKDIR}/pxesconfig-${PV}
59 perl-module_src_install || die
60 # Cleanup from improper install
61 cp -r ${D}/${D}/usr ${D}
62 rm -rf ${D}/var
63 }

  ViewVC Help
Powered by ViewVC 1.1.20