Applied tabdrag patch
authorTom William Payne <twp@gentoo.org>
Tue, 9 Sep 2003 20:56:03 +0000 (20:56 +0000)
committerTom William Payne <twp@gentoo.org>
Tue, 9 Sep 2003 20:56:03 +0000 (20:56 +0000)
x11-wm/ion-devel/Manifest
x11-wm/ion-devel/files/digest-ion-devel-20030814-r2 [new file with mode: 0644]
x11-wm/ion-devel/files/tabdrag-20030814.patch [new file with mode: 0644]
x11-wm/ion-devel/ion-devel-20030814-r2.ebuild [new file with mode: 0644]

index 75dfd6cc10970fc53eab35e8261b2fc010efb317..08b73a9120a5023fc606f877a6454a127277317d 100644 (file)
@@ -1,6 +1,6 @@
-MD5 040e092dfb2be167392ac87ece6e0ca5 ChangeLog 2022
+MD5 4be4b14fe72c827fb0c96fb2ac69b460 ChangeLog 2119
 MD5 801f0f38476e0176a46576074d296005 ion-devel-20030814-r1.ebuild 2044
-MD5 b847accfc0b9ab2ee57ae28133f424c4 ion-devel-20030814-r2.ebuild 2084
+MD5 393b3bc407717cf7eae403f531476ec6 ion-devel-20030814-r2.ebuild 2079
 MD5 3bdd03a83defef6b4103c327cdebeb37 ion-devel-20030131.ebuild 1440
 MD5 4bf4cee3f750c7da52bd12d4a5d4c990 ion-devel-20030327.ebuild 1035
 MD5 959484a17e263506435e0bf5a208112e ion-devel-20030814.ebuild 2695
diff --git a/x11-wm/ion-devel/files/digest-ion-devel-20030814-r2 b/x11-wm/ion-devel/files/digest-ion-devel-20030814-r2
new file mode 100644 (file)
index 0000000..fb18283
--- /dev/null
@@ -0,0 +1 @@
+MD5 f5c779ff79ef982d76dec2f1e57d4034 ion-devel-20030814.tar.gz 284786
diff --git a/x11-wm/ion-devel/files/tabdrag-20030814.patch b/x11-wm/ion-devel/files/tabdrag-20030814.patch
new file mode 100644 (file)
index 0000000..fd018c8
--- /dev/null
@@ -0,0 +1,11 @@
+--- ion-devel-20030814/ioncore/eventh.c        2003-08-06 15:55:06.000000000 +0200
++++ ion-devel/ioncore/eventh.c 2003-09-09 22:22:43.000000000 +0200
+@@ -589,7 +589,7 @@
+                        * release) as one.
+                        */
+                       if(XPeekEvent(wglobal.dpy, &tmp)){
+-                              if(ev->type==MotionNotify || ev->type==ButtonRelease)
++                              if(tmp.type==MotionNotify || tmp.type==ButtonRelease)
+                                       XNextEvent(wglobal.dpy, ev);
+                       }
+               }
diff --git a/x11-wm/ion-devel/ion-devel-20030814-r2.ebuild b/x11-wm/ion-devel/ion-devel-20030814-r2.ebuild
new file mode 100644 (file)
index 0000000..cc5b5e3
--- /dev/null
@@ -0,0 +1,77 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/ion-devel/ion-devel-20030814-r2.ebuild,v 1.1 2003/09/09 20:55:56 twp Exp $
+
+MY_P=${PN}-${PV/_p/-}
+DESCRIPTION="A tiling tabbed window manager designed with keyboard users in mind"
+HOMEPAGE="http://www.iki.fi/tuomov/ion/"
+SRC_URI="http://modeemi.fi/~tuomov/dl/${MY_P}.tar.gz"
+LICENSE="Clarified-Artistic"
+SLOT="0"
+KEYWORDS="~alpha ~arm ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="xinerama"
+DEPEND="virtual/x11
+       app-misc/run-mailcap
+       >=dev-lang/lua-5"
+S=${WORKDIR}/${MY_P}
+
+inherit eutils
+
+src_compile() {
+
+       epatch ${FILESDIR}/system.mk-${PV}.patch
+       epatch ${FILESDIR}/stripws-${PV}.patch
+       epatch ${FILESDIR}/tabdrag-${PV}.patch
+
+       cp system.mk ${T}/system.mk
+       sed -e "s/@CFLAGS@/${CFLAGS}/g" \
+               -e "s/@PF@/${PF}/g" \
+               ${T}/system.mk > system.mk
+
+       if [ `use xinerama` ]; then
+               einfo Enabling Xinerama support
+               # enabled by default
+               eend 0
+       else
+               einfo Disabling Xinerama support
+               cp system.mk ${T}/system.mk
+               sed -e 's/\(XINERAMA_LIBS=-lXinerama\)/#\1/' \
+                       -e 's/#\(DEFINES += -DCF_NO_XINERAMA\)/\1/' \
+                       ${T}/system.mk > system.mk
+               eend $?
+       fi
+
+       if has_version '<x11-base/xfree-4.3.0'; then
+               einfo Enabling Xfree\<4.3.0/Opera/UTF-8 bug workaround
+               # enabled by default
+               eend 0
+       else
+               einfo Disabling Xfree\<4.3.0/Opera/UTF-8 bug workaround
+               cp system.mk ${T}/system.mk
+               sed -e 's/\(DEFINES += -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND\)/#\1/' \
+                       ${T}/system.mk > system.mk
+               eend $?
+       fi
+
+       emake || die
+
+}
+
+src_install() {
+
+       make PREFIX=${D}/usr ETCDIR=${D}/etc/X11/ion-devel install || die
+       dobin scripts/pwm
+
+       echo -e "#!/bin/sh\n/usr/bin/ion" > ${T}/ion-devel
+       echo -e "#!/bin/sh\n/usr/bin/pwm" > ${T}/pwm
+       exeinto /etc/X11/Sessions
+       doexe ${T}/ion-devel ${T}/pwm
+
+}
+
+pkg_postinst() {
+       ewarn The configuration file format has changed. You may have to re-write your
+       ewarn configuration files.
+       ewarn To delete stale system-wide configuration files, run the command:
+       ewarn "\trm -f ${R}etc/X11/ion-devel\*.conf"
+}