summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-01-13 05:05:14 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-01-13 05:05:14 +0800
commit78c818686c4d3118fb6efeb81121aebb956728e4 (patch)
treef36bf471bec18f65c41d76422c87e84c6f0f32a8 /graphics
parent88f4436eb5a025073a11dbda4084733958bca759 (diff)
downloadmarcuscom-ports-78c818686c4d3118fb6efeb81121aebb956728e4.tar
marcuscom-ports-78c818686c4d3118fb6efeb81121aebb956728e4.tar.gz
marcuscom-ports-78c818686c4d3118fb6efeb81121aebb956728e4.tar.bz2
marcuscom-ports-78c818686c4d3118fb6efeb81121aebb956728e4.tar.lz
marcuscom-ports-78c818686c4d3118fb6efeb81121aebb956728e4.tar.xz
marcuscom-ports-78c818686c4d3118fb6efeb81121aebb956728e4.tar.zst
marcuscom-ports-78c818686c4d3118fb6efeb81121aebb956728e4.zip
- Use poppler-glib now
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5373 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r--graphics/evince/Makefile96
-rw-r--r--graphics/evince/distinfo3
-rw-r--r--graphics/evince/files/patch-shell_main.c20
-rw-r--r--graphics/evince/pkg-descr5
-rw-r--r--graphics/evince/pkg-plist85
5 files changed, 209 insertions, 0 deletions
diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile
new file mode 100644
index 000000000..2396dceac
--- /dev/null
+++ b/graphics/evince/Makefile
@@ -0,0 +1,96 @@
+# New ports collection makefile for: evince
+# Date created: 09 January 2005
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports/graphics/evince/Makefile,v 1.35 2005/10/20 01:37:54 ahze Exp $
+#
+
+PORTNAME= evince
+PORTVERSION= 0.4.0
+PORTREVISION= 3
+CATEGORIES= graphics print gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.4
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GNOME 2 multi-format document viewer
+
+LIB_DEPENDS= poppler-glib.0:${PORTSDIR}/graphics/poppler-gtk
+
+USE_BZIP2= yes
+USE_AUTOTOOLS= libtool:15
+USE_REINPLACE= yes
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GHOSTSCRIPT=yes
+INSTALLS_OMF= yes
+USE_GNOME= gnomehack intlhack gnomeprefix libgnomeui libgnomeprintui \
+ desktopfileutils gnomedocutils
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
+
+GCONF_SCHEMAS= evince.schemas evince-thumbnailer.schemas
+
+OPTIONS= DVI "Enable DVI viewer support" off \
+ T1LIB "Enable T1LIB for TYPE1 fonts to DVI (Enables DVI)" off \
+ NAUTILUS "Enable Nautilus plugin" on \
+ DBUS "Enable D-BUS support" off \
+ DJVU "Enable DJVU support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD) \
+ || exists(${LOCALBASE}/lib/libdbus-glib-1.so)
+WITH_DBUS= yes
+.endif
+
+.if defined(WITH_DVI) || defined(WITH_T1LIB)
+BUILD_DEPENDS+= tex:${PORTSDIR}/print/teTeX-base
+RUN_DEPENDS+= tex:${PORTSDIR}/print/teTeX-base
+
+CONFIGURE_ARGS+= --enable-dvi
+GCONF_SCHEMAS+= evince-thumbnailer-dvi.schemas
+. if defined(WITH_T1LIB)
+LIB_DEPENDS+= t1.5:${PORTSDIR}/devel/t1lib
+
+CONFIGURE_ARGS+= --enable-t1lib
+. endif
+.endif
+
+.if !defined(WITHOUT_NAUTILUS)
+USE_GNOME+= nautilus2
+CONFIGURE_ARGS+= --enable-nautilus
+PLIST_SUB+= NAUTILUS=""
+.else
+CONFIGURE_ARGS+= --disable-nautilus
+PLIST_SUB+= NAUTILUS="@comment "
+.endif
+
+.if exists(${X11BASE}/bin/djview)
+DJVU_DIR?= # empty
+.else
+DJVU_DIR?= -nox11
+.endif
+
+.if defined(WITH_DJVU)
+LIB_DEPENDS+= djvulibre.16:${PORTSDIR}/graphics/djvulibre${DJVU_DIR}
+CONFIGURE_ARGS+= --enable-djvu
+GCONF_SCHEMAS+= evince-thumbnailer-djvu.schemas
+.else
+CONFIGURE_ARGS+= --disable-djvu
+.endif
+
+.if defined(WITH_DBUS)
+LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lt1lib|-lt1 -lm|' \
+ ${WRKSRC}/configure \
+ ${WRKSRC}/dvi/mdvi-lib/Makefile.in
+
+post-install:
+ @-update-desktop-database
+
+.include <bsd.port.post.mk>
diff --git a/graphics/evince/distinfo b/graphics/evince/distinfo
new file mode 100644
index 000000000..dcfa41b26
--- /dev/null
+++ b/graphics/evince/distinfo
@@ -0,0 +1,3 @@
+MD5 (evince-0.4.0.tar.bz2) = cc41e30108bc54a345bd6ca2556ab857
+SHA256 (evince-0.4.0.tar.bz2) = 0264f24b30820bef80473db9176a46524e6ec00db2024adef2e7c49673ad0b59
+SIZE (evince-0.4.0.tar.bz2) = 891605
diff --git a/graphics/evince/files/patch-shell_main.c b/graphics/evince/files/patch-shell_main.c
new file mode 100644
index 000000000..05a0c7882
--- /dev/null
+++ b/graphics/evince/files/patch-shell_main.c
@@ -0,0 +1,20 @@
+--- shell/main.c.dbus-fix 2005-09-01 04:14:54.000000000 -0400
++++ shell/main.c 2005-09-01 04:15:33.000000000 -0400
+@@ -152,7 +152,7 @@
+ if (!files) {
+ #if DBUS_VERSION <= 33
+ call = dbus_g_proxy_begin_call (remote_object, "OpenWindow",
+- DBUS_TYPE_UINT32, timestamp,
++ DBUS_TYPE_UINT32, &timestamp,
+ DBUS_TYPE_INVALID);
+
+ if (!dbus_g_proxy_end_call (remote_object, call, &error, DBUS_TYPE_INVALID)) {
+@@ -193,7 +193,7 @@
+ call = dbus_g_proxy_begin_call (remote_object, "OpenURI",
+ DBUS_TYPE_STRING, &uri,
+ DBUS_TYPE_STRING, &page_label,
+- DBUS_TYPE_UINT32, timestamp,
++ DBUS_TYPE_UINT32, &timestamp,
+ DBUS_TYPE_INVALID);
+
+ if (!dbus_g_proxy_end_call (remote_object, call, &error, DBUS_TYPE_INVALID)) {
diff --git a/graphics/evince/pkg-descr b/graphics/evince/pkg-descr
new file mode 100644
index 000000000..800f6fcd3
--- /dev/null
+++ b/graphics/evince/pkg-descr
@@ -0,0 +1,5 @@
+Evince is a document viewer for multiple document formats including PDF and
+Postscript. The goal of evince is to replace document viewers such as ggv and
+gpdf with a single, simple application.
+
+WWW: http://www.gnome.org/projects/evince/
diff --git a/graphics/evince/pkg-plist b/graphics/evince/pkg-plist
new file mode 100644
index 000000000..19fe298a8
--- /dev/null
+++ b/graphics/evince/pkg-plist
@@ -0,0 +1,85 @@
+bin/evince
+bin/evince-thumbnailer
+%%NAUTILUS%%lib/nautilus/extensions-1.0/libevince-properties-page.a
+%%NAUTILUS%%lib/nautilus/extensions-1.0/libevince-properties-page.so
+%%NAUTILUS%%lib/nautilus/extensions-1.0/libevince-properties-page.so.0
+share/gnome/applications/evince.desktop
+share/gnome/evince/evince-password.glade
+share/gnome/evince/evince-properties.glade
+share/gnome/evince/evince-toolbar.xml
+share/gnome/evince/evince-ui.xml
+share/gnome/evince/hand-open.png
+share/gnome/help/evince/C/evince.xml
+share/gnome/help/evince/C/figures/evince_start_window.png
+share/gnome/help/evince/C/legal.xml
+share/gnome/help/evince/el/evince.xml
+share/gnome/help/evince/el/figures/evince_start_window.png
+share/gnome/help/evince/es/evince.xml
+share/gnome/help/evince/es/figures/evince_start_window.png
+share/gnome/help/evince/sr/evince.xml
+share/gnome/help/evince/sr/figures/evince_start_window.png
+share/gnome/help/evince/uk/evince.xml
+share/gnome/help/evince/uk/figures/evince_start_window.png
+share/gnome/omf/evince/evince-C.omf
+share/gnome/omf/evince/evince-el.omf
+share/gnome/omf/evince/evince-es.omf
+share/gnome/omf/evince/evince-sr.omf
+share/gnome/omf/evince/evince-uk.omf
+share/locale/bg/LC_MESSAGES/evince.mo
+share/locale/ca/LC_MESSAGES/evince.mo
+share/locale/cs/LC_MESSAGES/evince.mo
+share/locale/da/LC_MESSAGES/evince.mo
+share/locale/de/LC_MESSAGES/evince.mo
+share/locale/el/LC_MESSAGES/evince.mo
+share/locale/en_CA/LC_MESSAGES/evince.mo
+share/locale/en_GB/LC_MESSAGES/evince.mo
+share/locale/es/LC_MESSAGES/evince.mo
+share/locale/et/LC_MESSAGES/evince.mo
+share/locale/eu/LC_MESSAGES/evince.mo
+share/locale/fi/LC_MESSAGES/evince.mo
+share/locale/fr/LC_MESSAGES/evince.mo
+share/locale/gl/LC_MESSAGES/evince.mo
+share/locale/gu/LC_MESSAGES/evince.mo
+share/locale/he/LC_MESSAGES/evince.mo
+share/locale/hi/LC_MESSAGES/evince.mo
+share/locale/hu/LC_MESSAGES/evince.mo
+share/locale/ja/LC_MESSAGES/evince.mo
+share/locale/ko/LC_MESSAGES/evince.mo
+share/locale/lt/LC_MESSAGES/evince.mo
+share/locale/nb/LC_MESSAGES/evince.mo
+share/locale/ne/LC_MESSAGES/evince.mo
+share/locale/nl/LC_MESSAGES/evince.mo
+share/locale/no/LC_MESSAGES/evince.mo
+share/locale/pa/LC_MESSAGES/evince.mo
+share/locale/pl/LC_MESSAGES/evince.mo
+share/locale/pt_BR/LC_MESSAGES/evince.mo
+share/locale/ru/LC_MESSAGES/evince.mo
+share/locale/rw/LC_MESSAGES/evince.mo
+share/locale/sk/LC_MESSAGES/evince.mo
+share/locale/sq/LC_MESSAGES/evince.mo
+share/locale/sr/LC_MESSAGES/evince.mo
+share/locale/sr@Latn/LC_MESSAGES/evince.mo
+share/locale/sv/LC_MESSAGES/evince.mo
+share/locale/th/LC_MESSAGES/evince.mo
+share/locale/tr/LC_MESSAGES/evince.mo
+share/locale/uk/LC_MESSAGES/evince.mo
+share/locale/wa/LC_MESSAGES/evince.mo
+share/locale/zh_CN/LC_MESSAGES/evince.mo
+share/locale/zh_TW/LC_MESSAGES/evince.mo
+@unexec rmdir %D/share/locale/rw/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/rw 2> /dev/null || true
+@dirrm share/gnome/omf/evince
+@dirrm share/gnome/help/evince/uk/figures
+@dirrm share/gnome/help/evince/uk
+@dirrm share/gnome/help/evince/sr/figures
+@dirrm share/gnome/help/evince/sr
+@dirrm share/gnome/help/evince/es/figures
+@dirrm share/gnome/help/evince/es
+@dirrm share/gnome/help/evince/el/figures
+@dirrm share/gnome/help/evince/el
+@dirrm share/gnome/help/evince/C/figures
+@dirrm share/gnome/help/evince/C
+@dirrm share/gnome/help/evince
+@dirrm share/gnome/evince
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true