blob: 40a44c7d87701392492b6801f8371d500912503c (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils toolchain-funcs
MY_P=${PN}-1.0.a15unix
DESCRIPTION="Utility for displaying AVI information"
HOMEPAGE="http://shounen.ru/soft/avinfo/english.shtml"
SRC_URI="http://shounen.ru/soft/${PN}/${MY_P}.tar.gz
http://shounen.ru/soft/${PN}/${MY_P}-patch1.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
S="${WORKDIR}"/${PN}-1.0.a15
src_prepare() {
epatch "${WORKDIR}"/${MY_P}-patch1/${MY_P}-patch1.diff
sed -i -e 's/$(CC) $(OBJ)/$(CC) $(LDFLAGS) $(OBJ)/' src/Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
}
src_install() {
dobin src/avinfo
doman src/avinfo.1
dodoc CHANGELOG README "${WORKDIR}"/${MY_P}-patch1/FIXES
dodoc doc/*
}
|