commit:     58034b73a49011135daf2f4628b94ef804c72861
Author:     Casey Avila <casey <AT> theavilas <DOT> org>
AuthorDate: Sun Feb 21 05:08:17 2021 +0000
Commit:     Casey Avila <casey <AT> theavilas <DOT> org>
CommitDate: Sun Feb 21 05:08:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58034b73

media-libs/rtmidi: new package and license

Signed-off-by: Casey Avila <casey <AT> theavilas.org>

 licenses/RtMidi                       | 27 +++++++++++++++++++++++++++
 media-libs/rtmidi/Manifest            |  1 +
 media-libs/rtmidi/metadata.xml        | 11 +++++++++++
 media-libs/rtmidi/rtmidi-4.0.0.ebuild | 32 ++++++++++++++++++++++++++++++++
 4 files changed, 71 insertions(+)

diff --git a/licenses/RtMidi b/licenses/RtMidi
new file mode 100644
index 00000000..97d50aba
--- /dev/null
+++ b/licenses/RtMidi
@@ -0,0 +1,27 @@
+
+RtMidi: realtime MIDI i/o C++ classes
+Copyright (c) 2003-2019 Gary P. Scavone
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation files
+(the "Software"), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of the Software,
+and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+Any person wishing to distribute modifications to the Software is
+asked to send the modifications to the original developer so that
+they can be incorporated into the canonical version.  This is,
+however, not a binding provision of this license.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

diff --git a/media-libs/rtmidi/Manifest b/media-libs/rtmidi/Manifest
new file mode 100644
index 00000000..6ecfca7e
--- /dev/null
+++ b/media-libs/rtmidi/Manifest
@@ -0,0 +1 @@
+DIST rtmidi-4.0.0.tar.gz 95928 BLAKE2B 
25c0c8a4bb63acd24fad5afa18194d0c6de6138298e7c163118e725ec772276b5cea3c7eb0f4aad9f8b27ad51941027d260835cc373857021280a03dc76eb789
 SHA512 
1c4c1400b60de5a91a47849efaf3f51af6cd2fc5e681c2f5981b7d748c438efef0b8f0dbc3a26408820ca1eabb58c86ba2f7a6abaf0dd1f083fd6b768065bc0a

diff --git a/media-libs/rtmidi/metadata.xml b/media-libs/rtmidi/metadata.xml
new file mode 100644
index 00000000..2c412c89
--- /dev/null
+++ b/media-libs/rtmidi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Casey Avila</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">thestk/rtmidi</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/media-libs/rtmidi/rtmidi-4.0.0.ebuild 
b/media-libs/rtmidi/rtmidi-4.0.0.ebuild
new file mode 100644
index 00000000..94fe8463
--- /dev/null
+++ b/media-libs/rtmidi/rtmidi-4.0.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="A set of C++ classes that provide a common API for realtime MIDI 
input/output"
+HOMEPAGE="http://www.music.mcgill.ca/~gary/rtmidi";
+SRC_URI="https://dl.bintray.com/aeon-engine/aeon_dependencies/rtmidi/src/rtmidi-4.0.0.tar.gz";
+
+LICENSE="RtMidi"
+SLOT="0"
+RESTRICT="mirror"
+KEYWORDS="~amd64 ~x86"
+IUSE="+alsa jack"
+
+DEPEND="
+       alsa? ( media-libs/alsa-lib )
+       jack? ( virtual/jack )
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_configure() {
+       mycmakeargs+=(
+               -DRTMIDI_API_ALSA=$(usex alsa)
+               -DRTMIDI_API_JACK=$(usex jack)
+       )
+
+       cmake_src_configure
+}

Reply via email to