diff options
author | jkim <jkim@FreeBSD.org> | 2012-05-04 01:19:55 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-05-04 01:19:55 +0800 |
commit | 8812f97ba69017ff96f62a1d73978e7d54084986 (patch) | |
tree | a811beca4196a2b65c6e81aaae58ca768e8ad58c /graphics | |
parent | dc6d086388c2a55c17b765491d5874a227837a34 (diff) | |
download | freebsd-ports-gnome-8812f97ba69017ff96f62a1d73978e7d54084986.tar.gz freebsd-ports-gnome-8812f97ba69017ff96f62a1d73978e7d54084986.tar.zst freebsd-ports-gnome-8812f97ba69017ff96f62a1d73978e7d54084986.zip |
- Update to 0.2.1.
- Add an upstream patch to fix build with Clang.
- Switch distfile to bunzip2 format.
Reviewed by: fluffy (maintainer)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libwpg/Makefile | 4 | ||||
-rw-r--r-- | graphics/libwpg/distinfo | 4 | ||||
-rw-r--r-- | graphics/libwpg/files/patch-src-lib-WPG2Parser.cpp | 38 | ||||
-rw-r--r-- | graphics/libwpg/pkg-plist | 2 |
4 files changed, 44 insertions, 4 deletions
diff --git a/graphics/libwpg/Makefile b/graphics/libwpg/Makefile index 3c75332cb470..9cedf888696a 100644 --- a/graphics/libwpg/Makefile +++ b/graphics/libwpg/Makefile @@ -6,8 +6,7 @@ # PORTNAME= libwpg -PORTVERSION= 0.2.0 -PORTREVISION= 2 +PORTVERSION= 0.2.1 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -20,6 +19,7 @@ LICENSE= LGPL20 USE_AUTOTOOLS= libtool USE_GNOME= gnomeprefix gnomehack ltverhack +USE_BZIP2= yes USE_PERL5= yes USE_LDCONFIG= yes diff --git a/graphics/libwpg/distinfo b/graphics/libwpg/distinfo index 890b6160bb14..727602587451 100644 --- a/graphics/libwpg/distinfo +++ b/graphics/libwpg/distinfo @@ -1,2 +1,2 @@ -SHA256 (libwpg-0.2.0.tar.gz) = aea3e744b180ff244f56709055ba7d4910af829ed14d388b0b60cc732c9c3b94 -SIZE (libwpg-0.2.0.tar.gz) = 418210 +SHA256 (libwpg-0.2.1.tar.bz2) = a0bc8854af5affbcf6f91731d867163b96c4991220f8e3b28b9d49ca3cfba169 +SIZE (libwpg-0.2.1.tar.bz2) = 335521 diff --git a/graphics/libwpg/files/patch-src-lib-WPG2Parser.cpp b/graphics/libwpg/files/patch-src-lib-WPG2Parser.cpp new file mode 100644 index 000000000000..0c7a88771479 --- /dev/null +++ b/graphics/libwpg/files/patch-src-lib-WPG2Parser.cpp @@ -0,0 +1,38 @@ +--- src/lib/WPG2Parser.cpp ++++ src/lib/WPG2Parser.cpp +@@ -820,7 +820,7 @@ void WPG2Parser::handleDPPenForeColor() + unsigned char red = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned char green = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned char blue = (m_doublePrecision) ? readU16()>>8 : readU8(); +- unsigned char alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8(); ++ unsigned char alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8()); + + m_style.insert("svg:stroke-color", libwpg::WPGColor(red, green, blue, alpha).getColorString()); + m_style.insert("svg:stroke-opacity", libwpg::WPGColor(red, green, blue, alpha).getOpacity(), WPX_PERCENT); +@@ -860,7 +860,7 @@ void WPG2Parser::handleDPPenBackColor() + unsigned int red = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned int green = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned int blue = (m_doublePrecision) ? readU16()>>8 : readU8(); +- unsigned int alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8(); ++ unsigned int alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8()); + + m_penBackColor = libwpg::WPGColor(red, green, blue, alpha); + +@@ -1156,7 +1156,7 @@ void WPG2Parser::handleDPBrushForeColor() + unsigned char red = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned char green = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned char blue = (m_doublePrecision) ? readU16()>>8 : readU8(); +- unsigned char alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8(); ++ unsigned char alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8()); + WPG_DEBUG_MSG((" Foreground color (RGBA): %d %d %d %d\n", red, green, blue, alpha)); + + m_brushForeColor = libwpg::WPGColor(red, green, blue, alpha); +@@ -1181,7 +1181,7 @@ void WPG2Parser::handleDPBrushForeColor() + unsigned char red = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned char green = (m_doublePrecision) ? readU16()>>8 : readU8(); + unsigned char blue = (m_doublePrecision) ? readU16()>>8 : readU8(); +- unsigned char alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8(); ++ unsigned char alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8()); + libwpg::WPGColor color(red, green, blue, alpha); + colors.push_back(color); + WPG_DEBUG_MSG((" Color #%d (RGBA): %d %d %d %d\n", i+1, red, green, blue, alpha)); diff --git a/graphics/libwpg/pkg-plist b/graphics/libwpg/pkg-plist index b80f3e19fa46..f677f570c3f4 100644 --- a/graphics/libwpg/pkg-plist +++ b/graphics/libwpg/pkg-plist @@ -111,6 +111,7 @@ libdata/pkgconfig/libwpg-0.2.pc %%PORTDOCS%%%%DOCSDIR%%/html/ftv2splitbar.png %%PORTDOCS%%%%DOCSDIR%%/html/ftv2vertline.png %%PORTDOCS%%%%DOCSDIR%%/html/functions.html +%%PORTDOCS%%%%DOCSDIR%%/html/functions_0x61.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_0x62.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_0x63.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_0x64.html @@ -134,6 +135,7 @@ libdata/pkgconfig/libwpg-0.2.pc %%PORTDOCS%%%%DOCSDIR%%/html/functions_0x79.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_0x7e.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_func.html +%%PORTDOCS%%%%DOCSDIR%%/html/functions_func_0x61.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_func_0x63.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_func_0x64.html %%PORTDOCS%%%%DOCSDIR%%/html/functions_func_0x65.html |