On Wed, Oct 15, 2008 at 02:37:33AM +0200, Jehan wrote:

> I am advancing well, and close to release some kind of "alpha".

For Gentoo users -- I wrote a live ebuild for the utf8 branch. It's
attached.

It the executable 'mrxvt-utf8', and suffixes all shared files with a
'utf8', so this can co-exist with the regular version of mrxvt.

Please test extensively. It will be very nice if this is finally in the
main tree.

GI

-- 
'Willpower' -- The ability to eat only one salted peanut.
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Author: Gautam Iyer <[EMAIL PROTECTED]>
# $Header: $

inherit eutils subversion

DESCRIPTION="Multi-tabbed rxvt clone with XFT, transparent background and UTF8 
support."
HOMEPAGE="http://materm.sourceforge.net/";
#SRC_URI="mirror://sourceforge/materm/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~mips ~ppc ~x86"

LINGUAS_IUSE="linguas_el linguas_ja linguas_ko linguas_th linguas_zh_CN
        linguas_zh_TW"
IUSE="debug png jpeg session truetype menubar utempter xpm ${LINGUAS_IUSE}"

ESVN_REPO_URI="https://materm.svn.sourceforge.net/svnroot/materm/mrxvt05utf8";

RDEPEND="!ppc-macos? (
                png? ( media-libs/libpng )
                utempter? ( sys-libs/libutempter ) )
        jpeg? ( media-libs/jpeg )
        truetype? ( virtual/xft
                media-libs/fontconfig
                media-libs/freetype )
        x11-libs/libX11
        x11-libs/libXt
        xpm? ( x11-libs/libXpm )
        x11-libs/libXrender"

DEPEND="${RDEPEND}
        x11-proto/xproto"

src_unpack() {
        subversion_src_unpack

        # 2008-05-02: make dies without the ChangeLog file
        if [[ ! -f ChangeLog ]]; then
                echo "The ChangeLog is no longer maintained. See the 
subversion" \
                        "repository for the current ChangeLog." > ChangeLog
        fi

        ./bootstrap.sh
}

src_compile() {

        local myconf

        # if you want to pass any other flags, use EXTRA_ECONF.
        if use linguas_el ; then
                myconf="${myconf} --enable-greek"
        fi
        if use linguas_ja ; then
                # --with-encoding=sjis
                myconf="${myconf} --enable-kanji --with-encoding=eucj"
        fi
        if use linguas_ko ; then
                myconf="${myconf} --enable-kr --with-encoding=kr"
        fi
        if use linguas_th ; then
                myconf="${myconf} --enable-thai"
        fi
        if use linguas_zh_CN ; then
                # --with-encoding=gbk
                myconf="${myconf} --enable-gb --with-encoding=gb"
        fi
        if use linguas_zh_TW ; then
                myconf="${myconf} --enable-big5 --with-encoding=big5"
        fi

        # 2006-03-13 gi1242: mrxvt works best with TERM=rxvt AND correctly set
        # termcap / terminfo entries. If the rxvt termcap / terminfo entries are
        # messed up then then it's better to set TERM=xterm.
        #
        # Provide support for this by setting the or RXVT_TERM environment 
variables
        # before emerging, as done in the rxvt ebuild.

        if [[ -n ${RXVT_TERM} ]]; then
                myconf="${myconf} --with-term=${RXVT_TERM}"
        fi

        econf                                                                   
\
                --enable-everything                                     \
                --with-atab-extra=25                            \
                --sysconfdir=/etc/mrxvt-utf8            \
                $(use_enable debug)                                     \
                $(use_enable png)                                       \
                $(use_enable jpeg)                                      \
                $(use_enable xpm)                                       \
                $(use_enable session sessionmgr)        \
                $(use_enable truetype xft)                      \
                $(use_enable menubar)                           \
                ${myconf} || die

        emake || die

}

src_install() {
        make DESTDIR="${D}" docdir=/usr/share/doc/"${PF}" install || die

        # Rename files to avoid conflicts with a possibly installed mrxvt.
        mv ${D}/usr/bin/mrxvt ${D}/usr/bin/mrxvt-utf8 || die
        mv ${D}/usr/share/man/man1/mrxvt.1 ${D}/usr/share/man/man1/mrxvt-utf8.1 
\
                || die
        cd ${D}/usr/share/pixmaps/ || die
        (for i in *; do mv ${i} ${i%.*}-utf8.${i##*.}; done) || die
        cd - || die

        # Give mrxvt perms to update utmp
        fowners root:utmp /usr/bin/mrxvt-utf8
        fperms g+s /usr/bin/mrxvt-utf8

        dodoc AUTHORS CREDITS ChangeLog ChangeLog.old FAQ NEWS README* TODO
}

pkg_postinst() {

        if [[ -z $RXVT_TERM ]]; then
                einfo
                einfo "If you experience problems with curses programs, then 
this is"
                einfo "most likely because of incorrectly set termcap / 
terminfo"
                einfo "entries. To fix this you can dry and run (as user)"
                einfo " tic /usr/share/doc/${P}/etc/mrxvt.terminfo"
                einfo "Alternately, run the offending programs with TERM=xterm."
                einfo
                einfo "To emerge mrxvt with TERM=xterm by default, set the 
RXVT_TERM"
                einfo "environment variable to 'xterm', or your desired default"
                einfo "terminal name. Alternately you can put 'Mrxvt.termName: 
xterm'"
                einfo "in your ~/.mrxvtrc, or /etc/mrxvt/mrxvtrc."
                einfo
        fi

}

Attachment: pgpySjvH7oHUg.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Materm-devel mailing list
Materm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/materm-devel
mrxvt home page: http://materm.sourceforge.net

Reply via email to