summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-05-18 15:43:11 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-05-18 15:43:11 +0000
commit45b32ff984ec7a803c666cf72ece62d1e4d2e940 (patch)
tree88cdcd0bec20e59cfa981523b21d3e79c5dfcafa /net-misc/pxes/pxes-1.0.ebuild
parentremove obsolete java-scheme virtual. remove versions from provide: bug 93028 (diff)
downloadgentoo-2-45b32ff984ec7a803c666cf72ece62d1e4d2e940.tar.gz
gentoo-2-45b32ff984ec7a803c666cf72ece62d1e4d2e940.tar.bz2
gentoo-2-45b32ff984ec7a803c666cf72ece62d1e4d2e940.zip
Initial PXES 1.0 ebuild.
Diffstat (limited to 'net-misc/pxes/pxes-1.0.ebuild')
-rw-r--r--net-misc/pxes/pxes-1.0.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/net-misc/pxes/pxes-1.0.ebuild b/net-misc/pxes/pxes-1.0.ebuild
new file mode 100644
index 000000000000..4f2f1b7e74a0
--- /dev/null
+++ b/net-misc/pxes/pxes-1.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/pxes/pxes-1.0.ebuild,v 1.1 2005/05/18 15:43:11 wolf31o2 Exp $
+
+IUSE="cdr"
+DESCRIPTION="PXES is a package for building thin clients using multiple types of clients"
+HOMEPAGE="http://pxes.sourceforge.net"
+SRC_URI="mirror://sourceforge/pxes/${PN}-base-i586-${PV}-6.tar.gz
+ mirror://sourceforge/pxes/pxesconfig-${PV}-7.tar.gz"
+
+KEYWORDS="~x86 ~amd64"
+
+SLOT="0"
+LICENSE="GPL-2"
+DEPEND=">=dev-lang/perl-5.8.0-r12"
+
+RDEPEND="${DEPEND}
+ dev-perl/gtk-perl
+ >=dev-perl/glade-perl-0.61
+ sys-fs/squashfs-tools
+ cdr? ( app-cdr/cdrtools )"
+
+inherit eutils perl-module
+
+dir=/opt/${P}
+Ddir=${D}/${dir}
+
+die_from_busted_gtk-perl() {
+ ewarn "PXES requires that gtk-perl was built with USE=gnome. You can"
+ ewarn "fix this by doing the following:"
+ echo
+ einfo "mkdir -p /etc/portage"
+ einfo "echo 'dev-perl/gtk-perl gnome' >> /etc/portage/package.use"
+ einfo "emerge --oneshot dev-perl/gtk-perl"
+ die "gtk-perl requires USE=gnome"
+}
+
+pkg_setup() {
+ built_with_use dev-perl/gtk-perl gnome || die_from_busted_gtk-perl
+}
+
+src_compile() {
+ cd ${WORKDIR}/pxesconfig-${PV}
+ SRC_PREP="yes"
+ perl Makefile.PL PREFIX=${D}/usr INSTALLDIRS=vendor DESTDIR=${D}
+ perl-module_src_compile || die
+}
+
+src_install() {
+ dodir ${dir}
+ cp -r ${S}/stock ${Ddir} || die "Copying files"
+ cp -a ${S}/tftpboot ${D} || die "Copying tftpboot"
+ dodir ${dir}/tools
+ dosym /usr/bin/mksquashfs ${dir}/tools/mksquashfs
+ dodoc Documentation/ChangeLog
+ dohtml -r Documentation/html/*
+ cd ${WORKDIR}/pxesconfig-${PV}
+ perl-module_src_install || die
+ # Cleanup from improper install
+ cp -r ${D}/${D}/usr ${D}
+ rm -rf ${D}/var
+}