media-libs/portmidi: EAPI-6 bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 14 Oct 2018 15:30:48 +0000 (17:30 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 14 Oct 2018 15:50:03 +0000 (17:50 +0200)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

media-libs/portmidi/portmidi-217-r1.ebuild

index 4096932f872b2a69cfe515eac28d0386e75655b2..0adb4d32f4bccd7eabcca08d6ef40a5376a0d4a8 100644 (file)
@@ -1,13 +1,13 @@
 # Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI=6
 
 PYTHON_COMPAT=( python2_7 )
 DISTUTILS_OPTIONAL=1
-inherit cmake-utils distutils-r1 eutils multilib java-pkg-opt-2
+inherit cmake-utils desktop distutils-r1 java-pkg-opt-2
 
-DESCRIPTION="A library for real time MIDI input and output"
+DESCRIPTION="Library for real time MIDI input and output"
 HOMEPAGE="http://portmedia.sourceforge.net/"
 SRC_URI="mirror://sourceforge/portmedia/${PN}-src-${PV}.zip"
 
@@ -16,6 +16,8 @@ SLOT="0"
 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~sparc x86"
 IUSE="debug doc java python static-libs test-programs"
 
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
 COMMON_DEPEND="
        media-libs/alsa-lib
        python? ( ${PYTHON_DEPS} )"
@@ -34,9 +36,7 @@ DEPEND="${COMMON_DEPEND}
        python? ( >=dev-python/cython-0.12.1[${PYTHON_USEDEP}] )
 "
 
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-S=${WORKDIR}/${PN}
+S="${WORKDIR}/${PN}"
 
 PATCHES=(
        # fix parallel make failures, fix java support, and allow optional
@@ -73,9 +73,9 @@ src_configure() {
        fi
 
        local mycmakeargs=(
-               $(cmake-utils_use java PORTMIDI_ENABLE_JAVA)
-               $(cmake-utils_use static-libs PORTMIDI_ENABLE_STATIC)
-               $(cmake-utils_use test-programs PORTMIDI_ENABLE_TEST)
+               -DPORTMIDI_ENABLE_JAVA=$(usex java)
+               -DPORTMIDI_ENABLE_STATIC=$(usex static-libs)
+               -DPORTMIDI_ENABLE_TEST=$(usex test-programs)
        )
 
        if use java ; then