39 lines
950 B
Bash
39 lines
950 B
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/media-video/avinfo/avinfo-1.0_alpha15_p1.ebuild,v 1.2 2011/11/20 21:32:44 radhermit Exp $
|
|
|
|
EAPI=6
|
|
|
|
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() {
|
|
default
|
|
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/*
|
|
}
|