Add a "light" FLAVOR to evince so that !GNOME kids can read+print+...
requested by and OK mpi@
This commit is contained in:
parent
c9e0c91c8c
commit
d910ae2ff2
@ -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 <jasper@openbsd.org>, \
|
||||
Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||
|
||||
# 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 <bsd.port.mk>
|
||||
|
@ -1 +0,0 @@
|
||||
Evince document viewer backend for dvi documents.
|
17
graphics/evince/pkg/PFRAG.no-light
Normal file
17
graphics/evince/pkg/PFRAG.no-light
Normal file
@ -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
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user