summaryrefslogtreecommitdiff
path: root/gnustep-apps/preview
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /gnustep-apps/preview
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'gnustep-apps/preview')
-rw-r--r--gnustep-apps/preview/Manifest4
-rw-r--r--gnustep-apps/preview/files/preview-0.8.5-compilation-errors.patch30
-rw-r--r--gnustep-apps/preview/metadata.xml18
-rw-r--r--gnustep-apps/preview/preview-0.9.ebuild27
4 files changed, 79 insertions, 0 deletions
diff --git a/gnustep-apps/preview/Manifest b/gnustep-apps/preview/Manifest
new file mode 100644
index 000000000000..002a175c8415
--- /dev/null
+++ b/gnustep-apps/preview/Manifest
@@ -0,0 +1,4 @@
+AUX preview-0.8.5-compilation-errors.patch 1047 BLAKE2B 6f732887f43265dcf1b6a7da6133e654fbdd71bacaca262f02c9aafc5ba338e2cc0b8c0c4dff4a6def89806b50c7515286a7a611ef4d8663e32fec695db000d4 SHA512 1b34f13c152767a739ade661dadd81891cd27f190b545b4304c7e1dd21f0246181b6abb2fcb835d648f77ee9fd55682a7a2af0a5c6ad672443007c9af1911668
+DIST Preview-0.9.tar.gz 77516 BLAKE2B 08de03008f8b1192e3ab3d41238a4147612a20e13596e6a9d464fbc2162e1fd2ea2869d528fc516f1db21693b5b347bcf022819890de20a571c962bc85beb7e7 SHA512 cfca47e8024f4db2486c3c9c9334b0f5b74f71e6386b227b417f62df541cddf2e2d77d50c9ffce7287284d1339bedb9c929e6254810f370229b59d325fc332ba
+EBUILD preview-0.9.ebuild 572 BLAKE2B e3a8549f32e9584f9b14cae2dffab54ea18eed2bd513e887ad51ae14fecb0a1d5b218b3a64137c229bfb7497af7a0c3eaae5fc5a6308552f348137cdd2e9143d SHA512 bdbd29c5e9ba2fd4a87cbcb05419b469083f92f1b37932e2a455410b7893031d6cb57f86183dbf98d168eb044ec4607519faaa7cc674c4a834326c5796889c01
+MISC metadata.xml 594 BLAKE2B 29ab695c7543b5bf232ed421dcc926f89977933852dfa752244c2a4656b7b83d310feee4357620ff4ae033875b8611bf0911b5a9074330c4c9d32ef6a6a8ed91 SHA512 8db875cb47658ce5a04b46bbdd9335291d131d5a58239fc88c43304d5083e96f91e6a7e03f2f2e6a91052b27bb57254d70f1c4d0875f1bd5e782e08be589cab6
diff --git a/gnustep-apps/preview/files/preview-0.8.5-compilation-errors.patch b/gnustep-apps/preview/files/preview-0.8.5-compilation-errors.patch
new file mode 100644
index 000000000000..247a7c8b171d
--- /dev/null
+++ b/gnustep-apps/preview/files/preview-0.8.5-compilation-errors.patch
@@ -0,0 +1,30 @@
+2010-05-18 Federico Gimenez Nieto <fgimenez@coit.es>
+
+ * Document.m: Import <AppKit/AppKit.h>.
+
+Index: preview.app-0.8.5/Document.m
+===================================================================
+--- preview.app-0.8.5.orig/Document.m 2010-05-18 19:18:11.000000000 +0200
++++ preview.app-0.8.5/Document.m 2010-05-18 19:18:23.000000000 +0200
+@@ -35,20 +35,7 @@
+
+ #include <Foundation/NSNotification.h>
+
+-#include <AppKit/NSApplication.h>
+-#include <AppKit/NSAffineTransform.h>
+-#include <AppKit/NSClipView.h>
+-#include <AppKit/NSCursor.h>
+-#include <AppKit/NSImage.h>
+-#include <AppKit/NSImageView.h>
+-#include <AppKit/NSMatrix.h>
+-#include <AppKit/NSPasteboard.h>
+-#include <AppKit/NSPopUpButton.h>
+-#include <AppKit/NSScreen.h>
+-#include <AppKit/NSScrollView.h>
+-#include <AppKit/NSWindow.h>
+-#include <AppKit/NSWindowController.h>
+-#include <AppKit/NSScroller.h>
++#include <AppKit/AppKit.h>
+
+ /*********************************************************************/
+ /**************** NSDocument Private methods *************************/
diff --git a/gnustep-apps/preview/metadata.xml b/gnustep-apps/preview/metadata.xml
new file mode 100644
index 000000000000..c698becb0fe9
--- /dev/null
+++ b/gnustep-apps/preview/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnustep@gentoo.org</email>
+ <name>Gentoo GNUstep Project</name>
+</maintainer>
+<longdescription>
+* Open GNUstep images file supported by GNUstep (usaly tiff/jpeg/gif/png)
+* Save as and Save To (tiff only)
+* Print and Page Layout
+* Zoom
+* The image can be copy into the Pasboard (to be paste or use by services)
+* Documentation
+* Source fully available
+* Release under the GNU GENERAL PUBLIC LICENSE 2
+</longdescription>
+</pkgmetadata>
diff --git a/gnustep-apps/preview/preview-0.9.ebuild b/gnustep-apps/preview/preview-0.9.ebuild
new file mode 100644
index 000000000000..f7bac95e785d
--- /dev/null
+++ b/gnustep-apps/preview/preview-0.9.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnustep-2
+
+DESCRIPTION="Simple image viewer"
+HOMEPAGE="http://www.sonappart.net/softwares/preview/"
+SRC_URI="http://www.sonappart.net/softwares/preview/download/${P/p/P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+S=${WORKDIR}/${PN/p/P}
+
+PATCHES=(
+ # Fix compilation, patch from debian
+ "${FILESDIR}"/${PN}-0.8.5-compilation-errors.patch
+)
+
+src_prepare() {
+ default
+ sed -e 's/sel_eq(/sel_isEqual(/' -i Document.m || die
+}