media-sound/pnmixer: fix live ebuild for cmake
This commit is contained in:
		
							parent
							
								
									fb75140207
								
							
						
					
					
						commit
						005af634f9
					
				@ -2,15 +2,40 @@
 | 
				
			|||||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
 | 
					# Copyright 2016 Julian Ospald <hasufell@posteo.de>
 | 
				
			||||||
# Distributed under the terms of the GNU General Public License v2
 | 
					# Distributed under the terms of the GNU General Public License v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require pnmixer
 | 
					require github [ user='nicklan' branch='cmake' ]
 | 
				
			||||||
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]
 | 
					require cmake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SUMMARY="Simple ALSA mixer application designed to run in system tray"
 | 
				
			||||||
 | 
					LICENCES="GPL-3"
 | 
				
			||||||
SLOT="0"
 | 
					SLOT="0"
 | 
				
			||||||
 | 
					 | 
				
			||||||
PLATFORMS="~amd64"
 | 
					PLATFORMS="~amd64"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
src_prepare() {
 | 
					MYOPTIONS="
 | 
				
			||||||
    edo autopoint --force
 | 
					    libnotify
 | 
				
			||||||
    autotools_src_prepare
 | 
					    ( providers: gtk2 gtk3 ) [[ number-selected = exactly-one ]]
 | 
				
			||||||
}
 | 
					"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DEPENDENCIES="
 | 
				
			||||||
 | 
					    build:
 | 
				
			||||||
 | 
					        sys-devel/gettext
 | 
				
			||||||
 | 
					        virtual/pkg-config
 | 
				
			||||||
 | 
					    build+run:
 | 
				
			||||||
 | 
					        dev-libs/glib:2
 | 
				
			||||||
 | 
					        sys-sound/alsa-lib
 | 
				
			||||||
 | 
					        x11-libs/libX11
 | 
				
			||||||
 | 
					        libnotify? ( x11-libs/libnotify )
 | 
				
			||||||
 | 
					        providers:gtk2? ( x11-libs/gtk+:2[>=2.16.0] )
 | 
				
			||||||
 | 
					        providers:gtk3? ( x11-libs/gtk+:3[>=3.6.0] )
 | 
				
			||||||
 | 
					    suggestion:
 | 
				
			||||||
 | 
					        (
 | 
				
			||||||
 | 
					            xfce-extra/xfce4-mixer
 | 
				
			||||||
 | 
					        ) [[
 | 
				
			||||||
 | 
					            *description = [ ${PN} can use a full mixer if available ]
 | 
				
			||||||
 | 
					        ]]
 | 
				
			||||||
 | 
					"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMAKE_SRC_CONFIGURE_OPTION_WITHS=(
 | 
				
			||||||
 | 
					    'providers:gtk3 GTK3'
 | 
				
			||||||
 | 
					    'libnotify LIBNOTIFY'
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user