Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142203 - media-video/ogmrip spooky pkg_setup()
Summary: media-video/ogmrip spooky pkg_setup()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-30 11:09 UTC by Jakub Moc (RETIRED)
Modified: 2006-08-30 09:21 UTC (History)
0 users

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


Attachments
ogmrip-0.9.0-r2.ebuild.diff (ogmrip-0.9.0-r1.ebuild.diff,1.97 KB, patch)
2006-07-30 11:24 UTC, Jakub Moc (RETIRED)
Details | Diff
An updated version of the patch (ogmrip-0.9.0-r1.ebuild.patch,1.36 KB, patch)
2006-08-17 13:37 UTC, Olivier Rolland
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2006-07-30 11:09:32 UTC
<snip>
pkg_setup() {
        if ! which mencoder > /dev/null 2>&1; then
                eerror "Unable to find mencoder in the PATH. You need mencoder to use OGMRip."
                eerror "Please, add encode to your USE flags and emerge mplayer again."
                die "Unable to find mencoder in the PATH. You need mencoder to use OGMRip."
        fi
        if ! mencoder -ovc help 2> /dev/null | grep -q "^ *xvid *- .*$"; then
                echo
                eerror "Mplayer is not build with XviD support. OGMRip requires XviD support in mplayer."
                eerror "Please, add xvid to your USE flags and emerge mplayer again."
                die "Mplayer is not build with XviD support. OGMRip requires XviD support in mplayer."
        fi
}
</snip>

Err...

1/ mplayer is in RDEPEND, why would one miss mencoder? What are you after here?
2/ Use built_with_use check from eutils eclass, perhaps?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-30 11:24:19 UTC
Created attachment 93074 [details, diff]
ogmrip-0.9.0-r2.ebuild.diff

- fix pkg_setup()
- add quoting
- do not dodoc COPYING INSTALL
Comment 2 Olivier Rolland 2006-08-17 13:37:37 UTC
Created attachment 94473 [details, diff]
An updated version of the patch
Comment 3 Matthias Schwarzott gentoo-dev 2006-08-30 09:21:00 UTC
Added this to ogmrip-0.9.0-r1.ebuild.