* [gentoo-commits] repo/gentoo:master commit in: media-sound/guayadeque/files/, media-sound/guayadeque/
@ 2015-10-25 15:03 Justin Lecher
0 siblings, 0 replies; 4+ messages in thread
From: Justin Lecher @ 2015-10-25 15:03 UTC (permalink / raw
To: gentoo-commits
commit: 5382ac4543b6650bef6d8065913e968c7a765d18
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 25 15:00:57 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Oct 25 15:03:16 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5382ac45
media-sound/guayadeque: Import debian patchset for wxgtk-3.0 support
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=564046
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
| 90 +++
.../guayadeque/files/guayadeque-0.3.7-wx3.0.patch | 700 +++++++++++++++++++++
media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild | 120 ++++
3 files changed, 910 insertions(+)
--git a/media-sound/guayadeque/files/guayadeque-0.3.7-headers-location.patch b/media-sound/guayadeque/files/guayadeque-0.3.7-headers-location.patch
new file mode 100644
index 0000000..8c6faae
--- /dev/null
+++ b/media-sound/guayadeque/files/guayadeque-0.3.7-headers-location.patch
@@ -0,0 +1,90 @@
+Description: Point sources to the correct wxcurl's headers location.
+Author: Alessio Treglia <alessio@debian.org>
+Forwarded: no
+---
+ src/LastFM.cpp | 2 +-
+ src/LastFMPanel.cpp | 2 +-
+ src/LyricsPanel.cpp | 2 +-
+ src/MainFrame.h | 2 +-
+ src/MusicBrainz.cpp | 2 +-
+ src/MusicDns.cpp | 2 +-
+ src/Podcasts.h | 2 +-
+ 7 files changed, 7 insertions(+), 7 deletions(-)
+
+--- a/src/LastFM.cpp
++++ b/src/LastFM.cpp
+@@ -24,7 +24,7 @@
+ #include "DbCache.h"
+ #include "Utils.h"
+
+-#include "curl/http.h"
++#include "wx/curl/http.h"
+
+ #include <wx/arrimpl.cpp>
+ #include <wx/sstream.h>
+--- a/src/LastFMPanel.cpp
++++ b/src/LastFMPanel.cpp
+@@ -21,7 +21,7 @@
+ #include "LastFMPanel.h"
+
+ #include "Commands.h"
+-#include "curl/http.h"
++#include "wx/curl/http.h"
+ #include "Images.h"
+ #include "MainApp.h"
+ #include "Settings.h"
+--- a/src/LyricsPanel.cpp
++++ b/src/LyricsPanel.cpp
+@@ -23,7 +23,7 @@
+ #include "Base64.h"
+ #include "Commands.h"
+ #include "Config.h"
+-#include "curl/http.h"
++#include "wx/curl/http.h"
+ #include "Preferences.h"
+ #include "Images.h"
+ #include "ListView.h"
+--- a/src/MainFrame.h
++++ b/src/MainFrame.h
+@@ -26,7 +26,7 @@
+ #include "Config.h"
+ #include "CoverPanel.h"
+ #include "Collections.h"
+-#include "curl/http.h"
++#include "wx/curl/http.h"
+ #include "dbus/gudbus.h"
+ #include "dbus/mpris.h"
+ #include "dbus/mpris2.h"
+--- a/src/MusicBrainz.cpp
++++ b/src/MusicBrainz.cpp
+@@ -21,7 +21,7 @@
+ #include "MusicBrainz.h"
+
+ #include "Utils.h"
+-#include "curl/http.h"
++#include "wx/curl/http.h"
+
+ #include <wx/arrimpl.cpp>
+ #include <wx/sstream.h>
+--- a/src/MusicDns.cpp
++++ b/src/MusicDns.cpp
+@@ -21,7 +21,7 @@
+ #include "MusicDns.h"
+
+ #include "Commands.h"
+-#include "curl/http.h"
++#include "wx/curl/http.h"
+ #include "MusicBrainz.h"
+ #include "Utils.h"
+ #include "Version.h"
+--- a/src/Podcasts.h
++++ b/src/Podcasts.h
+@@ -21,7 +21,7 @@
+ #ifndef PODCASTS_H
+ #define PODCASTS_H
+
+-#include "curl/http.h"
++#include "wx/curl/http.h"
+
+ #include <wx/dynarray.h>
+ #include <wx/xml/xml.h>
diff --git a/media-sound/guayadeque/files/guayadeque-0.3.7-wx3.0.patch b/media-sound/guayadeque/files/guayadeque-0.3.7-wx3.0.patch
new file mode 100644
index 0000000..1071de0
--- /dev/null
+++ b/media-sound/guayadeque/files/guayadeque-0.3.7-wx3.0.patch
@@ -0,0 +1,700 @@
+Description: Fix to work with wxwidgets3.0
+ Based on partial patch by dam.
+Author: Olly Betts <olly@survex.com>
+Bug-Debian: http://bugs.debian.org/749978
+Forwarded: no
+Last-Update: 2014-08-14
+
+--- a/src/ListView.h
++++ b/src/ListView.h
+@@ -28,6 +28,7 @@
+ #include <wx/scrolwin.h>
+ #include <wx/vlbox.h>
+ #include <wx/settings.h>
++#include <wx/listbase.h>
+
+ class guListViewClient;
+ class guListViewHeader;
+@@ -330,7 +331,7 @@
+ size_t GetVisibleEnd( void ) const { return m_ListBox->GetVisibleEnd(); }
+ size_t GetFirstVisibleLine() const { return m_ListBox->GetFirstVisibleLine(); }
+ size_t GetLastVisibleLine() const { return m_ListBox->GetLastVisibleLine(); }
+- bool ScrollLines( int lines ) { return m_ListBox->ScrollLines( lines ); }
++ bool ScrollLines( int lines ) { return m_ListBox->wxWindow::ScrollLines( lines ); }
+
+ bool ScrollToLine( size_t line ) { return m_ListBox->ScrollToLine( line ); }
+
+--- a/src/FileBrowser.cpp
++++ b/src/FileBrowser.cpp
+@@ -36,6 +36,7 @@
+ #include <wx/arrimpl.cpp>
+ #include <wx/artprov.h>
+ #include <wx/clipbrd.h>
++#include <wx/gtk/tglbtn.h>
+
+ WX_DEFINE_OBJARRAY(guFileItemArray);
+
+@@ -221,7 +222,7 @@
+
+ DirBtnSizer->Add( 0, 0, 1, wxEXPAND, 5 );
+
+- m_ShowLibPathsBtn = new wxToggleBitmapButton( this, wxID_ANY, guImage( guIMAGE_INDEX_tiny_library ), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
++ m_ShowLibPathsBtn = new wxBitmapToggleButton( this, wxID_ANY, guImage( guIMAGE_INDEX_tiny_library ), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
+ m_ShowLibPathsBtn->SetToolTip( ShowPaths == guFILEBROWSER_SHOWPATH_SYSTEM ?
+ _( "See used locations" ) :
+ _( "See system files" ) );
+--- a/src/FileBrowser.h
++++ b/src/FileBrowser.h
+@@ -36,6 +36,7 @@
+ #include <wx/sizer.h>
+ #include <wx/string.h>
+ #include <wx/tglbtn.h>
++#include <wx/gtk/tglbtn.h>
+
+
+ #define guPANEL_FILEBROWSER_DIRCTRL ( 1 << 0 )
+@@ -122,7 +123,7 @@
+ guMediaViewer * m_MediaViewer;
+ guGenericDirCtrl * m_DirCtrl;
+ bool m_AddingFolder;
+- wxToggleBitmapButton * m_ShowLibPathsBtn;
++ wxBitmapToggleButton * m_ShowLibPathsBtn;
+
+ void OnShowLibPathsClick( wxCommandEvent& event );
+
+--- a/src/AuiNotebook.cpp
++++ b/src/AuiNotebook.cpp
+@@ -47,8 +47,8 @@
+ m_TextFgColor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
+ m_SelTextFgColour = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
+
+- m_disabled_close_bmp = guImage( guIMAGE_INDEX_tiny_close_normal );
+- m_active_close_bmp = guImage( guIMAGE_INDEX_tiny_close_highlight );
++ m_disabledCloseBmp = guImage( guIMAGE_INDEX_tiny_close_normal );
++ m_activeCloseBmp = guImage( guIMAGE_INDEX_tiny_close_highlight );
+ }
+
+ // -------------------------------------------------------------------------------- //
+@@ -60,9 +60,9 @@
+ wxAuiTabArt * guAuiTabArt::Clone()
+ {
+ guAuiTabArt * art = new guAuiTabArt;
+- art->SetNormalFont( m_normal_font );
+- art->SetSelectedFont( m_selected_font );
+- art->SetMeasuringFont( m_measuring_font );
++ art->SetNormalFont( m_normalFont );
++ art->SetSelectedFont( m_selectedFont );
++ art->SetMeasuringFont( m_measuringFont );
+ // art->m_BgColor = m_BgColor;
+ // art->m_SelBgColor = m_SelBgColor;
+ // art->m_TextFgColor = m_TextFgColor;
+@@ -75,7 +75,7 @@
+ // draw background
+ //wxColor top_color = m_base_colour;
+ wxColor top_color = m_BgColor;
+- wxColor bottom_color = wxAuiStepColour( m_base_colour, 120 );
++ wxColor bottom_color = wxAuiStepColour( m_baseColour, 120 );
+ wxRect r;
+
+ if( m_flags & wxAUI_NB_BOTTOM )
+@@ -88,7 +88,7 @@
+ dc.GradientFillLinear( r, top_color, bottom_color, wxNORTH );
+
+ // draw base lines
+- dc.SetPen( m_border_pen );
++ dc.SetPen( m_borderPen );
+ int y = rect.GetHeight();
+ int w = rect.GetWidth();
+
+@@ -120,10 +120,10 @@
+ if( caption.empty() )
+ caption = wxT("Xj");
+
+- dc.SetFont(m_selected_font);
++ dc.SetFont(m_selectedFont);
+ dc.GetTextExtent(caption, &selected_textx, &selected_texty);
+
+- dc.SetFont(m_normal_font);
++ dc.SetFont(m_normalFont);
+ dc.GetTextExtent(caption, &normal_textx, &normal_texty);
+
+ // figure out the size of the tab
+@@ -135,7 +135,7 @@
+ close_button_state,
+ x_extent);
+
+- wxCoord tab_height = m_tab_ctrl_height - 1;
++ wxCoord tab_height = m_tabCtrlHeight - 1;
+ if( !page.active )
+ tab_height -= 2;
+ wxCoord tab_width = tab_size.x;
+@@ -150,12 +150,12 @@
+
+ if( page.active )
+ {
+- dc.SetFont( m_selected_font );
++ dc.SetFont( m_selectedFont );
+ texty = selected_texty;
+ }
+ else
+ {
+- dc.SetFont(m_normal_font);
++ dc.SetFont(m_normalFont);
+ texty = normal_texty;
+ }
+
+@@ -221,7 +221,7 @@
+ // }
+
+ // draw tab outline
+- dc.SetPen( m_border_pen );
++ dc.SetPen( m_borderPen );
+ dc.SetBrush( * wxTRANSPARENT_BRUSH );
+ dc.DrawPolygon( WXSIZEOF( border_points ), border_points );
+
+@@ -230,7 +230,7 @@
+ if( page.active )
+ {
+ if( m_flags & wxAUI_NB_BOTTOM )
+- dc.SetPen( wxPen( wxColour( wxAuiStepColour( m_base_colour, 170 ) ) ) );
++ dc.SetPen( wxPen( wxColour( wxAuiStepColour( m_baseColour, 170 ) ) ) );
+ // TODO: else if (m_flags &wxAUI_NB_LEFT) {}
+ // TODO: else if (m_flags &wxAUI_NB_RIGHT) {}
+ else //for wxAUI_NB_TOP
+@@ -246,7 +246,7 @@
+ int close_button_width = 0;
+ if (close_button_state != wxAUI_BUTTON_STATE_HIDDEN)
+ {
+- close_button_width = m_active_close_bmp.GetWidth();
++ close_button_width = m_activeCloseBmp.GetWidth();
+ }
+
+
+@@ -284,12 +284,12 @@
+ // draw close button if necessary
+ if (close_button_state != wxAUI_BUTTON_STATE_HIDDEN)
+ {
+- wxBitmap bmp = m_disabled_close_bmp;
++ wxBitmap bmp = m_disabledCloseBmp;
+
+ if (close_button_state == wxAUI_BUTTON_STATE_HOVER ||
+ close_button_state == wxAUI_BUTTON_STATE_PRESSED)
+ {
+- bmp = m_active_close_bmp;
++ bmp = m_activeCloseBmp;
+ }
+
+ wxRect rect(tab_x + tab_width - close_button_width - 1,
+@@ -367,14 +367,14 @@
+ // UpdateTabCtrlHeight() does the actual tab resizing. It's meant
+ // to be used interally
+ // -------------------------------------------------------------------------------- //
+-void guAuiNotebook::UpdateTabCtrlHeight()
++bool guAuiNotebook::UpdateTabCtrlHeight()
+ {
+ // get the tab ctrl height we will use
+ int height = CalculateTabCtrlHeight();
+
+ wxAuiTabArt* art = m_tabs.GetArtProvider();
+
+- m_tab_ctrl_height = height;
++ m_tabCtrlHeight = height;
+
+ wxAuiPaneInfoArray& all_panes = m_mgr.GetAllPanes();
+ size_t i, pane_count = all_panes.GetCount();
+@@ -385,10 +385,12 @@
+ continue;
+ wxTabFrame* tab_frame = (wxTabFrame*)pane.window;
+ wxAuiTabCtrl* tabctrl = tab_frame->m_tabs;
+- tab_frame->SetTabCtrlHeight(m_tab_ctrl_height);
++ tab_frame->SetTabCtrlHeight(m_tabCtrlHeight);
+ tabctrl->SetArtProvider(art->Clone());
+ tab_frame->DoSizing();
+ }
++
++ return true;
+ }
+
+ // -------------------------------------------------------------------------------- //
+@@ -447,7 +449,7 @@
+ if( p )
+ tabs += wxT( "," );
+
+- if( ( int ) page_idx == m_curpage )
++ if( ( int ) page_idx == m_curPage )
+ tabs += wxT( "*" );
+ else if( ( int ) p == tabframe->m_tabs->GetActivePage() )
+ tabs += wxT( "+" );
+@@ -501,12 +503,12 @@
+ // create a new tab frame
+ wxTabFrame * new_tabs = new wxTabFrame;
+ new_tabs->m_tabs = new wxAuiTabCtrl( this,
+- m_tab_id_counter++,
++ m_tabIdCounter++,
+ wxDefaultPosition,
+ wxDefaultSize,
+ wxNO_BORDER | wxWANTS_CHARS );
+ new_tabs->m_tabs->SetArtProvider( m_tabs.GetArtProvider()->Clone() );
+- new_tabs->SetTabCtrlHeight( m_tab_ctrl_height );
++ new_tabs->SetTabCtrlHeight( m_tabCtrlHeight );
+ new_tabs->m_tabs->SetFlags( m_flags );
+ wxAuiTabCtrl * dest_tabs = new_tabs->m_tabs;
+
+@@ -555,7 +557,7 @@
+ m_mgr.LoadPerspective( frames );
+
+ // Force refresh of selection
+- m_curpage = -1;
++ m_curPage = -1;
+ SetSelection( sel_page );
+
+ return true;
+--- a/src/AuiNotebook.h
++++ b/src/AuiNotebook.h
+@@ -205,7 +205,7 @@
+
+ virtual ~guAuiNotebook();
+
+- virtual void UpdateTabCtrlHeight();
++ virtual bool UpdateTabCtrlHeight();
+
+ wxString SavePerspective( void );
+ bool LoadPerspective( const wxString &layout );
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -120,7 +120,7 @@
+ SET( ADD_WXSQLITE_SUPPORT 0 )
+ PKG_CHECK_MODULES( LIBWXSQLITE3 wxsqlite3 )
+ IF( NOT LIBWXSQLITE3_LIBRARIES )
+- PKG_CHECK_MODULES( LIBWXSQLITE3 wxsqlite3-2.8 )
++ PKG_CHECK_MODULES( LIBWXSQLITE3 wxsqlite3-3.0 )
+ IF( NOT LIBWXSQLITE3_LIBRARIES )
+ ADD_DEFINITIONS(-DADD_WXSQLITE_SUPPORT=1)
+ SET( ADD_WXSQLITE_SUPPORT 1 )
+--- a/src/LastFMPanel.cpp
++++ b/src/LastFMPanel.cpp
+@@ -2812,7 +2812,7 @@
+ if( event.GetKeyCode() == WXK_RETURN )
+ {
+ wxCommandEvent CmdEvent( wxEVT_COMMAND_TEXT_ENTER );
+- m_ArtistTextCtrl->AddPendingEvent( CmdEvent );
++ m_ArtistTextCtrl->GetEventHandler()->AddPendingEvent( CmdEvent );
+ return;
+ }
+ event.Skip();
+--- a/src/MainApp.cpp
++++ b/src/MainApp.cpp
+@@ -360,8 +360,7 @@
+ if( LangInfo )
+ {
+ guLogError( wxT( "Could not initialize the translations engine for ( %s )" ), LangInfo->CanonicalName.c_str() );
+- wxStandardPaths StdPaths;
+- guLogError( wxT( "Locale directory '%s'" ), StdPaths.GetLocalizedResourcesDir( LangInfo->CanonicalName, wxStandardPaths::ResourceCat_Messages).c_str() );
++ guLogError( wxT( "Locale directory '%s'" ), wxStandardPaths::Get().GetLocalizedResourcesDir( LangInfo->CanonicalName, wxStandardPaths::ResourceCat_Messages).c_str() );
+ }
+ else
+ {
+--- a/src/PLSoListBox.cpp
++++ b/src/PLSoListBox.cpp
+@@ -179,7 +179,7 @@
+ if( event.GetKeyCode() == WXK_DELETE )
+ {
+ wxCommandEvent evt( wxEVT_COMMAND_MENU_SELECTED, ID_TRACKS_DELETE );
+- GetParent()->AddPendingEvent( evt );
++ GetParent()->GetEventHandler()->AddPendingEvent( evt );
+ return;
+ }
+
+--- a/src/StatusBar.cpp
++++ b/src/StatusBar.cpp
+@@ -509,7 +509,7 @@
+ }
+
+ // -------------------------------------------------------------------------------- //
+-void guStatusBar::DrawField( wxDC &dc, int i )
++void guStatusBar::DrawField( wxDC &dc, int i, int textHeight )
+ {
+ wxRect rect;
+ GetFieldRect( i, rect );
+@@ -521,7 +521,7 @@
+ dc.DrawLine( rect.x + rect.width, rect.y + 1, rect.x + rect.width, rect.y + rect.height - 1 );
+ }
+
+- DrawFieldText( dc, i );
++ DrawFieldText( dc, rect, i, textHeight );
+ }
+
+ // -------------------------------------------------------------------------------- //
+--- a/src/TagInfo.cpp
++++ b/src/TagInfo.cpp
+@@ -2453,7 +2453,7 @@
+ }
+
+ // -------------------------------------------------------------------------------- //
+-bool guTagSetLyrics( const wxString &filename, wxString &lyrics )
++bool guTagSetLyrics( const wxString &filename, const wxString &lyrics )
+ {
+ guMainFrame * MainFrame = ( guMainFrame * ) wxTheApp->GetTopWindow();
+
+--- a/src/TagInfo.h
++++ b/src/TagInfo.h
+@@ -329,7 +329,7 @@
+ bool guTagSetPicture( const wxString &filename, wxImage * picture );
+ bool guTagSetPicture( const wxString &filename, const wxString &imagefile );
+ wxString guTagGetLyrics( const wxString &filename );
+-bool guTagSetLyrics( const wxString &filename, wxString &lyrics );
++bool guTagSetLyrics( const wxString &filename, const wxString &lyrics );
+ //void guUpdateTrack( const guTrack &track, const wxImage * image, const wxString &lyrics, const int &changedflags );
+ void guUpdateTracks( const guTrackArray &tracks, const guImagePtrArray &images,
+ const wxArrayString &lyrics, const wxArrayInt &changedflags );
+--- a/src/PlayListAppend.cpp
++++ b/src/PlayListAppend.cpp
+@@ -128,7 +128,7 @@
+ int guPlayListAppend::GetSelectedPlayList( void )
+ {
+ int Selection = m_PlayListComboBox->GetSelection();
+- if( Selection == wxNOT_FOUND && !m_PlayListComboBox->IsEmpty() )
++ if( Selection == wxNOT_FOUND && m_PlayListComboBox->GetCount() != 0 )
+ {
+ Selection = FindPlayListItem( m_PlayListItems, m_PlayListComboBox->GetValue().Lower().Trim().Trim( false ) );
+ }
+--- a/src/AlbumBrowser.cpp
++++ b/src/AlbumBrowser.cpp
+@@ -2308,7 +2308,7 @@
+ // Its a LeftUp event
+ event.SetEventType( wxEVT_LEFT_DOWN );
+ event.m_leftDown = true;
+- m_BigCoverTracksListBox->AddPendingEvent( event );
++ m_BigCoverTracksListBox->GetEventHandler()->AddPendingEvent( event );
+ }
+ return;
+ }
+--- a/src/AuiDockArt.cpp
++++ b/src/AuiDockArt.cpp
+@@ -23,7 +23,34 @@
+ #include "Images.h"
+ #include "Utils.h"
+
+-extern wxString wxAuiChopText( wxDC &dc, const wxString &text, int max_size );
++wxString wxAuiChopText(wxDC& dc, const wxString& text, int max_size)
++{
++ wxCoord x,y;
++
++ // first check if the text fits with no problems
++ dc.GetTextExtent(text, &x, &y);
++ if (x <= max_size)
++ return text;
++
++ size_t i, len = text.Length();
++ size_t last_good_length = 0;
++ for (i = 0; i < len; ++i)
++ {
++ wxString s = text.Left(i);
++ s += wxT("...");
++
++ dc.GetTextExtent(s, &x, &y);
++ if (x > max_size)
++ break;
++
++ last_good_length = i;
++ }
++
++ wxString ret = text.Left(last_good_length);
++ ret += wxT("...");
++ return ret;
++}
++
+
+ // -------------------------------------------------------------------------------- //
+ guAuiDockArt::guAuiDockArt() : wxAuiDefaultDockArt()
+@@ -42,12 +69,12 @@
+ // -------------------------------------------------------------------------------- //
+ void guAuiDockArt::DrawCaptionBackground( wxDC &dc, const wxRect &rect, bool active )
+ {
+- if( m_gradient_type == wxAUI_GRADIENT_NONE )
++ if( m_gradientType == wxAUI_GRADIENT_NONE )
+ {
+ if( active )
+- dc.SetBrush( wxBrush( m_active_caption_colour ) );
++ dc.SetBrush( wxBrush( m_activeCaptionColour ) );
+ else
+- dc.SetBrush( wxBrush( m_inactive_caption_colour ) );
++ dc.SetBrush( wxBrush( m_inactiveCaptionColour ) );
+
+ dc.DrawRectangle( rect.x, rect.y, rect.width, rect.height );
+ }
+@@ -58,15 +85,15 @@
+ // on mac the gradients are expected to become darker from the top
+ #ifdef __WXMAC__
+ DrawGradientRectangle( dc, rect,
+- m_active_caption_colour,
+- m_active_caption_gradient_colour,
+- m_gradient_type );
++ m_activeCaptionColour,
++ m_activeCaptionGradientColour,
++ m_gradientType );
+ #else
+ // on other platforms, active gradients become lighter at the top
+ DrawGradientRectangle( dc, rect,
+- m_active_caption_colour,
+- m_active_caption_gradient_colour,
+- m_gradient_type );
++ m_activeCaptionColour,
++ m_activeCaptionGradientColour,
++ m_gradientType );
+ #endif
+ }
+ else
+@@ -74,20 +101,20 @@
+ #ifdef __WXMAC__
+ // on mac the gradients are expected to become darker from the top
+ DrawGradientRectangle( dc, rect,
+- m_inactive_caption_colour,
+- m_inactive_caption_gradient_colour,
+- m_gradient_type );
++ m_inactiveCaptionColour,
++ m_inactiveCaptionGradientColour,
++ m_gradientType );
+ #else
+ // on other platforms, inactive gradients become lighter at the bottom
+ DrawGradientRectangle( dc, rect,
+- m_inactive_caption_colour,
+- m_inactive_caption_gradient_colour,
+- m_gradient_type );
++ m_inactiveCaptionColour,
++ m_inactiveCaptionGradientColour,
++ m_gradientType );
+ #endif
+ }
+ }
+
+- dc.SetPen( m_border_pen );
++ dc.SetPen( m_borderPen );
+ int y = rect.y + rect.height - 1;
+ dc.DrawLine( rect.x, y, rect.x + rect.width, y );
+ }
+@@ -97,11 +124,11 @@
+ void guAuiDockArt::DrawCaption( wxDC &dc, wxWindow * window, const wxString &text, const wxRect &rect, wxAuiPaneInfo &pane )
+ {
+ dc.SetPen( * wxTRANSPARENT_PEN );
+- dc.SetFont( m_caption_font );
++ dc.SetFont( m_captionFont );
+
+ DrawCaptionBackground( dc, rect, bool( pane.state & wxAuiPaneInfo::optionActive ) );
+
+- dc.SetTextForeground( pane.state & wxAuiPaneInfo::optionActive ? m_active_caption_text_colour : m_inactive_caption_text_colour );
++ dc.SetTextForeground( pane.state & wxAuiPaneInfo::optionActive ? m_activeCaptionTextColour : m_inactiveCaptionTextColour );
+
+ wxCoord w, h;
+ dc.GetTextExtent( wxT( "ABCDEFHXfgkj" ), &w, &h );
+@@ -110,11 +137,11 @@
+ clip_rect.width -= 3; // text offset
+ clip_rect.width -= 2; // button padding
+ if( pane.HasCloseButton() )
+- clip_rect.width -= m_button_size;
++ clip_rect.width -= m_buttonSize;
+ if( pane.HasPinButton() )
+- clip_rect.width -= m_button_size;
++ clip_rect.width -= m_buttonSize;
+ if( pane.HasMaximizeButton() )
+- clip_rect.width -= m_button_size;
++ clip_rect.width -= m_buttonSize;
+
+ wxString draw_text = wxAuiChopText( dc, text, clip_rect.width );
+
+--- a/src/SmartMode.cpp
++++ b/src/SmartMode.cpp
+@@ -500,7 +500,7 @@
+ int guGenSmartPlaylist::GetPlayListId( void )
+ {
+ int Selection = m_SaveToComboBox->GetSelection();
+- if( Selection == wxNOT_FOUND && !m_SaveToComboBox->IsEmpty() )
++ if( Selection == wxNOT_FOUND && m_SaveToComboBox->GetCount() != 0 )
+ {
+ Selection = FindPlayListItem( &m_Playlists, m_SaveToComboBox->GetValue().Lower().Trim().Trim( false ) );
+ }
+--- a/src/StaticBitmap.cpp
++++ b/src/StaticBitmap.cpp
+@@ -70,7 +70,7 @@
+ {
+ wxCommandEvent event( guStaticBitmapMouseOverEvent, guEVT_STATICBITMAP_MOUSE_OVER );
+ event.SetEventObject( this );
+- m_Bitmap->AddPendingEvent( event );
++ m_Bitmap->GetEventHandler()->AddPendingEvent( event );
+ }
+ }
+
+--- a/src/Equalizer.cpp
++++ b/src/Equalizer.cpp
+@@ -537,7 +537,7 @@
+ {
+ int Sel = m_PresetComboBox->GetSelection();
+
+- m_SaveButton->Enable( !m_PresetComboBox->IsEmpty() &&
++ m_SaveButton->Enable( m_PresetComboBox->GetCount() != 0 &&
+ ( m_BandChanged || !FindPresetName( m_PresetComboBox->GetValue(), m_EQPresets ) ) );
+
+ m_DelButton->Enable( Sel != wxNOT_FOUND );
+--- a/src/LocationPanel.cpp
++++ b/src/LocationPanel.cpp
+@@ -161,7 +161,52 @@
+ return 1;
+ }
+
+-extern wxColor wxAuiStepColour( const wxColor & c, int percent );
++unsigned char wxAuiBlendColour(unsigned char fg, unsigned char bg, double alpha)
++{
++ double result = bg + (alpha * (fg - bg));
++ if (result < 0.0)
++ result = 0.0;
++ if (result > 255)
++ result = 255;
++ return (unsigned char)result;
++}
++
++wxColor wxAuiStepColour(const wxColor& c, int ialpha)
++{
++ if (ialpha == 100)
++ return c;
++
++ unsigned char r = c.Red(),
++ g = c.Green(),
++ b = c.Blue();
++ unsigned char bg;
++
++ // ialpha is 0..200 where 0 is completely black
++ // and 200 is completely white and 100 is the same
++ // convert that to normal alpha 0.0 - 1.0
++ ialpha = wxMin(ialpha, 200);
++ ialpha = wxMax(ialpha, 0);
++ double alpha = ((double)(ialpha - 100.0))/100.0;
++
++ if (ialpha > 100)
++ {
++ // blend with white
++ bg = 255;
++ alpha = 1.0 - alpha; // 0 = transparent fg; 1 = opaque fg
++ }
++ else
++ {
++ // blend with black
++ bg = 0;
++ alpha += 1.0; // 0 = transparent fg; 1 = opaque fg
++ }
++
++ r = wxAuiBlendColour(r, bg, alpha);
++ g = wxAuiBlendColour(g, bg, alpha);
++ b = wxAuiBlendColour(b, bg, alpha);
++
++ return wxColour(r, g, b);
++}
+
+ // -------------------------------------------------------------------------------- //
+ void guLocationTreeCtrl::ReloadItems( const bool loadstate )
+--- a/src/StatusBar.h
++++ b/src/StatusBar.h
+@@ -46,7 +46,7 @@
+ public :
+ guGauge() : wxControl() { m_LastValue = wxNOT_FOUND; m_PaintWidth = 0; };
+ guGauge( wxWindow * parent, const wxString &label = wxEmptyString, bool showporcent = true, wxWindowID id = wxID_ANY, unsigned int max = 100,
+- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxGA_HORIZONTAL );
++ const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxGA_HORIZONTAL | wxBORDER_NONE );
+ ~guGauge( void );
+
+ void SetRange( int range );
+@@ -101,7 +101,7 @@
+ void SetPlayMode( const bool forcegapless );
+ void SetAudioScrobble( const bool audioscrobble );
+
+- virtual void DrawField( wxDC &dc, int i );
++ virtual void DrawField( wxDC &dc, int i, int textHeight );
+
+ };
+
+--- a/src/Utils.cpp
++++ b/src/Utils.cpp
+@@ -311,7 +311,7 @@
+ static const wxChar marks[] = wxT( "-_.\"!~*()'" );
+
+ wxString RetVal;
+- unsigned char CurChar;
++ wxChar CurChar;
+
+ wxCharBuffer CharBuffer = url.ToUTF8();
+ int Index;
+@@ -352,7 +352,7 @@
+
+ for( index = 0; index < StrLen; index++ )
+ {
+- unsigned char C = CharBuffer[ index ];
++ wxChar C = CharBuffer[ index ];
+ {
+ static const wxChar marks[] = wxT( " -_.\"/+!~*()'[]%" ); //~!@#$&*()=:/,;?+'
+
+--- a/src/ListView.cpp
++++ b/src/ListView.cpp
+@@ -914,7 +914,7 @@
+ // iterate over all visible lines
+ for( ; line < lineMax; line++ )
+ {
+- const wxCoord hLine = OnGetLineHeight( line );
++ const wxCoord hLine = OnGetRowHeight( line );
+
+ rectLine.height = hLine;
+
+--- a/src/TimeLine.h
++++ b/src/TimeLine.h
+@@ -115,7 +115,7 @@
+
+ virtual void TimerEvent( void );
+ virtual int TimerCreate( void );
+- virtual void TimerDestroy( void ) { g_source_remove( m_TimerId ); }
++ virtual void TimerDestroy( void ) { int id = m_TimerId; m_TimerId = 0; if (id) g_source_remove( id ); }
+
+ };
+
+--- a/src/SplashWin.cpp
++++ b/src/SplashWin.cpp
+@@ -79,7 +79,7 @@
+
+ Show( true );
+ SetThemeEnabled( false );
+- SetBackgroundStyle( wxBG_STYLE_CUSTOM );
++ SetBackgroundStyle( wxBG_STYLE_ERASE );
+
+ m_Timer.SetOwner( this );
+ m_Timer.Start( timeout, wxTIMER_ONE_SHOT );
+--- a/src/RoundButton.cpp
++++ b/src/RoundButton.cpp
+@@ -33,7 +33,7 @@
+
+ // -------------------------------------------------------------------------------- //
+ guRoundButton::guRoundButton( wxWindow * parent, const wxImage &image, const wxImage &selimage, const int flags ) :
+- wxControl( parent, wxID_ANY )
++ wxControl( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE )
+ {
+ m_Bitmap = wxBitmap( image );
+ m_HoverBitmap = wxBitmap( selimage );
+--- a/src/RatingCtrl.cpp
++++ b/src/RatingCtrl.cpp
+@@ -34,7 +34,8 @@
+ END_EVENT_TABLE()
+
+ // -------------------------------------------------------------------------------- //
+-guRating::guRating( wxWindow * parent, const int style ) : wxControl( parent, wxID_ANY )
++guRating::guRating( wxWindow * parent, const int style ) :
++ wxControl( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE )
+ {
+ m_Rating = wxNOT_FOUND;
+ m_Style = style;
+--- a/src/ToggleRoundButton.cpp
++++ b/src/ToggleRoundButton.cpp
+@@ -35,7 +35,7 @@
+ // -------------------------------------------------------------------------------- //
+ guToggleRoundButton::guToggleRoundButton( wxWindow * parent, const wxImage &image,
+ const wxImage &selimage, const wxImage &hoverimage ) :
+- wxControl( parent, wxID_ANY )
++ wxControl( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE )
+ {
+ m_Bitmap = wxBitmap( selimage );
+ m_DisBitmap = wxBitmap( image );
diff --git a/media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild b/media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild
new file mode 100644
index 0000000..60734ac
--- /dev/null
+++ b/media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+WX_GTK_VER="3.0"
+
+inherit cmake-utils eutils wxwidgets
+
+DESCRIPTION="Music management program designed for all music enthusiasts"
+HOMEPAGE="http://guayadeque.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ayatana ipod +minimal"
+
+# No test available, Making src_test fail
+RESTRICT="test"
+
+# Missing
+# gstreamer0.10-fluendo-mp3 #120237
+# gstreamer0.10-plugins-bad-multiverse ??
+# gstreamer0.10-plugins-base-apps ??
+
+GST_VERSION=0.10
+GST_DEPS="
+ dev-perl/GStreamer
+ media-libs/gnonlin:${GST_VERSION}
+ media-plugins/gst-plugins-alsa:${GST_VERSION}
+ media-plugins/gst-plugins-ffmpeg:${GST_VERSION}
+ media-plugins/gst-plugins-gio:${GST_VERSION}
+ media-plugins/gst-plugins-gnomevfs:${GST_VERSION}
+ media-plugins/gst-plugins-libnice:${GST_VERSION}
+ media-plugins/gst-plugins-pulse:${GST_VERSION}
+ media-plugins/gst-plugins-soup:${GST_VERSION}
+ media-plugins/gst-plugins-x:${GST_VERSION}
+ media-libs/gst-plugins-bad:${GST_VERSION}
+ media-libs/gst-plugins-base:${GST_VERSION}
+ media-libs/gst-plugins-good:${GST_VERSION}
+ media-libs/gst-plugins-ugly:${GST_VERSION}
+"
+
+RDEPEND="
+ dev-db/sqlite:3
+ >=dev-db/wxsqlite3-3.2.1
+ dev-libs/glib:2
+ media-libs/flac
+ media-libs/gstreamer:${GST_VERSION}[introspection]
+ >=media-libs/taglib-1.6.4
+ net-misc/curl
+ sys-apps/dbus
+ x11-libs/wxGTK:3.0[X]
+ ayatana? ( >=dev-libs/libindicate-0.7 )
+ ipod? ( media-libs/libgpod )
+ !minimal? ( ${GST_DEPS} )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+# echo $(cat po/CMakeLists.txt | grep ADD_SUBDIRECTORY | sed 's#ADD_SUBDIRECTORY( \(\w\+\) )#\1#')
+LANGS="es uk it de fr is nb th cs ru hu sv nl pt_BR pt el sk pl tr ja sr bg ca_ES hr"
+for l in ${LANGS}; do
+ IUSE="$IUSE linguas_${l}"
+done
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.3.6*-underlinking.patch
+ "${FILESDIR}"/${P}-wx3.0.patch
+ "${FILESDIR}"/${P}-headers-location.patch
+)
+
+src_prepare() {
+ for l in ${LANGS} ; do
+ if ! use linguas_${l} ; then
+ sed \
+ -e "/${l}/d" \
+ -i po/CMakeLists.txt || die
+ fi
+ done
+
+ if ! use ipod; then
+ sed \
+ -e '/PKG_CHECK_MODULES( LIBGPOD/,/^ENDIF/d' \
+ -i CMakeLists.txt || die
+ fi
+
+ if ! use ayatana; then
+ sed \
+ -e '/PKG_CHECK_MODULES( LIBINDICATE/,/^ENDIF/d' \
+ -i CMakeLists.txt || die
+ fi
+
+ rm -rf src/wx/wxsql* src/wxsqlite3 || die
+
+ cmake-utils_src_prepare
+
+ # otherwise cmake checks for svn
+ esvn_clean
+
+ sed 's:-O2::g' -i CMakeLists.txt || die
+
+ sed \
+ -e '/Encoding/d' \
+ -i guayadeque.desktop || die
+}
+
+pkg_postinst() {
+ local pkg
+ if use minimal; then
+ elog "If you are missing functionalities consider setting USE=-minimal"
+ elog "or install any of the following packages:"
+ for pkg in ${GST_DEPS}; do
+ elog "\t ${pkg}"
+ done
+ fi
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/guayadeque/files/, media-sound/guayadeque/
@ 2017-02-13 22:39 David Seifert
0 siblings, 0 replies; 4+ messages in thread
From: David Seifert @ 2017-02-13 22:39 UTC (permalink / raw
To: gentoo-commits
commit: b64689e4b8e95ad1626444e959f4d40f1361e7b3
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 13 22:39:24 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Feb 13 22:39:46 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b64689e4
media-sound/guayadeque: Remove old
Package-Manager: Portage-2.3.3, Repoman-2.3.1
media-sound/guayadeque/Manifest | 1 -
.../guayadeque-0.3.6_pre1887-underlinking.patch | 10 -
| 90 ---
.../guayadeque/files/guayadeque-0.3.7-wx3.0.patch | 700 ---------------------
media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild | 120 ----
5 files changed, 921 deletions(-)
diff --git a/media-sound/guayadeque/Manifest b/media-sound/guayadeque/Manifest
index ad1a4931a1..b2abc9d5ff 100644
--- a/media-sound/guayadeque/Manifest
+++ b/media-sound/guayadeque/Manifest
@@ -1,2 +1 @@
-DIST guayadeque-0.3.7.tar.bz2 1620734 SHA256 d23eb1247add0bef8d5fef834294d7cb3d7c5fc20db9022b86f618a13d359938 SHA512 7fb15d0454281a9fb436a95b04054812d0758f643ab9a28e6cefc171d5d90ad6de19e0b97384f8304a24e417a53b8655d4d99babf86439f371d719cd4a00e58e WHIRLPOOL ed6863de7916d484dd8702e3f809b20691157f9ecfa3314e3d3bb2471d5d440f10a9a4bd646c767648be4c612f45d5de03c761c0487b53631bcad8c6a6f40d95
DIST guayadeque-0.4.5_p20170110.tar.gz 2070855 SHA256 07d160f74ad38e68bf003b9ba50349282625edbb129d5f4795bd18deac69cd80 SHA512 57215ba47574fba615b33d72f45279c3726035bea38746f7d927a39866fb3fa8a3fb1dbd13fe672c7daba16a2131fbf4b89afed6a3bf8d9a584e5112d926f518 WHIRLPOOL 487d80b9d5dff02d2e5254351505a349b665c40c0af997d75691740bb6965f3718545c427143c930b2f0cb3c4ea7c8f0ad2b2293f269a33c50e99b79a74a6f65
diff --git a/media-sound/guayadeque/files/guayadeque-0.3.6_pre1887-underlinking.patch b/media-sound/guayadeque/files/guayadeque-0.3.6_pre1887-underlinking.patch
deleted file mode 100644
index c2b73e2585..0000000000
--- a/media-sound/guayadeque/files/guayadeque-0.3.6_pre1887-underlinking.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- guayadeque-svn1858/src/CMakeLists.txt.orig 2012-12-14 19:42:25.000000000 +0100
-+++ guayadeque-svn1858/src/CMakeLists.txt 2012-12-24 14:33:58.486362648 +0100
-@@ -321,6 +321,7 @@
- ${LIBINDICATE07_LIBRARIES}
- ${LIBAPPINDICATOR_LIBRARIES}
- ${LIBWXSQLITE3_LIBRARIES}
-+ -lgdk_pixbuf-2.0
- )
-
- INSTALL( TARGETS guayadeque
diff --git a/media-sound/guayadeque/files/guayadeque-0.3.7-headers-location.patch b/media-sound/guayadeque/files/guayadeque-0.3.7-headers-location.patch
deleted file mode 100644
index 8c6faae5e4..0000000000
--- a/media-sound/guayadeque/files/guayadeque-0.3.7-headers-location.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-Description: Point sources to the correct wxcurl's headers location.
-Author: Alessio Treglia <alessio@debian.org>
-Forwarded: no
----
- src/LastFM.cpp | 2 +-
- src/LastFMPanel.cpp | 2 +-
- src/LyricsPanel.cpp | 2 +-
- src/MainFrame.h | 2 +-
- src/MusicBrainz.cpp | 2 +-
- src/MusicDns.cpp | 2 +-
- src/Podcasts.h | 2 +-
- 7 files changed, 7 insertions(+), 7 deletions(-)
-
---- a/src/LastFM.cpp
-+++ b/src/LastFM.cpp
-@@ -24,7 +24,7 @@
- #include "DbCache.h"
- #include "Utils.h"
-
--#include "curl/http.h"
-+#include "wx/curl/http.h"
-
- #include <wx/arrimpl.cpp>
- #include <wx/sstream.h>
---- a/src/LastFMPanel.cpp
-+++ b/src/LastFMPanel.cpp
-@@ -21,7 +21,7 @@
- #include "LastFMPanel.h"
-
- #include "Commands.h"
--#include "curl/http.h"
-+#include "wx/curl/http.h"
- #include "Images.h"
- #include "MainApp.h"
- #include "Settings.h"
---- a/src/LyricsPanel.cpp
-+++ b/src/LyricsPanel.cpp
-@@ -23,7 +23,7 @@
- #include "Base64.h"
- #include "Commands.h"
- #include "Config.h"
--#include "curl/http.h"
-+#include "wx/curl/http.h"
- #include "Preferences.h"
- #include "Images.h"
- #include "ListView.h"
---- a/src/MainFrame.h
-+++ b/src/MainFrame.h
-@@ -26,7 +26,7 @@
- #include "Config.h"
- #include "CoverPanel.h"
- #include "Collections.h"
--#include "curl/http.h"
-+#include "wx/curl/http.h"
- #include "dbus/gudbus.h"
- #include "dbus/mpris.h"
- #include "dbus/mpris2.h"
---- a/src/MusicBrainz.cpp
-+++ b/src/MusicBrainz.cpp
-@@ -21,7 +21,7 @@
- #include "MusicBrainz.h"
-
- #include "Utils.h"
--#include "curl/http.h"
-+#include "wx/curl/http.h"
-
- #include <wx/arrimpl.cpp>
- #include <wx/sstream.h>
---- a/src/MusicDns.cpp
-+++ b/src/MusicDns.cpp
-@@ -21,7 +21,7 @@
- #include "MusicDns.h"
-
- #include "Commands.h"
--#include "curl/http.h"
-+#include "wx/curl/http.h"
- #include "MusicBrainz.h"
- #include "Utils.h"
- #include "Version.h"
---- a/src/Podcasts.h
-+++ b/src/Podcasts.h
-@@ -21,7 +21,7 @@
- #ifndef PODCASTS_H
- #define PODCASTS_H
-
--#include "curl/http.h"
-+#include "wx/curl/http.h"
-
- #include <wx/dynarray.h>
- #include <wx/xml/xml.h>
diff --git a/media-sound/guayadeque/files/guayadeque-0.3.7-wx3.0.patch b/media-sound/guayadeque/files/guayadeque-0.3.7-wx3.0.patch
deleted file mode 100644
index 1071de0984..0000000000
--- a/media-sound/guayadeque/files/guayadeque-0.3.7-wx3.0.patch
+++ /dev/null
@@ -1,700 +0,0 @@
-Description: Fix to work with wxwidgets3.0
- Based on partial patch by dam.
-Author: Olly Betts <olly@survex.com>
-Bug-Debian: http://bugs.debian.org/749978
-Forwarded: no
-Last-Update: 2014-08-14
-
---- a/src/ListView.h
-+++ b/src/ListView.h
-@@ -28,6 +28,7 @@
- #include <wx/scrolwin.h>
- #include <wx/vlbox.h>
- #include <wx/settings.h>
-+#include <wx/listbase.h>
-
- class guListViewClient;
- class guListViewHeader;
-@@ -330,7 +331,7 @@
- size_t GetVisibleEnd( void ) const { return m_ListBox->GetVisibleEnd(); }
- size_t GetFirstVisibleLine() const { return m_ListBox->GetFirstVisibleLine(); }
- size_t GetLastVisibleLine() const { return m_ListBox->GetLastVisibleLine(); }
-- bool ScrollLines( int lines ) { return m_ListBox->ScrollLines( lines ); }
-+ bool ScrollLines( int lines ) { return m_ListBox->wxWindow::ScrollLines( lines ); }
-
- bool ScrollToLine( size_t line ) { return m_ListBox->ScrollToLine( line ); }
-
---- a/src/FileBrowser.cpp
-+++ b/src/FileBrowser.cpp
-@@ -36,6 +36,7 @@
- #include <wx/arrimpl.cpp>
- #include <wx/artprov.h>
- #include <wx/clipbrd.h>
-+#include <wx/gtk/tglbtn.h>
-
- WX_DEFINE_OBJARRAY(guFileItemArray);
-
-@@ -221,7 +222,7 @@
-
- DirBtnSizer->Add( 0, 0, 1, wxEXPAND, 5 );
-
-- m_ShowLibPathsBtn = new wxToggleBitmapButton( this, wxID_ANY, guImage( guIMAGE_INDEX_tiny_library ), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
-+ m_ShowLibPathsBtn = new wxBitmapToggleButton( this, wxID_ANY, guImage( guIMAGE_INDEX_tiny_library ), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
- m_ShowLibPathsBtn->SetToolTip( ShowPaths == guFILEBROWSER_SHOWPATH_SYSTEM ?
- _( "See used locations" ) :
- _( "See system files" ) );
---- a/src/FileBrowser.h
-+++ b/src/FileBrowser.h
-@@ -36,6 +36,7 @@
- #include <wx/sizer.h>
- #include <wx/string.h>
- #include <wx/tglbtn.h>
-+#include <wx/gtk/tglbtn.h>
-
-
- #define guPANEL_FILEBROWSER_DIRCTRL ( 1 << 0 )
-@@ -122,7 +123,7 @@
- guMediaViewer * m_MediaViewer;
- guGenericDirCtrl * m_DirCtrl;
- bool m_AddingFolder;
-- wxToggleBitmapButton * m_ShowLibPathsBtn;
-+ wxBitmapToggleButton * m_ShowLibPathsBtn;
-
- void OnShowLibPathsClick( wxCommandEvent& event );
-
---- a/src/AuiNotebook.cpp
-+++ b/src/AuiNotebook.cpp
-@@ -47,8 +47,8 @@
- m_TextFgColor = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
- m_SelTextFgColour = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
-
-- m_disabled_close_bmp = guImage( guIMAGE_INDEX_tiny_close_normal );
-- m_active_close_bmp = guImage( guIMAGE_INDEX_tiny_close_highlight );
-+ m_disabledCloseBmp = guImage( guIMAGE_INDEX_tiny_close_normal );
-+ m_activeCloseBmp = guImage( guIMAGE_INDEX_tiny_close_highlight );
- }
-
- // -------------------------------------------------------------------------------- //
-@@ -60,9 +60,9 @@
- wxAuiTabArt * guAuiTabArt::Clone()
- {
- guAuiTabArt * art = new guAuiTabArt;
-- art->SetNormalFont( m_normal_font );
-- art->SetSelectedFont( m_selected_font );
-- art->SetMeasuringFont( m_measuring_font );
-+ art->SetNormalFont( m_normalFont );
-+ art->SetSelectedFont( m_selectedFont );
-+ art->SetMeasuringFont( m_measuringFont );
- // art->m_BgColor = m_BgColor;
- // art->m_SelBgColor = m_SelBgColor;
- // art->m_TextFgColor = m_TextFgColor;
-@@ -75,7 +75,7 @@
- // draw background
- //wxColor top_color = m_base_colour;
- wxColor top_color = m_BgColor;
-- wxColor bottom_color = wxAuiStepColour( m_base_colour, 120 );
-+ wxColor bottom_color = wxAuiStepColour( m_baseColour, 120 );
- wxRect r;
-
- if( m_flags & wxAUI_NB_BOTTOM )
-@@ -88,7 +88,7 @@
- dc.GradientFillLinear( r, top_color, bottom_color, wxNORTH );
-
- // draw base lines
-- dc.SetPen( m_border_pen );
-+ dc.SetPen( m_borderPen );
- int y = rect.GetHeight();
- int w = rect.GetWidth();
-
-@@ -120,10 +120,10 @@
- if( caption.empty() )
- caption = wxT("Xj");
-
-- dc.SetFont(m_selected_font);
-+ dc.SetFont(m_selectedFont);
- dc.GetTextExtent(caption, &selected_textx, &selected_texty);
-
-- dc.SetFont(m_normal_font);
-+ dc.SetFont(m_normalFont);
- dc.GetTextExtent(caption, &normal_textx, &normal_texty);
-
- // figure out the size of the tab
-@@ -135,7 +135,7 @@
- close_button_state,
- x_extent);
-
-- wxCoord tab_height = m_tab_ctrl_height - 1;
-+ wxCoord tab_height = m_tabCtrlHeight - 1;
- if( !page.active )
- tab_height -= 2;
- wxCoord tab_width = tab_size.x;
-@@ -150,12 +150,12 @@
-
- if( page.active )
- {
-- dc.SetFont( m_selected_font );
-+ dc.SetFont( m_selectedFont );
- texty = selected_texty;
- }
- else
- {
-- dc.SetFont(m_normal_font);
-+ dc.SetFont(m_normalFont);
- texty = normal_texty;
- }
-
-@@ -221,7 +221,7 @@
- // }
-
- // draw tab outline
-- dc.SetPen( m_border_pen );
-+ dc.SetPen( m_borderPen );
- dc.SetBrush( * wxTRANSPARENT_BRUSH );
- dc.DrawPolygon( WXSIZEOF( border_points ), border_points );
-
-@@ -230,7 +230,7 @@
- if( page.active )
- {
- if( m_flags & wxAUI_NB_BOTTOM )
-- dc.SetPen( wxPen( wxColour( wxAuiStepColour( m_base_colour, 170 ) ) ) );
-+ dc.SetPen( wxPen( wxColour( wxAuiStepColour( m_baseColour, 170 ) ) ) );
- // TODO: else if (m_flags &wxAUI_NB_LEFT) {}
- // TODO: else if (m_flags &wxAUI_NB_RIGHT) {}
- else //for wxAUI_NB_TOP
-@@ -246,7 +246,7 @@
- int close_button_width = 0;
- if (close_button_state != wxAUI_BUTTON_STATE_HIDDEN)
- {
-- close_button_width = m_active_close_bmp.GetWidth();
-+ close_button_width = m_activeCloseBmp.GetWidth();
- }
-
-
-@@ -284,12 +284,12 @@
- // draw close button if necessary
- if (close_button_state != wxAUI_BUTTON_STATE_HIDDEN)
- {
-- wxBitmap bmp = m_disabled_close_bmp;
-+ wxBitmap bmp = m_disabledCloseBmp;
-
- if (close_button_state == wxAUI_BUTTON_STATE_HOVER ||
- close_button_state == wxAUI_BUTTON_STATE_PRESSED)
- {
-- bmp = m_active_close_bmp;
-+ bmp = m_activeCloseBmp;
- }
-
- wxRect rect(tab_x + tab_width - close_button_width - 1,
-@@ -367,14 +367,14 @@
- // UpdateTabCtrlHeight() does the actual tab resizing. It's meant
- // to be used interally
- // -------------------------------------------------------------------------------- //
--void guAuiNotebook::UpdateTabCtrlHeight()
-+bool guAuiNotebook::UpdateTabCtrlHeight()
- {
- // get the tab ctrl height we will use
- int height = CalculateTabCtrlHeight();
-
- wxAuiTabArt* art = m_tabs.GetArtProvider();
-
-- m_tab_ctrl_height = height;
-+ m_tabCtrlHeight = height;
-
- wxAuiPaneInfoArray& all_panes = m_mgr.GetAllPanes();
- size_t i, pane_count = all_panes.GetCount();
-@@ -385,10 +385,12 @@
- continue;
- wxTabFrame* tab_frame = (wxTabFrame*)pane.window;
- wxAuiTabCtrl* tabctrl = tab_frame->m_tabs;
-- tab_frame->SetTabCtrlHeight(m_tab_ctrl_height);
-+ tab_frame->SetTabCtrlHeight(m_tabCtrlHeight);
- tabctrl->SetArtProvider(art->Clone());
- tab_frame->DoSizing();
- }
-+
-+ return true;
- }
-
- // -------------------------------------------------------------------------------- //
-@@ -447,7 +449,7 @@
- if( p )
- tabs += wxT( "," );
-
-- if( ( int ) page_idx == m_curpage )
-+ if( ( int ) page_idx == m_curPage )
- tabs += wxT( "*" );
- else if( ( int ) p == tabframe->m_tabs->GetActivePage() )
- tabs += wxT( "+" );
-@@ -501,12 +503,12 @@
- // create a new tab frame
- wxTabFrame * new_tabs = new wxTabFrame;
- new_tabs->m_tabs = new wxAuiTabCtrl( this,
-- m_tab_id_counter++,
-+ m_tabIdCounter++,
- wxDefaultPosition,
- wxDefaultSize,
- wxNO_BORDER | wxWANTS_CHARS );
- new_tabs->m_tabs->SetArtProvider( m_tabs.GetArtProvider()->Clone() );
-- new_tabs->SetTabCtrlHeight( m_tab_ctrl_height );
-+ new_tabs->SetTabCtrlHeight( m_tabCtrlHeight );
- new_tabs->m_tabs->SetFlags( m_flags );
- wxAuiTabCtrl * dest_tabs = new_tabs->m_tabs;
-
-@@ -555,7 +557,7 @@
- m_mgr.LoadPerspective( frames );
-
- // Force refresh of selection
-- m_curpage = -1;
-+ m_curPage = -1;
- SetSelection( sel_page );
-
- return true;
---- a/src/AuiNotebook.h
-+++ b/src/AuiNotebook.h
-@@ -205,7 +205,7 @@
-
- virtual ~guAuiNotebook();
-
-- virtual void UpdateTabCtrlHeight();
-+ virtual bool UpdateTabCtrlHeight();
-
- wxString SavePerspective( void );
- bool LoadPerspective( const wxString &layout );
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -120,7 +120,7 @@
- SET( ADD_WXSQLITE_SUPPORT 0 )
- PKG_CHECK_MODULES( LIBWXSQLITE3 wxsqlite3 )
- IF( NOT LIBWXSQLITE3_LIBRARIES )
-- PKG_CHECK_MODULES( LIBWXSQLITE3 wxsqlite3-2.8 )
-+ PKG_CHECK_MODULES( LIBWXSQLITE3 wxsqlite3-3.0 )
- IF( NOT LIBWXSQLITE3_LIBRARIES )
- ADD_DEFINITIONS(-DADD_WXSQLITE_SUPPORT=1)
- SET( ADD_WXSQLITE_SUPPORT 1 )
---- a/src/LastFMPanel.cpp
-+++ b/src/LastFMPanel.cpp
-@@ -2812,7 +2812,7 @@
- if( event.GetKeyCode() == WXK_RETURN )
- {
- wxCommandEvent CmdEvent( wxEVT_COMMAND_TEXT_ENTER );
-- m_ArtistTextCtrl->AddPendingEvent( CmdEvent );
-+ m_ArtistTextCtrl->GetEventHandler()->AddPendingEvent( CmdEvent );
- return;
- }
- event.Skip();
---- a/src/MainApp.cpp
-+++ b/src/MainApp.cpp
-@@ -360,8 +360,7 @@
- if( LangInfo )
- {
- guLogError( wxT( "Could not initialize the translations engine for ( %s )" ), LangInfo->CanonicalName.c_str() );
-- wxStandardPaths StdPaths;
-- guLogError( wxT( "Locale directory '%s'" ), StdPaths.GetLocalizedResourcesDir( LangInfo->CanonicalName, wxStandardPaths::ResourceCat_Messages).c_str() );
-+ guLogError( wxT( "Locale directory '%s'" ), wxStandardPaths::Get().GetLocalizedResourcesDir( LangInfo->CanonicalName, wxStandardPaths::ResourceCat_Messages).c_str() );
- }
- else
- {
---- a/src/PLSoListBox.cpp
-+++ b/src/PLSoListBox.cpp
-@@ -179,7 +179,7 @@
- if( event.GetKeyCode() == WXK_DELETE )
- {
- wxCommandEvent evt( wxEVT_COMMAND_MENU_SELECTED, ID_TRACKS_DELETE );
-- GetParent()->AddPendingEvent( evt );
-+ GetParent()->GetEventHandler()->AddPendingEvent( evt );
- return;
- }
-
---- a/src/StatusBar.cpp
-+++ b/src/StatusBar.cpp
-@@ -509,7 +509,7 @@
- }
-
- // -------------------------------------------------------------------------------- //
--void guStatusBar::DrawField( wxDC &dc, int i )
-+void guStatusBar::DrawField( wxDC &dc, int i, int textHeight )
- {
- wxRect rect;
- GetFieldRect( i, rect );
-@@ -521,7 +521,7 @@
- dc.DrawLine( rect.x + rect.width, rect.y + 1, rect.x + rect.width, rect.y + rect.height - 1 );
- }
-
-- DrawFieldText( dc, i );
-+ DrawFieldText( dc, rect, i, textHeight );
- }
-
- // -------------------------------------------------------------------------------- //
---- a/src/TagInfo.cpp
-+++ b/src/TagInfo.cpp
-@@ -2453,7 +2453,7 @@
- }
-
- // -------------------------------------------------------------------------------- //
--bool guTagSetLyrics( const wxString &filename, wxString &lyrics )
-+bool guTagSetLyrics( const wxString &filename, const wxString &lyrics )
- {
- guMainFrame * MainFrame = ( guMainFrame * ) wxTheApp->GetTopWindow();
-
---- a/src/TagInfo.h
-+++ b/src/TagInfo.h
-@@ -329,7 +329,7 @@
- bool guTagSetPicture( const wxString &filename, wxImage * picture );
- bool guTagSetPicture( const wxString &filename, const wxString &imagefile );
- wxString guTagGetLyrics( const wxString &filename );
--bool guTagSetLyrics( const wxString &filename, wxString &lyrics );
-+bool guTagSetLyrics( const wxString &filename, const wxString &lyrics );
- //void guUpdateTrack( const guTrack &track, const wxImage * image, const wxString &lyrics, const int &changedflags );
- void guUpdateTracks( const guTrackArray &tracks, const guImagePtrArray &images,
- const wxArrayString &lyrics, const wxArrayInt &changedflags );
---- a/src/PlayListAppend.cpp
-+++ b/src/PlayListAppend.cpp
-@@ -128,7 +128,7 @@
- int guPlayListAppend::GetSelectedPlayList( void )
- {
- int Selection = m_PlayListComboBox->GetSelection();
-- if( Selection == wxNOT_FOUND && !m_PlayListComboBox->IsEmpty() )
-+ if( Selection == wxNOT_FOUND && m_PlayListComboBox->GetCount() != 0 )
- {
- Selection = FindPlayListItem( m_PlayListItems, m_PlayListComboBox->GetValue().Lower().Trim().Trim( false ) );
- }
---- a/src/AlbumBrowser.cpp
-+++ b/src/AlbumBrowser.cpp
-@@ -2308,7 +2308,7 @@
- // Its a LeftUp event
- event.SetEventType( wxEVT_LEFT_DOWN );
- event.m_leftDown = true;
-- m_BigCoverTracksListBox->AddPendingEvent( event );
-+ m_BigCoverTracksListBox->GetEventHandler()->AddPendingEvent( event );
- }
- return;
- }
---- a/src/AuiDockArt.cpp
-+++ b/src/AuiDockArt.cpp
-@@ -23,7 +23,34 @@
- #include "Images.h"
- #include "Utils.h"
-
--extern wxString wxAuiChopText( wxDC &dc, const wxString &text, int max_size );
-+wxString wxAuiChopText(wxDC& dc, const wxString& text, int max_size)
-+{
-+ wxCoord x,y;
-+
-+ // first check if the text fits with no problems
-+ dc.GetTextExtent(text, &x, &y);
-+ if (x <= max_size)
-+ return text;
-+
-+ size_t i, len = text.Length();
-+ size_t last_good_length = 0;
-+ for (i = 0; i < len; ++i)
-+ {
-+ wxString s = text.Left(i);
-+ s += wxT("...");
-+
-+ dc.GetTextExtent(s, &x, &y);
-+ if (x > max_size)
-+ break;
-+
-+ last_good_length = i;
-+ }
-+
-+ wxString ret = text.Left(last_good_length);
-+ ret += wxT("...");
-+ return ret;
-+}
-+
-
- // -------------------------------------------------------------------------------- //
- guAuiDockArt::guAuiDockArt() : wxAuiDefaultDockArt()
-@@ -42,12 +69,12 @@
- // -------------------------------------------------------------------------------- //
- void guAuiDockArt::DrawCaptionBackground( wxDC &dc, const wxRect &rect, bool active )
- {
-- if( m_gradient_type == wxAUI_GRADIENT_NONE )
-+ if( m_gradientType == wxAUI_GRADIENT_NONE )
- {
- if( active )
-- dc.SetBrush( wxBrush( m_active_caption_colour ) );
-+ dc.SetBrush( wxBrush( m_activeCaptionColour ) );
- else
-- dc.SetBrush( wxBrush( m_inactive_caption_colour ) );
-+ dc.SetBrush( wxBrush( m_inactiveCaptionColour ) );
-
- dc.DrawRectangle( rect.x, rect.y, rect.width, rect.height );
- }
-@@ -58,15 +85,15 @@
- // on mac the gradients are expected to become darker from the top
- #ifdef __WXMAC__
- DrawGradientRectangle( dc, rect,
-- m_active_caption_colour,
-- m_active_caption_gradient_colour,
-- m_gradient_type );
-+ m_activeCaptionColour,
-+ m_activeCaptionGradientColour,
-+ m_gradientType );
- #else
- // on other platforms, active gradients become lighter at the top
- DrawGradientRectangle( dc, rect,
-- m_active_caption_colour,
-- m_active_caption_gradient_colour,
-- m_gradient_type );
-+ m_activeCaptionColour,
-+ m_activeCaptionGradientColour,
-+ m_gradientType );
- #endif
- }
- else
-@@ -74,20 +101,20 @@
- #ifdef __WXMAC__
- // on mac the gradients are expected to become darker from the top
- DrawGradientRectangle( dc, rect,
-- m_inactive_caption_colour,
-- m_inactive_caption_gradient_colour,
-- m_gradient_type );
-+ m_inactiveCaptionColour,
-+ m_inactiveCaptionGradientColour,
-+ m_gradientType );
- #else
- // on other platforms, inactive gradients become lighter at the bottom
- DrawGradientRectangle( dc, rect,
-- m_inactive_caption_colour,
-- m_inactive_caption_gradient_colour,
-- m_gradient_type );
-+ m_inactiveCaptionColour,
-+ m_inactiveCaptionGradientColour,
-+ m_gradientType );
- #endif
- }
- }
-
-- dc.SetPen( m_border_pen );
-+ dc.SetPen( m_borderPen );
- int y = rect.y + rect.height - 1;
- dc.DrawLine( rect.x, y, rect.x + rect.width, y );
- }
-@@ -97,11 +124,11 @@
- void guAuiDockArt::DrawCaption( wxDC &dc, wxWindow * window, const wxString &text, const wxRect &rect, wxAuiPaneInfo &pane )
- {
- dc.SetPen( * wxTRANSPARENT_PEN );
-- dc.SetFont( m_caption_font );
-+ dc.SetFont( m_captionFont );
-
- DrawCaptionBackground( dc, rect, bool( pane.state & wxAuiPaneInfo::optionActive ) );
-
-- dc.SetTextForeground( pane.state & wxAuiPaneInfo::optionActive ? m_active_caption_text_colour : m_inactive_caption_text_colour );
-+ dc.SetTextForeground( pane.state & wxAuiPaneInfo::optionActive ? m_activeCaptionTextColour : m_inactiveCaptionTextColour );
-
- wxCoord w, h;
- dc.GetTextExtent( wxT( "ABCDEFHXfgkj" ), &w, &h );
-@@ -110,11 +137,11 @@
- clip_rect.width -= 3; // text offset
- clip_rect.width -= 2; // button padding
- if( pane.HasCloseButton() )
-- clip_rect.width -= m_button_size;
-+ clip_rect.width -= m_buttonSize;
- if( pane.HasPinButton() )
-- clip_rect.width -= m_button_size;
-+ clip_rect.width -= m_buttonSize;
- if( pane.HasMaximizeButton() )
-- clip_rect.width -= m_button_size;
-+ clip_rect.width -= m_buttonSize;
-
- wxString draw_text = wxAuiChopText( dc, text, clip_rect.width );
-
---- a/src/SmartMode.cpp
-+++ b/src/SmartMode.cpp
-@@ -500,7 +500,7 @@
- int guGenSmartPlaylist::GetPlayListId( void )
- {
- int Selection = m_SaveToComboBox->GetSelection();
-- if( Selection == wxNOT_FOUND && !m_SaveToComboBox->IsEmpty() )
-+ if( Selection == wxNOT_FOUND && m_SaveToComboBox->GetCount() != 0 )
- {
- Selection = FindPlayListItem( &m_Playlists, m_SaveToComboBox->GetValue().Lower().Trim().Trim( false ) );
- }
---- a/src/StaticBitmap.cpp
-+++ b/src/StaticBitmap.cpp
-@@ -70,7 +70,7 @@
- {
- wxCommandEvent event( guStaticBitmapMouseOverEvent, guEVT_STATICBITMAP_MOUSE_OVER );
- event.SetEventObject( this );
-- m_Bitmap->AddPendingEvent( event );
-+ m_Bitmap->GetEventHandler()->AddPendingEvent( event );
- }
- }
-
---- a/src/Equalizer.cpp
-+++ b/src/Equalizer.cpp
-@@ -537,7 +537,7 @@
- {
- int Sel = m_PresetComboBox->GetSelection();
-
-- m_SaveButton->Enable( !m_PresetComboBox->IsEmpty() &&
-+ m_SaveButton->Enable( m_PresetComboBox->GetCount() != 0 &&
- ( m_BandChanged || !FindPresetName( m_PresetComboBox->GetValue(), m_EQPresets ) ) );
-
- m_DelButton->Enable( Sel != wxNOT_FOUND );
---- a/src/LocationPanel.cpp
-+++ b/src/LocationPanel.cpp
-@@ -161,7 +161,52 @@
- return 1;
- }
-
--extern wxColor wxAuiStepColour( const wxColor & c, int percent );
-+unsigned char wxAuiBlendColour(unsigned char fg, unsigned char bg, double alpha)
-+{
-+ double result = bg + (alpha * (fg - bg));
-+ if (result < 0.0)
-+ result = 0.0;
-+ if (result > 255)
-+ result = 255;
-+ return (unsigned char)result;
-+}
-+
-+wxColor wxAuiStepColour(const wxColor& c, int ialpha)
-+{
-+ if (ialpha == 100)
-+ return c;
-+
-+ unsigned char r = c.Red(),
-+ g = c.Green(),
-+ b = c.Blue();
-+ unsigned char bg;
-+
-+ // ialpha is 0..200 where 0 is completely black
-+ // and 200 is completely white and 100 is the same
-+ // convert that to normal alpha 0.0 - 1.0
-+ ialpha = wxMin(ialpha, 200);
-+ ialpha = wxMax(ialpha, 0);
-+ double alpha = ((double)(ialpha - 100.0))/100.0;
-+
-+ if (ialpha > 100)
-+ {
-+ // blend with white
-+ bg = 255;
-+ alpha = 1.0 - alpha; // 0 = transparent fg; 1 = opaque fg
-+ }
-+ else
-+ {
-+ // blend with black
-+ bg = 0;
-+ alpha += 1.0; // 0 = transparent fg; 1 = opaque fg
-+ }
-+
-+ r = wxAuiBlendColour(r, bg, alpha);
-+ g = wxAuiBlendColour(g, bg, alpha);
-+ b = wxAuiBlendColour(b, bg, alpha);
-+
-+ return wxColour(r, g, b);
-+}
-
- // -------------------------------------------------------------------------------- //
- void guLocationTreeCtrl::ReloadItems( const bool loadstate )
---- a/src/StatusBar.h
-+++ b/src/StatusBar.h
-@@ -46,7 +46,7 @@
- public :
- guGauge() : wxControl() { m_LastValue = wxNOT_FOUND; m_PaintWidth = 0; };
- guGauge( wxWindow * parent, const wxString &label = wxEmptyString, bool showporcent = true, wxWindowID id = wxID_ANY, unsigned int max = 100,
-- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxGA_HORIZONTAL );
-+ const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxGA_HORIZONTAL | wxBORDER_NONE );
- ~guGauge( void );
-
- void SetRange( int range );
-@@ -101,7 +101,7 @@
- void SetPlayMode( const bool forcegapless );
- void SetAudioScrobble( const bool audioscrobble );
-
-- virtual void DrawField( wxDC &dc, int i );
-+ virtual void DrawField( wxDC &dc, int i, int textHeight );
-
- };
-
---- a/src/Utils.cpp
-+++ b/src/Utils.cpp
-@@ -311,7 +311,7 @@
- static const wxChar marks[] = wxT( "-_.\"!~*()'" );
-
- wxString RetVal;
-- unsigned char CurChar;
-+ wxChar CurChar;
-
- wxCharBuffer CharBuffer = url.ToUTF8();
- int Index;
-@@ -352,7 +352,7 @@
-
- for( index = 0; index < StrLen; index++ )
- {
-- unsigned char C = CharBuffer[ index ];
-+ wxChar C = CharBuffer[ index ];
- {
- static const wxChar marks[] = wxT( " -_.\"/+!~*()'[]%" ); //~!@#$&*()=:/,;?+'
-
---- a/src/ListView.cpp
-+++ b/src/ListView.cpp
-@@ -914,7 +914,7 @@
- // iterate over all visible lines
- for( ; line < lineMax; line++ )
- {
-- const wxCoord hLine = OnGetLineHeight( line );
-+ const wxCoord hLine = OnGetRowHeight( line );
-
- rectLine.height = hLine;
-
---- a/src/TimeLine.h
-+++ b/src/TimeLine.h
-@@ -115,7 +115,7 @@
-
- virtual void TimerEvent( void );
- virtual int TimerCreate( void );
-- virtual void TimerDestroy( void ) { g_source_remove( m_TimerId ); }
-+ virtual void TimerDestroy( void ) { int id = m_TimerId; m_TimerId = 0; if (id) g_source_remove( id ); }
-
- };
-
---- a/src/SplashWin.cpp
-+++ b/src/SplashWin.cpp
-@@ -79,7 +79,7 @@
-
- Show( true );
- SetThemeEnabled( false );
-- SetBackgroundStyle( wxBG_STYLE_CUSTOM );
-+ SetBackgroundStyle( wxBG_STYLE_ERASE );
-
- m_Timer.SetOwner( this );
- m_Timer.Start( timeout, wxTIMER_ONE_SHOT );
---- a/src/RoundButton.cpp
-+++ b/src/RoundButton.cpp
-@@ -33,7 +33,7 @@
-
- // -------------------------------------------------------------------------------- //
- guRoundButton::guRoundButton( wxWindow * parent, const wxImage &image, const wxImage &selimage, const int flags ) :
-- wxControl( parent, wxID_ANY )
-+ wxControl( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE )
- {
- m_Bitmap = wxBitmap( image );
- m_HoverBitmap = wxBitmap( selimage );
---- a/src/RatingCtrl.cpp
-+++ b/src/RatingCtrl.cpp
-@@ -34,7 +34,8 @@
- END_EVENT_TABLE()
-
- // -------------------------------------------------------------------------------- //
--guRating::guRating( wxWindow * parent, const int style ) : wxControl( parent, wxID_ANY )
-+guRating::guRating( wxWindow * parent, const int style ) :
-+ wxControl( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE )
- {
- m_Rating = wxNOT_FOUND;
- m_Style = style;
---- a/src/ToggleRoundButton.cpp
-+++ b/src/ToggleRoundButton.cpp
-@@ -35,7 +35,7 @@
- // -------------------------------------------------------------------------------- //
- guToggleRoundButton::guToggleRoundButton( wxWindow * parent, const wxImage &image,
- const wxImage &selimage, const wxImage &hoverimage ) :
-- wxControl( parent, wxID_ANY )
-+ wxControl( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE )
- {
- m_Bitmap = wxBitmap( selimage );
- m_DisBitmap = wxBitmap( image );
diff --git a/media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild b/media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild
deleted file mode 100644
index 4ec6097be2..0000000000
--- a/media-sound/guayadeque/guayadeque-0.3.7-r1.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-WX_GTK_VER="3.0"
-
-inherit cmake-utils eutils wxwidgets
-
-DESCRIPTION="Music management program designed for all music enthusiasts"
-HOMEPAGE="http://guayadeque.org/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="ayatana ipod +minimal"
-
-# No test available, Making src_test fail
-RESTRICT="test"
-
-# Missing
-# gstreamer0.10-fluendo-mp3 #120237
-# gstreamer0.10-plugins-bad-multiverse ??
-# gstreamer0.10-plugins-base-apps ??
-
-GST_VERSION=0.10
-GST_DEPS="
- dev-perl/GStreamer
- media-libs/gnonlin:${GST_VERSION}
- media-plugins/gst-plugins-alsa:${GST_VERSION}
- media-plugins/gst-plugins-ffmpeg:${GST_VERSION}
- media-plugins/gst-plugins-gio:${GST_VERSION}
- media-plugins/gst-plugins-gnomevfs:${GST_VERSION}
- media-plugins/gst-plugins-libnice:${GST_VERSION}
- media-plugins/gst-plugins-pulse:${GST_VERSION}
- media-plugins/gst-plugins-soup:${GST_VERSION}
- media-plugins/gst-plugins-x:${GST_VERSION}
- media-libs/gst-plugins-bad:${GST_VERSION}
- media-libs/gst-plugins-base:${GST_VERSION}
- media-libs/gst-plugins-good:${GST_VERSION}
- media-libs/gst-plugins-ugly:${GST_VERSION}
-"
-
-RDEPEND="
- dev-db/sqlite:3
- >=dev-db/wxsqlite3-3.2.1
- dev-libs/glib:2
- media-libs/flac
- media-libs/gstreamer:${GST_VERSION}[introspection]
- >=media-libs/taglib-1.6.4
- net-misc/curl
- sys-apps/dbus
- x11-libs/wxGTK:3.0[X]
- ayatana? ( >=dev-libs/libindicate-0.7 )
- ipod? ( media-libs/libgpod )
- !minimal? ( ${GST_DEPS} )"
-DEPEND="${RDEPEND}
- app-arch/unzip
- sys-devel/gettext
- virtual/pkgconfig"
-
-# echo $(cat po/CMakeLists.txt | grep ADD_SUBDIRECTORY | sed 's#ADD_SUBDIRECTORY( \(\w\+\) )#\1#')
-LANGS="es uk it de fr is nb th cs ru hu sv nl pt_BR pt el sk pl tr ja sr bg ca_ES hr"
-for l in ${LANGS}; do
- IUSE="$IUSE linguas_${l}"
-done
-
-PATCHES=(
- "${FILESDIR}"/${PN}-0.3.6*-underlinking.patch
- "${FILESDIR}"/${P}-wx3.0.patch
- "${FILESDIR}"/${P}-headers-location.patch
-)
-
-src_prepare() {
- for l in ${LANGS} ; do
- if ! use linguas_${l} ; then
- sed \
- -e "/${l}/d" \
- -i po/CMakeLists.txt || die
- fi
- done
-
- if ! use ipod; then
- sed \
- -e '/PKG_CHECK_MODULES( LIBGPOD/,/^ENDIF/d' \
- -i CMakeLists.txt || die
- fi
-
- if ! use ayatana; then
- sed \
- -e '/PKG_CHECK_MODULES( LIBINDICATE/,/^ENDIF/d' \
- -i CMakeLists.txt || die
- fi
-
- rm -rf src/wx/wxsql* src/wxsqlite3 || die
-
- cmake-utils_src_prepare
-
- # otherwise cmake checks for svn
- esvn_clean
-
- sed 's:-O2::g' -i CMakeLists.txt || die
-
- sed \
- -e '/Encoding/d' \
- -i guayadeque.desktop || die
-}
-
-pkg_postinst() {
- local pkg
- if use minimal; then
- elog "If you are missing functionalities consider setting USE=-minimal"
- elog "or install any of the following packages:"
- for pkg in ${GST_DEPS}; do
- elog "\t ${pkg}"
- done
- fi
-}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/guayadeque/files/, media-sound/guayadeque/
@ 2019-12-28 17:16 Miroslav Šulc
0 siblings, 0 replies; 4+ messages in thread
From: Miroslav Šulc @ 2019-12-28 17:16 UTC (permalink / raw
To: gentoo-commits
commit: b4efda14fa5fc18ee73c3a4d1024a23e897f5ed9
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 28 17:16:01 2019 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sat Dec 28 17:16:20 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4efda14
media-sound/guayadeque: fixed 0.4.5_p20170110
Closes: https://bugs.gentoo.org/681632
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
.../guayadeque-0.4.5_p20170110-missing-aui-component.patch | 13 +++++++++++++
media-sound/guayadeque/guayadeque-0.4.5_p20170110.ebuild | 6 +++++-
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/media-sound/guayadeque/files/guayadeque-0.4.5_p20170110-missing-aui-component.patch b/media-sound/guayadeque/files/guayadeque-0.4.5_p20170110-missing-aui-component.patch
new file mode 100644
index 00000000000..69a6e8b673a
--- /dev/null
+++ b/media-sound/guayadeque/files/guayadeque-0.4.5_p20170110-missing-aui-component.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e46d921..13e4ffa 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,7 +32,7 @@ SET( SEARCH_LIBS
+
+ SET( wxWidgets_USE_LIBS base core adv net html xml aui qa )
+
+-FIND_PACKAGE( wxWidgets )
++FIND_PACKAGE( wxWidgets COMPONENTS base core adv net html xml aui qa REQUIRED )
+
+ IF( NOT wxWidgets_FOUND)
+ MESSAGE( FATAL_ERROR "wxWidgets not found!" )
diff --git a/media-sound/guayadeque/guayadeque-0.4.5_p20170110.ebuild b/media-sound/guayadeque/guayadeque-0.4.5_p20170110.ebuild
index 53d52ddcc33..72dbae26c33 100644
--- a/media-sound/guayadeque/guayadeque-0.4.5_p20170110.ebuild
+++ b/media-sound/guayadeque/guayadeque-0.4.5_p20170110.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -48,6 +48,10 @@ DEPEND="${RDEPEND}
sys-devel/gettext
virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}/${PF}-missing-aui-component.patch"
+)
+
# echo $(cat po/CMakeLists.txt | grep ADD_SUBDIRECTORY | sed 's#ADD_SUBDIRECTORY( \(\w\+\) )#\1#')
LANGS=( bg ca_ES cs de el es fr hr hu is it ja nb nl pl pt pt_BR ru sk sr sr@latin sv th tr uk )
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/guayadeque/files/, media-sound/guayadeque/
@ 2020-08-29 15:52 Miroslav Šulc
0 siblings, 0 replies; 4+ messages in thread
From: Miroslav Šulc @ 2020-08-29 15:52 UTC (permalink / raw
To: gentoo-commits
commit: 96720b82caced823b5f52e6fd83d1d088e79854b
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 29 15:51:42 2020 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sat Aug 29 15:52:32 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96720b82
media-sound/guayadeque: bump to 0.4.6 + updated live
1) eapi7
2) dropped media-libs/gnonlin:1.0 dep
3) updated and organized deps
4) fixed metadata installation
5) added xdg
Bug: https://bugs.gentoo.org/724554
Bug: https://bugs.gentoo.org/658636
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
media-sound/guayadeque/Manifest | 1 +
.../guayadeque/files/guayadeque-0.4.6-gcc10.patch | 70 ++++++++++++++++++++++
.../files/guayadeque-0.4.6-metadata.patch | 13 ++++
...yadeque-9999.ebuild => guayadeque-0.4.6.ebuild} | 52 ++++++++--------
media-sound/guayadeque/guayadeque-9999.ebuild | 51 +++++++---------
5 files changed, 131 insertions(+), 56 deletions(-)
diff --git a/media-sound/guayadeque/Manifest b/media-sound/guayadeque/Manifest
index a1229d29952..0daed0c6708 100644
--- a/media-sound/guayadeque/Manifest
+++ b/media-sound/guayadeque/Manifest
@@ -1 +1,2 @@
DIST guayadeque-0.4.5_p20170110.tar.gz 2070855 BLAKE2B a8783a61df636e3ddf1473ba20450c89eeb977e06491e840743e7b8a7aa1a7515138ecf8f6c92a27f0c762363ef12c094927192b254ae238196ac6d967fd84d1 SHA512 57215ba47574fba615b33d72f45279c3726035bea38746f7d927a39866fb3fa8a3fb1dbd13fe672c7daba16a2131fbf4b89afed6a3bf8d9a584e5112d926f518
+DIST guayadeque-0.4.6.tar.gz 2074965 BLAKE2B a6076a60f6560f51f1fa1ac7aca0529823d6579726049cfda212ae42e62c6f86ca18e8c06aa60d8e23c8accf51d4363ebe4b69b50ce5224f7db3215c32acf12f SHA512 d353aa492b393a5043cdab2d151d715381c3d9d50cad393ca5687b5c556257641fc2b5eda53772098c8c0621fba88ae693179d07a1085d5b69aab1e5d06459a7
diff --git a/media-sound/guayadeque/files/guayadeque-0.4.6-gcc10.patch b/media-sound/guayadeque/files/guayadeque-0.4.6-gcc10.patch
new file mode 100644
index 00000000000..41529d20c05
--- /dev/null
+++ b/media-sound/guayadeque/files/guayadeque-0.4.6-gcc10.patch
@@ -0,0 +1,70 @@
+From 6be35ba2153f1c36400b8c535d8ba49292a1f51e Mon Sep 17 00:00:00 2001
+From: Juan Rios <anonbeat@gmail.com>
+Date: Wed, 20 May 2020 05:23:22 +0100
+Subject: [PATCH] Fix compilation with gcc and fix some warnings with wxString
+ Trim
+
+---
+ src/ui/jamendo/Jamendo.cpp | 5 ++---
+ src/ui/mediaviewer/playlists/PlayListFile.cpp | 4 ++--
+ src/ui/podcasts/PodcastsPanel.cpp | 2 +-
+ 3 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/src/ui/jamendo/Jamendo.cpp b/src/ui/jamendo/Jamendo.cpp
+index 8725bb60..107cadd7 100644
+--- a/src/ui/jamendo/Jamendo.cpp
++++ b/src/ui/jamendo/Jamendo.cpp
+@@ -487,7 +487,7 @@ guJamendoUpdateThread::~guJamendoUpdateThread()
+ }
+ }
+
+-#if 0
++/*
+ <JamendoData epoch="1282819258" documentation="http://developer.jamendo.com/en/wiki/DatabaseDumps" type="artistalbumtrack">
+ <Artists>
+ <artist>
+@@ -538,8 +538,7 @@ guJamendoUpdateThread::~guJamendoUpdateThread()
+ </artist>
+ ...
+ </Artists>
+-#endif
+-
++*/
+
+ // -------------------------------------------------------------------------------- //
+ void ReadJamendoXmlTrack( wxXmlNode * xmlnode, guJamendoUpdateThread * thread, guTrack * track )
+diff --git a/src/ui/mediaviewer/playlists/PlayListFile.cpp b/src/ui/mediaviewer/playlists/PlayListFile.cpp
+index a7ae4a4d..e038e20b 100644
+--- a/src/ui/mediaviewer/playlists/PlayListFile.cpp
++++ b/src/ui/mediaviewer/playlists/PlayListFile.cpp
+@@ -287,7 +287,7 @@ bool guPlaylistFile::ReadM3uStream( wxInputStream &playlist, const wxString &pat
+ int Count = Lines.Count();
+ for( Index = 0; Index < Count; Index++ )
+ {
+- Lines[ Index ].Trim( wxString::both );
++ Lines[ Index ].Trim( false ).Trim( true );
+ if( Lines[ Index ].IsEmpty() || ( Lines[ Index ].Find( wxT( "#EXTM3U" ) ) != wxNOT_FOUND ) )
+ {
+ continue;
+@@ -676,7 +676,7 @@ bool guCuePlaylistFile::LoadFromText( const wxString &content )
+ int Count = Lines.Count();
+ for( Index = 0; Index < Count; Index++ )
+ {
+- Lines[ Index ].Trim( wxString::both );
++ Lines[ Index ].Trim( false ).Trim( true );
+ wxString Line = Lines[ Index ];
+ //guLogMessage( wxT( "'%s'" ), Line.c_str() );
+ wxArrayString Keys = wxStringTokenize( Line, wxT( " " ) );
+diff --git a/src/ui/podcasts/PodcastsPanel.cpp b/src/ui/podcasts/PodcastsPanel.cpp
+index b715bd29..f242608d 100644
+--- a/src/ui/podcasts/PodcastsPanel.cpp
++++ b/src/ui/podcasts/PodcastsPanel.cpp
+@@ -1193,7 +1193,7 @@ void guPodcastPanel::AddChannel( wxCommandEvent &event )
+ wxSetCursor( * wxHOURGLASS_CURSOR );
+ wxTheApp->Yield();
+
+- wxString PodcastUrl = NewPodcastChannel->GetValue().Trim( wxString::both );
++ wxString PodcastUrl = NewPodcastChannel->GetValue().Trim( false ).Trim( true );
+ if( !PodcastUrl.IsEmpty() )
+ {
+ // If we find an itunes link we replace the itpc to the standard http
diff --git a/media-sound/guayadeque/files/guayadeque-0.4.6-metadata.patch b/media-sound/guayadeque/files/guayadeque-0.4.6-metadata.patch
new file mode 100644
index 00000000000..b35be4f133f
--- /dev/null
+++ b/media-sound/guayadeque/files/guayadeque-0.4.6-metadata.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e46d921..40e640e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -158,7 +158,7 @@ ADD_SUBDIRECTORY( po )
+ # freedesktop.org-specific files
+ INSTALL( FILES defconfig/guayadeque.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications )
+ INSTALL( FILES defconfig/guayadeque.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps )
+-INSTALL( FILES defconfig/guayadeque.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata )
++INSTALL( FILES defconfig/guayadeque.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metadata )
+
+ # program-specific files
+ INSTALL( FILES defconfig/guayadeque.default.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/guayadeque )
diff --git a/media-sound/guayadeque/guayadeque-9999.ebuild b/media-sound/guayadeque/guayadeque-0.4.6.ebuild
similarity index 77%
copy from media-sound/guayadeque/guayadeque-9999.ebuild
copy to media-sound/guayadeque/guayadeque-0.4.6.ebuild
index eea72853844..d9bb5a09547 100644
--- a/media-sound/guayadeque/guayadeque-9999.ebuild
+++ b/media-sound/guayadeque/guayadeque-0.4.6.ebuild
@@ -1,37 +1,32 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
WX_GTK_VER=3.0
+inherit cmake wxwidgets xdg
+
if [[ ${PV} == *9999 ]]; then
- SCM="git-r3"
+ inherit git-r3
EGIT_REPO_URI=${EGIT_REPO_URI:-https://github.com/anonbeat/guayadeque}
EGIT_BRANCH=${EGIT_BRANCH:-master}
+else
+ SRC_URI="https://github.com/anonbeat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
fi
-inherit cmake-utils vcs-snapshot wxwidgets $SCM
-
DESCRIPTION="Music management program designed for all music enthusiasts"
HOMEPAGE="https://guayadeque.org/"
-if [[ ${PV} != *9999 ]]; then
- COMMIT=...
- SRC_URI="https://github.com/anonbeat/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-else
- KEYWORDS=""
-fi
LICENSE="GPL-3+"
SLOT="0"
+KEYWORDS="~amd64 ~x86"
IUSE="appindicator ipod +minimal"
# No test available, Making src_test fail
RESTRICT="test"
GST_DEPS="
- media-libs/gnonlin:1.0
media-plugins/gst-plugins-libav:1.0
media-plugins/gst-plugins-libnice:1.0
media-plugins/gst-plugins-pulse:1.0
@@ -39,25 +34,32 @@ GST_DEPS="
media-libs/gst-plugins-bad:1.0
media-libs/gst-plugins-ugly:1.0
"
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
RDEPEND="
dev-db/sqlite:3
- >=dev-db/wxsqlite3-3.2.1
+ dev-db/wxsqlite3
dev-libs/glib:2
media-libs/flac
media-libs/gst-plugins-base:1.0
media-libs/gst-plugins-good:1.0
media-libs/gstreamer:1.0
- >=media-libs/taglib-1.6.4
+ media-libs/taglib
net-misc/curl
sys-apps/dbus
x11-libs/wxGTK:${WX_GTK_VER}[X]
appindicator? ( >=dev-libs/libindicate-0.7 )
ipod? ( media-libs/libgpod )
!minimal? ( ${GST_DEPS} )"
-DEPEND="${RDEPEND}
- app-arch/unzip
- sys-devel/gettext
- virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.4.5_p20170110-missing-aui-component.patch"
+ "${FILESDIR}/${P}-gcc10.patch"
+ "${FILESDIR}/${P}-metadata.patch"
+)
# echo $(cat po/CMakeLists.txt | grep ADD_SUBDIRECTORY | sed 's#ADD_SUBDIRECTORY( \(\w\+\) )#\1#')
LANGS=( bg ca_ES cs de el es fr hr hu is it ja nb nl pl pt pt_BR ru sk sr sr@latin sv th tr uk )
@@ -66,16 +68,8 @@ pkg_setup() {
setup-wxwidgets
}
-src_unpack() {
- if [[ ${PV} = *9999 ]]; then
- git-r3_src_unpack
- #cd "${S}"
- #cp "${FILESDIR}"/GIT-VERSION-GEN .
- fi
-}
-
src_prepare() {
- cmake-utils_src_prepare
+ cmake_src_prepare
# remove bundled libs
rm -rf src/wx/wxsql* src/wxsqlite3 || die
@@ -93,7 +87,7 @@ src_configure() {
-DENABLE_IPOD=$(usex ipod)
-DENABLE_LIBINDICATE=$(usex appindicator)
)
- cmake-utils_src_configure
+ cmake_src_configure
}
pkg_postinst() {
@@ -106,4 +100,6 @@ pkg_postinst() {
elog "\t ${pkg}"
done
fi
+
+ xdg_desktop_database_update
}
diff --git a/media-sound/guayadeque/guayadeque-9999.ebuild b/media-sound/guayadeque/guayadeque-9999.ebuild
index eea72853844..2578fcf2e89 100644
--- a/media-sound/guayadeque/guayadeque-9999.ebuild
+++ b/media-sound/guayadeque/guayadeque-9999.ebuild
@@ -1,27 +1,24 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
WX_GTK_VER=3.0
+inherit cmake wxwidgets xdg
+
if [[ ${PV} == *9999 ]]; then
- SCM="git-r3"
+ inherit git-r3
EGIT_REPO_URI=${EGIT_REPO_URI:-https://github.com/anonbeat/guayadeque}
EGIT_BRANCH=${EGIT_BRANCH:-master}
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/anonbeat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
fi
-inherit cmake-utils vcs-snapshot wxwidgets $SCM
-
DESCRIPTION="Music management program designed for all music enthusiasts"
HOMEPAGE="https://guayadeque.org/"
-if [[ ${PV} != *9999 ]]; then
- COMMIT=...
- SRC_URI="https://github.com/anonbeat/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-else
- KEYWORDS=""
-fi
LICENSE="GPL-3+"
SLOT="0"
@@ -31,7 +28,6 @@ IUSE="appindicator ipod +minimal"
RESTRICT="test"
GST_DEPS="
- media-libs/gnonlin:1.0
media-plugins/gst-plugins-libav:1.0
media-plugins/gst-plugins-libnice:1.0
media-plugins/gst-plugins-pulse:1.0
@@ -39,25 +35,30 @@ GST_DEPS="
media-libs/gst-plugins-bad:1.0
media-libs/gst-plugins-ugly:1.0
"
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
RDEPEND="
dev-db/sqlite:3
- >=dev-db/wxsqlite3-3.2.1
+ dev-db/wxsqlite3
dev-libs/glib:2
media-libs/flac
media-libs/gst-plugins-base:1.0
media-libs/gst-plugins-good:1.0
media-libs/gstreamer:1.0
- >=media-libs/taglib-1.6.4
+ media-libs/taglib
net-misc/curl
sys-apps/dbus
x11-libs/wxGTK:${WX_GTK_VER}[X]
appindicator? ( >=dev-libs/libindicate-0.7 )
ipod? ( media-libs/libgpod )
!minimal? ( ${GST_DEPS} )"
-DEPEND="${RDEPEND}
- app-arch/unzip
- sys-devel/gettext
- virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.4.6-metadata.patch"
+)
# echo $(cat po/CMakeLists.txt | grep ADD_SUBDIRECTORY | sed 's#ADD_SUBDIRECTORY( \(\w\+\) )#\1#')
LANGS=( bg ca_ES cs de el es fr hr hu is it ja nb nl pl pt pt_BR ru sk sr sr@latin sv th tr uk )
@@ -66,16 +67,8 @@ pkg_setup() {
setup-wxwidgets
}
-src_unpack() {
- if [[ ${PV} = *9999 ]]; then
- git-r3_src_unpack
- #cd "${S}"
- #cp "${FILESDIR}"/GIT-VERSION-GEN .
- fi
-}
-
src_prepare() {
- cmake-utils_src_prepare
+ cmake_src_prepare
# remove bundled libs
rm -rf src/wx/wxsql* src/wxsqlite3 || die
@@ -93,7 +86,7 @@ src_configure() {
-DENABLE_IPOD=$(usex ipod)
-DENABLE_LIBINDICATE=$(usex appindicator)
)
- cmake-utils_src_configure
+ cmake_src_configure
}
pkg_postinst() {
@@ -106,4 +99,6 @@ pkg_postinst() {
elog "\t ${pkg}"
done
fi
+
+ xdg_desktop_database_update
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-29 15:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-13 22:39 [gentoo-commits] repo/gentoo:master commit in: media-sound/guayadeque/files/, media-sound/guayadeque/ David Seifert
-- strict thread matches above, loose matches on Subject: below --
2020-08-29 15:52 Miroslav Šulc
2019-12-28 17:16 Miroslav Šulc
2015-10-25 15:03 Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox