diff options
Diffstat (limited to 'app-editors/amyedit')
-rw-r--r-- | app-editors/amyedit/Manifest | 9 | ||||
-rw-r--r-- | app-editors/amyedit/amyedit-1.0-r2.ebuild | 33 | ||||
-rw-r--r-- | app-editors/amyedit/files/amyedit-1.0-gcc45.patch | 16 | ||||
-rw-r--r-- | app-editors/amyedit/files/amyedit-1.0-keyfile.patch | 62 | ||||
-rw-r--r-- | app-editors/amyedit/files/amyedit-1.0-signal.patch | 86 | ||||
-rw-r--r-- | app-editors/amyedit/files/amyedit-1.0-sourceviewmm2.patch | 331 | ||||
-rw-r--r-- | app-editors/amyedit/metadata.xml | 11 |
7 files changed, 548 insertions, 0 deletions
diff --git a/app-editors/amyedit/Manifest b/app-editors/amyedit/Manifest new file mode 100644 index 000000000000..0fad682d3667 --- /dev/null +++ b/app-editors/amyedit/Manifest @@ -0,0 +1,9 @@ +AUX amyedit-1.0-gcc45.patch 675 SHA256 bc1cc1edd9004f9977035afdcf96c2dee9d3a2d5343d3c61af9de6ec9b9a4ca8 SHA512 5101dcd96f96f7f643001a03db4a7cb149568a689683c4faf13e82d948364b19fd0fff4bfbbd7efcab88392a5c0d51e0826ca8117b76032dc351f25694391b89 WHIRLPOOL e53a9d7ce1cc54b8403e081a03a84c2eeb49a89f41fde933dc8170e8b32ddb7127ac2989afcc0ba17e4891f4bae44a3735eabd1f9f87ef468d31b3126e7804b5 +AUX amyedit-1.0-keyfile.patch 2123 SHA256 aef655d331cca213d85f6f939b70604511d7b891e33834390d250ed08b9c577a SHA512 1fa4267c81d357294210cd3c1018a788cacc3e407cde8b566a9f3ff9bbfc69c54fa9cc80f4f21e377279f7c4886b39c6a53c9329ac28a85723f5c8fbe03b0cd1 WHIRLPOOL 46f531e75c60bf79f3bf1fed36adc50e5e07307d755b107460db0d6f3e4c763f5bc6b45a3ea768932663db0495db67c5fba75dd02df8421ecc23e68662454c27 +AUX amyedit-1.0-signal.patch 3142 SHA256 34123b5d142f9141f49cd05fa0c31cf631d6d83fe5ad1d343ecd356aedbd83a6 SHA512 b288592a941af8e7be3897f88dd51911560bb60e702a0a846eeca77b2d116b393e2a5bab278c2264a555e6b273a38ab972050db842d37fa958e3fc78e09d5b5c WHIRLPOOL 93fb71e122936e5f9f8d8057e3df5f821b265043638cd0223d2d2a81bfe463b10e596bd9eabf27aa238604dbd87e0532ae8385f30e5711003f9ca652328d085a +AUX amyedit-1.0-sourceviewmm2.patch 12144 SHA256 9eaa72f825def4574c5a0639ed30fba86fcfd8b315f76e341964a01133ff047c SHA512 4c17617635765050edb64676f61a9d801747a50b38b66d4bb2dcf528e6ba10e4375c72008b6f84d620d2ffabe647dec33a51fa1c950be1179456df4eb0db1070 WHIRLPOOL 96e69270092514f1cda54cb37fb4e9b98695ec27b40cd956f53bbcc4a1db32313b05be14f23b5a67ca799467030e6f1342321da38bc1c057624fc4fda2182c6a +DIST amyedit-1.0.tar.bz2 297769 SHA256 9aa88340266827bd83715d495b7e1f2c1ca7100ff9f7586877c1b4d3ec67f228 SHA512 dce101c5d356cd194703798002c29772b7b7339a97f683ba7459e983988f26722f800a2c36a0c36bdea70a35c8398bc55b5215b4c30779ca22b5f25bbfedbe09 WHIRLPOOL 1e92efb17c834e37f0400e97910d06470fd363ab8301d3bc11d30d3168ee740dfe87612e17856dc0ffb8e4b47d0761ea2f5225c5a1f40684d78f487c87279724 +EBUILD amyedit-1.0-r2.ebuild 861 SHA256 998be03331a324140bfcbc0ae7fd97c01997b4f25ffc6a234fd580f2955e37b2 SHA512 6436e72583bc912ce254b6a3b00086974be68391f3e5c0b015357578b91412b7e2b89b532811969f0b7e304fe6327f24400243eb544df57c044e2625d01d494a WHIRLPOOL 86752493cccfdba24ea544bb669feb42772a7708cb011b3cff28d06ff0bfde5f8e1bb130bcb7ba5d99638f8bea8ccdc94c9162a7ca70fc78f2772b9c3312556f +MISC ChangeLog 2724 SHA256 e94b56fb2993f303a3434e6ed4e83b94d18c0d821c2e8e22c3916b6b16cf38cc SHA512 b774adc47fc11e59e6af709450fc953ba8f373553448e271deb63832667c1c02388ed53f56d4980eb22464c107a5bc575edb4ae1ca0d61e421225807d9460eae WHIRLPOOL 11d7816fea6ff7ca2c3d320a88947fd9e4a0166edba9713c348d7d3e6a7064e47fb2691f1f4a2dae9c05a576e3423f87bd8382a76da7904ec2031a1757d01677 +MISC ChangeLog-2015 4049 SHA256 2fccb24eb778f0ebadc1330f61501686a263b80d96c49bae8517a900e6897d22 SHA512 d77c4c2f7331de393dc7c9275d6f9209ef57de766fbb03a522bf7ee90e88330815d335b187959ae636e90eed0ea993b15b1b6d0a02c453ba8ee3e78a2ca4723d WHIRLPOOL 046a96b1adbaa0976d874ff1548e4d8b0f861a29179d504761a9799dffb91597ab76d3523f223527c86b352b88a5c129d35c557bf34b2e675680ad1a97d95638 +MISC metadata.xml 336 SHA256 8f981ce72bfaf96a85c14118bc5d6adbecbba0b547d5398d8a85c3186bd44b21 SHA512 93c12ff67fc6038a20615e27eaa2df0d9c02d4a9d15fa92e26ba4158872d60d9876e7caa3b0e970d90e86f5985f7f890f926ec6fc4420f06d53efec27db8e85e WHIRLPOOL 5141f2b3077d50fb1ef38c45afc946edb078e8a085658766b4da5ace18d60508851bf06e1ebd0b64e966151c32da365194f75f66a4a4453ffe682108d8edc4d7 diff --git a/app-editors/amyedit/amyedit-1.0-r2.ebuild b/app-editors/amyedit/amyedit-1.0-r2.ebuild new file mode 100644 index 000000000000..91c331ece325 --- /dev/null +++ b/app-editors/amyedit/amyedit-1.0-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils flag-o-matic + +DESCRIPTION=" AmyEdit is a LaTeX editor" +HOMEPAGE="http://amyedit.sf.net" +SRC_URI="mirror://sourceforge/amyedit/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" +RDEPEND=">=dev-cpp/gtkmm-2.6:2.4 + >=dev-cpp/glibmm-2.14:2 + >=dev-libs/libsigc++-2.2 + x11-libs/gtksourceview:2.0 + dev-cpp/gtksourceviewmm:2.0 + app-text/aspell" +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}/${P}-keyfile.patch" + epatch "${FILESDIR}/${P}-signal.patch" + epatch "${FILESDIR}/${P}-gcc45.patch" + epatch "${FILESDIR}/${P}-sourceviewmm2.patch" + rm -rf "${S}/src/gtksourceviewmm" || die + append-cxxflags -std=c++11 + mv configure.in configure.ac || die + eautoreconf +} diff --git a/app-editors/amyedit/files/amyedit-1.0-gcc45.patch b/app-editors/amyedit/files/amyedit-1.0-gcc45.patch new file mode 100644 index 000000000000..16db9fd415f5 --- /dev/null +++ b/app-editors/amyedit/files/amyedit-1.0-gcc45.patch @@ -0,0 +1,16 @@ +Fix build with gcc 4.5 +https://bugs.gentoo.org/show_bug.cgi?id=321293 + +Index: amyedit-1.0/src/Preferences.cc +=================================================================== +--- amyedit-1.0.orig/src/Preferences.cc ++++ amyedit-1.0/src/Preferences.cc +@@ -211,7 +211,7 @@ int Preferences::run() + } + + void Preferences::edit_latex_commands(){ +- EditLatexCommands::EditLatexCommands dialog(this); ++ EditLatexCommands dialog(this); + dialog.run(); + Amy::populate_text_list_model_from_list(previewoptionslist->get_model(), PrefStruct::instance()->get_keys("Commands"), true); + previewoptionslist->select(PrefStruct::instance()->get<Glib::ustring>("General", "preview_combo")); diff --git a/app-editors/amyedit/files/amyedit-1.0-keyfile.patch b/app-editors/amyedit/files/amyedit-1.0-keyfile.patch new file mode 100644 index 000000000000..fb9f9ac908fc --- /dev/null +++ b/app-editors/amyedit/files/amyedit-1.0-keyfile.patch @@ -0,0 +1,62 @@ +diff -ur amyedit-1.0/src/main.cc amyedit-1.0.new/src/main.cc +--- amyedit-1.0/src/main.cc 2006-03-14 06:08:32.000000000 +0700 ++++ amyedit-1.0.new/src/main.cc 2008-01-07 20:45:39.000000000 +0700 +@@ -54,7 +54,6 @@ + + #include "AmyEdit.hh" + #include "gtksourceviewmm/init.hh" +-#include "gtkmm_extra/keyfile.h" + #include "Utils.hh" + + int main(int argc, char **argv) +@@ -65,7 +64,6 @@ + + Gtk::Main m(&argc, &argv); + Gtk::SourceViewmm_init(); +- Glib::keyfile_init(); + + /* TODO This should probably be removed and created on demand */ + +Only in amyedit-1.0.new/src: main.o +Only in amyedit-1.0.new/src: Makefile +diff -ur amyedit-1.0/src/Makefile.am amyedit-1.0.new/src/Makefile.am +--- amyedit-1.0/src/Makefile.am 2006-03-08 05:44:53.000000000 +0700 ++++ amyedit-1.0.new/src/Makefile.am 2008-01-07 20:41:46.000000000 +0700 +@@ -30,8 +30,7 @@ + gtksourceviewmm/sourcelanguage.cpp \ + gtksourceviewmm/sourcelanguagesmanager.cpp \ + gtksourceviewmm/sourceview.cpp \ +- gtksourceviewmm/init.cc \ +- gtkmm_extra/keyfile.cc ++ gtksourceviewmm/init.cc + + headers = \ + AboutDialog.hh \ +@@ -54,15 +53,13 @@ + gtksourceviewmm/sourcelanguage.h \ + gtksourceviewmm/sourcelanguagesmanager.h \ + gtksourceviewmm/sourceview.h \ +- gtksourceviewmm/init.hh \ +- gtkmm_extra/keyfile.h ++ gtksourceviewmm/init.hh + + privateheaders= \ + gtksourceviewmm/private/sourcebuffer_p.h \ + gtksourceviewmm/private/sourcelanguage_p.h \ + gtksourceviewmm/private/sourcelanguagesmanager_p.h \ + gtksourceviewmm/private/sourceview_p.h \ +- gtkmm_extra/private/keyfile_p.h \ + Utils_p.hh + + if PRECOMPILE_HEADERS +diff -ur amyedit-1.0/src/PrefStruct.hh amyedit-1.0.new/src/PrefStruct.hh +--- amyedit-1.0/src/PrefStruct.hh 2006-03-09 06:54:41.000000000 +0700 ++++ amyedit-1.0.new/src/PrefStruct.hh 2008-01-07 20:46:32.000000000 +0700 +@@ -24,7 +24,6 @@ + + #include "Preferences.hh" + #include <glibmm/ustring.h> +-#include <gtkmm_extra/keyfile.h> + #include <iostream> + + class PrefStruct diff --git a/app-editors/amyedit/files/amyedit-1.0-signal.patch b/app-editors/amyedit/files/amyedit-1.0-signal.patch new file mode 100644 index 000000000000..d0f4df521cb6 --- /dev/null +++ b/app-editors/amyedit/files/amyedit-1.0-signal.patch @@ -0,0 +1,86 @@ +diff -Naur amyeditbroken/src/AmyEdit.cc amyedit-1.0/src/AmyEdit.cc +--- amyeditbroken/src/AmyEdit.cc 2006-03-13 22:13:08.000000000 +0100 ++++ amyedit-1.0/src/AmyEdit.cc 2008-07-12 05:07:43.965608312 +0200 +@@ -65,9 +65,9 @@ + + /* My Signals */ + // signals when there is a file available +-SigC::Signal1<void,bool> signal_file_open; ++sigc::signal1<void,bool> signal_file_open; + // signals an update to preferences +-SigC::Signal0<void> signal_preferences_update; ++sigc::signal0<void> signal_preferences_update; + /**************/ + + AmyEdit* AmyEdit::smInstance=NULL; +diff -Naur amyeditbroken/src/EditTabs.cc amyedit-1.0/src/EditTabs.cc +--- amyeditbroken/src/EditTabs.cc 2006-03-13 22:25:53.000000000 +0100 ++++ amyedit-1.0/src/EditTabs.cc 2008-07-12 05:08:41.022094749 +0200 +@@ -76,7 +76,7 @@ + set_tab_pos(Gtk::POS_TOP); + set_scrollable(true); + +- extern SigC::Signal0<void> signal_preferences_update; ++ extern sigc::signal0<void> signal_preferences_update; + + signal_switch_page().connect(sigc::mem_fun(*this, &EditTabs::on_switching_page)); + signal_preferences_update.connect(sigc::mem_fun(*this, &EditTabs::on_preferences_update)); +@@ -414,7 +414,7 @@ + + bool EditTabs::CloseTab(int tab) + { +- extern SigC::Signal1<void,bool> signal_file_open; ++ extern sigc::signal1<void,bool> signal_file_open; + + if (tab<0) + tab=get_current_page(); +@@ -686,8 +686,8 @@ + + void EditTabs::on_switching_page(GtkNotebookPage *page, guint number) + { +- extern SigC::Signal1<void, int> signal_line_set; +- extern SigC::Signal1<void, bool> signal_file_open; ++ extern sigc::signal1<void, int> signal_line_set; ++ extern sigc::signal1<void, bool> signal_file_open; + Page *curtab = get_current_tab(); + + if (curtab) +@@ -735,7 +735,7 @@ + + on_preferences_update(); + +- extern SigC::Signal0<void> signal_preferences_update; ++ extern sigc::signal0<void> signal_preferences_update; + get_buffer()->signal_modified_changed().connect(sigc::mem_fun(*this, &EditTabs::Page::on_modified_changed)); + get_buffer()->signal_changed().connect(sigc::mem_fun(*this, &EditTabs::Page::on_changed)); + get_buffer()->signal_mark_set().connect(sigc::mem_fun(*this, &EditTabs::Page::on_mark_changed)); +@@ -815,7 +815,7 @@ + + void EditTabs::Page::on_changed() + { +- extern SigC::Signal1<void, int> signal_line_set; ++ extern sigc::signal1<void, int> signal_line_set; + signal_line_set(get_buffer()->get_insert()->get_iter().get_line()); + + } +@@ -823,7 +823,7 @@ + void EditTabs::Page::on_mark_changed(Gtk::SourceBuffer::iterator iter, Glib::RefPtr<Gtk::SourceBuffer::Mark> mark){ + if (mark->get_name()=="insert") + { +- extern SigC::Signal1<void, int> signal_line_set; ++ extern sigc::signal1<void, int> signal_line_set; + + signal_line_set(get_buffer()->get_insert()->get_iter().get_line()); + +diff -Naur amyeditbroken/src/StatusBar.cc amyedit-1.0/src/StatusBar.cc +--- amyeditbroken/src/StatusBar.cc 2005-12-17 15:56:47.000000000 +0100 ++++ amyedit-1.0/src/StatusBar.cc 2008-07-12 05:09:14.020602906 +0200 +@@ -50,7 +50,7 @@ + #include "StatusBar.hh" + #include "Utils.hh" + +-SigC::Signal1<void, int> signal_line_set; ++sigc::signal1<void, int> signal_line_set; + + StatusBar::StatusBar() + { diff --git a/app-editors/amyedit/files/amyedit-1.0-sourceviewmm2.patch b/app-editors/amyedit/files/amyedit-1.0-sourceviewmm2.patch new file mode 100644 index 000000000000..31b7882b3ba5 --- /dev/null +++ b/app-editors/amyedit/files/amyedit-1.0-sourceviewmm2.patch @@ -0,0 +1,331 @@ +Index: amyedit-1.0/configure.in +=================================================================== +--- amyedit-1.0.orig/configure.in ++++ amyedit-1.0/configure.in +@@ -36,7 +36,7 @@ AC_ARG_ENABLE(precompiled-headers, + AM_CONDITIONAL(PRECOMPILE_HEADERS, test x$enable_precompiled_headers = xyes) + + AC_CHECK_LIB([aspell], [new_aspell_config]) +-PKG_CHECK_MODULES(AMYEDIT, gtkmm-2.4 >= 2.6 gtksourceview-1.0) ++PKG_CHECK_MODULES(AMYEDIT, gtkmm-2.4 >= 2.6 gtksourceview-2.0 gtksourceviewmm-2.0) + AC_SUBST(AMYEDIT_CFLAGS) + AC_SUBST(AMYEDIT_LIBS) + +Index: amyedit-1.0/src/Makefile.am +=================================================================== +--- amyedit-1.0.orig/src/Makefile.am ++++ amyedit-1.0/src/Makefile.am +@@ -25,12 +25,7 @@ sources = \ + TextListViewComboBox.cc \ + TextListViewListBox.cc \ + Utils.cc \ +- main.cc \ +- gtksourceviewmm/sourcebuffer.cpp \ +- gtksourceviewmm/sourcelanguage.cpp \ +- gtksourceviewmm/sourcelanguagesmanager.cpp \ +- gtksourceviewmm/sourceview.cpp \ +- gtksourceviewmm/init.cc ++ main.cc + + headers = \ + AboutDialog.hh \ +@@ -48,18 +43,9 @@ headers = \ + TextListModel.hh \ + TextListViewComboBox.hh \ + TextListViewListBox.hh \ +- Utils.hh \ +- gtksourceviewmm/sourcebuffer.h \ +- gtksourceviewmm/sourcelanguage.h \ +- gtksourceviewmm/sourcelanguagesmanager.h \ +- gtksourceviewmm/sourceview.h \ +- gtksourceviewmm/init.hh ++ Utils.hh + + privateheaders= \ +- gtksourceviewmm/private/sourcebuffer_p.h \ +- gtksourceviewmm/private/sourcelanguage_p.h \ +- gtksourceviewmm/private/sourcelanguagesmanager_p.h \ +- gtksourceviewmm/private/sourceview_p.h \ + Utils_p.hh + + if PRECOMPILE_HEADERS +Index: amyedit-1.0/src/EditTabs.cc +=================================================================== +--- amyedit-1.0.orig/src/EditTabs.cc ++++ amyedit-1.0/src/EditTabs.cc +@@ -57,8 +57,8 @@ Foundation, Inc., 59 Temple Place, Suite + + #include <gtksourceview/gtksourcebuffer.h> + #include <gtksourceviewmm/sourcelanguage.h> +-#include <gtksourceviewmm/sourcelanguagesmanager.h> +-#include <gtksourceview/gtksourcelanguagesmanager.h> ++#include <gtksourceviewmm/sourcelanguagemanager.h> ++#include <gtksourceview/gtksourcelanguagemanager.h> + #include <gtksourceview/gtksourceiter.h> + + #include <gtkmm/stock.h> +@@ -161,7 +161,7 @@ void EditTabs::OpenTab(Glib::ustring fil + { + try + { +- Glib::RefPtr<Gtk::SourceBuffer> buffer = is_buffer_open(filename); ++ Glib::RefPtr<gtksourceview::SourceBuffer> buffer = is_buffer_open(filename); + Page *newpage; + + if (buffer){ +@@ -553,16 +553,15 @@ Glib::ustring EditTabs::GetUntitledTabNa + + void EditTabs::Undo() + { +- Glib::RefPtr<Gtk::SourceBuffer> buffer = get_current_view()->get_buffer(); ++ Glib::RefPtr<gtksourceview::SourceBuffer> buffer = Glib::RefPtr<gtksourceview::SourceBuffer>::cast_static(get_current_view()->get_buffer()); + if (buffer->can_undo ()) + buffer->undo (); + + } + +- + void EditTabs::Redo() + { +- Glib::RefPtr<Gtk::SourceBuffer> buffer = get_current_view()->get_buffer(); ++ Glib::RefPtr<gtksourceview::SourceBuffer> buffer = Glib::RefPtr<gtksourceview::SourceBuffer>::cast_static(get_current_view()->get_buffer()); + if (buffer->can_redo ()) + buffer->redo (); + +@@ -625,10 +624,10 @@ void EditTabs::FindNext() + Page *curtab = get_current_tab(); + if (curtab) + { +- Glib::RefPtr<Gtk::SourceBuffer::Mark> cursor=curtab->get_buffer()->get_insert(); +- Gtk::SourceBuffer::iterator start, end; ++ Glib::RefPtr<gtksourceview::SourceBuffer::Mark> cursor=curtab->get_buffer()->get_insert(); ++ gtksourceview::SourceBuffer::iterator start, end; + GtkTextIter climit; +- Gtk::SourceBuffer::iterator limit(&climit); ++ gtksourceview::SourceBuffer::iterator limit(&climit); + FindDialog fdialog; + int result; + do +@@ -648,7 +647,7 @@ void EditTabs::FindNext() + if(gtk_source_iter_forward_search(cursor->get_iter().gobj(),fdialog.get_text().c_str(),fdialog.get_flags(),start.gobj(),end.gobj(),0)) + { + curtab->get_buffer()->select_range(end, start); +- (static_cast<Gtk::SourceView*>(curtab->get_child()))->scroll_to(end); ++ (static_cast<gtksourceview::SourceView*>(curtab->get_child()))->scroll_to(end); + } + else + { +@@ -701,7 +700,7 @@ void EditTabs::on_switching_page(GtkNote + + } + +-Glib::RefPtr <Gtk::SourceBuffer> EditTabs::is_buffer_open(Glib::ustring filename){ ++Glib::RefPtr <gtksourceview::SourceBuffer> EditTabs::is_buffer_open(Glib::ustring filename){ + int p = get_n_pages(); + + for (int x=0;x<p;x++){ +@@ -711,19 +710,19 @@ Glib::RefPtr <Gtk::SourceBuffer> EditTab + return curtab->get_buffer(); + } + +- return Glib::RefPtr <Gtk::SourceBuffer> (NULL); ++ return Glib::RefPtr <gtksourceview::SourceBuffer> (NULL); + + + } + +-EditTabs::Page::Page(EditTabs *parent, Glib::RefPtr<Gtk::SourceBuffer> buffer){ ++EditTabs::Page::Page(EditTabs *parent, Glib::RefPtr<gtksourceview::SourceBuffer> buffer){ + + /* Note to self! CLEAN THIS UP!!!! */ + + /* Page is actually a ScrollWindow thing */ + set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS); + +- Gtk::SourceView *sourceview=Gtk::manage(new Gtk::SourceView()); ++ gtksourceview::SourceView *sourceview=Gtk::manage(new gtksourceview::SourceView()); + + if (buffer) + sourceview->set_buffer(buffer); +@@ -750,10 +749,10 @@ EditTabs::Page::Page(EditTabs *parent, G + * (ie buffer is null) */ + + if (!buffer){ +- Glib::ustring mime_type("text/x-tex"); ++ Glib::ustring mime_type("latex"); + +- Glib::RefPtr<Gtk::SourceLanguagesManager> lm = buffer->get_languages_manager(); +- Glib::RefPtr<Gtk::SourceLanguage> language = lm->get_language_from_mime_type(mime_type); ++ Glib::RefPtr<gtksourceview::SourceLanguageManager> lm = gtksourceview::SourceLanguageManager::create(); ++ Glib::RefPtr<gtksourceview::SourceLanguage> language = lm->get_language(mime_type); + + + if (language) +@@ -820,7 +819,7 @@ void EditTabs::Page::on_changed() + + } + +-void EditTabs::Page::on_mark_changed(Gtk::SourceBuffer::iterator iter, Glib::RefPtr<Gtk::SourceBuffer::Mark> mark){ ++void EditTabs::Page::on_mark_changed(gtksourceview::SourceBuffer::iterator iter, Glib::RefPtr<gtksourceview::SourceBuffer::Mark> mark){ + if (mark->get_name()=="insert") + { + extern sigc::signal1<void, int> signal_line_set; +@@ -835,14 +834,14 @@ EditTabs *EditTabs::Page::get_parent() + return (static_cast<EditTabs*>(Gtk::Widget::get_parent())); + } + +-Gtk::SourceView* EditTabs::Page::get_child() ++gtksourceview::SourceView* EditTabs::Page::get_child() + { +- return (static_cast<Gtk::SourceView*>(Gtk::Bin::get_child())); ++ return (static_cast<gtksourceview::SourceView*>(Gtk::Bin::get_child())); + } + +-Glib::RefPtr<Gtk::SourceBuffer> EditTabs::Page::get_buffer() ++Glib::RefPtr<gtksourceview::SourceBuffer> EditTabs::Page::get_buffer() + { +- return (get_child()->get_buffer()); ++ return Glib::RefPtr<gtksourceview::SourceBuffer>::cast_static(get_child()->get_buffer()); + } + + EditTabs::Page *EditTabs::get_current_tab() +@@ -850,9 +849,9 @@ EditTabs::Page *EditTabs::get_current_ta + return (static_cast<EditTabs::Page*>(get_nth_page(get_current_page()))); + } + +-Gtk::SourceView *EditTabs::get_current_view() ++gtksourceview::SourceView *EditTabs::get_current_view() + { +- return (static_cast<Gtk::SourceView*>(get_current_tab()->get_child())); ++ return (static_cast<gtksourceview::SourceView*>(get_current_tab()->get_child())); + } + + +@@ -861,8 +860,8 @@ void EditTabs::Page::on_preferences_upda + // For things that need to happen for all pages + PrefStruct *prefs = PrefStruct::instance(); + +- get_child()->set_tabs_width(prefs->get<int>("General", "tab_size")); +- get_buffer()->set_highlight(prefs->get<bool>("General", "syntax_highlighting")); ++ get_child()->set_tab_width(prefs->get<int>("General", "tab_size")); ++ get_buffer()->set_highlight_syntax(prefs->get<bool>("General", "syntax_highlighting")); + + } + +Index: amyedit-1.0/src/EditTabs.hh +=================================================================== +--- amyedit-1.0.orig/src/EditTabs.hh ++++ amyedit-1.0/src/EditTabs.hh +@@ -63,11 +63,11 @@ class EditTabs: public Gtk::Notebook + class Page:public Gtk::ScrolledWindow + { + public: +- Page(EditTabs *parent, Glib::RefPtr<Gtk::SourceBuffer> buffer=Glib::RefPtr<Gtk::SourceBuffer>()); ++ Page(EditTabs *parent, Glib::RefPtr<gtksourceview::SourceBuffer> buffer=Glib::RefPtr<gtksourceview::SourceBuffer>()); + + EditTabs *get_parent(); +- Gtk::SourceView *get_child(); +- Glib::RefPtr<Gtk::SourceBuffer> get_buffer(); ++ gtksourceview::SourceView *get_child(); ++ Glib::RefPtr<gtksourceview::SourceBuffer> get_buffer(); + + Glib::ustring filename; + Gtk::Label *tablabel; +@@ -77,8 +77,8 @@ class EditTabs: public Gtk::Notebook + void on_close_me(); + void on_modified_changed(); + void on_changed(); +- void on_mark_changed(Gtk::SourceBuffer::iterator iter, +- Glib::RefPtr<Gtk::SourceBuffer::Mark> mark); ++ void on_mark_changed(gtksourceview::SourceBuffer::iterator iter, ++ Glib::RefPtr<gtksourceview::SourceBuffer::Mark> mark); + void on_preferences_update(); + + }; +@@ -89,13 +89,13 @@ class EditTabs: public Gtk::Notebook + Glib::ustring GetRootFileName(); + Glib::ustring TabNameFromFile(Glib::ustring start); + Glib::ustring GetUntitledTabName(Glib::ustring start); +- Glib::RefPtr<Gtk::SourceBuffer> is_buffer_open(Glib::ustring filename); ++ Glib::RefPtr<gtksourceview::SourceBuffer> is_buffer_open(Glib::ustring filename); + + void on_switching_page(GtkNotebookPage *page, guint number); + public: + Page *get_current_tab(); + private: +- Gtk::SourceView *get_current_view(); ++ gtksourceview::SourceView *get_current_view(); + + void on_preferences_update(); + +Index: amyedit-1.0/src/SpellDialog.cc +=================================================================== +--- amyedit-1.0.orig/src/SpellDialog.cc ++++ amyedit-1.0/src/SpellDialog.cc +@@ -267,9 +267,9 @@ int SpellDialog::checkDocument(){ + aspell_document_checker_reset(checker); + + view = getCurrentPage()->get_child(); +- buffer = view->get_buffer(); ++ buffer = Glib::RefPtr<gtksourceview::SourceBuffer>::cast_static(view->get_buffer()); + +- buffer->set_check_brackets(false); ++ buffer->set_highlight_matching_brackets(false); + + /* areastart has left gravity, arearight has right gravity, as inserts only + * occur inside them, they should always mark the beginning and ends of the +@@ -315,7 +315,7 @@ int SpellDialog::checkDocument(){ + buffer->delete_mark(areastart); + buffer->delete_mark(areaend); + +- buffer->set_check_brackets(true); ++ buffer->set_highlight_matching_brackets(true); + return 0; + } + +@@ -370,7 +370,7 @@ bool SpellDialog::changeWord(AspellToken + /* Close Clicked */ + + buffer->place_cursor(wordend); +- buffer->set_check_brackets(); ++ buffer->set_highlight_matching_brackets(); + return false; + } + +Index: amyedit-1.0/src/SpellDialog.hh +=================================================================== +--- amyedit-1.0.orig/src/SpellDialog.hh ++++ amyedit-1.0/src/SpellDialog.hh +@@ -49,8 +49,8 @@ class SpellDialog : public Gtk::Dialog, + + void on_preferences_update(); + +- Gtk::SourceView* view; +- Glib::RefPtr<Gtk::SourceBuffer> buffer; ++ gtksourceview::SourceView* view; ++ Glib::RefPtr<gtksourceview::SourceBuffer> buffer; + Gtk::Entry misslabel; + Gtk::Entry replaceentry; + TextListViewListBox listbox; +Index: amyedit-1.0/src/main.cc +=================================================================== +--- amyedit-1.0.orig/src/main.cc ++++ amyedit-1.0/src/main.cc +@@ -53,7 +53,7 @@ + #include <fstream> + + #include "AmyEdit.hh" +-#include "gtksourceviewmm/init.hh" ++#include "gtksourceviewmm/init.h" + #include "Utils.hh" + + int main(int argc, char **argv) +@@ -63,7 +63,7 @@ int main(int argc, char **argv) + textdomain (GETTEXT_PACKAGE); + + Gtk::Main m(&argc, &argv); +- Gtk::SourceViewmm_init(); ++ gtksourceview::init(); + + /* TODO This should probably be removed and created on demand */ + diff --git a/app-editors/amyedit/metadata.xml b/app-editors/amyedit/metadata.xml new file mode 100644 index 000000000000..130606723adb --- /dev/null +++ b/app-editors/amyedit/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>tex@gentoo.org</email> + <name>Gentoo TeX Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">amyedit</remote-id> + </upstream> +</pkgmetadata> |