diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile index 21534c5744a..56a0c6ce75d 100644 --- a/graphics/evince/Makefile +++ b/graphics/evince/Makefile @@ -1,40 +1,36 @@ -# $OpenBSD: Makefile,v 1.119 2014/10/15 13:54:57 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.120 2014/10/31 23:05:36 ajacoutot Exp $ SHARED_ONLY= Yes -COMMENT-main= GNOME document viewer -COMMENT-dvi= evince dvi backend +COMMENT= GNOME document viewer GNOME_PROJECT= evince GNOME_VERSION= 3.14.1 - -PKGNAME-main= ${DISTNAME} -PKGNAME-dvi= evince-dvi-${GNOME_VERSION} - -REVISION-main= 2 -REVISION-dvi= 1 +REVISION= 3 MAJ_V= 3.0 SUBST_VARS= MAJ_V -CATEGORIES= graphics print - SHARED_LIBS += evdocument3 0.2 # 4.0 SHARED_LIBS += evview3 0.0 # 3.0 +CATEGORIES= graphics print + MAINTAINER= Jasper Lievisse Adriaanse , \ Antoine Jacoutot # GPLv2 PERMIT_PACKAGE_CDROM= Yes -WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes gtk-3 pango-1.0 -WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig -WANTLIB += freetype gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0 -WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs -WANTLIB += xcb-shm xcb xcb-render z gthread-2.0 cairo-gobject m ffi -WANTLIB += atk-bridge-2.0 atspi harfbuzz ICE SM gs gmodule-2.0 jpeg -WANTLIB += graphite2 avahi-common dbus-1 pthread spectre +WANTLIB += ICE SM X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi +WANTLIB += Xinerama Xrandr Xrender atk-1.0 atk-bridge-2.0 atspi +WANTLIB += avahi-common c cairo cairo-gobject dbus-1 expat ffi +WANTLIB += fontconfig freetype gcrypt gdk-3 gdk_pixbuf-2.0 gio-2.0 +WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gpg-error graphite2 +WANTLIB += gs gthread-2.0 gtk-3 harfbuzz jpeg lcms2 lzma m openjpeg +WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1 +WANTLIB += png poppler poppler-glib pthread pthread-stubs secret-1 +WANTLIB += spectre stdc++ tiff xcb xcb-render xcb-shm xml2 z MODULES= devel/dconf \ devel/gettext \ @@ -46,43 +42,44 @@ MODGNOME_TOOLS += gtk-update-icon-cache shared-mime-info BUILD_DEPENDS= devel/gsettings-desktop-schemas LIB_DEPENDS= print/libspectre \ - x11/gtk+3 + print/poppler -WANTLIB-main += ${WANTLIB} c gnome-desktop-3 gcrypt gpg-error stdc++ -WANTLIB-main += secret-1 tiff xml2 lcms2 openjpeg poppler poppler-glib -WANTLIB-main += djvulibre archive bz2 gxps lzma nautilus-extension - -LIB_DEPENDS-main= ${LIB_DEPENDS} \ - print/poppler \ - graphics/djvulibre \ - graphics/libgxps \ - x11/gnome/nautilus - -RUN_DEPENDS-main= ${RUN_DEPENDS} \ - archivers/unrar \ +RUN_DEPENDS= archivers/unrar \ archivers/unzip \ devel/gsettings-desktop-schemas \ print/ghostscript/gnu -WANTLIB-dvi += ${WANTLIB} evdocument3 kpathsea - -LIB_DEPENDS-dvi= ${LIB_DEPENDS} \ - ${BASE_PKGPATH} \ - print/texlive/base - -RUN_DEPENDS-dvi= ${MODGETTEXT_RUN_DEPENDS} - CONFIGURE_STYLE= gnu +CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" # modern browsers can already display PDF CONFIGURE_ARGS += --disable-browser-plugin -CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" +FLAVORS= light +FLAVOR?= -MULTI_PACKAGES= -main -dvi +.if ${FLAVOR:Mlight} +CONFIGURE_ARGS += --disable-dbus \ + --disable-libgnome-desktop \ + --disable-nautilus \ + --disable-thumbnailer \ + --disable-djvu \ + --disable-dvi \ + --disable-comics \ + --disable-xps +.else +LIB_DEPENDS += graphics/djvulibre \ + graphics/libgxps \ + print/texlive/base \ + x11/gnome/nautilus +WANTLIB += archive bz2 djvulibre gnome-desktop-3 gxps kpathsea +WANTLIB += nautilus-extension +.endif post-install: +.if ! ${FLAVOR:Mlight} rm ${PREFIX}/lib/nautilus/extensions-${MAJ_V}/*.{a,la} +.endif rm ${PREFIX}/lib/evince/4/backends/*.{a,la} .include diff --git a/graphics/evince/pkg/DESCR-main b/graphics/evince/pkg/DESCR similarity index 100% rename from graphics/evince/pkg/DESCR-main rename to graphics/evince/pkg/DESCR diff --git a/graphics/evince/pkg/DESCR-dvi b/graphics/evince/pkg/DESCR-dvi deleted file mode 100644 index fff09a2ec23..00000000000 --- a/graphics/evince/pkg/DESCR-dvi +++ /dev/null @@ -1 +0,0 @@ -Evince document viewer backend for dvi documents. diff --git a/graphics/evince/pkg/PFRAG.no-light b/graphics/evince/pkg/PFRAG.no-light new file mode 100644 index 00000000000..d376f769fc8 --- /dev/null +++ b/graphics/evince/pkg/PFRAG.no-light @@ -0,0 +1,17 @@ +@bin bin/evince-thumbnailer +lib/evince/4/backends/comicsdocument.evince-backend +lib/evince/4/backends/djvudocument.evince-backend +lib/evince/4/backends/dvidocument.evince-backend +lib/evince/4/backends/libcomicsdocument.so +lib/evince/4/backends/libdjvudocument.so +lib/evince/4/backends/libdvidocument.so +lib/evince/4/backends/libxpsdocument.so +lib/evince/4/backends/xpsdocument.evince-backend +lib/nautilus/extensions-${MAJ_V}/libevince-properties-page.so +@bin libexec/evinced +share/appdata/evince-comicsdocument.metainfo.xml +share/appdata/evince-djvudocument.metainfo.xml +share/appdata/evince-dvidocument.metainfo.xml +share/appdata/evince-xpsdocument.metainfo.xml +share/dbus-1/services/org.gnome.evince.Daemon.service +share/thumbnailers/evince.thumbnailer diff --git a/graphics/evince/pkg/PLIST-main b/graphics/evince/pkg/PLIST similarity index 99% rename from graphics/evince/pkg/PLIST-main rename to graphics/evince/pkg/PLIST index 36e1a6ad4eb..e9eb6a2231c 100644 --- a/graphics/evince/pkg/PLIST-main +++ b/graphics/evince/pkg/PLIST @@ -1,12 +1,14 @@ -@comment $OpenBSD: PLIST-main,v 1.36 2014/10/15 13:54:57 ajacoutot Exp $ +@comment $OpenBSD: PLIST,v 1.6 2014/10/31 23:05:36 ajacoutot Exp $ @conflict evince-djvu-* +@conflict evince-dvi-* @conflict nautilus-evince-* @pkgpath graphics/evince @pkgpath graphics/evince,-djvu +@pkgpath graphics/evince,-dvi +@pkgpath graphics/evince,-main @pkgpath graphics/evince,-nautilus @bin bin/evince @bin bin/evince-previewer -@bin bin/evince-thumbnailer include/evince/ include/evince/${MAJ_V}/ include/evince/${MAJ_V}/evince-document.h @@ -61,18 +63,12 @@ include/evince/${MAJ_V}/libview/ev-view.h lib/evince/ lib/evince/4/ lib/evince/4/backends/ -lib/evince/4/backends/comicsdocument.evince-backend -lib/evince/4/backends/djvudocument.evince-backend -lib/evince/4/backends/libcomicsdocument.so -lib/evince/4/backends/libdjvudocument.so lib/evince/4/backends/libpdfdocument.so lib/evince/4/backends/libpsdocument.so lib/evince/4/backends/libtiffdocument.so -lib/evince/4/backends/libxpsdocument.so lib/evince/4/backends/pdfdocument.evince-backend lib/evince/4/backends/psdocument.evince-backend lib/evince/4/backends/tiffdocument.evince-backend -lib/evince/4/backends/xpsdocument.evince-backend lib/girepository-1.0/EvinceDocument-${MAJ_V}.typelib lib/girepository-1.0/EvinceView-${MAJ_V}.typelib lib/libevdocument3.a @@ -81,23 +77,16 @@ lib/libevdocument3.la lib/libevview3.a lib/libevview3.la @lib lib/libevview3.so.${LIBevview3_VERSION} -lib/nautilus/extensions-${MAJ_V}/libevince-properties-page.so lib/pkgconfig/evince-document-${MAJ_V}.pc lib/pkgconfig/evince-view-${MAJ_V}.pc -@bin libexec/evinced @man man/man1/evince.1 share/GConf/gsettings/evince.convert -share/appdata/evince-comicsdocument.metainfo.xml -share/appdata/evince-djvudocument.metainfo.xml -share/appdata/evince-dvidocument.metainfo.xml share/appdata/evince-pdfdocument.metainfo.xml share/appdata/evince-psdocument.metainfo.xml share/appdata/evince-tiffdocument.metainfo.xml -share/appdata/evince-xpsdocument.metainfo.xml share/appdata/evince.appdata.xml share/applications/evince-previewer.desktop share/applications/evince.desktop -share/dbus-1/services/org.gnome.evince.Daemon.service share/evince/ share/evince/hand-open.png share/evince/icons/ @@ -3056,7 +3045,7 @@ share/locale/zh_CN/LC_MESSAGES/evince.mo share/locale/zh_HK/LC_MESSAGES/evince.mo share/locale/zh_TW/LC_MESSAGES/evince.mo share/locale/zu/LC_MESSAGES/evince.mo -share/thumbnailers/evince.thumbnailer +!%%light%% @exec %D/bin/update-desktop-database @unexec-delete %D/bin/update-desktop-database @exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor diff --git a/graphics/evince/pkg/PLIST-dvi b/graphics/evince/pkg/PLIST-dvi deleted file mode 100644 index 98eb4e54e05..00000000000 --- a/graphics/evince/pkg/PLIST-dvi +++ /dev/null @@ -1,3 +0,0 @@ -@comment $OpenBSD: PLIST-dvi,v 1.9 2012/09/29 13:14:04 ajacoutot Exp $ -lib/evince/4/backends/dvidocument.evince-backend -lib/evince/4/backends/libdvidocument.so