diff options
author | D.M.D. Ljungmark <spider@gentoo.org> | 2002-06-24 02:03:26 +0000 |
---|---|---|
committer | D.M.D. Ljungmark <spider@gentoo.org> | 2002-06-24 02:03:26 +0000 |
commit | b858e771eeb2d26ca662d1f88000a7628efd1693 (patch) | |
tree | 288d0f2fcac9644b40e4d4b0e3fdcc48d542ad8e | |
parent | new version (diff) | |
download | gentoo-2-b858e771eeb2d26ca662d1f88000a7628efd1693.tar.gz gentoo-2-b858e771eeb2d26ca662d1f88000a7628efd1693.tar.bz2 gentoo-2-b858e771eeb2d26ca662d1f88000a7628efd1693.zip |
hacking around a .desktop install entry
-rw-r--r-- | app-misc/xscreensaver/ChangeLog | 7 | ||||
-rw-r--r-- | app-misc/xscreensaver/files/digest-xscreensaver-4.05-r1 | 1 | ||||
-rw-r--r-- | app-misc/xscreensaver/xscreensaver-4.05-r1.ebuild | 93 |
3 files changed, 99 insertions, 2 deletions
diff --git a/app-misc/xscreensaver/ChangeLog b/app-misc/xscreensaver/ChangeLog index 3787ec1e8156..50a2b9b30964 100644 --- a/app-misc/xscreensaver/ChangeLog +++ b/app-misc/xscreensaver/ChangeLog @@ -1,8 +1,11 @@ # ChangeLog for app-misc/xscreensaver # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/app-misc/xscreensaver/ChangeLog,v 1.13 2002/06/11 11:11:33 seemant Exp $ - +# $Header: /var/cvsroot/gentoo-x86/app-misc/xscreensaver/ChangeLog,v 1.14 2002/06/24 02:00:58 spider Exp $ +xscreensaver-4.05 (22 Jun 2002) + 22 Jun 2002; Spider <spider@gentoo.org> xscreensaver-4.05-r1.ebuild : + since I can't find how the .desktop is installed properly, I hacked around it with a use gnome () statement. works. + *xscreensaver-4.05 (11 Jun 2002) 11 Jun 2002; Seemant Kulleen <seemant@gentoo.org> diff --git a/app-misc/xscreensaver/files/digest-xscreensaver-4.05-r1 b/app-misc/xscreensaver/files/digest-xscreensaver-4.05-r1 new file mode 100644 index 000000000000..abb2ba26d7b8 --- /dev/null +++ b/app-misc/xscreensaver/files/digest-xscreensaver-4.05-r1 @@ -0,0 +1 @@ +MD5 39b05d4da14158638e501e3bc31c0943 xscreensaver-4.05.tar.gz 2914308 diff --git a/app-misc/xscreensaver/xscreensaver-4.05-r1.ebuild b/app-misc/xscreensaver/xscreensaver-4.05-r1.ebuild new file mode 100644 index 000000000000..25372563ce04 --- /dev/null +++ b/app-misc/xscreensaver/xscreensaver-4.05-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Martin Schlemmer <azarah@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/app-misc/xscreensaver/xscreensaver-4.05-r1.ebuild,v 1.1 2002/06/24 02:03:26 spider Exp $ + +S="${WORKDIR}/${P/.2/}" +DESCRIPTION="a modular screensaver for X11" +SRC_URI="http://www.jwz.org/xscreensaver/${P}.tar.gz" +HOMEPAGE="http://www.jwz.org/xscreensaver/" + +DEPEND="virtual/x11 sys-devel/bc + gtk? ( x11-libs/gtk+ ) + motif? ( >=x11-libs/openmotif-2.1.30 ) + opengl? ( virtual/opengl >=media-libs/gle-3.0.1 ) + gnome? ( media-libs/gdk-pixbuf + >=gnome-base/control-center-1.4.0.1-r1 ) + pam? ( >=sys-libs/pam-0.75 ) + dev-libs/libxml2" + +src_unpack() { + + unpack ${A} + cd ${S} + + use nls && ( \ + cd po + patch -p0 < ${FILESDIR}/${P}-gentoo.diff + ) || ( \ + cp Makefile.in Makefile.in.orig + sed "s:hacks/glx po:hacks/glx:" \ + Makefile.in.orig > Makefile.in + ) +} + +src_compile() { + local myconf="" + use gnome \ + && myconf="${myconf} --with-gnome" \ + || myconf="${myconf} --without-gnome" + + use gtk \ + && myconf="${myconf} --with-gtk" \ + || myconf="${myconf} --without-gtk" + + use motif \ + && myconf="${myconf} --with-motif" \ + || myconf="${myconf} --without-motif" + + use pam \ + && myconf="${myconf} --with-pam" \ + || myconf="${myconf} --without-pam" + + use opengl \ + && myconf="${myconf} --with-gl --with-gle" \ + || myconf="${myconf} --without-gl --without-gle" + + export C_INCLUDE_PATH="/usr/include/libxml2/libxml/" + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --host="${CHOST}" \ + --enable-hackdir=/usr/lib/xscreensaver \ + --with-mit-ext \ + --with-dpms-ext \ + --with-xinerama-ext \ + --with-xf86vmode-ext \ + --with-xf86gamma-ext \ + --with-proc-interrupts \ + --with-xpm \ + --with-xshm-ext \ + --with-xdbe-ext \ + --enable-locking \ + ${myconf} || die + + emake || die +} + +src_install() { + + [ -n "$KDEDIR" ] && dodir "$KDEDIR/bin" + + make install_prefix="${D}" install || die + # install correctly in gnome2 + use gnome && ( \ + dodir /usr/share/gnome/capplets + insinto /usr/share/gnome/capplets + doins "driver/screensaver-properties.desktop" + ) + + use pam && ( \ + insinto /etc/pam.d + doins "${FILESDIR}/pam.d/xscreensaver" + ) +} |