diff options
author | 2002-05-03 07:13:05 +0000 | |
---|---|---|
committer | 2002-05-03 07:13:05 +0000 | |
commit | da8c88fa52f006f5b519a801e5f1c0bf15768846 (patch) | |
tree | afaf05f8ec39b0187ad2f78a477424672679a709 /media-video | |
parent | Makes sure that Portage sets KV to something. (diff) | |
download | gentoo-2-da8c88fa52f006f5b519a801e5f1c0bf15768846.tar.gz gentoo-2-da8c88fa52f006f5b519a801e5f1c0bf15768846.tar.bz2 gentoo-2-da8c88fa52f006f5b519a801e5f1c0bf15768846.zip |
Clean-ups.
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/em8300-modules/ChangeLog | 6 | ||||
-rw-r--r-- | media-video/em8300-modules/em8300-modules-0.12.0.ebuild | 32 |
2 files changed, 25 insertions, 13 deletions
diff --git a/media-video/em8300-modules/ChangeLog b/media-video/em8300-modules/ChangeLog index 8f4693f6af87..7312ecd5eda9 100644 --- a/media-video/em8300-modules/ChangeLog +++ b/media-video/em8300-modules/ChangeLog @@ -1,9 +1,13 @@ # ChangeLog for media-video/em8300-modules # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-video/em8300-modules/ChangeLog,v 1.1 2002/04/23 02:54:25 agenkin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/em8300-modules/ChangeLog,v 1.2 2002/05/03 07:13:05 agenkin Exp $ *em8300-modules-0.12.0 (April 22, 2002) + 3 May 2002; Arcady Genkin <agenkin@thpoon.com> em8300-libraries-0.12.0 : + + Cleaned up the ebuild a little. + 22 April 2002; Arcady Genkin <agenkin@thpoon.com> em8300-libraries-0.12.0 : Initial version, submitted by Brandon Low <lostlogic@lostlogicx.com>.
\ No newline at end of file diff --git a/media-video/em8300-modules/em8300-modules-0.12.0.ebuild b/media-video/em8300-modules/em8300-modules-0.12.0.ebuild index e9906db93e07..68271d7a6992 100644 --- a/media-video/em8300-modules/em8300-modules-0.12.0.ebuild +++ b/media-video/em8300-modules/em8300-modules-0.12.0.ebuild @@ -1,15 +1,15 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Brandon Low <lostlogic@lostlogicx.com> -# $Header: /var/cvsroot/gentoo-x86/media-video/em8300-modules/em8300-modules-0.12.0.ebuild,v 1.3 2002/04/29 04:22:44 agenkin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/em8300-modules/em8300-modules-0.12.0.ebuild,v 1.4 2002/05/03 07:13:05 agenkin Exp $ DESCRIPTION="em8300 (RealMagic Hollywood+/Creative DXR3) video decoder card kernel modules" HOMEPAGE="http://dxr3.sourceforge.net" DEPEND="virtual/linux-sources" -S="${WORKDIR}/${P}" SRC_URI="http://prdownloads.sourceforge.net/dxr3/${P/-modules/}.tar.gz" +S="${WORKDIR}/${P}" src_unpack () { @@ -18,19 +18,27 @@ src_unpack () { cd ${WORKDIR} mv ${A/.tar.gz/} ${P} -} - -src_compile () { + # Portage should determine the version of the kernel sources + if [ x"${KV}" = x ] + then + eerror "" + eerror "Could not determine you kernel version." + eerror "Make sure that you have /usr/src/linux symlink." + eerror "" + die + fi cd ${S}/modules - sed -e s/PAL/NTSC/g Makefile > makefile - mv makefile Makefile + #Make the em8300 makefile cooperate with our kernel version + sed -e 's/PAL/NTSC/g' \ + -e "s/..shell.uname.-r./${KV}/" \ + Makefile > Makefile.hacked + mv Makefile.hacked Makefile + +} - [ "x${KV}" = x ] && die "You need to upgrade your portage." +src_compile () { - #Make the em8300 makefile cooperate with our kernel version - sed -e s/..shell.uname.-r./${KV}/ Makefile > makefile - mv makefile Makefile make clean all || die } @@ -54,7 +62,7 @@ src_install () { } -pkg_postinst() { +pkg_postinst () { if [ "${ROOT}" = "/" ] then |