diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2012-09-18 23:57:11 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2012-09-18 23:57:11 +0000 |
commit | a20e6a65a495e1126c1b69aaf7ef8dfdd883b253 (patch) | |
tree | df0a428e8b15308533a407e32a343dddd35e44be /graphics/kpovmodeler | |
parent | 605470a2ae3a7c7553564927bf6ff61480914e05 (diff) | |
download | ports-a20e6a65a495e1126c1b69aaf7ef8dfdd883b253.tar.gz ports-a20e6a65a495e1126c1b69aaf7ef8dfdd883b253.zip |
Notes
Diffstat (limited to 'graphics/kpovmodeler')
-rw-r--r-- | graphics/kpovmodeler/Makefile | 9 | ||||
-rw-r--r-- | graphics/kpovmodeler/files/patch-pmpovraywidget.cpp | 47 |
2 files changed, 49 insertions, 7 deletions
diff --git a/graphics/kpovmodeler/Makefile b/graphics/kpovmodeler/Makefile index e83ef14d092d..446cfdf250ff 100644 --- a/graphics/kpovmodeler/Makefile +++ b/graphics/kpovmodeler/Makefile @@ -1,13 +1,8 @@ -# New ports collection makefile for: kpovmodeler -# Date created: 2008-07-31 -# Whom: Max Brazhnikov <makc@issp.ac.ru> -# # $FreeBSD$ -# PORTNAME= kpovmodeler PORTVERSION= ${APP_VER}.${EXTRA_VER} -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= graphics kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${EXTRA_VER}/src/extragear @@ -15,7 +10,7 @@ DISTNAME= ${PORTNAME}-${APP_VER}-kde${EXTRA_VER} DIST_SUBDIR= KDE/extragear MAINTAINER= kde@FreeBSD.org -COMMENT= A KDE editor/frontend for Povray +COMMENT= KDE editor/frontend for Povray RUN_DEPENDS= povray:${PORTSDIR}/graphics/povray-meta diff --git a/graphics/kpovmodeler/files/patch-pmpovraywidget.cpp b/graphics/kpovmodeler/files/patch-pmpovraywidget.cpp new file mode 100644 index 000000000000..86eb56bb788b --- /dev/null +++ b/graphics/kpovmodeler/files/patch-pmpovraywidget.cpp @@ -0,0 +1,47 @@ +--- ./pmpovraywidget.cpp.orig 2009-08-31 15:13:57.000000000 +0000 ++++ ./pmpovraywidget.cpp 2012-08-08 22:00:05.311318130 +0000 +@@ -237,12 +237,6 @@ + QFile* file = 0; + bool ok = true; + +- if( !s_imageFormatsRegistered ) +- { +- +- s_imageFormatsRegistered = true; +- } +- + KUrl url = KFileDialog::getSaveUrl( KUrl( ), KImageIO::pattern( KImageIO::Writing ) ); + if( url.isEmpty( ) ) + return; +@@ -255,17 +249,7 @@ + return; + } + +-#ifdef __GNUC__ +-#warning is this really needed? +-#endif +- QString suffix = url.fileName().toUpper(); +- if (suffix.lastIndexOf('.') >= 0) +- suffix = suffix.mid(suffix.lastIndexOf('.')); +- +- QString format; +- +- if (QImageWriter::supportedImageFormats().contains(suffix.toLatin1())) +- format = suffix; ++ QString format = url.fileName().section('.', -1); + + if( format.isEmpty( ) ) + { +@@ -274,12 +258,6 @@ + return; + } + +- if( !KImageIO::types( ).contains(format) ) +- { +- KMessageBox::error( this, i18n( "Format is not supported for writing." ) ); +- return; +- } +- + if( url.isLocalFile( ) ) + { + // Local file |