diff options
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-MainView.cxx | 33 | ||||
-rw-r--r-- | graphics/epdfview/pkg-descr | 7 | ||||
-rw-r--r-- | graphics/epdfview/pkg-plist | 33 |
5 files changed, 134 insertions, 0 deletions
diff --git a/graphics/epdfview/Makefile b/graphics/epdfview/Makefile new file mode 100644 index 000000000..24af1bc13 --- /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: ports/graphics/epdfview/Makefile,v 1.27 2010/05/31 01:59:13 ade Exp $ +# + +PORTNAME= epdfview +PORTVERSION= 0.1.7 +PORTREVISION= 7 +CATEGORIES= graphics print gnome +MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \ + http://mirror.slitaz.org/sources/packages/e/ + +MAINTAINER= sylvio@FreeBSD.org +COMMENT= A lightweight PDF document viewer + +BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit +LIB_DEPENDS= poppler-glib.5:${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..0d58288c1 --- /dev/null +++ b/graphics/epdfview/distinfo @@ -0,0 +1,3 @@ +MD5 (epdfview-0.1.7.tar.bz2) = 1919bb19c16ef0a97d48b0a8303d3c7b +SHA256 (epdfview-0.1.7.tar.bz2) = 0afbb0f348d4ba916cf58da48b4749b7cca6a9038136b27dc652161913704ae8 +SIZE (epdfview-0.1.7.tar.bz2) = 443609 diff --git a/graphics/epdfview/files/patch-MainView.cxx b/graphics/epdfview/files/patch-MainView.cxx new file mode 100644 index 000000000..7ef5f1bf6 --- /dev/null +++ b/graphics/epdfview/files/patch-MainView.cxx @@ -0,0 +1,33 @@ +--- src/gtk/MainView.cxx.orig 2009-03-01 05:00:55.000000000 +0800 ++++ src/gtk/MainView.cxx 2009-03-28 12:18:20.000000000 +0800 +@@ -77,7 +77,7 @@ + static void main_window_zoom_out_cb (GtkWidget *, gpointer); + static void main_window_zoom_width_cb (GtkToggleAction *, gpointer); + static void main_window_set_page_mode (GtkRadioAction *, GtkRadioAction *, gpointer); +-static void main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data); ++static gboolean main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data); + + #if defined (HAVE_CUPS) + static void main_window_print_cb (GtkWidget *, gpointer); +@@ -1479,18 +1479,19 @@ + pter->setPageMode (mode); + } + +-void ++gboolean + main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data) + { + g_assert ( NULL != data && "The data parameter is NULL."); + + MainPter *pter = (MainPter *)data; + // Only zoom when the CTRL-Button is down... +- if ( !(event->state & GDK_CONTROL_MASK) ) return; ++ if ( !(event->state & GDK_CONTROL_MASK) ) return FALSE; + if ( event->direction == GDK_SCROLL_UP ) { + pter->zoomInActivated (); + } else if ( event->direction == GDK_SCROLL_DOWN ) { + pter->zoomOutActivated (); + } ++ return TRUE; + } + 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..3e69d34f9 --- /dev/null +++ b/graphics/epdfview/pkg-plist @@ -0,0 +1,33 @@ +bin/epdfview +%%NLS%%share/locale/ca/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/cs/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/eu/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/fr/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/it/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/ja/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/pl/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/pt_PT/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/ru/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/sv/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/vi/LC_MESSAGES/epdfview.mo +%%NLS%%share/locale/zh_CN/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%% |