From ecb464279e06c936f4560266972c89f0c8b4617e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 28 Dec 2022 18:33:27 +0000 Subject: graphics/yvonne: Added (viewer for Atari 8-bit image formats) Signed-off-by: Willy Sudiarto Raharjo --- graphics/yvonne/README | 9 +++ graphics/yvonne/doinst.sh | 9 +++ graphics/yvonne/fixencoding.diff | 12 ++++ graphics/yvonne/fixgarbage.diff | 18 ++++++ graphics/yvonne/fixwarnings.diff | 36 ++++++++++++ graphics/yvonne/slack-desc | 19 ++++++ graphics/yvonne/yvonne.SlackBuild | 118 ++++++++++++++++++++++++++++++++++++++ graphics/yvonne/yvonne.desktop | 8 +++ graphics/yvonne/yvonne.info | 10 ++++ 9 files changed, 239 insertions(+) create mode 100644 graphics/yvonne/README create mode 100644 graphics/yvonne/doinst.sh create mode 100644 graphics/yvonne/fixencoding.diff create mode 100644 graphics/yvonne/fixgarbage.diff create mode 100644 graphics/yvonne/fixwarnings.diff create mode 100644 graphics/yvonne/slack-desc create mode 100644 graphics/yvonne/yvonne.SlackBuild create mode 100644 graphics/yvonne/yvonne.desktop create mode 100644 graphics/yvonne/yvonne.info (limited to 'graphics/yvonne') diff --git a/graphics/yvonne/README b/graphics/yvonne/README new file mode 100644 index 000000000000..50733b6ca577 --- /dev/null +++ b/graphics/yvonne/README @@ -0,0 +1,9 @@ +yvonne (viewer for Atari 8-bit image formats) + +Yvonne is an Atari picture viewer. For interlaced or split images, +Yvonne emulates the result by mixing colours and displaying bigger +pixels. You can save the pictures in PC formats such as: BMP, JPG, +PNG, and XPM. + +Supported Atari formats: AP3, APC, APV, AP3, BG9, CIN, G09, GR8, GR9, +HPM, INP (partially), INT, MIC, PLM. diff --git a/graphics/yvonne/doinst.sh b/graphics/yvonne/doinst.sh new file mode 100644 index 000000000000..3e5691a052b5 --- /dev/null +++ b/graphics/yvonne/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/graphics/yvonne/fixencoding.diff b/graphics/yvonne/fixencoding.diff new file mode 100644 index 000000000000..fd6ae6c9f2bd --- /dev/null +++ b/graphics/yvonne/fixencoding.diff @@ -0,0 +1,12 @@ +diff -Naur yvonne-1.0.orig/widget.cpp yvonne-1.0/widget.cpp +--- yvonne-1.0.orig/widget.cpp 2006-12-28 16:37:54.000000000 -0500 ++++ yvonne-1.0/widget.cpp 2022-12-27 22:54:26.778944637 -0500 +@@ -363,7 +363,7 @@ + sName=NAME; + sName+=" "; + sName+=VERSION; +- QMessageBox::about(m_pParent, sName, "Atari Picture Viewer.\nby Rafał 'bob_er' Ciepiela, 2006\ncontact: bob_er@users.sourceforge.net\n\nThis is free software.\nCheck 'copying' file for details."); ++ QMessageBox::about(m_pParent, sName, "Atari Picture Viewer.\nby Rafal 'bob_er' Ciepiela, 2006\ncontact: bob_er@users.sourceforge.net\n\nThis is free software.\nCheck 'copying' file for details."); + return; + } + diff --git a/graphics/yvonne/fixgarbage.diff b/graphics/yvonne/fixgarbage.diff new file mode 100644 index 000000000000..ce257fad47eb --- /dev/null +++ b/graphics/yvonne/fixgarbage.diff @@ -0,0 +1,18 @@ +diff -Naur yvonne-1.0.orig/widget.cpp yvonne-1.0/widget.cpp +--- yvonne-1.0.orig/widget.cpp 2006-12-28 16:37:54.000000000 -0500 ++++ yvonne-1.0/widget.cpp 2022-12-27 22:50:09.965687828 -0500 +@@ -182,6 +182,14 @@ + nWidth=m_pImage->getWidth(); + nHeight=m_pImage->getHeight(); + pDisplayImage=new QImage(IMAGE_WIDTH_MAX, IMAGE_HEIGHT_MAX, QImage::Format_RGB32); ++ QRgb black = qRgb(0, 0, 0); ++ for(unsigned int y=0;ysetPixel(x, y, black); ++ } ++ } + nSeekX=(IMAGE_WIDTH_MAX-nWidth)>>1; + nSeekY=(IMAGE_HEIGHT_MAX-nHeight)>>1; + for(int y=0;y $PKG/usr/share/applications/$PRGNAM.desktop + +# Not much documentation (just the GPL), so include our own README. +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a copying $PKGDOC +cat $CWD/README > $PKGDOC/README +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/graphics/yvonne/yvonne.desktop b/graphics/yvonne/yvonne.desktop new file mode 100644 index 000000000000..41c8b2b58193 --- /dev/null +++ b/graphics/yvonne/yvonne.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Yvonne +Comment=Atari 8-bit image viewer +Exec=yvonne +Icon=yvonne +Terminal=false +Type=Application +Categories=Graphics;2DGraphics;Viewer; diff --git a/graphics/yvonne/yvonne.info b/graphics/yvonne/yvonne.info new file mode 100644 index 000000000000..adf89e2c50f7 --- /dev/null +++ b/graphics/yvonne/yvonne.info @@ -0,0 +1,10 @@ +PRGNAM="yvonne" +VERSION="1.0" +HOMEPAGE="https://atari8.sourceforge.net/yvonne.html" +DOWNLOAD="https://downloads.sourceforge.net/project/atari8/yvonne/Yvonne-1.0/yvonne-1.0.tgz" +MD5SUM="a32a19700200f3a39a6537aed5936b0e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="qt4" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" -- cgit v1.2.3