diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-02-27 08:21:46 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-02-27 08:21:46 +0800 |
commit | 7d6760551f211817c3ca2ecabce8712f4ea5ea9c (patch) | |
tree | 0ae6feacb5673ab88f6609e4caba81c06fce6b04 /graphics/epdfview | |
parent | 1773d8036d0e925adddcdb17f846356030345695 (diff) | |
download | marcuscom-ports-7d6760551f211817c3ca2ecabce8712f4ea5ea9c.tar marcuscom-ports-7d6760551f211817c3ca2ecabce8712f4ea5ea9c.tar.gz marcuscom-ports-7d6760551f211817c3ca2ecabce8712f4ea5ea9c.tar.bz2 marcuscom-ports-7d6760551f211817c3ca2ecabce8712f4ea5ea9c.tar.lz marcuscom-ports-7d6760551f211817c3ca2ecabce8712f4ea5ea9c.tar.xz marcuscom-ports-7d6760551f211817c3ca2ecabce8712f4ea5ea9c.tar.zst marcuscom-ports-7d6760551f211817c3ca2ecabce8712f4ea5ea9c.zip |
Chase the poppler shared library bump.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11928 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/epdfview')
-rw-r--r-- | graphics/epdfview/Makefile | 58 | ||||
-rw-r--r-- | graphics/epdfview/distinfo | 3 | ||||
-rw-r--r-- | graphics/epdfview/files/patch-PrintPtr.cxx | 103 | ||||
-rw-r--r-- | graphics/epdfview/pkg-descr | 7 | ||||
-rw-r--r-- | graphics/epdfview/pkg-plist | 25 |
5 files changed, 196 insertions, 0 deletions
diff --git a/graphics/epdfview/Makefile b/graphics/epdfview/Makefile new file mode 100644 index 000000000..8e606242f --- /dev/null +++ b/graphics/epdfview/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: epdfview +# Date created: 2006/06/01 +# Whom: chinsan <chinsan.tw@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= epdfview +PORTVERSION= 0.1.6 +PORTREVISION= 8 +CATEGORIES= graphics print gnome +MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \ + LOCAL/chinsan + +MAINTAINER= chinsan@FreeBSD.org +COMMENT= A lightweight PDF document viewer + +BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit +LIB_DEPENDS= poppler-glib.4:${PORTSDIR}/graphics/poppler-gtk + +USE_BZIP2= yes +GNU_CONFIGURE= yes +INSTALLS_ICONS= yes +USE_ICONV= yes +USE_GMAKE= yes +USE_GNOME= gtk20 intlhack +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +OPTIONS= CUPS "Use cups printing system" off \ + NLS "Native language support" on + +.include <bsd.port.pre.mk> + +.if defined(WITH_CUPS) +CONFIGURE_ARGS+=--with-cups +LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base +.else +CONFIGURE_ARGS+=--without-cups +.endif + +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + +post-install: + ${MKDIR} ${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/data/${PORTNAME}.desktop ${PREFIX}/share/applications/ + @-update-desktop-database + +.include <bsd.port.post.mk> diff --git a/graphics/epdfview/distinfo b/graphics/epdfview/distinfo new file mode 100644 index 000000000..8485b77dd --- /dev/null +++ b/graphics/epdfview/distinfo @@ -0,0 +1,3 @@ +MD5 (epdfview-0.1.6.tar.bz2) = cce9edb41b4a8308e0ef0eea24b5a1ab +SHA256 (epdfview-0.1.6.tar.bz2) = 61d041afc953e0570ddae934179e92edf800f69f043d78058073806504e4137f +SIZE (epdfview-0.1.6.tar.bz2) = 406037 diff --git a/graphics/epdfview/files/patch-PrintPtr.cxx b/graphics/epdfview/files/patch-PrintPtr.cxx new file mode 100644 index 000000000..48eb6f84a --- /dev/null +++ b/graphics/epdfview/files/patch-PrintPtr.cxx @@ -0,0 +1,103 @@ +diff -Naur ./src/PrintPter.cxx ../epdfview-0.1.6/src/PrintPter.cxx +--- ./src/PrintPter.cxx 2008-08-28 15:27:16.000000000 +0200 ++++ ../epdfview-0.1.6/src/PrintPter.cxx 2008-08-28 15:27:32.000000000 +0200 +@@ -230,20 +230,27 @@ + ppdFindOption (printerPPD, "PageSize"); + view.clearPageSizeList (); + int pageSizeToSelect = 0; +- ppd_choice_t *pageSizeChoice = pageSizeOption->choices; +- for ( int currentSize = 0 ; +- currentSize < pageSizeOption->num_choices ; +- ++currentSize, ++pageSizeChoice ) ++ if ( 0 != pageSizeOption ) + { +- const gchar *sizeName = pageSizeChoice->text; +- const gchar *sizeValue = pageSizeChoice->choice; +- +- view.addPageSize (_(sizeName), sizeValue); +- if ( pageSizeChoice->marked ) ++ ppd_choice_t *pageSizeChoice = pageSizeOption->choices; ++ for ( int currentSize = 0 ; ++ currentSize < pageSizeOption->num_choices ; ++ ++currentSize, ++pageSizeChoice ) + { +- pageSizeToSelect = currentSize; ++ const gchar *sizeName = pageSizeChoice->text; ++ const gchar *sizeValue = pageSizeChoice->choice; ++ ++ view.addPageSize (_(sizeName), sizeValue); ++ if ( pageSizeChoice->marked ) ++ { ++ pageSizeToSelect = currentSize; ++ } + } + } ++ else ++ { ++ view.addPageSize (_("A4"), "A4"); ++ } + view.selectPageSize (pageSizeToSelect); + + // Get the resolutions. +@@ -251,29 +258,36 @@ + ppdFindOption (printerPPD, "Resolution"); + view.clearResolutionList (); + int resolutionToSelect = 0; +- ppd_choice_t *resolutionChoice = resolutionOption->choices; +- for ( int currentRes = 0 ; +- currentRes < resolutionOption->num_choices ; +- ++currentRes, ++resolutionChoice ) ++ if ( 0 != resolutionOption ) + { +- const gchar *resName = resolutionChoice->text; +- const gchar *resValue = resolutionChoice->choice; +- +- view.addResolution (_(resName), resValue); +- if ( resolutionChoice->marked ) ++ ppd_choice_t *resolutionChoice = resolutionOption->choices; ++ for ( int currentRes = 0 ; ++ currentRes < resolutionOption->num_choices ; ++ ++currentRes, ++resolutionChoice ) + { +- resolutionToSelect = currentRes; ++ const gchar *resName = resolutionChoice->text; ++ const gchar *resValue = resolutionChoice->choice; ++ ++ view.addResolution (_(resName), resValue); ++ if ( resolutionChoice->marked ) ++ { ++ resolutionToSelect = currentRes; ++ } + } + } ++ else ++ { ++ view.addResolution (_("300 DPI"), "300x300dpi"); ++ } + view.selectResolution (resolutionToSelect); + + // Get the color models. + ppd_option_t *colorModelOption = + ppdFindOption (printerPPD, "ColorModel"); + view.clearColorModelList (); ++ int colorModelToSelect = 0; + if ( NULL != colorModelOption ) + { +- int colorModelToSelect = 0; + ppd_choice_t *colorModelChoice = colorModelOption->choices; + for ( int currentColor = 0 ; + currentColor < colorModelOption->num_choices ; +@@ -288,12 +302,12 @@ + colorModelToSelect = currentColor; + } + } +- view.selectColorModel (colorModelToSelect); + } + else + { + view.addColorModel (_("Grayscale"), "Gray"); + } ++ view.selectColorModel (colorModelToSelect); + ppdClose (printerPPD); + } + } diff --git a/graphics/epdfview/pkg-descr b/graphics/epdfview/pkg-descr new file mode 100644 index 000000000..8f6a402a7 --- /dev/null +++ b/graphics/epdfview/pkg-descr @@ -0,0 +1,7 @@ +ePDFView is a free lightweight PDF document viewer using Poppler and GTK+ +libraries. + +The aim of ePDFView is to make a simple PDF document viewer, in the lines of +Evince but without using the Gnome libraries. + +WWW: http://www.emma-soft.com/projects/epdfview/ diff --git a/graphics/epdfview/pkg-plist b/graphics/epdfview/pkg-plist new file mode 100644 index 000000000..f31c126a0 --- /dev/null +++ b/graphics/epdfview/pkg-plist @@ -0,0 +1,25 @@ +bin/epdfview +%%NLS%%share/locale/ca/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/de/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/el/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/es/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/fr/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/pl/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/ru/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/vi/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/epdfview.mo +share/applications/epdfview.desktop +%%DATADIR%%/pixmaps/icon_epdfview-24.png +%%DATADIR%%/pixmaps/icon_epdfview-32.png +%%DATADIR%%/pixmaps/icon_epdfview-48.png +%%DATADIR%%/pixmaps/stock_find_next_24.png +%%DATADIR%%/pixmaps/stock_find_previous_24.png +%%DATADIR%%/pixmaps/stock_rotate-90.png +%%DATADIR%%/pixmaps/stock_rotate-270.png +%%DATADIR%%/pixmaps/stock_zoom-page-width.png +%%DATADIR%%/ui/epdfview-ui-print.xml +%%DATADIR%%/ui/epdfview-ui.xml +@dirrmtry share/applications +@dirrmtry %%DATADIR%%/pixmaps +@dirrmtry %%DATADIR%%/ui +@dirrmtry %%DATADIR%% |