diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 6 | ||||
-rw-r--r-- | graphics/driconf/Makefile | 29 | ||||
-rw-r--r-- | graphics/driconf/distinfo | 2 | ||||
-rw-r--r-- | graphics/driconf/pkg-descr | 5 | ||||
-rw-r--r-- | graphics/driconf/pkg-plist | 26 | ||||
-rw-r--r-- | graphics/gimp-help/Makefile | 65 | ||||
-rw-r--r-- | graphics/gimp-help/pkg-descr | 5 | ||||
-rw-r--r-- | graphics/nathive/Makefile | 54 | ||||
-rw-r--r-- | graphics/nathive/distinfo | 2 | ||||
-rw-r--r-- | graphics/nathive/files/patch-makefile | 65 | ||||
-rw-r--r-- | graphics/nathive/pkg-descr | 13 | ||||
-rw-r--r-- | graphics/py-goocanvas/Makefile | 36 | ||||
-rw-r--r-- | graphics/py-goocanvas/distinfo | 2 | ||||
-rw-r--r-- | graphics/py-goocanvas/pkg-descr | 3 | ||||
-rw-r--r-- | graphics/py-mcomix/Makefile | 31 | ||||
-rw-r--r-- | graphics/py-mcomix/distinfo | 2 | ||||
-rw-r--r-- | graphics/py-mcomix/files/patch-mcomix_image__tools.py | 115 | ||||
-rw-r--r-- | graphics/py-mcomix/files/patch-mcomix_run.py | 15 | ||||
-rw-r--r-- | graphics/py-mcomix/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/uniconvw/Makefile | 33 | ||||
-rw-r--r-- | graphics/uniconvw/distinfo | 2 | ||||
-rw-r--r-- | graphics/uniconvw/pkg-descr | 4 | ||||
-rw-r--r-- | graphics/uniconvw/pkg-plist | 28 |
23 files changed, 0 insertions, 549 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index c92a44931c86..250bb29e0045 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -133,7 +133,6 @@ SUBDIR += djvusmooth SUBDIR += dmtx-utils SUBDIR += drawpile - SUBDIR += driconf SUBDIR += drm-current-kmod SUBDIR += drm-devel-kmod SUBDIR += drm-fbsd11.2-kmod @@ -242,7 +241,6 @@ SUBDIR += gimp-beautify-plugin SUBDIR += gimp-data-extras SUBDIR += gimp-gmic-plugin - SUBDIR += gimp-help SUBDIR += gimp-lensfun-plugin SUBDIR += gimp-lqr-plugin SUBDIR += gimp-refocus-plugin @@ -546,7 +544,6 @@ SUBDIR += mypaint SUBDIR += mypaint-brushes SUBDIR += nanosvg - SUBDIR += nathive SUBDIR += netpbm SUBDIR += nip2 SUBDIR += nomacs @@ -807,7 +804,6 @@ SUBDIR += py-gizeh SUBDIR += py-glewpy SUBDIR += py-glfw - SUBDIR += py-goocanvas SUBDIR += py-gphoto2 SUBDIR += py-graph-core SUBDIR += py-graphviz @@ -822,7 +818,6 @@ SUBDIR += py-leather SUBDIR += py-mapclassify SUBDIR += py-mayavi - SUBDIR += py-mcomix SUBDIR += py-ming SUBDIR += py-mpl-scatter-density SUBDIR += py-nwdiag @@ -1022,7 +1017,6 @@ SUBDIR += tweeny SUBDIR += ufraw SUBDIR += uniconvertor - SUBDIR += uniconvw SUBDIR += unpaper SUBDIR += urho3d SUBDIR += urt diff --git a/graphics/driconf/Makefile b/graphics/driconf/Makefile deleted file mode 100644 index 83420317dd64..000000000000 --- a/graphics/driconf/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# Created by: anholt@FreeBSD.org -# $FreeBSD$ - -PORTNAME= driconf -PORTVERSION= 0.9.1 -PORTREVISION= 12 -CATEGORIES= graphics -MASTER_SITES= DEBIAN -DISTFILES= ${PORTNAME}_${PORTVERSION}.orig.tar.gz - -MAINTAINER= lichray@gmail.com -COMMENT= Configuration program for DRI drivers - -DEPRECATED= Old, uses EOLed python27 -EXPIRATION_DATE= 2020-03-01 - -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:x11-toolkits/py-gtk2 \ - xdriinfo:x11/xdriinfo - -USES= gettext gl python:2.7 -USE_GL= glut -USE_PYTHON= distutils -NO_BUILD= yes -PYDISTUTILS_EGGINFODIR= ${STAGEDIR}${PREFIX}/lib/driconf - -pre-patch: - @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/driconf* ${WRKSRC}/setup.* - -.include <bsd.port.mk> diff --git a/graphics/driconf/distinfo b/graphics/driconf/distinfo deleted file mode 100644 index 11d88400b536..000000000000 --- a/graphics/driconf/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (driconf_0.9.1.orig.tar.gz) = 4849a43f6324498e943c03777bce571229b5446985b1cec596b365505e76f73f -SIZE (driconf_0.9.1.orig.tar.gz) = 112529 diff --git a/graphics/driconf/pkg-descr b/graphics/driconf/pkg-descr deleted file mode 100644 index 6f6ab8eb1413..000000000000 --- a/graphics/driconf/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -driconf is an application for configuring DRI drivers at a system or user level, -with choices applicable to all or to specific applications. Options are -advertised to driconf by the DRI drivers. - -WWW: http://dri.freedesktop.org/wiki/DriConf diff --git a/graphics/driconf/pkg-plist b/graphics/driconf/pkg-plist deleted file mode 100644 index dd0d635142e6..000000000000 --- a/graphics/driconf/pkg-plist +++ /dev/null @@ -1,26 +0,0 @@ -bin/driconf -lib/driconf/dri.py -lib/driconf/dri.pyc -lib/driconf/dri.pyo -lib/driconf/driconf.py -lib/driconf/driconf.pyc -lib/driconf/driconf.pyo -lib/driconf/driconf_commonui.py -lib/driconf/driconf_commonui.pyc -lib/driconf/driconf_commonui.pyo -lib/driconf/driconf_complexui.py -lib/driconf/driconf_complexui.pyc -lib/driconf/driconf_complexui.pyo -lib/driconf/driconf_simpleui.py -lib/driconf/driconf_simpleui.pyc -lib/driconf/driconf_simpleui.pyo -%%DATADIR%%/card.png -%%DATADIR%%/drilogo.jpg -%%DATADIR%%/screen.png -%%DATADIR%%/screencard.png -%%DATADIR%%/driconf-icon.png -share/locale/de/LC_MESSAGES/driconf.mo -share/locale/es/LC_MESSAGES/driconf.mo -share/locale/it/LC_MESSAGES/driconf.mo -share/locale/ru/LC_MESSAGES/driconf.mo -share/locale/nl/LC_MESSAGES/driconf.mo diff --git a/graphics/gimp-help/Makefile b/graphics/gimp-help/Makefile deleted file mode 100644 index 353ae7da2d27..000000000000 --- a/graphics/gimp-help/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -# Created by: Adam Weinberger <adamw@FreeBSD.org> -# $FreeBSD$ - -PORTNAME= gimp-help -PORTVERSION= 2.8.1 -PORTREVISION= 1 -CATEGORIES= graphics -PKGNAMESUFFIX= -html - -MAINTAINER= liangtai.s16@gmail.com -COMMENT= Meta port for the GIMP User Manual - -LICENSE= GFDL - -BROKEN= fails to build -DEPRECATED= Broken -EXPIRATION_DATE= 2020-02-27 - -USES= metaport - -LANG_ALL_HTML= ca da de el en en_GB es fr it ja ko nl nn \ - pt_BR ru sl sv zh_CN - -de_PORT= german/gimp-help -fr_PORT= french/gimp-help -ja_PORT= japanese/gimp-help -ko_PORT= korean/gimp-help -pt_BR_PORT= portuguese/gimp-help-pt_BR -ru_PORT= russian/gimp-help -zh_CN_PORT= chinese/gimp-help-zh_CN - -# you can find more in ${PORTSDIR}/misc/kde4-l10n/files/kde4-lang-names -ca_NAME= Catalan -da_NAME= Danish -de_NAME= German -el_NAME= Greek -en_NAME= English -en_GB_NAME= British English -es_NAME= Spanish -fr_NAME= French -it_NAME= Italian -ja_NAME= Japanese -ko_NAME= Korean -nl_NAME= Dutch -nn_NAME= Norwegian Nynorsk -pt_BR_NAME= Brazilian Portuguese -ru_NAME= Russian -sl_NAME= Slovenian -sv_NAME= Swedish -zh_CN_NAME= Chinese Simplified - -OPTIONS_DEFINE= ALL ${LANG_ALL_HTML:tu} -OPTIONS_DEFAULT= ALL -ALL_DESC= All translations - -.for lang in ${LANG_ALL_HTML} -${lang}_DETECT?= ${LOCALBASE}/share/gimp/help/${lang}/index.html -${lang}_PORT?= misc/gimp-help-${lang} -${lang}_NAME?= ${lang} -${lang:tu}_DESC= ${${lang}_NAME} -${lang:tu}_RUN_DEPENDS= ${${lang}_DETECT}:${${lang}_PORT} -ALL_RUN_DEPENDS+= ${${lang}_DETECT}:${${lang}_PORT} -.endfor - -.include <bsd.port.mk> diff --git a/graphics/gimp-help/pkg-descr b/graphics/gimp-help/pkg-descr deleted file mode 100644 index 47bac243c19a..000000000000 --- a/graphics/gimp-help/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -The meta port for GIMP User Manual which consists of HTML pages -in several languages for use with the internal GIMP help browser -or any web browser. - -WWW: https://docs.gimp.org/ diff --git a/graphics/nathive/Makefile b/graphics/nathive/Makefile deleted file mode 100644 index dc9d10489ee3..000000000000 --- a/graphics/nathive/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> -# $FreeBSD$ - -PORTNAME= nathive -PORTVERSION= 0.924 -CATEGORIES= graphics -MASTER_SITES= http://www.nathive.org/dl/ \ - http://mirror.amdmi3.ru/distfiles/ - -MAINTAINER= amdmi3@FreeBSD.org -COMMENT= Lightweight image editor - -LICENSE= GPLv3+ -LICENSE_FILE= ${WRKSRC}/COPYING - -DEPRECATED= Old, uses EOLed python27 -EXPIRATION_DATE= 2020-03-01 - -USES= gmake gnome python:2.7 shebangfix tar:tgz -SHEBANG_GLOB= *.py *.cy -USE_GNOME= pygtk2 -MAKEFILE= makefile -ALL_TARGET= default - -WRKSRC= ${WRKDIR}/${PORTNAME} - -PLIST_FILES= bin/${PORTNAME} \ - share/applications/nathive.desktop -PORTDATA= * -PORTDOCS= * -PLIST_DIRS= %%DATADIR%%/cfg/presets/select \ - %%DATADIR%%/cfg/presets/picker \ - %%DATADIR%%/cfg/presets/eraser \ - %%DATADIR%%/cfg/presets/crop \ - %%DATADIR%%/cfg/presets/brush \ - %%DATADIR%%/cfg/console - -OPTIONS_DEFINE= DOCS - -post-patch: - @${REINPLACE_CMD} -e '/BASE =/ s|=.*|= ${PREFIX}/|; \ - s|python |${PYTHON_CMD} |' \ - ${WRKSRC}/${MAKEFILE} -.for util in shdata makeplugs.py indenter.py docgen/docfile.py cybuild.py extbuild.py - @${REINPLACE_CMD} -e 's|python |${PYTHON_CMD} |' \ - ${WRKSRC}/utils/${util} -.endfor - @${REINPLACE_CMD} -e 's|/usr/share/nathive|${DATADIR}|' \ - ${WRKSRC}/${PORTNAME}.desktop - -post-build: - @${STRIP_CMD} ${WRKSRC}/nathive/libc/*.so - -.include <bsd.port.mk> diff --git a/graphics/nathive/distinfo b/graphics/nathive/distinfo deleted file mode 100644 index 858800975d53..000000000000 --- a/graphics/nathive/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (nathive-0.924.tgz) = a8d5d209c34c5f3ee247d7b33610f0af4b9baa9ac6ddfdbccb9a098cf23e8c4b -SIZE (nathive-0.924.tgz) = 126886 diff --git a/graphics/nathive/files/patch-makefile b/graphics/nathive/files/patch-makefile deleted file mode 100644 index 8fea221bdfcc..000000000000 --- a/graphics/nathive/files/patch-makefile +++ /dev/null @@ -1,65 +0,0 @@ ---- makefile.orig 2010-10-12 19:16:42 UTC -+++ makefile -@@ -84,41 +84,36 @@ docs: - @rm -rf doc/build/html/_sources - - root: --ifneq ($(shell whoami), root) -- @echo "\n**** ERROR: You must be root\n" -- @exit 1 --endif -+ true - - - dirs: -- mkdir -p $(BASE)$(APP) -- mkdir -p $(BASE)$(BIN) -- mkdir -p $(BASE)$(DOC) -- mkdir -p $(BASE)$(LAUNCH) -+ mkdir -p $(DESTDIR)$(BASE)$(APP) -+ mkdir -p $(DESTDIR)$(BASE)$(BIN) -+ mkdir -p $(DESTDIR)$(BASE)$(LAUNCH) -+ mkdir -p $(DESTDIR)$(BASE)$(DOC) - - - install: root dirs unpyc - # Shared files. -- cp nathive.py $(BASE)$(APP) -- cp AUTHORS $(BASE)$(APP) -- cp COPYING $(BASE)$(APP) -- cp COPYING-BRIEF $(BASE)$(APP) -- cp META $(BASE)$(APP) -- cp -r cfg/ $(BASE)$(APP) -- cp -r img/ $(BASE)$(APP) -- cp -r nathive/ $(BASE)$(APP) -- cp -r palettes/ $(BASE)$(APP) -- cp -r po/ $(BASE)$(APP) -- chmod -R 755 $(BASE)$(APP) -- # Exclude source files. -- find $(BASE)$(APP) -name "*.c" -delete -+ cp nathive.py $(DESTDIR)$(BASE)$(APP) -+ cp AUTHORS $(DESTDIR)$(BASE)$(APP) -+ cp COPYING $(DESTDIR)$(BASE)$(APP) -+ cp COPYING-BRIEF $(DESTDIR)$(BASE)$(APP) -+ cp META $(DESTDIR)$(BASE)$(APP) -+ cp -R cfg $(DESTDIR)$(BASE)$(APP) -+ cp -R img $(DESTDIR)$(BASE)$(APP) -+ cp -R nathive $(DESTDIR)$(BASE)$(APP) -+ cp -R palettes $(DESTDIR)$(BASE)$(APP) -+ cp -R po $(DESTDIR)$(BASE)$(APP) -+ chmod -R 755 $(DESTDIR)$(BASE)$(APP) - # Binary and launcher. -- install -m 755 -T nathive.sh $(BASE)$(BIN)/nathive -- install -m 644 nathive.desktop $(BASE)$(LAUNCH) -+ install -m 755 nathive.sh $(DESTDIR)$(BASE)$(BIN)/nathive -+ install -m 644 nathive.desktop $(DESTDIR)$(BASE)$(LAUNCH) - # Documentation. -- install -m 644 AUTHORS $(BASE)$(DOC) -- install -m 644 COPYING $(BASE)$(DOC) -- install -m 644 README $(BASE)$(DOC) -+ install -m 644 AUTHORS $(DESTDIR)$(BASE)$(DOC) -+ install -m 644 COPYING $(DESTDIR)$(BASE)$(DOC) -+ install -m 644 README $(DESTDIR)$(BASE)$(DOC) - - - uninstall: root diff --git a/graphics/nathive/pkg-descr b/graphics/nathive/pkg-descr deleted file mode 100644 index f186e8477c46..000000000000 --- a/graphics/nathive/pkg-descr +++ /dev/null @@ -1,13 +0,0 @@ -Nathive is a libre software image editor, similar to Adobe Photoshop, -Corel Photo-Paint or The GIMP, but focused on usability, logic and -providing a smooth learning curve for everyone. The project run in -the Gnome desktop environment and anyone is welcome to collaborate -on it with code, translations or ideas. - -This project is in the alpha phase, so it is an incomplete work, -unfit for the end user yet. The intention is to achieve a professional -graphic editor progressively without giving up initial usability. -Nathive is written from scratch in C using GTK+, and is designed -to be simple, lightweight, and easy to install and use. - -WWW: http://www.nathive.org/ diff --git a/graphics/py-goocanvas/Makefile b/graphics/py-goocanvas/Makefile deleted file mode 100644 index 9a5a97bd4c3f..000000000000 --- a/graphics/py-goocanvas/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# Created by: Michael Johnson <ahze@FreeBSD.org> -# $FreeBSD$ -# $MCom: ports/graphics/py-goocanvas/Makefile,v 1.6 2008/09/22 09:14:41 kwm Exp $ - -PORTNAME= goocanvas -PORTVERSION= 0.14.1 -PORTREVISION= 6 -CATEGORIES= graphics python -MASTER_SITES= GNOME/sources/py${PORTNAME}/${PORTVERSION:C/..$//} -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= py${PORTNAME}-${PORTVERSION} - -MAINTAINER= kwm@FreeBSD.org -COMMENT= GooCanvas python bindings - -DEPRECATED= Old, uses EOLed python27 -EXPIRATION_DATE= 2020-03-01 - -LIB_DEPENDS= libgoocanvas.so:graphics/goocanvas - -PLIST_FILES= %%PYTHON_SITELIBDIR%%/goocanvasmodule.so \ - libdata/pkgconfig/pygoocanvas.pc -USE_GNOME= pygtk2 -USE_PYTHON= flavors -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-docs -USES= gmake gnome libtool pathfix pkgconfig python:2.7 tar:bzip2 -INSTALL_TARGET= install-strip - -post-patch: - @${REINPLACE_CMD} -e 's|$$(PYGOBJECT_PYGDOCS)/style.css||; \ - s|demo docs|demo|' \ - ${WRKSRC}/Makefile.in \ - ${WRKSRC}/docs/Makefile.in - -.include <bsd.port.mk> diff --git a/graphics/py-goocanvas/distinfo b/graphics/py-goocanvas/distinfo deleted file mode 100644 index 4ab08089450a..000000000000 --- a/graphics/py-goocanvas/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (pygoocanvas-0.14.1.tar.bz2) = 640f54dc62eb2bd4be8ef9687c89baadd7d277895841dd24909ad9029effb3f5 -SIZE (pygoocanvas-0.14.1.tar.bz2) = 331136 diff --git a/graphics/py-goocanvas/pkg-descr b/graphics/py-goocanvas/pkg-descr deleted file mode 100644 index 433c0d1a847d..000000000000 --- a/graphics/py-goocanvas/pkg-descr +++ /dev/null @@ -1,3 +0,0 @@ -GooCanvas python bindings - -WWW: http://developer.berlios.de/projects/pygoocanvas/ diff --git a/graphics/py-mcomix/Makefile b/graphics/py-mcomix/Makefile deleted file mode 100644 index 51bdda0dc97c..000000000000 --- a/graphics/py-mcomix/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# Created by: Ashish SHUKLA <ashish@FreeBSD.org> -# $FreeBSD$ - -PORTNAME= mcomix -PORTVERSION= 1.2.1 -PORTREVISION= 3 -CATEGORIES= graphics -MASTER_SITES= SF/${PORTNAME}/MComix-${PORTVERSION} -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} - -MAINTAINER= ashish@FreeBSD.org -COMMENT= GTK2 comic book viewer - -LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/COPYING - -DEPRECATED= Old, uses EOLed python27 -EXPIRATION_DATE= 2020-03-01 - -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow6>=5.2.0:graphics/py-pillow6@${PY_FLAVOR} -RUN_DEPENDS:= ${BUILD_DEPENDS} - -USES= gnome python:2.7 tar:bzip2 -USE_GNOME= pygtk2 -USE_PYTHON= autoplist distutils - -post-patch: - @${REINPLACE_CMD} -e 's|share/man/man1|man/man1|g' \ - ${WRKSRC}/setup.py - -.include <bsd.port.mk> diff --git a/graphics/py-mcomix/distinfo b/graphics/py-mcomix/distinfo deleted file mode 100644 index ede638225048..000000000000 --- a/graphics/py-mcomix/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (mcomix-1.2.1.tar.bz2) = 7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b -SIZE (mcomix-1.2.1.tar.bz2) = 571128 diff --git a/graphics/py-mcomix/files/patch-mcomix_image__tools.py b/graphics/py-mcomix/files/patch-mcomix_image__tools.py deleted file mode 100644 index 5f1b46a02ec2..000000000000 --- a/graphics/py-mcomix/files/patch-mcomix_image__tools.py +++ /dev/null @@ -1,115 +0,0 @@ ---- mcomix/image_tools.py.orig 2016-02-12 18:51:58 UTC -+++ mcomix/image_tools.py -@@ -9,7 +9,6 @@ import gtk - from PIL import Image - from PIL import ImageEnhance - from PIL import ImageOps --from PIL.JpegImagePlugin import _getexif - try: - from PIL import PILLOW_VERSION - PIL_VERSION = ('Pillow', PILLOW_VERSION) -@@ -51,7 +50,38 @@ assert MISSING_IMAGE_ICON - GTK_GDK_COLOR_BLACK = gtk.gdk.color_parse('black') - GTK_GDK_COLOR_WHITE = gtk.gdk.color_parse('white') - -+def _getexif(im): -+ exif={} -+ try: -+ exif.update(im.getexif()) -+ except AttributeError: -+ pass -+ if exif: -+ return exif - -+ # Exif of PNG is still buggy in Pillow 6.0.0 -+ try: -+ l1,l2,size,lines=im.info.get('Raw profile type exif').splitlines() -+ if l2!='exif': -+ # Not valid Exif data. -+ return {} -+ size=int(size) -+ data=binascii.unhexlify(''.join(lines)) -+ if len(data)!=size: -+ # Size not match. -+ return {} -+ im.info['exif']=data -+ except: -+ # Not valid Exif data. -+ return {} -+ -+ # load Exif again -+ try: -+ exif.update(im.getexif()) -+ except AttributeError: -+ pass -+ return exif -+ - def rotate_pixbuf(src, rotation): - rotation %= 360 - if 0 == rotation: -@@ -300,14 +330,7 @@ def pil_to_pixbuf(im, keep_orientation=False): - ) - if keep_orientation: - # Keep orientation metadata. -- orientation = None -- exif = im.info.get('exif') -- if exif is not None: -- exif = _getexif(im) -- orientation = exif.get(274, None) -- if orientation is None: -- # Maybe it's a PNG? Try alternative method. -- orientation = _get_png_implied_rotation(im) -+ orientation = _getexit(im).get(274, None) - if orientation is not None: - setattr(pixbuf, 'orientation', str(orientation)) - return pixbuf -@@ -385,39 +408,6 @@ def enhance(pixbuf, brightness=1.0, contrast=1.0, satu - im = ImageEnhance.Sharpness(im).enhance(sharpness) - return pil_to_pixbuf(im) - --def _get_png_implied_rotation(pixbuf_or_image): -- """Same as <get_implied_rotation> for PNG files. -- -- Lookup for Exif data in the tEXt chunk. -- """ -- if isinstance(pixbuf_or_image, gtk.gdk.Pixbuf): -- exif = pixbuf_or_image.get_option('tEXt::Raw profile type exif') -- elif isinstance(pixbuf_or_image, Image.Image): -- exif = pixbuf_or_image.info.get('Raw profile type exif') -- else: -- raise ValueError() -- if exif is None: -- return None -- exif = exif.split('\n') -- if len(exif) < 4 or 'exif' != exif[1]: -- # Not valid Exif data. -- return None -- size = int(exif[2]) -- try: -- data = binascii.unhexlify(''.join(exif[3:])) -- except TypeError: -- # Not valid hexadecimal content. -- return None -- if size != len(data): -- # Sizes should match. -- return None -- im = namedtuple('FakeImage', 'info')({ 'exif': data }) -- exif = _getexif(im) -- orientation = exif.get(274, None) -- if orientation is not None: -- orientation = str(orientation) -- return orientation -- - def get_implied_rotation(pixbuf): - """Return the implied rotation in degrees: 0, 90, 180, or 270. - -@@ -429,9 +419,6 @@ def get_implied_rotation(pixbuf): - orientation = getattr(pixbuf, 'orientation', None) - if orientation is None: - orientation = pixbuf.get_option('orientation') -- if orientation is None: -- # Maybe it's a PNG? Try alternative method. -- orientation = _get_png_implied_rotation(pixbuf) - if orientation == '3': - return 180 - elif orientation == '6': diff --git a/graphics/py-mcomix/files/patch-mcomix_run.py b/graphics/py-mcomix/files/patch-mcomix_run.py deleted file mode 100644 index dfa0e933f04c..000000000000 --- a/graphics/py-mcomix/files/patch-mcomix_run.py +++ /dev/null @@ -1,15 +0,0 @@ ---- mcomix/run.py.orig 2016-02-12 18:52:12 UTC -+++ mcomix/run.py -@@ -203,7 +203,11 @@ def run(): - - try: - import PIL.Image -- assert PIL.Image.VERSION >= '1.1.5' -+ try: -+ assert PIL.Image.VERSION >= '1.1.5' -+ except AttributeError: -+ # Field VERSION deprecated in Pillow 5.2.0 and dropped in 6.0.0 -+ assert PIL.__version__ >= '5.2.0' - - except AssertionError: - log.error( _("You don't have the required version of the Python Imaging"), end=' ') diff --git a/graphics/py-mcomix/pkg-descr b/graphics/py-mcomix/pkg-descr deleted file mode 100644 index 027b9b9ca34b..000000000000 --- a/graphics/py-mcomix/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -MComix is a user-friendly, customizable image viewer. It is -specifically designed to handle comic books, but also serves as a -generic viewer. It reads images in ZIP, RAR, 7Zip or tar archives as -well as plain image files. - -WWW: https://sourceforge.net/projects/mcomix/ diff --git a/graphics/uniconvw/Makefile b/graphics/uniconvw/Makefile deleted file mode 100644 index afd2b13bf137..000000000000 --- a/graphics/uniconvw/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru> -# $FreeBSD$ - -PORTNAME= uniconvw -PORTVERSION= 1.1.5 -PORTREVISION= 2 -CATEGORIES= graphics python -MASTER_SITES= https://downloads.sk1project.net/uniconvertor/v1.1.5/ \ - https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uniconvertor/ - -MAINTAINER= amdmi3@FreeBSD.org -COMMENT= Gtk+ frontend for UniConvertor - -LICENSE= LGPL20+ GPLv2+ -LICENSE_COMB= multi -LICENSE_FILE_GPLv2+ = ${WRKSRC}/src/GNU_GPL_v2 -LICENSE_FILE_LGPL20+ = ${WRKSRC}/src/GNU_LGPL_v2 - -DEPRECATED= Old, uses EOLed python27 -EXPIRATION_DATE= 2020-03-01 - -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sk1libs/__init__.py:graphics/sk1libs \ - ${PYTHON_SITELIBDIR}/uniconvertor/__init__.py:graphics/uniconvertor \ - ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:x11-toolkits/py-gtk2@${PY_FLAVOR} - -USES= desktop-file-utils python:2.7 -USE_PYTHON= distutils -NO_ARCH= yes - -post-patch: - @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' ${WRKSRC}/setup.py - -.include <bsd.port.mk> diff --git a/graphics/uniconvw/distinfo b/graphics/uniconvw/distinfo deleted file mode 100644 index dc8a5d579a57..000000000000 --- a/graphics/uniconvw/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (uniconvw-1.1.5.tar.gz) = 43fb677b51f5c5a5220ebaae653f221949e1cb315ad4b823f0cf59dd5f80920f -SIZE (uniconvw-1.1.5.tar.gz) = 39373 diff --git a/graphics/uniconvw/pkg-descr b/graphics/uniconvw/pkg-descr deleted file mode 100644 index 492355f2dfc1..000000000000 --- a/graphics/uniconvw/pkg-descr +++ /dev/null @@ -1,4 +0,0 @@ -Gtk+ frontend for UniConvertor - a universal vector graphics -translator. - -WWW: https://sk1project.net/ diff --git a/graphics/uniconvw/pkg-plist b/graphics/uniconvw/pkg-plist deleted file mode 100644 index 83e652cd5e2e..000000000000 --- a/graphics/uniconvw/pkg-plist +++ /dev/null @@ -1,28 +0,0 @@ -bin/uniconvw -%%PYTHON_SITELIBDIR%%/uniconvw/COPYRIGHTS -%%PYTHON_SITELIBDIR%%/uniconvw/GNU_GPL_v2 -%%PYTHON_SITELIBDIR%%/uniconvw/GNU_LGPL_v2 -%%PYTHON_SITELIBDIR%%/uniconvw/VERSION -%%PYTHON_SITELIBDIR%%/uniconvw/__init__.py -%%PYTHON_SITELIBDIR%%/uniconvw/__init__.pyc -%%PYTHON_SITELIBDIR%%/uniconvw/__init__.pyo -%%PYTHON_SITELIBDIR%%/uniconvw/resources/uniconvw_icon_16.ico -%%PYTHON_SITELIBDIR%%/uniconvw/resources/uniconvw_icon_32.png -%%PYTHON_SITELIBDIR%%/uniconvw/uc_gtk/__init__.py -%%PYTHON_SITELIBDIR%%/uniconvw/uc_gtk/__init__.pyc -%%PYTHON_SITELIBDIR%%/uniconvw/uc_gtk/__init__.pyo -%%PYTHON_SITELIBDIR%%/uniconvw/uc_gtk/progressbar_dlg.py -%%PYTHON_SITELIBDIR%%/uniconvw/uc_gtk/progressbar_dlg.pyc -%%PYTHON_SITELIBDIR%%/uniconvw/uc_gtk/progressbar_dlg.pyo -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/Ttk.py -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/Ttk.pyc -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/Ttk.pyo -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/__init__.py -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/__init__.pyc -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/__init__.pyo -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/progressbar_dlg.py -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/progressbar_dlg.pyc -%%PYTHON_SITELIBDIR%%/uniconvw/uc_win/progressbar_dlg.pyo -share/applications/uniconvw.desktop -share/pixmaps/uniconvw.png -share/pixmaps/uniconvw.xpm |