--- /usr/portage/net-irc/xchat/xchat-2.0.4.ebuild 2003-08-22 15:09:45.000000000 +0800 +++ /usr/portage/net-irc/xchat/xchat-2.0.4.ebuild 2003-08-31 17:44:05.865926080 +0800 @@ -12,6 +12,8 @@ SLOT="2" KEYWORDS="~x86 ~ppc ~sparc ~alpha hppa" IUSE="perl tcltk python ssl gtk mmx ipv6 nls" +# Local use flag for the text frontend (bug #26427) +IUSE="${IUSE} xchattext xchatnogtk" # Added for to fix a sparc seg fault issue by Jason Wever if [ ${ARCH} = "sparc" ] @@ -21,7 +23,7 @@ RDEPEND=">=dev-libs/glib-2.0.3 - gtk? ( >=x11-libs/gtk+-2.0.3 ) + !xchatnogtk ( >=x11-libs/gtk+-2.0.3 ) perl? ( >=dev-lang/perl-5.6.1 ) ssl? ( >=dev-libs/openssl-0.9.6d ) python? ( dev-lang/python ) @@ -36,8 +38,14 @@ # instead of python-config (#25943) unset PYTHONPATH + # test for local usage of xchatnogtk + local gtkconf + use xchatnogtk \ + && gtkconf="--disable-gtkfe" \ + || gtkconf="--enable-gtkfe" + econf \ - `use_enable gtk gtkfe` \ + ${gtkconf} \ `use_enable ssl openssl` \ `use_enable perl` \ `use_enable python` \ @@ -45,7 +53,7 @@ `use_enable mmx` \ `use_enable ipv6` \ `use_enable nls` \ - --enable-textfe \ + `use_enable xchattext textfe` \ --program-suffix=-2 \ || die "Configure failed" @@ -66,15 +74,3 @@ dodoc AUTHORS COPYING ChangeLog README* } -pkg_postinst( ) { - - # warnings for people for who USE="gtk2 -gtk" doesnt behave as - # they expect, see bug #26427 - if [ ! `use gtk` ]; then - echo "" - ewarn "If you wish to use the gtk2 frontend for xchat, please" - ewarn "USE=\"gtk\" emerge xchat" - echo "" - fi - -}