1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Fix build with gcc 3.4 [1]

- Fix plist.

Reported by:	pointyhat via kris [1]
This commit is contained in:
Alexander Nedotsukov 2004-08-19 04:49:33 +00:00
parent 945decbdad
commit 4561a016ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116647
5 changed files with 56 additions and 2 deletions

View File

@ -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>

View File

@ -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;
}

View File

@ -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:

View File

@ -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;

View File

@ -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