summaryrefslogtreecommitdiffstats
path: root/graphics/passepartout
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2004-08-19 04:49:33 +0000
committerbland <bland@FreeBSD.org>2004-08-19 04:49:33 +0000
commit30a344dff9772b0676ae3b668c77401575437040 (patch)
treeac0b8c471c8884076da78672b1b89ea2127dbe12 /graphics/passepartout
parentb6e51c41112330a6c5c4fa40a7bc950edd88a44a (diff)
downloadFreeBSD-ports-30a344dff9772b0676ae3b668c77401575437040.zip
FreeBSD-ports-30a344dff9772b0676ae3b668c77401575437040.tar.gz
- Fix build with gcc 3.4 [1]
- Fix plist. Reported by: pointyhat via kris [1]
Diffstat (limited to 'graphics/passepartout')
-rw-r--r--graphics/passepartout/Makefile4
-rw-r--r--graphics/passepartout/files/patch-src::pptout::widget::dialogwrap.cc14
-rw-r--r--graphics/passepartout/files/patch-src::ps::pdf.cc16
-rw-r--r--graphics/passepartout/files/patch-src::util::valueuint.h23
-rw-r--r--graphics/passepartout/pkg-plist1
5 files changed, 56 insertions, 2 deletions
diff --git a/graphics/passepartout/Makefile b/graphics/passepartout/Makefile
index 17be784..b05e323 100644
--- a/graphics/passepartout/Makefile
+++ b/graphics/passepartout/Makefile
@@ -7,7 +7,7 @@
PORTNAME= passepartout
PORTVERSION= 0.4
-PORTREVISION= 3
+PORTREVISION= 5
CATEGORIES= graphics gnome
MASTER_SITES= http://www.stacken.kth.se/project/pptout/files/
@@ -27,7 +27,7 @@ USE_LIBTOOL_VER=13
CONFIGURE_ENV= CFALGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
-MAN= xml2ps.1 passepartout.1x
+MAN1= xml2ps.1 passepartout.1x
.include <bsd.port.pre.mk>
diff --git a/graphics/passepartout/files/patch-src::pptout::widget::dialogwrap.cc b/graphics/passepartout/files/patch-src::pptout::widget::dialogwrap.cc
new file mode 100644
index 0000000..47481c0
--- /dev/null
+++ b/graphics/passepartout/files/patch-src::pptout::widget::dialogwrap.cc
@@ -0,0 +1,14 @@
+--- src/pptout/widget/dialogwrap.cc.orig Thu Aug 19 00:18:05 2004
++++ src/pptout/widget/dialogwrap.cc Thu Aug 19 00:19:35 2004
+@@ -24,9 +24,9 @@
+ Gtk::Button *b = manage(button);
+ // Note: It seems that activate means "in any way except a simple click".
+ // So we have to add callbacks for both activate and clicked.
+- b->signal_clicked().connect(bind(slot(*this, &Gtk::Dialog::on_response),
++ b->signal_clicked().connect(bind(slot(*this, &DialogWrap::on_response),
+ action_id));
+- b->signal_activate().connect(bind(slot(*this, &Gtk::Dialog::on_response),
++ b->signal_activate().connect(bind(slot(*this, &DialogWrap::on_response),
+ action_id));
+ return b;
+ }
diff --git a/graphics/passepartout/files/patch-src::ps::pdf.cc b/graphics/passepartout/files/patch-src::ps::pdf.cc
new file mode 100644
index 0000000..165de62
--- /dev/null
+++ b/graphics/passepartout/files/patch-src::ps::pdf.cc
@@ -0,0 +1,16 @@
+--- src/ps/pdf.cc.orig Wed Aug 18 23:42:10 2004
++++ src/ps/pdf.cc Wed Aug 18 23:44:28 2004
+@@ -199,10 +199,10 @@
+ bytecount write(std::ostream *out, bool binary=true, bytecount offset=0)
+ {
+ Part::write(out, binary, offset);
+- std::string str(str());
++ const std::string& s(str());
+ if(out)
+- (*out) << str;
+- return offset+str.length();
++ (*out) << s;
++ return offset+s.length();
+ }
+
+ protected:
diff --git a/graphics/passepartout/files/patch-src::util::valueuint.h b/graphics/passepartout/files/patch-src::util::valueuint.h
new file mode 100644
index 0000000..75fd760
--- /dev/null
+++ b/graphics/passepartout/files/patch-src::util::valueuint.h
@@ -0,0 +1,23 @@
+--- src/util/valueunit.h.orig Wed Aug 18 23:48:05 2004
++++ src/util/valueunit.h Thu Aug 19 00:04:04 2004
+@@ -15,10 +15,10 @@
+ const Value& value() const { return value_; }
+ const std::string& unit() const { return unit_; }
+
+-private:
++protected:
+ Value value_;
+ std::string unit_;
+- friend std::istream& operator >> <> (std::istream& in, ValueUnit<Value>& vu);
++ friend std::istream& operator >> (std::istream& in, ValueUnit<Value>& vu);
+ };
+
+ template <typename Tp>
+@@ -44,7 +44,6 @@
+ * Special case for float, since readig a float from "14em" barfs, guessing
+ * that the 'e' is for an exponent.
+ */
+-template<>
+ std::istream& operator >> (std::istream& in, ValueUnit<float>& vu) {
+ in >> std::ws;
+ std::string value;
diff --git a/graphics/passepartout/pkg-plist b/graphics/passepartout/pkg-plist
index 56a47dd..b2f5386 100644
--- a/graphics/passepartout/pkg-plist
+++ b/graphics/passepartout/pkg-plist
@@ -28,3 +28,4 @@ share/xml/passepartout/xml2ps.dtd
@dirrm share/doc/passepartout/examples
@dirrm share/doc/passepartout
@dirrm share/xml/passepartout
+@unexec /bin/rmdir %D/share/xml 2> /dev/null || /usr/bin/true
OpenPOWER on IntegriCloud