From 0a365417955f51c23d8f0067d6067ca2dd7eecbf Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 18 Sep 2016 13:20:04 +0200 Subject: [PATCH] media-sound/pnmixer: factor out the common parts Change-Id: I6df742b406107d4e9d86bc1ab3b2ef45b99f532c Reviewed-on: https://galileo.mailstation.de/gerrit/7093 Reviewed-by: Jenkins Reviewed-by: Kylie McClain --- .../pnmixer/pnmixer-0.6.1.exheres-0 | 35 +--------------- .../media-sound/pnmixer/pnmixer-scm.exheres-0 | 34 +-------------- packages/media-sound/pnmixer/pnmixer.exlib | 42 +++++++++++++++++++ 3 files changed, 44 insertions(+), 67 deletions(-) create mode 100644 packages/media-sound/pnmixer/pnmixer.exlib diff --git a/packages/media-sound/pnmixer/pnmixer-0.6.1.exheres-0 b/packages/media-sound/pnmixer/pnmixer-0.6.1.exheres-0 index d5a22b46..1d2530dd 100644 --- a/packages/media-sound/pnmixer/pnmixer-0.6.1.exheres-0 +++ b/packages/media-sound/pnmixer/pnmixer-0.6.1.exheres-0 @@ -1,47 +1,14 @@ # Copyright 2015 Kylie McClain # Distributed under the terms of the GNU General Public License v2 +require pnmixer [ release=v0.6 ] require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] -require github [ user='nicklan' release="v0.6" suffix="tar.gz" ] -SUMMARY="Simple ALSA mixer application designed to run in system tray" SLOT="0" -LICENCES="GPL-3" - -MYOPTIONS=" - libnotify - ( providers: gtk2 gtk3 ) [[ number-selected = exactly-one ]] -" PLATFORMS="~amd64" -DEPENDENCIES=" - build: - dev-util/intltool - 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 ] - ]] -" - DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PNV}-pkg-config.patch ) -DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( - libnotify - 'providers:gtk3 gtk3' -) - - diff --git a/packages/media-sound/pnmixer/pnmixer-scm.exheres-0 b/packages/media-sound/pnmixer/pnmixer-scm.exheres-0 index 0b1a24a8..4dc741f4 100644 --- a/packages/media-sound/pnmixer/pnmixer-scm.exheres-0 +++ b/packages/media-sound/pnmixer/pnmixer-scm.exheres-0 @@ -2,45 +2,13 @@ # Copyright 2016 Julian Ospald # Distributed under the terms of the GNU General Public License v2 +require pnmixer require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] -require github [ user='nicklan' ] -SUMMARY="Simple ALSA mixer application designed to run in system tray" SLOT="0" -LICENCES="GPL-3" - -MYOPTIONS=" - libnotify - ( providers: gtk2 gtk3 ) [[ number-selected = exactly-one ]] -" PLATFORMS="~amd64" -DEPENDENCIES=" - build: - dev-util/intltool - 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 ] - ]] -" - -DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( - libnotify - 'providers:gtk3 gtk3' -) - src_prepare() { edo intltoolize --force --copy autotools_src_prepare diff --git a/packages/media-sound/pnmixer/pnmixer.exlib b/packages/media-sound/pnmixer/pnmixer.exlib new file mode 100644 index 00000000..9332f003 --- /dev/null +++ b/packages/media-sound/pnmixer/pnmixer.exlib @@ -0,0 +1,42 @@ +# Copyright 2015 Kylie McClain +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +myexparam release=v${PV} +PNMIXER_RELEASE=$(exparam release) + +require github [ user='nicklan' release="${PNMIXER_RELEASE}" suffix="tar.gz" ] + +SUMMARY="Simple ALSA mixer application designed to run in system tray" +LICENCES="GPL-3" + +MYOPTIONS=" + libnotify + ( providers: gtk2 gtk3 ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build: + dev-util/intltool + 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 ] + ]] +" + +DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( + libnotify + 'providers:gtk3 gtk3' +) +