Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=2 |
6 |
|
6 |
|
7 |
inherit eutils linux-mod linux-info |
7 |
inherit eutils linux-mod linux-info toolchain-funcs |
8 |
|
8 |
|
9 |
DESCRIPTION="IVTV utilities for Hauppauge PVR PCI cards" |
9 |
DESCRIPTION="IVTV utilities for Hauppauge PVR PCI cards" |
10 |
HOMEPAGE="http://www.ivtvdriver.org" |
10 |
HOMEPAGE="http://www.ivtvdriver.org" |
Lines 57-76
Link Here
|
57 |
BUILD_PARAMS="KDIR=${KV_DIR}" |
57 |
BUILD_PARAMS="KDIR=${KV_DIR}" |
58 |
} |
58 |
} |
59 |
|
59 |
|
60 |
src_install() { |
60 |
src_prepare() { |
61 |
make DESTDIR="${D}" PREFIX="/usr" install || die "failed to install" |
61 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
62 |
use perl && dobin utils/perl/*.pl |
62 |
} |
|
|
63 |
|
64 |
src_compile() { |
65 |
tc-export CC CXX |
66 |
emake || die |
67 |
} |
63 |
|
68 |
|
64 |
# Shouldn't be installing linux headers, bug 273165 |
69 |
src_install() { |
65 |
rm "${D}"/usr/include/linux/ivtv.h |
70 |
emake DESTDIR="${D}" PREFIX="/usr" install || die "failed to install" |
66 |
rm "${D}"/usr/include/linux/ivtvfb.h |
71 |
dodoc README doc/* ChangeLog || die |
67 |
|
72 |
if use perl; then |
68 |
# Installed separately now |
73 |
dobin utils/perl/*.pl || die |
69 |
rm "${D}"/usr/bin/v4l2-ctl |
74 |
dodoc utils/perl/README.ptune || die |
70 |
|
75 |
fi |
71 |
cd "${S}" |
|
|
72 |
dodoc README doc/* ChangeLog |
73 |
use perl && dodoc utils/perl/README.ptune |
74 |
} |
76 |
} |
75 |
|
77 |
|
76 |
pkg_postinst() { |
78 |
pkg_postinst() { |