1 |
commit: 206356bcbe465d0996fe8d04fb2e15551ca0f6f0 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 12 11:56:55 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 18 06:51:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=206356bc |
7 |
|
8 |
app-misc/fujiplay: EAPI7, fix HOMEPAGE/SRC_URI, improve ebuild |
9 |
|
10 |
Closes: https://bugs.gentoo.org/665772 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/9843 |
12 |
|
13 |
app-misc/fujiplay/Manifest | 1 + |
14 |
.../files/fujiplay-1.33-unterminated-strings.patch | 4 +- |
15 |
app-misc/fujiplay/fujiplay-1.33-r1.ebuild | 45 ++++++++++++++++++++++ |
16 |
3 files changed, 48 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/app-misc/fujiplay/Manifest b/app-misc/fujiplay/Manifest |
19 |
index cf4af29ecfe..ef977f241d8 100644 |
20 |
--- a/app-misc/fujiplay/Manifest |
21 |
+++ b/app-misc/fujiplay/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
+DIST fujiplay-1.33.tar.gz 12588 BLAKE2B 4be2b4d44696f5d43942c19cde308874684c87762b2778026750c4db9ba249c2ec8b7986bca5c526c7199289b3094157c068067db38a015372fd6fbd5a1e285d SHA512 168ce95b6926da2438fb858b2537060877145b28638217214f72833fcc75b76dd7e5bba9ed0ca966cd2f7f1c31ca3302ee4662907bf743c393314d615d795149 |
24 |
DIST fujiplay.tgz 12588 BLAKE2B 4be2b4d44696f5d43942c19cde308874684c87762b2778026750c4db9ba249c2ec8b7986bca5c526c7199289b3094157c068067db38a015372fd6fbd5a1e285d SHA512 168ce95b6926da2438fb858b2537060877145b28638217214f72833fcc75b76dd7e5bba9ed0ca966cd2f7f1c31ca3302ee4662907bf743c393314d615d795149 |
25 |
|
26 |
diff --git a/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch b/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch |
27 |
index 7f03c696c20..1ae94633624 100644 |
28 |
--- a/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch |
29 |
+++ b/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch |
30 |
@@ -1,5 +1,5 @@ |
31 |
---- fujiplay.c 1999-02-23 10:30:31.000000000 +0100 |
32 |
-+++ fujiplay.c 2006-08-05 00:50:08.000000000 +0200 |
33 |
+--- a/fujiplay.c 1999-02-23 10:30:31.000000000 +0100 |
34 |
++++ b/fujiplay.c 2006-08-05 00:50:08.000000000 +0200 |
35 |
@@ -759,40 +759,38 @@ |
36 |
return 1; |
37 |
} |
38 |
|
39 |
diff --git a/app-misc/fujiplay/fujiplay-1.33-r1.ebuild b/app-misc/fujiplay/fujiplay-1.33-r1.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..796eccb8d31 |
42 |
--- /dev/null |
43 |
+++ b/app-misc/fujiplay/fujiplay-1.33-r1.ebuild |
44 |
@@ -0,0 +1,45 @@ |
45 |
+# Copyright 1999-2018 Gentoo Foundation |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=7 |
49 |
+ |
50 |
+inherit toolchain-funcs |
51 |
+ |
52 |
+DESCRIPTION="Utility for Fujifilm/Leica digital cameras (via serial port)" |
53 |
+HOMEPAGE="https://www.math.u-psud.fr/~bousch/fujiplay.html" |
54 |
+SRC_URI="https://www.math.u-psud.fr/~bousch/${PN}.tgz -> ${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="public-domain" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~x86" |
59 |
+ |
60 |
+S="${WORKDIR}" |
61 |
+ |
62 |
+PATCHES=( "${FILESDIR}"/${P}-unterminated-strings.patch ) |
63 |
+ |
64 |
+src_compile() { |
65 |
+ emake CC="$(tc-getCC)" \ |
66 |
+ CFLAGS="${CFLAGS}" \ |
67 |
+ LDFLAGS="${LDFLAGS}" |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ dobin fujiplay yycc2ppm |
72 |
+ dodoc README fujiplay.lsm mx700-commands.html |
73 |
+ emake all clean |
74 |
+} |
75 |
+ |
76 |
+pkg_postinst() { |
77 |
+ ln -s /dev/ttyS0 /dev/fujifilm || die |
78 |
+ elog "A symbolic link /dev/ttyS0 -> /dev/fujifilm was created." |
79 |
+ elog "You may want to create a serial group to allow non-root" |
80 |
+ elog "members R/W access to the serial device." |
81 |
+ elog |
82 |
+} |
83 |
+ |
84 |
+pkg_postrm() { |
85 |
+ rm -f /dev/fujifilm || die |
86 |
+ elog |
87 |
+ elog "The symbolic link /dev/fujifilm was removed." |
88 |
+ elog |
89 |
+} |