diff options
Diffstat (limited to 'sci-libs/plotmm')
-rw-r--r-- | sci-libs/plotmm/Manifest | 6 | ||||
-rw-r--r-- | sci-libs/plotmm/files/plotmm-0.1.2-libsigc++-2.2.patch | 100 | ||||
-rw-r--r-- | sci-libs/plotmm/metadata.xml | 8 | ||||
-rw-r--r-- | sci-libs/plotmm/plotmm-0.1.2.ebuild | 58 |
4 files changed, 172 insertions, 0 deletions
diff --git a/sci-libs/plotmm/Manifest b/sci-libs/plotmm/Manifest new file mode 100644 index 000000000000..323c46e8d585 --- /dev/null +++ b/sci-libs/plotmm/Manifest @@ -0,0 +1,6 @@ +AUX plotmm-0.1.2-libsigc++-2.2.patch 4037 SHA256 6c535a0665d561841dc1fa9fce29eb18735850bea3d7af8b19e1d20050237cc6 SHA512 3327b7fcd0311976bbf1a6990e9cf14c43c85fb4eea2de21501bc79e90ee7bbec9527b35dab8204534f797e318659f0d67faefa047bb6ef2a8b0962588e2b4b2 WHIRLPOOL 797145d4936c30858ecc57c0f96138d2a4f8df82822236a316e73fe8de2f0c3efb545f143cbd1a0cc4b8821f47f6e3ed2e087f11c5f86dadff6443bc2c57d35d +DIST plotmm-0.1.2.tar.gz 473175 SHA256 896bb729eb9cad5f3188d72304789dd7a86fdae66020ac0632fe3bc66abe9653 SHA512 68484d7ed3b4d6520782735e05ad3cf9a5749f723285a2a3d0d1fabe3b23df57856d24addb31c23e3f23174655095f55b9b9a8d10316812d7a80fe13e204fab6 WHIRLPOOL f004f50a7e9dc7cbfe891fe924139d7f75e293889b79c86a84ed3a58e2468ad10051105055c71753b3bb9d25fc50d2a6eae423a18af8e11c56228a988c7460bd +EBUILD plotmm-0.1.2.ebuild 1362 SHA256 b6a2550a36bc81b695d789d309ef3278825977547de816013499bbc765bcd82f SHA512 ca586b8907e2d35fe8a8bd4bc1272eff861065e3d770840b612f855b6ea206f6aed09d0fce980b55319394fd824ed75739eced17daa77bbb2097b5e941c61f1d WHIRLPOOL 28b827b2ec9a95c36dc0f6116d58875f2dbb664d0c206c786864ce442065c3f375b1137e80eaa70ac64fddae5746307c853094952874e3ced813f9c393c95192 +MISC ChangeLog 2709 SHA256 c5a24769001a1f8b34b8001b8d4b493ad1d3c5b2efca03a24ecee357aa4e94d3 SHA512 ebd5e9f91e39e061b445aee8172116779aa0636bba8cf84303f8d079c9f5b5dd2e2ee4355a5335242e67a922f18a54ce035e563edd745f82f92da3e556ed6a7d WHIRLPOOL 127b843036effc5d9d23bddd028f5f9260f3710c7a115a1e359d476b134ec9ac9647c58244b81f39409e6f4ab84dbdce6da378a0ac438b3862e5b8a692388cb1 +MISC ChangeLog-2015 939 SHA256 cb1612bfeef0af9f63c6400d3daf173d34f4dfc50c7d71f0938e79b1884ce9a1 SHA512 f0d9f260fee9ce19f6d4c2bea2a634859863301518da63791e94630d65a9d40ae3e65f01a834931285f857d20b22734cb7521310b5fc6c05c5fd3e6dc1f4f57d WHIRLPOOL 69238d89f69846fbec30b73df70debed121d75dbb0d0af90ac87194b86e9bba83c2a9724e5dbe568b90f93492af3f7feb7ef3aceb94598aebb0989a1fc176152 +MISC metadata.xml 243 SHA256 b4f1219eae9ece17a7aa123288c1afca3bbba6c8386652eeb2224eaaf0c8dc3b SHA512 d9179f9fde1433951047043a7c811ea571511473d16c0c4e2b0655933dd41cc7b0b56edbf3db9ed25037086a676de73ea6886a6935a3c3dff67ad441eaa1304a WHIRLPOOL 470263fcbacc3dad02bf8d02b907c14cd4721e46ecaed068430e0c2c59fb7886dd0d9872bdcb19888f2f0cba253c25eb686baa038f0f41028cf1481aecb43bd2 diff --git a/sci-libs/plotmm/files/plotmm-0.1.2-libsigc++-2.2.patch b/sci-libs/plotmm/files/plotmm-0.1.2-libsigc++-2.2.patch new file mode 100644 index 000000000000..a9aa53190d5f --- /dev/null +++ b/sci-libs/plotmm/files/plotmm-0.1.2-libsigc++-2.2.patch @@ -0,0 +1,100 @@ +diff -ur plotmm-0.1.2-old/plotmm/compat.h plotmm-0.1.2/plotmm/compat.h +--- plotmm-0.1.2-old/plotmm/compat.h 2005-11-09 17:36:02.000000000 +0100 ++++ plotmm-0.1.2/plotmm/compat.h 2008-07-25 00:13:55.000000000 +0200 +@@ -58,7 +58,7 @@ + #else + + namespace PlotMM { +- typedef SigC::ObjectBase ObjectBase; ++ typedef sigc::ObjectBase ObjectBase; + } + + #endif +diff -ur plotmm-0.1.2-old/plotmm/curve.h plotmm-0.1.2/plotmm/curve.h +--- plotmm-0.1.2-old/plotmm/curve.h 2005-11-09 17:47:21.000000000 +0100 ++++ plotmm-0.1.2/plotmm/curve.h 2008-07-25 00:24:02.000000000 +0200 +@@ -140,7 +140,7 @@ + int from = 0, int to = -1); + + //! Signals that this curve has changed in some way or the other +- SigC::Signal0<void> signal_curve_changed; ++ sigc::signal0<void> signal_curve_changed; + + protected: + virtual void init(const Glib::ustring &title); +diff -ur plotmm-0.1.2-old/plotmm/plot.cc plotmm-0.1.2/plotmm/plot.cc +--- plotmm-0.1.2-old/plotmm/plot.cc 2005-11-09 17:59:48.000000000 +0100 ++++ plotmm-0.1.2/plotmm/plot.cc 2008-07-25 00:24:30.000000000 +0200 +@@ -322,7 +322,7 @@ + connect(sigc::mem_fun(*this,&Plot::on_canvas_expose_event)); + #else + canvas_.signal_expose_event(). +- connect(SigC::slot(*this,&Plot::on_canvas_expose_event)); ++ connect(sigc::slot(*this,&Plot::on_canvas_expose_event)); + #endif + + show_all(); +@@ -406,19 +406,19 @@ + } + + //! Return the signal owned by plot canvas +-SigC::Signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_press() ++sigc::signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_press() + { + return canvas_.signal_plot_mouse_press; + } + + //! Return the signal owned by plot canvas +-SigC::Signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_release() ++sigc::signal3<void,int,int,GdkEventButton*> Plot::signal_plot_mouse_release() + { + return canvas_.signal_plot_mouse_release; + } + + //! Return the signal owned by plot canvas +-SigC::Signal3<void,int,int,GdkEventMotion*> Plot::signal_plot_mouse_move() ++sigc::signal3<void,int,int,GdkEventMotion*> Plot::signal_plot_mouse_move() + { + return canvas_.signal_plot_mouse_move; + } +diff -ur plotmm-0.1.2-old/plotmm/plot.h plotmm-0.1.2/plotmm/plot.h +--- plotmm-0.1.2-old/plotmm/plot.h 2004-03-09 10:51:55.000000000 +0100 ++++ plotmm-0.1.2/plotmm/plot.h 2008-07-25 00:25:17.000000000 +0200 +@@ -79,9 +79,9 @@ + virtual void clear(); + virtual void end_replot(); + +- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press; +- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release; +- SigC::Signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move; ++ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press; ++ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release; ++ sigc::signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move; + + protected: + virtual bool on_expose_event(GdkEventExpose* event); +@@ -141,9 +141,9 @@ + Scale *scale(PlotAxisID id) { return tickMark_[id]; } + PlotLabel *label(PlotAxisID id) { return axisLabel_[id]; } + +- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press(); +- SigC::Signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release(); +- SigC::Signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move(); ++ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_press(); ++ sigc::signal3<void,int,int,GdkEventButton*> signal_plot_mouse_release(); ++ sigc::signal3<void,int,int,GdkEventMotion*> signal_plot_mouse_move(); + + void set_selection(const Rectangle &r); + Rectangle get_selection() { return select_; } +diff -ur plotmm-0.1.2-old/plotmm/scale.h plotmm-0.1.2/plotmm/scale.h +--- plotmm-0.1.2-old/plotmm/scale.h 2004-03-05 16:25:43.000000000 +0100 ++++ plotmm-0.1.2/plotmm/scale.h 2008-07-25 00:25:30.000000000 +0200 +@@ -133,7 +133,7 @@ + /*! This signal is thrown whenever the scale is enabled or disabled + * \sa set_enabled, enabled + */ +- SigC::Signal1<void,bool> signal_enabled; ++ sigc::signal1<void,bool> signal_enabled; + + protected: + virtual void on_realize(); diff --git a/sci-libs/plotmm/metadata.xml b/sci-libs/plotmm/metadata.xml new file mode 100644 index 000000000000..6907b0a4da6b --- /dev/null +++ b/sci-libs/plotmm/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">plotmm</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-libs/plotmm/plotmm-0.1.2.ebuild b/sci-libs/plotmm/plotmm-0.1.2.ebuild new file mode 100644 index 000000000000..e6a0447c3f7f --- /dev/null +++ b/sci-libs/plotmm/plotmm-0.1.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic + +DESCRIPTION="Plot widget for GTKmm" +HOMEPAGE="http://plotmm.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~x86" +IUSE="doc examples" + +RDEPEND="dev-cpp/gtkmm:2.4" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +# NOTES: +# somewhat, there is a dep on libsigc++ but it's much more via gtkmm + +src_prepare() { + epatch "${FILESDIR}/${P}-libsigc++-2.2.patch" + + if ! use examples; then + sed -i -e "s:examples::" Makefile.in || die "sed failed" + fi +} + +src_configure() { + append-cxxflags -std=c++11 + econf \ + --disable-maintainer-mode \ + --enable-fast-install \ + --disable-libtool-lock +} + +src_install() { + default + + if use doc; then + dohtml -r doc/html/* || die "dohtml failed" + fi + + if use examples; then + # rename installed bin files + mv "${D}"/usr/bin/curves "${D}"/usr/bin/${PN}-curves || die "mv failed" + mv "${D}"/usr/bin/simple "${D}"/usr/bin/${PN}-simple || die "mv failed" + + # install sources + insinto /usr/share/doc/${PF}/examples/ + doins examples/{curves/curves,simple/simple}.cc || die "doins failed" + + elog "You can use examples by calling ${PN}-curves or ${PN}-simple." + elog "Examples source code is in /usr/share/doc/${PF}/examples." + fi +} |