Ignore:
Timestamp:
Aug 1, 2007, 1:02:29 PM (13 years ago)
Author:
Bruno Cornec
Message:

Fix gentoo issues again (Francesco Talamona ti.liame_at_email.it)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/tools/build2pkg

    r1565 r1586  
    9696        cd ..
    9797    elif [  _"$dtype" = _"ebuild" ]; then
    98         tar xfz $src $p-${PVER}/distributions/${ddir}-$dver/$p-${PVER}.ebuild
     98        if [ _"$p" = _"mondo" ]; then
     99            eb="mondo-rescue"
     100        else
     101            eb=$p
     102        fi
     103        tar xfz $src $p-${PVER}/distributions/${ddir}-$dver/$eb-${PVER}.ebuild
    99104        if [ _"`grep $TOPBUILDDIR/portage /etc/make.conf`" = _"" ]; then
    100105            echo "Adding $TOPBUILDDIR/portage to /etc/make.conf"
     
    102107        fi
    103108
    104         mkdir -p ${TOPBUILDDIR}/portage/sys-apps/$p
    105         mv $p-${PVER}/distributions/${ddir}-$dver/$p-${PVER}.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p/$p-${PVER}.ebuild
     109        mkdir -p ${TOPBUILDDIR}/portage/sys-apps/$eb
     110        mv $p-${PVER}/distributions/${ddir}-$dver/$eb-${PVER}.ebuild ${TOPBUILDDIR}/portage/sys-apps/$p/$eb-${PVER}.ebuild
    106111        rm -rf $p-${PVER}
    107112
    108         cd ${TOPBUILDDIR}/portage/sys-apps/$p
    109         ebuild $p-${PVER}.ebuild digest
     113        cd ${TOPBUILDDIR}/portage/sys-apps/$eb
     114        ebuild $eb-${PVER}.ebuild digest
    110115        if [ $? != 0 ]; then
    111116            status=-1
    112117        fi
    113         ebuild $p-${PVER}.ebuild package
     118        ebuild $eb-${PVER}.ebuild package
    114119        if [ $? != 0 ]; then
    115120            status=-1
    116121        fi
    117         export pkg="$pkg $p-${PVER}.ebuild"
     122        export pkg="$pkg $eb-${PVER}.ebuild"
    118123    elif [  _"$dtype" = _"deb" ]; then
    119124        cd $TOPBUILDDIR
Note: See TracChangeset for help on using the changeset viewer.