diff options
Diffstat (limited to 'gnustep-libs')
-rw-r--r-- | gnustep-libs/popplerkit/ChangeLog | 6 | ||||
-rw-r--r-- | gnustep-libs/popplerkit/Manifest | 20 | ||||
-rw-r--r-- | gnustep-libs/popplerkit/files/popplerkit-0.2-poppler6_support.patch | 191 | ||||
-rw-r--r-- | gnustep-libs/popplerkit/popplerkit-0.2.ebuild | 9 |
4 files changed, 216 insertions, 10 deletions
diff --git a/gnustep-libs/popplerkit/ChangeLog b/gnustep-libs/popplerkit/ChangeLog index 3c5d29d949a9..499342405174 100644 --- a/gnustep-libs/popplerkit/ChangeLog +++ b/gnustep-libs/popplerkit/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for gnustep-libs/popplerkit # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/popplerkit/ChangeLog,v 1.6 2007/09/10 14:07:31 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/popplerkit/ChangeLog,v 1.7 2007/09/11 09:44:24 voyageur Exp $ + + 11 Sep 2007; Bernard Cafarelli <voyageur@gentoo.org> + +files/popplerkit-0.2-poppler6_support.patch, popplerkit-0.2.ebuild: + Add patch for poppler 0.6 support *popplerkit-0.2 (10 Sep 2007) diff --git a/gnustep-libs/popplerkit/Manifest b/gnustep-libs/popplerkit/Manifest index 93627b2736d4..e42549de953e 100644 --- a/gnustep-libs/popplerkit/Manifest +++ b/gnustep-libs/popplerkit/Manifest @@ -1,12 +1,16 @@ +AUX popplerkit-0.2-poppler6_support.patch 6044 RMD160 0130b7dd0f6eb486ee097df1704784b5ccc36c90 SHA1 658578ed2245c5b347da5d9302ebedcc6edfc757 SHA256 b41398eb79b16fe32fedc9d5ab3265b31f4cc156a33268b03b77241c0e9cf10e +MD5 2cb810f2e2f21754bf6c0d5790d7ff35 files/popplerkit-0.2-poppler6_support.patch 6044 +RMD160 0130b7dd0f6eb486ee097df1704784b5ccc36c90 files/popplerkit-0.2-poppler6_support.patch 6044 +SHA256 b41398eb79b16fe32fedc9d5ab3265b31f4cc156a33268b03b77241c0e9cf10e files/popplerkit-0.2-poppler6_support.patch 6044 DIST etoile-0.2.tar.gz 21373391 RMD160 99aa05909469fc7ffae9118829a5f155050271c5 SHA1 9ecf33b0130687c1946da3eb7568605b5e9dfcbf SHA256 293cb9e5c50b27a8e38f16374c17595f20c5950ba44d00ffac3fb17ddd852d2c -EBUILD popplerkit-0.2.ebuild 629 RMD160 c84f0765be52b09938d28154c6453ab942284ed3 SHA1 f87b256c8a1cb9ef9f4ad859f5defa7ecca11f13 SHA256 8bb1fabf234bf9cd77164ba25812af2b94118c57c44fba9a27538d7f7f20c221 -MD5 ad25467807e0b1b3bda15f66714e1781 popplerkit-0.2.ebuild 629 -RMD160 c84f0765be52b09938d28154c6453ab942284ed3 popplerkit-0.2.ebuild 629 -SHA256 8bb1fabf234bf9cd77164ba25812af2b94118c57c44fba9a27538d7f7f20c221 popplerkit-0.2.ebuild 629 -MISC ChangeLog 1067 RMD160 d10b4576843761dc404d2bac265375c3b30e97a1 SHA1 18a5de086ee16997db93192a7d2c4dea057cc550 SHA256 26f078f692763f163390950c4e3e4d2ce331fa5c0cfe72a49bd981d01fc263c3 -MD5 6bb9f34370fdbebe2c39e806b9790142 ChangeLog 1067 -RMD160 d10b4576843761dc404d2bac265375c3b30e97a1 ChangeLog 1067 -SHA256 26f078f692763f163390950c4e3e4d2ce331fa5c0cfe72a49bd981d01fc263c3 ChangeLog 1067 +EBUILD popplerkit-0.2.ebuild 717 RMD160 bae8a016b557880f6a71b01dffd5f64053447d1d SHA1 d4fa4f310c9a57914b05fb102ff0d23a4514a252 SHA256 0a7511cb86999ed8cda2b480e47f495c4f4eb238cb8ac484d43a993c904b37a1 +MD5 48a08dc7a2624e42f3c604eb1bfad061 popplerkit-0.2.ebuild 717 +RMD160 bae8a016b557880f6a71b01dffd5f64053447d1d popplerkit-0.2.ebuild 717 +SHA256 0a7511cb86999ed8cda2b480e47f495c4f4eb238cb8ac484d43a993c904b37a1 popplerkit-0.2.ebuild 717 +MISC ChangeLog 1230 RMD160 76f1d0428ea2a9045d18361d51e6ab5bcac144fd SHA1 c9246ac89c90d7e6887b6073eda622a6d5d62521 SHA256 49de95e8dc8147ad7ab2cf478b1546a835d2380f92ad07335f45caebf6815883 +MD5 de322452b450b028e7bb19ab42a2fa54 ChangeLog 1230 +RMD160 76f1d0428ea2a9045d18361d51e6ab5bcac144fd ChangeLog 1230 +SHA256 49de95e8dc8147ad7ab2cf478b1546a835d2380f92ad07335f45caebf6815883 ChangeLog 1230 MISC metadata.xml 249 RMD160 ba5b4e225358e1ecbc6edcd8b8a5c314d7897b18 SHA1 4c78f83a26931b22608dbddf72ed75de1e2b5589 SHA256 78beb5173d3c75a10c26540981e01218b86d92441d0a09c84b0af106d2e8b24a MD5 e1e45d2cae3a1d64d67fbdfe199242a5 metadata.xml 249 RMD160 ba5b4e225358e1ecbc6edcd8b8a5c314d7897b18 metadata.xml 249 diff --git a/gnustep-libs/popplerkit/files/popplerkit-0.2-poppler6_support.patch b/gnustep-libs/popplerkit/files/popplerkit-0.2-poppler6_support.patch new file mode 100644 index 000000000000..352d8812ed2c --- /dev/null +++ b/gnustep-libs/popplerkit/files/popplerkit-0.2-poppler6_support.patch @@ -0,0 +1,191 @@ +Index: Etoile/Frameworks/PopplerKit/bindings/poppler_page.cc +=================================================================== +--- Etoile/Frameworks/PopplerKit/bindings/poppler_page.cc (révision 2341) ++++ Etoile/Frameworks/PopplerKit/bindings/poppler_page.cc (révision 2342) +@@ -33,7 +33,8 @@ + return NULL; + } + +- if ((pageIndex <= 0) || (pageIndex > PDF_DOC(poppler_document)->getNumPages())) ++ if ((pageIndex <= 0) || ++ ((int)pageIndex > PDF_DOC(poppler_document)->getNumPages())) + { + return NULL; + } +@@ -69,8 +70,7 @@ + + #ifdef POPPLER_0_4 + return PAGE(poppler_page)->getWidth(); +-#endif +-#ifdef POPPLER_0_5 ++#else + return PAGE(poppler_page)->getMediaWidth(); + #endif + +@@ -85,9 +85,7 @@ + + #ifdef POPPLER_0_4 + return PAGE(poppler_page)->getHeight(); +-#endif +-#ifdef POPPLER_0_5 ++#else + return PAGE(poppler_page)->getMediaHeight(); + #endif +- + } +Index: Etoile/Frameworks/PopplerKit/bindings/poppler.cc +=================================================================== +--- Etoile/Frameworks/PopplerKit/bindings/poppler.cc (révision 2341) ++++ Etoile/Frameworks/PopplerKit/bindings/poppler.cc (révision 2342) +@@ -110,7 +110,7 @@ + } + + // tell fontconfig about application fonts +- for (int i = 0; i < nappFonts; i++) ++ for (unsigned int i = 0; i < nappFonts; i++) + { + if (FcConfigAppFontAddFile(FcConfigGetCurrent(), appFonts[i])) + { +@@ -118,12 +118,16 @@ + } + else + { +- fprintf(stderr, "failed to register application font %s\n"); ++ fprintf(stderr, "failed to register application font %s\n", appFonts[i]); + } + fflush(stderr); + } + ++#ifdef POPPLER_0_6 ++ globalParams = new GlobalParams(); ++#else + globalParams = new GlobalParams(NULL); ++#endif + #ifdef POPPLER_0_4 + globalParams->setupBaseFontsFc(NULL); + #endif +Index: Etoile/Frameworks/PopplerKit/bindings/poppler_splash_renderer.cc +=================================================================== +--- Etoile/Frameworks/PopplerKit/bindings/poppler_splash_renderer.cc (révision 2341) ++++ Etoile/Frameworks/PopplerKit/bindings/poppler_splash_renderer.cc (révision 2342) +@@ -38,8 +38,7 @@ + #ifdef POPPLER_0_4 + white.rgb8 = splashMakeRGB8(bg_red, bg_green, bg_blue); + void* splashDevice = new SplashOutputDev(splashModeRGB8, gFalse, white); +-#endif +-#ifdef POPPLER_0_5 ++#else // 0.5, 0.6 + white[0] = bg_red; + white[1] = bg_green; + white[2] = bg_blue; +@@ -86,13 +85,17 @@ + SYNCHRONIZED(PAGE(poppler_page)->displaySlice(SPLASH_DEV(output_dev), + (double)hDPI, (double)vDPI, + rotate, +-#ifdef POPPLER_0_5 ++#ifndef POPPLER_0_4 // 0.5, 0.6 + gTrue, // useMediaBox + #endif + gTrue, // Crop + (int)sliceX, (int)sliceY, + (int)sliceW, (int)sliceH, ++#ifdef POPPLER_0_6 ++ gFalse, // printing ++#else + NULL, // Links ++#endif + PDF_DOC(poppler_document)->getCatalog())); + + return 1; +@@ -123,16 +126,14 @@ + + #ifdef POPPLER_0_4 + SplashRGB8* rgb8; +-#endif +-#ifdef POPPLER_0_5 ++#else // 0.5, 0.6 + SplashColorPtr color; + #endif + unsigned char* dataPtr; + + #ifdef POPPLER_0_4 + rgb8 = SPLASH_BITMAP(bitmap)->getDataPtr().rgb8; +-#endif +-#ifdef POPPLER_0_5 ++#else // 0.5, 0.6 + color = SPLASH_BITMAP(bitmap)->getDataPtr(); + #endif + +@@ -146,8 +147,7 @@ + *dataPtr++ = splashRGB8G(*rgb8); + *dataPtr++ = splashRGB8B(*rgb8); + ++rgb8; +-#endif +-#ifdef POPPLER_0_5 ++#else // 0.5, 0.6 + *dataPtr++ = splashRGB8R(color); + *dataPtr++ = splashRGB8G(color); + *dataPtr++ = splashRGB8B(color); +Index: Etoile/Frameworks/PopplerKit/bindings/GNUmakefile +=================================================================== +--- Etoile/Frameworks/PopplerKit/bindings/GNUmakefile (révision 2341) ++++ Etoile/Frameworks/PopplerKit/bindings/GNUmakefile (révision 2342) +@@ -55,4 +55,8 @@ + bindings_CFLAGS += -DPOPPLER_0_5 + endif + ++ifeq ($(POPPLER_0_6), YES) ++ bindings_CFLAGS += -DPOPPLER_0_6 ++endif ++ + include $(GNUSTEP_MAKEFILES)/subproject.make +Index: Etoile/Frameworks/PopplerKit/bindings/poppler_text.cc +=================================================================== +--- Etoile/Frameworks/PopplerKit/bindings/poppler_text.cc (révision 2341) ++++ Etoile/Frameworks/PopplerKit/bindings/poppler_text.cc (révision 2342) +@@ -51,10 +51,16 @@ + + SYNCHRONIZED(PAGE(poppler_page)->display(TEXT_DEV(text_device), + hDPI, vDPI, rotate, +-#ifdef POPPLER_0_5 ++#ifndef POPPLER_0_4 + gTrue, // useMediaBox + #endif +- crop, NULL, PDF_DOC(poppler_document)->getCatalog())); ++ crop, ++#ifdef POPPLER_0_6 ++ gFalse, // printing ++#else ++ NULL, // links ++#endif ++ PDF_DOC(poppler_document)->getCatalog())); + return 1; + } + +@@ -70,7 +76,7 @@ + int result = TEXT_DEV(text_device)->findText(text_utf32, text_len, + start_at_top, stop_at_bottom, + start_at_last, stop_at_last, +-#ifdef POPPLER_0_5 ++#ifndef POPPLER_0_4 // 0.5, 0.6 + gTrue, gFalse, + #endif + x_min, y_min, x_max, y_max); +Index: Etoile/Frameworks/PopplerKit/config.sh +=================================================================== +--- Etoile/Frameworks/PopplerKit/config.sh (révision 2341) ++++ Etoile/Frameworks/PopplerKit/config.sh (révision 2342) +@@ -60,6 +60,13 @@ + POPPLER_VERSION="POPPLER_0_5" + fi + ++${PKG_CONFIG} --atleast-version=0.5.9 poppler ++if [ $? -eq 0 ]; then ++ POPPLER_VERSION="POPPLER_0_6" ++fi ++ ++echo $POPPLER_VERSION ++ + # include freetype, just to be sure + ${PKG_CONFIG} --exists freetype2 + if [ $? -eq 0 ]; then diff --git a/gnustep-libs/popplerkit/popplerkit-0.2.ebuild b/gnustep-libs/popplerkit/popplerkit-0.2.ebuild index 0d7749177152..045c607d768e 100644 --- a/gnustep-libs/popplerkit/popplerkit-0.2.ebuild +++ b/gnustep-libs/popplerkit/popplerkit-0.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/popplerkit/popplerkit-0.2.ebuild,v 1.2 2007/09/10 22:11:53 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/popplerkit/popplerkit-0.2.ebuild,v 1.3 2007/09/11 09:44:24 voyageur Exp $ inherit gnustep-2 @@ -16,3 +16,10 @@ SLOT="0" DEPEND=">=app-text/poppler-0.4 >=media-libs/freetype-2" RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${P}-poppler6_support.patch +} |