diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-02-27 10:24:10 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-02-27 10:24:47 +0100 |
commit | 216fd1d0c5b15090dde473cbff5e1a1c9a6d055b (patch) | |
tree | 7ed84cee32a6a48b2051f41486e6bb0b47e8b63f /media-video/qgifer/files | |
parent | dev-util/devhelp: add missing gettext build dependency (diff) | |
download | gentoo-216fd1d0c5b15090dde473cbff5e1a1c9a6d055b.tar.gz gentoo-216fd1d0c5b15090dde473cbff5e1a1c9a6d055b.tar.bz2 gentoo-216fd1d0c5b15090dde473cbff5e1a1c9a6d055b.zip |
profiles: Remove last-rited media-video/qgifer
Closes: https://bugs.gentoo.org/644558
Diffstat (limited to 'media-video/qgifer/files')
-rw-r--r-- | media-video/qgifer/files/qgifer-0.2.1-desktop.patch | 13 | ||||
-rw-r--r-- | media-video/qgifer/files/qgifer-0.2.1-giflib5.patch | 157 | ||||
-rw-r--r-- | media-video/qgifer/files/qgifer-0.2.1-opencv3.patch | 44 |
3 files changed, 0 insertions, 214 deletions
diff --git a/media-video/qgifer/files/qgifer-0.2.1-desktop.patch b/media-video/qgifer/files/qgifer-0.2.1-desktop.patch deleted file mode 100644 index 8e021630f13a..000000000000 --- a/media-video/qgifer/files/qgifer-0.2.1-desktop.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: doc/qgifer.desktop -=================================================================== ---- a/doc/qgifer.desktop (revision 91) -+++ b/doc/qgifer.desktop (working copy) -@@ -3,7 +3,7 @@ - Name=QGifer - Icon=/usr/share/icons/qgifer.xpm - Type=Application --Categories=Graphics;2DGraphics;RasterGraphics;Video; -+Categories=Graphics;2DGraphics;RasterGraphics;Video;AudioVideo; - Comment=A video-based animated GIF creator - GenericName=A video-based animated GIF creator - Comment[pl]=Narzędzie do tworzenia animowanych plików GIF diff --git a/media-video/qgifer/files/qgifer-0.2.1-giflib5.patch b/media-video/qgifer/files/qgifer-0.2.1-giflib5.patch deleted file mode 100644 index 9ddfdac80641..000000000000 --- a/media-video/qgifer/files/qgifer-0.2.1-giflib5.patch +++ /dev/null @@ -1,157 +0,0 @@ -Port qgifer to giflib 5 API. -See also: https://bugs.gentoo.org/show_bug.cgi?id=536634 - ---- a/src/gifcreator.cpp -+++ b/src/gifcreator.cpp -@@ -38,7 +38,7 @@ - j--; - } - for(int i=0;i<cmaps.size();i++) -- FreeMapObject(cmaps[i]); -+ GifFreeMapObject(cmaps[i]); - } - - -@@ -52,7 +52,7 @@ - } - - -- GifFileType *GifFile = EGifOpenFileName(filename, FALSE); -+ GifFileType *GifFile = EGifOpenFileName(filename, 0, NULL); - - if (!GifFile){ - PrintGifError(); -@@ -74,7 +74,7 @@ - { - char nsle[12] = "NETSCAPE2.0"; - char subblock[3]; -- if (EGifPutExtensionFirst(GifFile, APPLICATION_EXT_FUNC_CODE, 11, nsle) == GIF_ERROR) { -+ if (EGifPutExtension(GifFile, APPLICATION_EXT_FUNC_CODE, 11, nsle) == GIF_ERROR) { - PrintGifError(); - return false; - } -@@ -82,7 +82,7 @@ - subblock[2] = loop_count % 256; - subblock[1] = loop_count / 256; - -- if (EGifPutExtensionLast(GifFile, APPLICATION_EXT_FUNC_CODE, 3, subblock) == GIF_ERROR) { -+ if (EGifPutExtension(GifFile, APPLICATION_EXT_FUNC_CODE, 3, subblock) == GIF_ERROR) { - PrintGifError(); - return false; - } -@@ -111,7 +111,7 @@ - - if (EGifPutImageDesc( - GifFile, -- 0, 0, w, h, FALSE, cmaps.size() > ni ? cmaps.at(ni) : cmaps.at(cmaps.size()-1) -+ 0, 0, w, h, 0, cmaps.size() > ni ? cmaps.at(ni) : cmaps.at(cmaps.size()-1) - ) == GIF_ERROR) { - PrintGifError(); - endProgress(); -@@ -135,7 +135,7 @@ - return false; - } - -- if (EGifCloseFile(GifFile) == GIF_ERROR) { -+ if (EGifCloseFile(GifFile, NULL) == GIF_ERROR) { - PrintGifError(); - endProgress(); - return false; ---- a/src/gifcreator.h -+++ b/src/gifcreator.h -@@ -31,6 +31,12 @@ - typedef vector<GifByteType> Frame; - typedef unsigned char Byte; - -+static inline void -+PrintGifError() -+{ -+ fprintf(stderr, "\nGIF-LIB error: %s.\n", GifErrorString(GIF_ERROR)); -+} -+ - class GifCreator - { - ---- a/src/palettewidget.cpp -+++ b/src/palettewidget.cpp -@@ -34,7 +34,7 @@ - - PaletteWidget::~PaletteWidget() - { -- FreeMapObject(palette); -+ GifFreeMapObject(palette); - } - - void PaletteWidget::paintEvent(QPaintEvent*) -@@ -117,7 +117,7 @@ - if(palette && mindiff > 1) - { - qDebug() << "deleting old palette, size: " << size << ", colors: " << palette->ColorCount; -- FreeMapObject(palette); -+ GifFreeMapObject(palette); - qDebug() << "done"; - palette = NULL; - } -@@ -157,7 +157,7 @@ - } - - ColorMapObject* previous = palette; -- palette = MakeMapObject(size, NULL); -+ palette = GifMakeMapObject(size, NULL); - if (!palette) - { - qDebug() << "NULL palette!"; -@@ -165,7 +165,7 @@ - } - - -- if (QuantizeBuffer(fimg.width(), fimg.height(), &size, -+ if (GifQuantizeBuffer(fimg.width(), fimg.height(), &size, - &(r[0]),&(g[0]),&(b[0]), &(output[0]), - palette->Colors) == GIF_ERROR) - { -@@ -178,11 +178,11 @@ - //qDebug() << "difference: " << df; - if(previous && df < mindiff) - { -- FreeMapObject(palette); -+ GifFreeMapObject(palette); - palette = previous; - } - else if(df >= mindiff) -- FreeMapObject(previous); -+ GifFreeMapObject(previous); - - // qDebug() << "palette (" << palette->ColorCount << ") :"; - // for(int i=0;i<size;i++) -@@ -230,8 +230,8 @@ - { - QStringList rgb = QString(str).split(";", QString::SkipEmptyParts); - if(palette) -- FreeMapObject(palette); -- palette = MakeMapObject(rgb.size(), NULL); -+ GifFreeMapObject(palette); -+ palette = GifMakeMapObject(rgb.size(), NULL); - if(!palette) - return false; - size = rgb.size(); ---- a/src/palettewidget.h -+++ b/src/palettewidget.h -@@ -30,7 +30,7 @@ - PaletteWidget(QWidget* parent=0, Qt::WindowFlags f=0); - virtual ~PaletteWidget(); - ColorMapObject* map() {return palette;} -- ColorMapObject* mapCopy() {return MakeMapObject(palette->ColorCount, palette->Colors);} -+ ColorMapObject* mapCopy() {return GifMakeMapObject(palette->ColorCount, palette->Colors);} - bool fromImage(const QImage& img, int palette_size, float mindiff = 2); - void setColumnCount(int cc){cols = cc;} - bool toFile(const QString& path); -@@ -38,7 +38,7 @@ - QString toString(); - bool fromString(const QString& str); - int getSize() const {return size;} -- void clear() {if(palette) FreeMapObject(palette); palette = NULL; update();} -+ void clear() {if(palette) GifFreeMapObject(palette); palette = NULL; update();} - private: - int size; - int cols; diff --git a/media-video/qgifer/files/qgifer-0.2.1-opencv3.patch b/media-video/qgifer/files/qgifer-0.2.1-opencv3.patch deleted file mode 100644 index 89c79ff17943..000000000000 --- a/media-video/qgifer/files/qgifer-0.2.1-opencv3.patch +++ /dev/null @@ -1,44 +0,0 @@ -diff -Naur qgifer-0.2.1-source/CMakeLists.txt qgifer-0.2.1-modified/CMakeLists.txt ---- qgifer-0.2.1-source/CMakeLists.txt 2013-06-04 18:33:16.000000000 +0200 -+++ qgifer-0.2.1-modified/CMakeLists.txt 2015-12-19 20:58:13.772808845 +0100 -@@ -35,7 +35,7 @@ - SET(GIF_INCLUDE_DIR "C:\\Program Files\\GnuWin32\\include") - ENDIF(WIN32) - --FIND_PACKAGE( OpenCV REQUIRED core highgui imgproc ) -+FIND_PACKAGE( OpenCV REQUIRED core highgui imgproc videoio) - FIND_PACKAGE(Qt4 REQUIRED) - FIND_PACKAGE(GIF REQUIRED) - -@@ -148,9 +148,9 @@ - QT4_ADD_RESOURCES(RESOURCES_RCC ${RESOURCES}) - - IF(WIN32) -- SET( OPENCV_LIBS "-lopencv_core244 -lopencv_highgui244 -lopencv_imgproc244" ) -+ SET( OPENCV_LIBS "-lopencv_core244 -lopencv_highgui244 -lopencv_imgproc244 -lopencv_videoio244" ) - ELSE(WIN32) -- SET( OPENCV_LIBS "-lopencv_core -lopencv_highgui -lopencv_imgproc" ) -+ SET( OPENCV_LIBS "-lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_videoio" ) - ENDIF(WIN32) - - SET( GIF_LIBS "-lgif" ) -@@ -207,7 +207,7 @@ - #SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${PACKAGE_NAME}_${QGIFER_VERSION_MAJOR}.${QGIFER_VERSION_MINOR}.${QGIFER_VERSION_PATCH}") - - #set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) #za pierwszym razem, pozniej dodano | dla nowszych opencv --SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.1.3), libc6 (>= 2.3.6-6~), libgcc1 (>= 1:4.1.1), libgif4 (>= 4.1.4), libopencv-core2.3 | libopencv-core2.4, libopencv-highgui2.3 | libopencv-highgui2.4, libopencv-imgproc2.3 | libopencv-imgproc2.4, libqtcore4 (>= 4:4.7.0~beta1), libqtgui4 (>= 4:4.6.1), libstdc++6 (>= 4.1.1)") -+SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.1.3), libc6 (>= 2.3.6-6~), libgcc1 (>= 1:4.1.1), libgif4 (>= 4.1.4), libopencv-core2.3 | libopencv-core2.4 | libopencv-core3.0, libopencv-highgui2.3 | libopencv-highgui2.4 | libopencv-highgui3.0, libopencv-imgproc2.3 | libopencv-imgproc2.4 | libopencv-imgproc3.0, libqtcore4 (>= 4:4.7.0~beta1), libqtgui4 (>= 4:4.6.1), libstdc++6 (>= 4.1.1)") - - SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") - SET(CPACK_DEBIAN_PACKAGE_SECTION "video") -diff -Naur qgifer-0.2.1-source/src/frameplayer.h qgifer-0.2.1-modified/src/frameplayer.h ---- qgifer-0.2.1-source/src/frameplayer.h 2013-06-04 18:14:55.000000000 +0200 -+++ qgifer-0.2.1-modified/src/frameplayer.h 2015-12-19 21:01:44.419870869 +0100 -@@ -23,6 +23,7 @@ - #include <opencv2/core/core.hpp> - #include <opencv2/highgui/highgui.hpp> - #include <opencv2/imgproc/imgproc.hpp> -+#include <opencv2/videoio/videoio.hpp> - #include <QWidget> - #include <QImage> - #include <QStatusBar> |