Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1709 - libmovtar-0.1.2.ebuild sandbox errors
Summary: libmovtar-0.1.2.ebuild sandbox errors
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jared H. Hudson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-12 19:43 UTC by Jordan Armstrong
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Armstrong 2002-04-12 19:43:35 UTC
The libmovtar package has sandbox issues.  Attached is a fixed ebuild.
Comment 1 Jordan Armstrong 2002-04-12 19:48:14 UTC
bugzilla refuses to let me upload.. so here it is as a comment
-----
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Ryan Tolboom <ryan@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/media-libs/libmovtar/libmovtar-0.1.2.ebuild,v
1.3 2002/04/12 18:59:19 spider Exp

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Movtar tools and library for MJPEG video"
SRC_URI="http://download.sourceforge.net/mjpeg/${A}"

DEPEND="virtual/glibc
	>=media-libs/jpeg-6b
	=dev-libs/glib-1.2*
	sdl? ( >=media-libs/libsdl-1.2.2 )"

RDEPEND="virtual/glibc
	>=media-libs/jpeg-6b
	=dev-libs/glib-1.2*
	sdl? ( >=media-libs/libsdl-1.2.2 )"

src_unpack() {

	unpack ${A}
	cd ${S}
	cp ${FILESDIR}/jpegint.h .
	cp movtar_play.c movtar_play.c.orig
	sed -e "s:#include <jinclude.h>::" movtar_play.c.orig > movtar_play.c
}

src_compile() {
	local myconf
	if [ -z "`use sdl`" ] ; then
		myconf="--with-sdl-prefix=/"
	fi
	try ./configure --prefix=/usr ${myconf}
	try make
}

src_install() {
	try make DESTDIR=${D} install
}