media-libs/libprojectm: Moved virtual/pkgconfig to BDEPEND
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 7 Oct 2019 14:16:18 +0000 (16:16 +0200)
committerCraig Andrews <candrews@gentoo.org>
Mon, 7 Oct 2019 14:26:23 +0000 (10:26 -0400)
minor ebuild adjustments

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/13197
Signed-off-by: Craig Andrews <candrews@gentoo.org>
media-libs/libprojectm/libprojectm-3.1.1_rc5-r1.ebuild
media-libs/libprojectm/libprojectm-9999.ebuild

index 70df39cf0c2344b4892dc08697474d39a09af21f..19885a4052bc9291ad836e6740746d7b525e910b 100644 (file)
@@ -35,8 +35,10 @@ RDEPEND="gles2? ( media-libs/mesa[gles2] )
        sdl? ( >=media-libs/libsdl2-2.0.5 )
        sys-libs/zlib"
 
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+"
 
 src_prepare() {
        default
@@ -44,9 +46,11 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
-               $(use_enable gles2 gles ) \
-               $(use_enable qt5 qt ) \
-               $(use_enable sdl ) \
+       local myeconfargs=(
+               $(use_enable gles2 gles)
+               $(use_enable qt5 qt)
+               $(use_enable sdl)
                --enable-emscripten=no
+       )
+       econf "${myeconfargs[@]}"
 }
index 01b1d4b50af4e6d58e2c21205ae5e2f895d0ae86..19885a4052bc9291ad836e6740746d7b525e910b 100644 (file)
@@ -12,9 +12,10 @@ if [[ ${PV} == *9999 ]] ; then
        EGIT_REPO_URI="https://github.com/projectM-visualizer/projectm.git"
        inherit git-r3
 else
-       SRC_URI="https://github.com/projectM-visualizer/projectm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       MY_PV="${PV/_/-}"
+       SRC_URI="https://github.com/projectM-visualizer/projectm/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~sparc ~x86"
-       S=${WORKDIR}/projectm-${PV}/
+       S=${WORKDIR}/projectm-${MY_PV}/
 fi
 
 LICENSE="LGPL-2"
@@ -34,8 +35,10 @@ RDEPEND="gles2? ( media-libs/mesa[gles2] )
        sdl? ( >=media-libs/libsdl2-2.0.5 )
        sys-libs/zlib"
 
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+"
 
 src_prepare() {
        default
@@ -43,9 +46,11 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
-               $(use_enable gles2 gles ) \
-               $(use_enable qt5 qt ) \
-               $(use_enable sdl ) \
+       local myeconfargs=(
+               $(use_enable gles2 gles)
+               $(use_enable qt5 qt)
+               $(use_enable sdl)
                --enable-emscripten=no
+       )
+       econf "${myeconfargs[@]}"
 }