summaryrefslogtreecommitdiff
path: root/media-gfx/sfftobmp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/sfftobmp
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/sfftobmp')
-rw-r--r--media-gfx/sfftobmp/Manifest7
-rw-r--r--media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch33
-rw-r--r--media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch21
-rw-r--r--media-gfx/sfftobmp/metadata.xml12
-rw-r--r--media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild37
5 files changed, 110 insertions, 0 deletions
diff --git a/media-gfx/sfftobmp/Manifest b/media-gfx/sfftobmp/Manifest
new file mode 100644
index 000000000000..3f757ab72ec6
--- /dev/null
+++ b/media-gfx/sfftobmp/Manifest
@@ -0,0 +1,7 @@
+AUX sfftobmp-3.1.1-gcc44-and-boost-1_37.patch 1351 SHA256 cd0630bab67b6a02887f02b69013aa2fbb038e38fab6e2ec22dd5b1870f5acd4 SHA512 bd92e0f3e6743941080319da764ce6bbdb0b8d0694a9e5dd113e3a64c0deb0a86ce33a9a9f306c8a2c75d08f6fb33c78c1fe60f36309acf9c6223ec02b158f5b WHIRLPOOL c3be5ed263e5c2e8236ef838087424ddd8ccc00b348888350bd840a7aef5543342a9ad9445c7caf39da5d9f486111b02e2e817be94af46369e8f68ae467186a3
+AUX sfftobmp-3.1.2-boost_fs3.patch 538 SHA256 a2314dd69429eec8d3d44c066a69ee7cf021315a10b47c64c74fd5d01b1158ed SHA512 75158af4ff574fe5112e4057ce0c2bca2f49afaf63862c42add85b8ee8e843f0a08b8c3d9f658f999024643d95ffcd65085bcb0607213722eb021b102037872e WHIRLPOOL bd05410507f8dc16c39e34e79f385208b1ae833ee03096c8afa7e1f40babf633065d343728bd0854d98a8d322311310547a8369a0b4be2126ec10b8d42b0a9db
+DIST sfftobmp3_1_2_src.zip 121478 SHA256 08f8080ead0e0c1fee4cfb0061ea08edfd95dae60f333269337ae17d9562d970 SHA512 3c460dcd60486954f792ecc8e864d109dabbae30b56a6ba4b3228a42dd489fd88793e4d93e2d032e6cd1c552bf5e217bc2afb3eae85a1a4e1db340f7761905b7 WHIRLPOOL bde9c8d2bd9f9b1a25af99fc19e781501764de1715ad7f6be33e53cee88b0672d629de28be2601bf1001eb8be3deb837413e42b72a3125dea01aae3049c4743c
+EBUILD sfftobmp-3.1.2-r1.ebuild 779 SHA256 f64c0b8538b4cfcfea4b49aa5d7f3820fd1edb1b7137f04ed11bdd3d42542a6f SHA512 89449a9ad5737348348b82005230d9d72fcde123c08908d1d0f6af51926db4cca510fc2221a958450948aaa59650998da0829b344154014ba612b81d6ac55c9a WHIRLPOOL 89a4e9f3bf4c55f5cdf573db7d58ac715ff1fba6424653ce9f229181700a54a0ecec09d3267892b0c8ed89033fcc0b905aaa5e754953da9e5015ab17bcbee802
+MISC ChangeLog 2530 SHA256 ececb19244b0d42a88f4b072d87acc2ad883ff6831c0150a94a858b77c0932e7 SHA512 9e9b7d30af5212adf594501a3e58aaf97aacf4ad9dba09b8583dfb4da66cd24d82ca6750e86712e4fd5c96ab93b42805bf3773c3a37dd77d41f3e49cb79b4e44 WHIRLPOOL 0c95dc3a0988b285e2cf41e3131827f439e02d4863e557da2409a976aa4abaf99124e53288fe5bfd0317d57293b7fcbfbcfa6d955c427b1cec2f688746ee4420
+MISC ChangeLog-2015 3865 SHA256 4d05d3f35efbb6582afda48edafe2b8e6656a3b58c2b0980b0e3fccb87019ce1 SHA512 3ae837141f0ff38191dda467bb40f42e9e04a39d38280f3448f50610a8c80d27f017aaf7381d57d18b369fc3b61c92fc9898a895b3a6051cc4196f1e29d58384 WHIRLPOOL 594b7800672a588a13aa017933be779838132b4b85cd7de299115c37a0e9ddabddbf28432d14c5b577eaa8df9a47f45402622a25b16f12278b2f03f586b5ff0c
+MISC metadata.xml 394 SHA256 5e940fc104847e7e8524d6cfdc5c05a89bf4ae48b2f78fcb4015b28a58378c44 SHA512 0a55c57ccd8c0ab9a1344f16c7aeec7bccfbbbcffd3634ab908deb62e996ff16ddf0a8cc6a2591b768330cd67d242379f2a5b8fab71534fbc31d4360e68db4ac WHIRLPOOL 08916761331e5038d4ee659eb208a117f7b3752650bfec7d3b5e2f959d8ac2d5ec4658d5db950af82376cea32e395a0d57be8acaa61a44b59a7283064c8cb47e
diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch
new file mode 100644
index 000000000000..3ba832afaed6
--- /dev/null
+++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.1-gcc44-and-boost-1_37.patch
@@ -0,0 +1,33 @@
+Only in sfftobmp3_1_1: Makefile.am.orig
+Only in sfftobmp3_1_1: Makefile.am.rej
+diff -ur sfftobmp3_1_1.orig/src/cmdline.cpp sfftobmp3_1_1/src/cmdline.cpp
+--- sfftobmp3_1_1.orig/src/cmdline.cpp 2007-10-07 22:01:21.000000000 +0300
++++ sfftobmp3_1_1/src/cmdline.cpp 2009-05-09 00:33:06.000000000 +0300
+@@ -35,6 +35,7 @@
+
+ ---RCS-Info--------------------------------------------------*/
+
++#include <cstdio>
+ #include <vector>
+ #include <cassert>
+ #include <iostream>
+diff -ur sfftobmp3_1_1.orig/src/common.cpp sfftobmp3_1_1/src/common.cpp
+--- sfftobmp3_1_1.orig/src/common.cpp 2007-10-07 22:01:20.000000000 +0300
++++ sfftobmp3_1_1/src/common.cpp 2009-05-09 00:28:37.000000000 +0300
+@@ -49,6 +49,7 @@
+ #include <sys/utime.h>
+ #endif
+
++#include <cstdio>
+ #include <cassert>
+ #include <iostream>
+
+diff -ur sfftobmp3_1_1.orig/src/Makefile.am sfftobmp3_1_1/src/Makefile.am
+--- sfftobmp3_1_1.orig/src/Makefile.am 2006-10-24 23:14:19.000000000 +0300
++++ sfftobmp3_1_1/src/Makefile.am 2009-05-09 00:27:42.000000000 +0300
+@@ -3,4 +3,4 @@
+ INCLUDES = -I$(top_builddir) -I$(top_srcdir)
+ bin_PROGRAMS = sfftobmp
+ sfftobmp_SOURCES = my_getopt.c cmdline.cpp codes.cpp common.cpp decoder.cpp input.cpp main.cpp output.cpp
+-sfftobmp_LDADD = @TIFF_LIB@ @JPEG_LIB@ -lboost_filesystem
++sfftobmp_LDADD = @TIFF_LIB@ @JPEG_LIB@ -lboost_filesystem -lboost_system
diff --git a/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch
new file mode 100644
index 000000000000..f39d157e1972
--- /dev/null
+++ b/media-gfx/sfftobmp/files/sfftobmp-3.1.2-boost_fs3.patch
@@ -0,0 +1,21 @@
+http://bugs.gentoo.org/425364
+
+--- src/cmdline.cpp
++++ src/cmdline.cpp
+@@ -264,14 +264,14 @@
+ }
+ do {
+ if (!(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
+- m_vFiles.push_back( fs::path(fd.cFileName, fs::native) );
++ m_vFiles.push_back( fs::path(fd.cFileName) );
+ }
+ } while (::FindNextFile(hFind, &fd));
+ ::FindClose(hFind);
+ #else
+ int n = optind;
+ while (n < m_argc) {
+- m_vFiles.push_back( fs::path(m_argv[n], fs::native) );
++ m_vFiles.push_back( fs::path(m_argv[n]) );
+ ++n;
+ }
+ #endif
diff --git a/media-gfx/sfftobmp/metadata.xml b/media-gfx/sfftobmp/metadata.xml
new file mode 100644
index 000000000000..e9834a5d4681
--- /dev/null
+++ b/media-gfx/sfftobmp/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <longdescription>sff to bmp converter</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">sfftools</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild
new file mode 100644
index 000000000000..c29caa1997b3
--- /dev/null
+++ b/media-gfx/sfftobmp/sfftobmp-3.1.2-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic
+
+MY_P=${PN}${PV//./_}
+
+DESCRIPTION="sff to bmp converter"
+HOMEPAGE="http://sfftools.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sfftools/${MY_P}_src.zip"
+
+LICENSE="HPND MIT"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ppc x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/boost-1.49
+ media-libs/tiff:0
+ virtual/jpeg:0"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-3.1.1-gcc44-and-boost-1_37.patch \
+ "${FILESDIR}"/${PN}-3.1.2-boost_fs3.patch
+ append-cppflags -DBOOST_FILESYSTEM_VERSION=3
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc doc/{changes,credits,readme}
+}