diff --git a/licenses/Midisport b/licenses/Midisport new file mode 100644 index 00000000..b0f268c8 --- /dev/null +++ b/licenses/Midisport @@ -0,0 +1,23 @@ +The firmware files (*.ihx) are copyrighted by Midiman, and can be used +and redistributed only as part of this package. + +All other files are distributed under the following license: + +Copyright (c) 2003-2006 Clemens Ladisch + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +Alternatively, this software may be distributed and/or modified under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2 of the License, or (at your +option) any later version. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/sys-firmware/midisport-firmware/ChangeLog b/sys-firmware/midisport-firmware/ChangeLog new file mode 100644 index 00000000..53fd3579 --- /dev/null +++ b/sys-firmware/midisport-firmware/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-firmware/midisport-firmware +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*midisport-firmware-1.2 (20 Feb 2013) + + 20 Feb 2013; Kalle Lindén +midisport-firmware-1.2.ebuild, + +files/midisport-firmware-1.2-configure.patch, + +files/midisport-firmware-1.2-rules.patch, +metadata.xml: + Inital ebuild. + diff --git a/sys-firmware/midisport-firmware/Manifest b/sys-firmware/midisport-firmware/Manifest new file mode 100644 index 00000000..6dc9dc6d --- /dev/null +++ b/sys-firmware/midisport-firmware/Manifest @@ -0,0 +1,6 @@ +AUX midisport-firmware-1.2-configure.patch 1196 SHA256 a8db6c329538322da058853db02f3336fb1a142d748594cd6d54fcb5c03a4cd5 SHA512 611f6e605372542790a81320ab9e5f58440079a914bd3fd41c449ebd5935631d54503c03fa308b829ace7116dfa113cabc65e502c3193f8d755c4b27b55677cc WHIRLPOOL d2816366705f5b768963b55275ceb695ddcfad07cf359a8afe93a5e4b3fcec3a342578df886350ee884c3e1f046e3fcd56dde4b49c6d58108c0cec4517e578d9 +AUX midisport-firmware-1.2-rules.patch 2580 SHA256 54e43298cda021094af472a2220ed83323aee3c0e8be8e7a45711acf8280b70a SHA512 31bedabf37eabb1c1c6e1fa4b7c0e9881f1c6bfa86758c060438a2c952f310093545c4e043646fbdc08ab4e3595411668ff2d21c308cc8e0685c6ae7c38b7315 WHIRLPOOL 0132d963ff14fc87f6c5599e4f013eb1986fa07002913cb9e20222a83dc023d4f63ea096391f57ca0b34937a1602bc15a32ff4bec29894ecec8d0e13b91b074f +DIST midisport-firmware-1.2.tar.gz 62948 SHA256 2aa82ef0bf26647fbdda4c2e9ed0033b41bd0f1b4020b87fa073e4462a048b2d SHA512 ac46b1e16dbee628d41e0c5b39730a4ee51e1f62187e5e56ed393f136937fdffa86ca84882d2627397f074ca2eb12be3a8701a5027999a0d00b84b706e227a0b WHIRLPOOL d8cfdf90d17eda43ee80727be7c32f63cfe7c755a85e28ab7085aae9ef892ecf7da2ad6b45bf7047d420dfc17c1ee91b537eb08f1f5ef8c5b167753ab6ab122e +EBUILD midisport-firmware-1.2.ebuild 775 SHA256 f76344f2b0778571f818b5a6f9a8a271aeaa35e74414bd55af5915c8d4444dd0 SHA512 918e08b7ecba6dac465861476ea4bb164e93abb7adc23a05f0a241570a171638db20bac65194168e69625488ed0baf8a835a8cf653b467d9218f27e60f84e096 WHIRLPOOL 116c52cce4ee3d2b0ae63233cc05c670eed01e708ae92c0e2ecac00613e38240ac330dbf2a078b913e0335f2dd44c64257229d4ca417b58c9a7d3a4d760bf10b +MISC ChangeLog 378 SHA256 d6accceaab848f9977cbcdc7523ea86109b852632ca093d9632b424a6a9bde46 SHA512 7b3abec277469eca2eac175e96c09b6e93c20c08c1edc6b0561ad29648c9b329507b004ea38d550ace04142d81aea2ced1190b063e7d259c8b746cdc7bb5d7ab WHIRLPOOL 2e3ff8a627b26ed044622a915a9e9bc9a70820ec0c92d213c5a58b4d55832ec4901aaab5aee0f9d01758d276711f999dd31b0f8f0996b8d306d52a0330275635 +MISC metadata.xml 246 SHA256 f32f31abe9dcc1f9a5dc9b6a36996d773abd006d92c13c4df48f8d7d1061060f SHA512 327022589c637a14219eb603a62050fbb93b980f4693960c0ac4117b6b483d9f0d9fe1366d8e18227b34373a399aef339f49c16df8ca57b9ec870568a4d394f4 WHIRLPOOL e55381a9a9fd1d0efbe87da1c3aa302efdcf4734827f56273faeb55b17361c529518fcf16ac0946102e26165e8eedba81ab0cd07c7b08ce6bad001e944e43a0f diff --git a/sys-firmware/midisport-firmware/files/midisport-firmware-1.2-configure.patch b/sys-firmware/midisport-firmware/files/midisport-firmware-1.2-configure.patch new file mode 100644 index 00000000..bb433880 --- /dev/null +++ b/sys-firmware/midisport-firmware/files/midisport-firmware-1.2-configure.patch @@ -0,0 +1,36 @@ +--- midisport-firmware-1.2.orig/configure.ac 2006-03-05 22:01:45.000000000 +0100 ++++ midisport-firmware-1.2/configure.ac 2013-01-06 22:08:40.479938650 +0100 +@@ -1,9 +1,12 @@ + # Process this file with autoconf to produce a configure script + AC_PREREQ(2.0) + AC_INIT(midisport-firmware, 1.2, [usb-midi-fw-user@lists.sourceforge.net]) +-AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION) ++AM_INIT_AUTOMAKE + AC_REVISION($Revision$) + AC_CONFIG_SRCDIR(MidiSportLoader.ihx) ++m4_ifndef([PKG_PROG_PKG_CONFIG], ++ [m4_fatal([pkg-config is required])]) ++PKG_PROG_PKG_CONFIG + + AC_ARG_WITH([fxload], + AS_HELP_STRING([--with-fxload=name], +@@ -22,17 +25,8 @@ + AC_MSG_ERROR([$FXLOAD not found; please install the fxload package first]) + fi + +-AC_MSG_CHECKING([for udev version]) +-udev_ver=`udevinfo -V | awk '{ print $3 }'` +-if test -n "$udev_ver"; then +- AC_MSG_RESULT([$udev_ver]) +-else +- AC_MSG_RESULT([none]) +- udev_ver="0" +-fi +-if test "$udev_ver" -lt 057; then +- AC_MSG_ERROR([udev version 057 or later is required]) +-fi ++PKG_CHECK_MODULES([udev], [udev >= 057], [], [ ++ AC_MSG_ERROR(["udev of at least version 057 is required"])]) + + AC_ARG_WITH([udev], + AS_HELP_STRING([--with-udev=dir], diff --git a/sys-firmware/midisport-firmware/files/midisport-firmware-1.2-rules.patch b/sys-firmware/midisport-firmware/files/midisport-firmware-1.2-rules.patch new file mode 100644 index 00000000..b0ee8582 --- /dev/null +++ b/sys-firmware/midisport-firmware/files/midisport-firmware-1.2-rules.patch @@ -0,0 +1,27 @@ +--- midisport-firmware-1.2.orig/42-midisport-firmware.rules.in 2006-03-05 22:01:45.000000000 +0100 ++++ midisport-firmware-1.2/42-midisport-firmware.rules.in 2013-01-06 22:07:03.385941852 +0100 +@@ -1,18 +1,13 @@ + # midisport-firmware.rules - udev rules for loading firmware into MidiSport devices + +-# DEVPATH=="/*.0" selects interface 0 only +-# (some udev versions don't work with SYSFS{bInterfaceNumber}) +- + # MidiSport 2x2 +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1001/*", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport2x2.ihx" ++ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1001", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport2x2.ihx -D %N" + # MidiSport 1x1 +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1010/*", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport1x1.ihx" ++ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1010", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport1x1.ihx -D %N" + # KeyStation +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1014/*", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSportKS.ihx" ++ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1014", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSportKS.ihx -D %N" + # MidiSport 4x4 +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1020/*", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport4x4.ihx" ++ACTION=="add", SUBSYSTEM=="usb*", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="1020", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport4x4.ihx -D %N" + # MidiSport 8x8 +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1031/110", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport8x8-2.10.ihx" +-ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1031/121", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport8x8-2.21.ihx" +- +-# vim: ft=conf ++#ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1031/110", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport8x8-2.10.ihx" ++#ACTION=="add", SUBSYSTEM=="usb", DEVPATH=="/*.0", ENV{PRODUCT}=="763/1031/121", RUN+="@fxload@ -s @firmwaredir@/MidiSportLoader.ihx -I @firmwaredir@/MidiSport8x8-2.21.ihx" diff --git a/sys-firmware/midisport-firmware/metadata.xml b/sys-firmware/midisport-firmware/metadata.xml new file mode 100644 index 00000000..e0328a0f --- /dev/null +++ b/sys-firmware/midisport-firmware/metadata.xml @@ -0,0 +1,8 @@ + + + + + proaudio@tuxfamily.org + pro-audio overlay team + + diff --git a/sys-firmware/midisport-firmware/midisport-firmware-1.2.ebuild b/sys-firmware/midisport-firmware/midisport-firmware-1.2.ebuild new file mode 100644 index 00000000..9942a63e --- /dev/null +++ b/sys-firmware/midisport-firmware/midisport-firmware-1.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +inherit autotools-utils linux-info udev + +DESCRIPTION="Firmware for M-Audio/Midiman USB MIDI devices" +HOMEPAGE="http://usb-midi-fw.sourceforge.net" +SRC_URI="http://downloads.sourceforge.net/usb-midi-fw/${P}.tar.gz" + +LICENSE="Midisport" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sys-apps/fxload +>=sys-fs/udev-057" +DEPEND="${RDEPEND} +virtual/pkgconfig" + +CONFIG_CHECK="~SND_USB_AUDIO" +AUTOTOOLS_AUTORECONF="1" +AUTOTOOLS_IN_SOURCE_BUILD="1" +PATCHES=( "${FILESDIR}/${P}-configure.patch" "${FILESDIR}/${P}-rules.patch" ) +DOCS=( "README" ) + +src_configure() { + local myeconfargs=( "--with-udev=$(get_udevdir)" ) + autotools-utils_src_configure +}