Bug 24699 - mp-3.2.8 (update)
Bug#: 24699 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: mholzer@gentoo.org Reported By: mcp@phys.au.dk
Component: Ebuilds
URL: 
Summary: mp-3.2.8 (update)
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2003-07-17 15:15 0000
Description:   Opened: 2003-07-17 15:15 0000
This ebuild is for the latest version of the mp editor (3.2.8).
Also use variables have been added to check for gtk+/ncurses support (the 
ebuild for 3.2.7 failed when gtk+ was not installed).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Martin C. Petersen 2003-07-17 15:16:33 0000 -------
Created an attachment (id=14635) [details]
ebuild for mp-3.2.8

------- Comment #2 From Martin Holzer (RETIRED) 2003-07-24 12:32:53 0000 -------
try something like that and update your ebuild

    if [ -n "`use ncurses`" && -n "`use gtk`" ]
        then emake || die
    elif [ -n "`use ncurses`" ]
        then emake gmp || die
    else die "You need ncurses and/or gtk in your USE variables"
    fi

------- Comment #3 From Martin C. Petersen 2003-07-24 13:12:09 0000 -------
Actually it should have been:
if [ -n "`use ncurses`" ]; then 
  if [ -n "`use gtk`" ]; then emake || die; else emake mp || die; fi;
elif [ -n "`use gtk`" ]; then emake gmp || die; 
else die "You need ncurses and/or gtk in your USE variables";
fi


This is of course equivalent to:
if [ -n "`use ncurses`" ] && [ -n "`use gtk`" ]; then emake || die;
elif [ -n "`use ncurses`" ]; then emake mp || die;
elif [ -n "`use gtk`" ]; then emake gmp || die;
else die "You need ncurses and/or gtk in your USE variables";
fi

Since the latter looks better I'll pick that style..

------- Comment #4 From Martin C. Petersen 2003-07-24 13:13:17 0000 -------
Created an attachment (id=14966) [details]
Corrected ebuild for mp-3.2.8 editor

------- Comment #5 From Martin Holzer (RETIRED) 2003-09-24 12:22:14 0000 -------
added in cvs