summaryrefslogtreecommitdiff
blob: 50ea39c83b4b1b6cade6d99a5884ccc9afe5ded0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/dvd95/dvd95-1.3_p0.ebuild,v 1.1 2007/12/16 21:15:59 pylon Exp $

MY_P=${P/_/}
S=${WORKDIR}/${MY_P}

DESCRIPTION="DVD95 is a Gnome application to convert DVD9 to DVD5."
HOMEPAGE="http://dvd95.sourceforge.net/"
SRC_URI="mirror://sourceforge/dvd95/${MY_P/_/}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE_LINGUAS="linguas_de linguas_cs linguas_el linguas_en linguas_fr linguas_hu linguas_nl linguas_pt_BR"
IUSE="${IUSE_LINGUAS} mmx 3dnow sse sse2"

DEPEND="gnome-base/libgnomeui
	media-libs/libdvdread"

RDEPEND="gnome-base/libgnomeui
	media-libs/libdvdread"

src_unpack() {
	unpack ${A}
	cd "${S}"

	sed -i "s#prefix = /usr/local#prefix = /usr#" po/Makefile.in
}

src_compile() {
	# Default language is French, but switch to English if no LINGUAS is set.

	if [ -z "${LINGUAS}" ]; then
		export LINGUAS="en"
	fi

	econf $(use_enable mmx) \
		$(use_enable 3dnow) \
		$(use_enable sse) \
		$(use_enable sse2) \
		|| die "econf failed"

	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "install failed"
	dodoc AUTHORS ChangeLog NEWS README
}