From owner-svn-ports-head@FreeBSD.ORG Sun Jan 4 11:53:24 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EF7C45F3; Sun, 4 Jan 2015 11:53:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D9AD83957; Sun, 4 Jan 2015 11:53:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t04BrOKR087593; Sun, 4 Jan 2015 11:53:24 GMT (envelope-from romain@FreeBSD.org) Received: (from romain@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t04BrNGo087586; Sun, 4 Jan 2015 11:53:23 GMT (envelope-from romain@FreeBSD.org) Message-Id: <201501041153.t04BrNGo087586@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: romain set sender to romain@FreeBSD.org using -f From: Romain Tartière Date: Sun, 4 Jan 2015 11:53:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376210 - in head/audio/pavucontrol: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2015 11:53:25 -0000 Author: romain Date: Sun Jan 4 11:53:22 2015 New Revision: 376210 URL: https://svnweb.freebsd.org/changeset/ports/376210 QAT: https://qat.redports.org/buildarchive/r376210/ Log: Update to 2.0 PR: 192571 Submitted by: olivierd Added: head/audio/pavucontrol/files/ head/audio/pavucontrol/files/extra-patch-src_pavucontrol.glade (contents, props changed) head/audio/pavucontrol/files/extra-patch-support-gtkmm-24.patch (contents, props changed) head/audio/pavucontrol/files/extra-patch-support-gtkmm-30.patch (contents, props changed) Modified: head/audio/pavucontrol/Makefile head/audio/pavucontrol/distinfo head/audio/pavucontrol/pkg-descr head/audio/pavucontrol/pkg-plist Modified: head/audio/pavucontrol/Makefile ============================================================================== --- head/audio/pavucontrol/Makefile Sun Jan 4 11:50:24 2015 (r376209) +++ head/audio/pavucontrol/Makefile Sun Jan 4 11:53:22 2015 (r376210) @@ -2,24 +2,50 @@ # $FreeBSD$ PORTNAME= pavucontrol -PORTVERSION= 0.9.10 -PORTREVISION= 3 +PORTVERSION= 2.0 CATEGORIES= audio -MASTER_SITES= http://0pointer.de/lennart/projects/${PORTNAME}/ +MASTER_SITES= http://freedesktop.org/software/pulseaudio/${PORTNAME}/ MAINTAINER= romain@FreeBSD.org COMMENT= GTK mixer for PulseAudio -LIB_DEPENDS= libglademm-2.4.so:${PORTSDIR}/devel/libglademm24 \ - libpulse.so:${PORTSDIR}/audio/pulseaudio \ - libcanberra.so:${PORTSDIR}/audio/libcanberra +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio GNU_CONFIGURE= yes -USES= gettext gmake pkgconfig -USE_GNOME= intltool +USES= gmake pkgconfig gettext tar:xz +USE_GNOME= glibmm intltool libsigc++20 + +OPTIONS_SUB= yes +OPTIONS_SINGLE= GTK +OPTIONS_SINGLE_GTK= GTK2 GTK3 +OPTIONS_DEFAULT= GTK2 CONFIGURE_ARGS= --disable-lynx -CPPFLAGS+= -I${LOCALBASE}/include -LIBS+= -L${LOCALBASE}/lib + +GTK2_USE= GNOME=gtkmm24 +GTK2_LIB_DEPENDS= libcanberra.so:${PORTSDIR}/audio/libcanberra +GTK2_CONFIGURE_ON= --disable-gtk3 + +GTK3_USE= GNOME=gtkmm30 +GTK3_LIB_DEPENDS= libcanberra-gtk3.so:${PORTSDIR}/audio/libcanberra-gtk3 + +.include + +.if ${PORT_OPTIONS:MGTK2} +EXTRA_PATCHES= ${FILESDIR}/extra-patch-support-gtkmm-24.patch +.endif + +.if ${PORT_OPTIONS:MGTK3} +EXTRA_PATCHES= ${FILESDIR}/extra-patch-support-gtkmm-30.patch \ + ${FILESDIR}/extra-patch-src_pavucontrol.glade +.endif + +post-patch: +# Install locales files in right place + ${REINPLACE_CMD} -e 's|[$$][(]DATADIRNAME[)]|share|' \ + ${WRKSRC}/po/Makefile.in.in .include Modified: head/audio/pavucontrol/distinfo ============================================================================== --- head/audio/pavucontrol/distinfo Sun Jan 4 11:50:24 2015 (r376209) +++ head/audio/pavucontrol/distinfo Sun Jan 4 11:53:22 2015 (r376210) @@ -1,2 +1,2 @@ -SHA256 (pavucontrol-0.9.10.tar.gz) = 7ee96d2ddc28f53e392a1bc51a7316d2a9087ea2ad18e611f6f6725e756a5a3c -SIZE (pavucontrol-0.9.10.tar.gz) = 227735 +SHA256 (pavucontrol-2.0.tar.xz) = 22f29dd81b4a1a34ec7bffe9b027aff2a37fc76ccded4539d43a8c126a39470b +SIZE (pavucontrol-2.0.tar.xz) = 151560 Added: head/audio/pavucontrol/files/extra-patch-src_pavucontrol.glade ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pavucontrol/files/extra-patch-src_pavucontrol.glade Sun Jan 4 11:53:22 2015 (r376210) @@ -0,0 +1,52 @@ +From: Hans de Goede +Date: Fri, 29 Aug 2014 09:42:04 +0200 +Subject: Do not instantiate cardwidget, devicewidget and rolewidget with + a type of EventBox + +--- src/pavucontrol.glade.orig 2012-12-17 09:50:42 UTC ++++ src/pavucontrol.glade +@@ -12,12 +12,12 @@ + False + window1 + +- ++ + True + False + False + +- ++ + True + False + +@@ -202,12 +202,12 @@ + False + window1 + +- ++ + True + False + False + +- ++ + True + False + +@@ -1316,12 +1316,12 @@ + False + window1 + +- ++ + True + False + False + +- ++ + True + False + Added: head/audio/pavucontrol/files/extra-patch-support-gtkmm-24.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pavucontrol/files/extra-patch-support-gtkmm-24.patch Sun Jan 4 11:53:22 2015 (r376210) @@ -0,0 +1,28 @@ +From: Alam Arias +Date: Fri, 8 Mar 2013 14:27:02 -0500 +Subject: added back support for gtkmm-2.4 builds + +--- src/devicewidget.cc.orig 2012-12-17 09:50:42 UTC ++++ src/devicewidget.cc +@@ -63,8 +63,8 @@ DeviceWidget::DeviceWidget(BaseObjectTyp + for (unsigned i = 0; i < PA_CHANNELS_MAX; i++) + channelWidgets[i] = NULL; + +- offsetAdjustment = Gtk::Adjustment::create(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); +- offsetButton->configure(offsetAdjustment, 0, 2); ++ offsetAdjustment = new Gtk::Adjustment(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); ++ offsetButton->configure(*offsetAdjustment, 0.0, 2); + } + + void DeviceWidget::init(MainWindow* mainWindow, Glib::ustring deviceType) { +--- src/devicewidget.h.orig 2012-12-17 09:17:56 UTC ++++ src/devicewidget.h +@@ -98,7 +98,7 @@ protected: + Gtk::HBox *portSelect, *offsetSelect; + Gtk::ComboBox *portList; + Glib::RefPtr treeModel; +- Glib::RefPtr offsetAdjustment; ++ Gtk::Adjustment *offsetAdjustment; + + private: + Glib::ustring mDeviceType; Added: head/audio/pavucontrol/files/extra-patch-support-gtkmm-30.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pavucontrol/files/extra-patch-support-gtkmm-30.patch Sun Jan 4 11:53:22 2015 (r376210) @@ -0,0 +1,134 @@ +From: Hans de Goede +Date: Thu, 28 Aug 2014 12:58:05 +0200 +Subject: Reference the widget before returning it from ::create methods + +--- src/cardwidget.cc.orig 2011-08-12 14:18:44 UTC ++++ src/cardwidget.cc +@@ -45,6 +45,7 @@ CardWidget* CardWidget::create() { + CardWidget* w; + Glib::RefPtr x = Gtk::Builder::create_from_file(GLADE_FILE, "cardWidget"); + x->get_widget_derived("cardWidget", w); ++ w->reference(); + return w; + } + +--- src/channelwidget.cc.orig 2011-03-10 07:39:25 UTC ++++ src/channelwidget.cc +@@ -53,6 +53,7 @@ ChannelWidget* ChannelWidget::create() { + x->add_from_file(GLADE_FILE, "adjustment1"); + x->add_from_file(GLADE_FILE, "channelWidget"); + x->get_widget_derived("channelWidget", w); ++ w->reference(); + return w; + } + +--- src/mainwindow.cc.orig 2012-12-17 09:19:04 UTC ++++ src/mainwindow.cc +@@ -298,6 +298,7 @@ void MainWindow::updateCard(const pa_car + else { + cardWidgets[info.index] = w = CardWidget::create(); + cardsVBox->pack_start(*w, false, false, 0); ++ w->unreference(); + w->index = info.index; + is_new = true; + } +@@ -414,6 +415,7 @@ bool MainWindow::updateSink(const pa_sin + sinkWidgets[info.index] = w = SinkWidget::create(this); + w->setChannelMap(info.channel_map, !!(info.flags & PA_SINK_DECIBEL_VOLUME)); + sinksVBox->pack_start(*w, false, false, 0); ++ w->unreference(); + w->index = info.index; + w->monitor_index = info.monitor_source; + is_new = true; +@@ -567,6 +569,7 @@ void MainWindow::updateSource(const pa_s + sourceWidgets[info.index] = w = SourceWidget::create(this); + w->setChannelMap(info.channel_map, !!(info.flags & PA_SOURCE_DECIBEL_VOLUME)); + sourcesVBox->pack_start(*w, false, false, 0); ++ w->unreference(); + w->index = info.index; + is_new = true; + +@@ -682,6 +685,7 @@ void MainWindow::updateSinkInput(const p + sinkInputWidgets[info.index] = w = SinkInputWidget::create(this); + w->setChannelMap(info.channel_map, true); + streamsVBox->pack_start(*w, false, false, 0); ++ w->unreference(); + w->index = info.index; + w->clientIndex = info.client; + is_new = true; +@@ -737,6 +741,7 @@ void MainWindow::updateSourceOutput(cons + w->setChannelMap(info.channel_map, true); + #endif + recsVBox->pack_start(*w, false, false, 0); ++ w->unreference(); + w->index = info.index; + w->clientIndex = info.client; + is_new = true; +@@ -830,6 +835,7 @@ bool MainWindow::createEventRoleWidget() + + eventRoleWidget = RoleWidget::create(); + streamsVBox->pack_start(*eventRoleWidget, false, false, 0); ++ eventRoleWidget->unreference(); + eventRoleWidget->role = "sink-input-by-media-role:event"; + eventRoleWidget->setChannelMap(cm, true); + +--- src/rolewidget.cc.orig 2011-03-10 07:39:25 UTC ++++ src/rolewidget.cc +@@ -40,6 +40,7 @@ RoleWidget* RoleWidget::create() { + RoleWidget* w; + Glib::RefPtr x = Gtk::Builder::create_from_file(GLADE_FILE, "streamWidget"); + x->get_widget_derived("streamWidget", w); ++ w->reference(); + return w; + } + +--- src/sinkinputwidget.cc.orig 2011-03-10 07:39:25 UTC ++++ src/sinkinputwidget.cc +@@ -43,6 +43,7 @@ SinkInputWidget* SinkInputWidget::create + Glib::RefPtr x = Gtk::Builder::create_from_file(GLADE_FILE, "streamWidget"); + x->get_widget_derived("streamWidget", w); + w->init(mainWindow); ++ w->reference(); + return w; + } + +--- src/sinkwidget.cc.orig 2012-12-17 09:50:42 UTC ++++ src/sinkwidget.cc +@@ -70,6 +70,7 @@ SinkWidget* SinkWidget::create(MainWindo + Glib::RefPtr x = Gtk::Builder::create_from_file(GLADE_FILE, "deviceWidget"); + x->get_widget_derived("deviceWidget", w); + w->init(mainWindow, "sink"); ++ w->reference(); + return w; + } + +--- src/sourceoutputwidget.cc.orig 2011-08-08 13:33:17 UTC ++++ src/sourceoutputwidget.cc +@@ -49,6 +49,7 @@ SourceOutputWidget* SourceOutputWidget:: + Glib::RefPtr x = Gtk::Builder::create_from_file(GLADE_FILE, "streamWidget"); + x->get_widget_derived("streamWidget", w); + w->init(mainWindow); ++ w->reference(); + return w; + } + +--- src/sourcewidget.cc.orig 2011-03-10 07:39:25 UTC ++++ src/sourcewidget.cc +@@ -35,6 +35,7 @@ SourceWidget* SourceWidget::create(MainW + Glib::RefPtr x = Gtk::Builder::create_from_file(GLADE_FILE, "deviceWidget"); + x->get_widget_derived("deviceWidget", w); + w->init(mainWindow, "source"); ++ w->reference(); + return w; + } + +--- src/streamwidget.cc.orig 2011-03-10 07:39:25 UTC ++++ src/streamwidget.cc +@@ -77,6 +77,7 @@ void StreamWidget::setChannelMap(const p + snprintf(text, sizeof(text), "%s", pa_channel_position_to_pretty_string(m.map[i])); + cw->channelLabel->set_markup(text); + channelsVBox->pack_start(*cw, false, false, 0); ++ cw->unreference(); + } + channelWidgets[m.channels-1]->last = true; + channelWidgets[m.channels-1]->setBaseVolume(PA_VOLUME_NORM); Modified: head/audio/pavucontrol/pkg-descr ============================================================================== --- head/audio/pavucontrol/pkg-descr Sun Jan 4 11:50:24 2015 (r376209) +++ head/audio/pavucontrol/pkg-descr Sun Jan 4 11:53:22 2015 (r376210) @@ -3,4 +3,4 @@ tool ("mixer") for the PulseAudio sound tools this one allows you to control both the volume of hardware devices and of each playback stream separately. -WWW: http://0pointer.de/lennart/projects/pavucontrol/ +WWW: http://freedesktop.org/software/pulseaudio/pavucontrol/ Modified: head/audio/pavucontrol/pkg-plist ============================================================================== --- head/audio/pavucontrol/pkg-plist Sun Jan 4 11:50:24 2015 (r376209) +++ head/audio/pavucontrol/pkg-plist Sun Jan 4 11:53:22 2015 (r376210) @@ -1,8 +1,8 @@ bin/pavucontrol share/applications/pavucontrol.desktop -share/doc/pavucontrol/README -share/doc/pavucontrol/README.html -share/doc/pavucontrol/style.css +%%DOCSDIR%%/README +%%DOCSDIR%%/README.html +%%DOCSDIR%%/style.css share/locale/as/LC_MESSAGES/pavucontrol.mo share/locale/bn_IN/LC_MESSAGES/pavucontrol.mo share/locale/ca/LC_MESSAGES/pavucontrol.mo