Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24699 - mp-3.2.8 (update)
Summary: mp-3.2.8 (update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-07-17 15:15 UTC by Martin C. Petersen
Modified: 2003-09-24 12:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for mp-3.2.8 (mp-3.2.8.ebuild,875 bytes, text/plain)
2003-07-17 15:16 UTC, Martin C. Petersen
Details
Corrected ebuild for mp-3.2.8 editor (mp-3.2.8.ebuild,885 bytes, text/plain)
2003-07-24 13:13 UTC, Martin C. Petersen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin C. Petersen 2003-07-17 15:15:25 UTC
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 Martin C. Petersen 2003-07-17 15:16:33 UTC
Created attachment 14635 [details]
ebuild for mp-3.2.8
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-07-24 12:32:53 UTC
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 Martin C. Petersen 2003-07-24 13:12:09 UTC
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 Martin C. Petersen 2003-07-24 13:13:17 UTC
Created attachment 14966 [details]
Corrected ebuild for mp-3.2.8 editor
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-09-24 12:22:14 UTC
added in cvs