summaryrefslogtreecommitdiff
path: root/app-misc/fujiplay
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 /app-misc/fujiplay
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/fujiplay')
-rw-r--r--app-misc/fujiplay/Manifest4
-rw-r--r--app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch75
-rw-r--r--app-misc/fujiplay/fujiplay-1.33.ebuild51
-rw-r--r--app-misc/fujiplay/metadata.xml5
4 files changed, 135 insertions, 0 deletions
diff --git a/app-misc/fujiplay/Manifest b/app-misc/fujiplay/Manifest
new file mode 100644
index 000000000000..1098bbca8b7b
--- /dev/null
+++ b/app-misc/fujiplay/Manifest
@@ -0,0 +1,4 @@
+AUX fujiplay-1.33-unterminated-strings.patch 3142 BLAKE2B dddbf3b36d07fce5ae216998eb5307b1ac0ac5f251a94308f37b43de8de1180a54c34bd14e07fe79b285982c1d99b76c50ae1b9af7c58174cca2eeb1016332ea SHA512 5e2383ec7f65dce4060b85ad2759f29ad65793b98a77543d098e1ded1895a5996f3d104b27a6f3a0f06dfc6b10d483a3bd9e771207006e73b9995dc3300c5280
+DIST fujiplay.tgz 12588 BLAKE2B 4be2b4d44696f5d43942c19cde308874684c87762b2778026750c4db9ba249c2ec8b7986bca5c526c7199289b3094157c068067db38a015372fd6fbd5a1e285d SHA512 168ce95b6926da2438fb858b2537060877145b28638217214f72833fcc75b76dd7e5bba9ed0ca966cd2f7f1c31ca3302ee4662907bf743c393314d615d795149
+EBUILD fujiplay-1.33.ebuild 1086 BLAKE2B 719c97d033c92c5a9cccd77eefed0b6dd3fda0acc85a9887bd97e54f4fc9702dca037615776e092cd217800f563bff0c04f2a1e74a02d74c5248208d72d8ba66 SHA512 d5a6e81d91ee1b8b3b21ff0f237904d8485c2291fc664cf782ce42fd73979a2f8a8774829a3c30ec9a61d64ad898f4b1c70bdbcb2de875a0f0f88b9b1ca55ed2
+MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch b/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch
new file mode 100644
index 000000000000..7f03c696c20e
--- /dev/null
+++ b/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch
@@ -0,0 +1,75 @@
+--- fujiplay.c 1999-02-23 10:30:31.000000000 +0100
++++ fujiplay.c 2006-08-05 00:50:08.000000000 +0200
+@@ -759,40 +759,38 @@
+ return 1;
+ }
+
+-const char *Usage = "\
+-Usage: fujiplay [OPTIONS] PICTURES... (download)
+- charge NUMBER (recharge the flash)
+- shoot (take picture)
+- preview (preview to standard output)
+- upload FILES...
+- delete FILES...
+- setid STRING (set camera ID)
+- setflash MODE (0=Off, 1=On, 2=Strobe, 3=Auto)
+- setdate gmt|local|YYYYMMDDHHMMSS
+-Options:
+- -B NUMBER Set baudrate (115200, 57600, 38400, 19200, 9600 or 0)
+- -D DEVICE Select another device file (default is /dev/fujifilm)
+- -L List command set
+- -7 DS-7 compatibility mode (experimental)
+- -d Delete pictures after successful download
+- -f Force (overwrite existing files)
+- -p Assume picture numbers instead of frame numbers
+- -h Display this help message
+- -v Version information
+-Pictures:
+- all All pictures
+- last Last picture
+- 4 Only picture 4
+- 2-10 Pictures between 2 and 10
+-Files:
+- DSCxxxxx.JPG Files to delete or to upload into the camera
+-";
+-
+-const char *Copyright = "\
+-Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $
+-Written by Thierry Bousch <bousch@topo.math.u-psud.fr>
+-Public domain. Absolutely no warranty.
+-";
++const char *Usage = "\n" \
++"Usage: fujiplay [OPTIONS] PICTURES... (download) \n" \
++" charge NUMBER (recharge the flash) \n" \
++" shoot (take picture) \n" \
++" preview (preview to standard output) \n" \
++" upload FILES... \n" \
++" delete FILES... \n" \
++" setid STRING (set camera ID) \n" \
++" setflash MODE (0=Off, 1=On, 2=Strobe, 3=Auto) \n" \
++" setdate gmt|local|YYYYMMDDHHMMSS \n" \
++"Options: \n" \
++" -B NUMBER Set baudrate (115200, 57600, 38400, 19200, 9600 or 0) \n" \
++" -D DEVICE Select another device file (default is /dev/fujifilm) \n" \
++" -L List command set \n" \
++" -7 DS-7 compatibility mode (experimental) \n" \
++" -d Delete pictures after successful download \n" \
++" -f Force (overwrite existing files) \n" \
++" -p Assume picture numbers instead of frame numbers \n" \
++" -h Display this help message \n" \
++" -v Version information \n" \
++"Pictures: \n" \
++" all All pictures \n" \
++" last Last picture \n" \
++" 4 Only picture 4 \n" \
++" 2-10 Pictures between 2 and 10 \n" \
++"Files: \n" \
++" DSCxxxxx.JPG Files to delete or to upload into the camera \n";
++
++const char *Copyright = "\n" \
++"Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $\n" \
++"Written by Thierry Bousch <bousch@topo.math.u-psud.fr>\n" \
++"Public domain. Absolutely no warranty.\n";
+
+ static void sigint_handler (int sig)
+ {
diff --git a/app-misc/fujiplay/fujiplay-1.33.ebuild b/app-misc/fujiplay/fujiplay-1.33.ebuild
new file mode 100644
index 000000000000..17402bcb3856
--- /dev/null
+++ b/app-misc/fujiplay/fujiplay-1.33.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Utility for Fujifilm/Leica digital cameras (via serial port)"
+HOMEPAGE="http://topo.math.u-psud.fr/~bousch/fujiplay.html"
+SRC_URI="http://topo.math.u-psud.fr/~bousch/${PN}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-unterminated-strings.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ dobin fujiplay yycc2ppm || die
+ dodoc README fujiplay.lsm mx700-commands.html
+ emake all clean
+}
+
+pkg_postinst() {
+ ln -s /dev/ttyS0 /dev/fujifilm
+ elog "A symbolic link /dev/ttyS0 -> /dev/fujifilm was created."
+ elog "You may want to create a serial group to allow non-root"
+ elog "members R/W access to the serial device."
+ echo
+}
+
+pkg_postrm() {
+ rm -f /dev/fujifilm
+ echo
+ elog "The symbolic link /dev/fujifilm was removed."
+ echo
+}
diff --git a/app-misc/fujiplay/metadata.xml b/app-misc/fujiplay/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-misc/fujiplay/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>