1. Nikolaj Sjujskij
  2. overlay

Commits

Nikolaj Sjujskij  committed 8071770

Save media-gfx/fotoxx-12.01.2 from oblivion (last GTK2 version)

  • Participants
  • Parent commits 8a1e365
  • Branches default

Comments (0)

Files changed (3)

File media-gfx/fotoxx/Manifest

View file
+AUX fotoxx-12.01.2.patch 1440 RMD160 98c05d9e015fa98d4117ef1fd41f4b9f81738975 SHA1 ce251ff14003409af85f54cb3b8839422e4b9ea1 SHA256 4a4953ff47b50f8e1b80dc5a3ec989be44b6c1f95eaadf7d42e57638e7ad8f8b
+DIST fotoxx-12.01.2.tar.gz 1685182 RMD160 f80a0154a6405466a3b711f5e5605b5979375eaa SHA1 f846318c2641d3ac781da8cf5214e376923c028c SHA256 956562c63cfd90ec8cefde99c9a4c08c0e13ee87c735308442e704caf4e0cd82
+EBUILD fotoxx-12.01.2.ebuild 1072 RMD160 ba9f89377e32f06669c62e2eaa516a43eed83c46 SHA1 42304bb9c49f10dc306e110a67bcb8b5d5b9fe43 SHA256 f4d1b16919347f3dc86fe0fa0c8c70d95921196f9046799c71cfae6fb06abe2d

File media-gfx/fotoxx/files/fotoxx-12.01.2.patch

View file
+diff -r -U1 fotoxx-11.12.1.orig/Makefile fotoxx-11.12.1/Makefile
+--- fotoxx-11.12.1.orig/Makefile	2011-12-02 21:10:01.000000000 +0700
++++ fotoxx-11.12.1/Makefile	2011-12-04 15:26:12.000000000 +0700
+@@ -5,4 +5,4 @@
+ # defaults for parameters that may be pre-defined
+-CXXFLAGS ?= -O3 -g -Wall
+-LDFLAGS ?= -O3 -g -Wall -rdynamic
++CXXFLAGS += -Wall
++LDFLAGS += -rdynamic
+ PREFIX ?= /usr
+@@ -14,3 +14,3 @@
+ LOCALESDIR = $(SHAREDIR)/locales
+-DOCDIR = $(PREFIX)/share/doc/fotoxx
++DOCDIR = $(PREFIX)/share/doc/$(PF)
+ MANDIR = $(PREFIX)/share/man/man1
+@@ -18,3 +18,3 @@
+ 
+-CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-2.0`
++CFLAGS = $(CXXFLAGS) -c -DPF=\"$(PF)\" `pkg-config --cflags gtk+-2.0`
+ LIBS = `pkg-config --libs gtk+-2.0 gthread-2.0`
+@@ -75,5 +75,2 @@
+ 	rm -f fotoxx.1.gz
+-	# menu (desktop) file
+-	cp -f desktop $(DESTDIR)$(MENUFILE)
+-	xdg-desktop-menu install $(DESTDIR)$(MENUFILE)
+ 
+diff -r -U1 fotoxx-11.12.1.orig/zfuncs.cc fotoxx-11.12.1/zfuncs.cc
+--- fotoxx-11.12.1.orig/zfuncs.cc	2011-12-02 21:10:01.000000000 +0700
++++ fotoxx-11.12.1/zfuncs.cc	2011-12-04 15:28:27.000000000 +0700
+@@ -3123,3 +3123,3 @@
+    strncatv(zlocalesdir,199,work,"/share/",zappname,"/locales",null);      //  /prefix/share/appname/locales
+-   strncatv(zdocdir,199,work,"/share/doc/",zappname,null);                 //  /prefix/share/doc/appname
++   strncatv(zdocdir,199,work,"/share/doc/",PF,null);                       //  /prefix/share/doc/appname
+    

File media-gfx/fotoxx/fotoxx-12.01.2.ebuild

View file
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/fotoxx/fotoxx-12.01.2.ebuild,v 1.1 2012/01/06 10:45:28 grozin Exp $
+EAPI=3
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Program for improving image files made with a digital camera."
+HOMEPAGE="http://kornelix.squarespace.com/fotoxx"
+SRC_URI="http://kornelix.squarespace.com/storage/downloads/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/gtk+:2
+	media-libs/tiff"
+RDEPEND="${DEPEND}
+	media-libs/exiftool
+	media-gfx/ufraw
+	x11-misc/xdg-utils"
+
+src_prepare() {
+	epatch "${FILESDIR}"/${PF}.patch
+}
+
+src_compile() {
+	tc-export CXX
+	emake || die "emake failed"
+}
+
+src_install() {
+	# For the Help menu items to work, *.html must be in /usr/share/doc/${PF},
+	# and README, CHANGES, TRANSLATIONS must not be compressed
+	emake DESTDIR="${D}" install || die "emake install failed"
+	make_desktop_entry ${PN} "Fotoxx" /usr/share/${PN}/icons/${PN}.png \
+		"Application;Graphics;2DGraphics"
+}