From 163c46f625594274d9cfb27d2a61f5e8730fa540 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 11 Nov 2009 22:20:58 +0100 Subject: [PATCH] Add media-sound/hdj_mod-1.28. --- media-sound/hdj_mod/Manifest | 3 ++ media-sound/hdj_mod/files/snd_card_create.patch | 12 +++++++ media-sound/hdj_mod/hdj_mod-1.28.ebuild | 46 +++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 media-sound/hdj_mod/Manifest create mode 100644 media-sound/hdj_mod/files/snd_card_create.patch create mode 100644 media-sound/hdj_mod/hdj_mod-1.28.ebuild diff --git a/media-sound/hdj_mod/Manifest b/media-sound/hdj_mod/Manifest new file mode 100644 index 0000000..19d8a67 --- /dev/null +++ b/media-sound/hdj_mod/Manifest @@ -0,0 +1,3 @@ +AUX snd_card_create.patch 628 RMD160 02877183f85c2f1c66a0dc7f9ad5e2c71dfe3ee3 SHA1 9ebe253c89e9ecb3bbb512c4ec8d0bfb64cc1def SHA256 209d856a4bb21c4aaef44ee362792115cec1e0324fcde53398b9cb96a962b5e2 +DIST Hercules_DJSeries_Linux.tgz 10060469 RMD160 3aa535592cbe3ae3b031b2c29bf19ffdcd758826 SHA1 523c5763637db5742f79b2c95c4f15a906965e1d SHA256 c3957491c367f642484e7a7f5a15acb8cb50f7c407cb225eabc7fb5d6a07ed28 +EBUILD hdj_mod-1.28.ebuild 1297 RMD160 78be2914cc90bf80ef912ac3f22d202d0ed2e561 SHA1 5ee60a23c09f8a4f38e452619c3887d964207a51 SHA256 80042910fa0ea7763daaf71b915a86d0d15f450c4239da988b19ec46ee4b6a21 diff --git a/media-sound/hdj_mod/files/snd_card_create.patch b/media-sound/hdj_mod/files/snd_card_create.patch new file mode 100644 index 0000000..c4a6e66 --- /dev/null +++ b/media-sound/hdj_mod/files/snd_card_create.patch @@ -0,0 +1,12 @@ +--- device.c 2009-01-27 15:25:50.000000000 +0100 ++++ device_patched.c 2009-09-15 :17:23.955387329 +0200 +@@ -1660,7 +1660,8 @@ static int snd_hdj_chip_create(struct us + /* let the kernel option override custom id */ + strncpy(card_id,id[idx],sizeof(card_id)-1); + } +- card = snd_card_new(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0); ++ //card = snd_card_new(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0); ++ snd_card_create(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0, &card); + if (card == NULL) { + snd_printk(KERN_WARNING "snd_hdj_chip_create(): cannot create card instance %d\n", idx); + return -ENOMEM; diff --git a/media-sound/hdj_mod/hdj_mod-1.28.ebuild b/media-sound/hdj_mod/hdj_mod-1.28.ebuild new file mode 100644 index 0000000..916fb82 --- /dev/null +++ b/media-sound/hdj_mod/hdj_mod-1.28.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +inherit eutils linux-info linux-mod + +DESCRIPTION="GPL Linux MIDI drivers for Hercules DJ midi controller devices" +HOMEPAGE="http://ts.hercules.com/eng/index.php?pg=view_files&gid=2&fid=28&pid=215&cid=1" +MY_P="Hercules_DJSeries_Linux" + +SRC_URI="ftp://ftp.hercules.com/pub/webupdate/DJCSeries/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="app-arch/rpm2targz" +RDEPEND="${DEPEND}" + + +src_unpack() { + unpack ${MY_P}.tgz || die "unpacking ${MY_P}.tgz failed"; + cd "kernel module" + ebegin "unpacking hdjmod-dkms-${PV}-1.noarch.rpm" + rpm2targz hdjmod-dkms-${PV}-1.noarch.rpm || (eend 1;die "unpacking hdjmod-dkms-${PV}-1.noarch.rpm failed";) + eend 0 + + ebegin "unpacking hdjmod-dkms-${PV}-1.noarch.tar.gz" + tar xzf hdjmod-dkms-${PV}-1.noarch.tar.gz || (eend 1;die "unpacking hdjmod-dkms-${PV}-1.noarch.tar.gz failed";) + eend 0 +} + +src_prepare() { + mv "kernel module/usr/src/hdjmod-${PV}" ${S} + cd ${S} + epatch "${FILESDIR}/snd_card_create.patch" || die "snd_card_create.patch failed" +} + +src_configure() { + local CONFIG_CHECK="SND_RAWMIDI SND_VIRMIDI" + check_extra_config + BUILD_TARGETS="clean modules" + MODULE_NAMES="hdj_mod()" +} -- 2.7.4