Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libhdhomerun/files/, media-libs/libhdhomerun/
Date: Mon, 16 Sep 2019 17:57:16
Message-Id: 1568656626.57e74606cc27bd6f536513d7617aa87cad2d2783.mgorny@gentoo
1 commit: 57e74606cc27bd6f536513d7617aa87cad2d2783
2 Author: Wilson Michaels <thebitpit <AT> eartlink <DOT> net>
3 AuthorDate: Fri Sep 13 18:08:15 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 16 17:57:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e74606
7
8 media-libs/libhdhomerun: Bump to version 20190621
9
10 Upgrade to EAPI 7
11
12 Package-Manager: Portage-2.3.69, Repoman-2.3.16
13 Closes: https://bugs.gentoo.org/676140
14 Signed-off-by: Wilson Michaels <thebitpit <AT> eartlink.net>
15 Closes: https://github.com/gentoo/gentoo/pull/12922
16 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
17
18 media-libs/libhdhomerun/Manifest | 1 +
19 .../files/20190621-use_shared_library.patch | 16 +++++++++
20 .../libhdhomerun/libhdhomerun-20190621.ebuild | 38 ++++++++++++++++++++++
21 media-libs/libhdhomerun/metadata.xml | 9 ++++-
22 4 files changed, 63 insertions(+), 1 deletion(-)
23
24 diff --git a/media-libs/libhdhomerun/Manifest b/media-libs/libhdhomerun/Manifest
25 index f20c74511bc..0102edf0153 100644
26 --- a/media-libs/libhdhomerun/Manifest
27 +++ b/media-libs/libhdhomerun/Manifest
28 @@ -1 +1,2 @@
29 DIST libhdhomerun_20150826.tgz 49169 BLAKE2B 6b780d61624e9cca9ca6afbbcdf91377dc134782ee22752c8d92849c6eabac502a3a8a8659035b8a0fd66ae1d7404f6696f78758e0ff4484b46b84ca7282b48f SHA512 9b401c1649dc8c32ea9019b732631f9213cb66c43771aa148fa318202fc11739c005c474be6a77a6a7807818b5179f77debb5b2d2411d865cc87bb3d7ab629a6
30 +DIST libhdhomerun_20190621.tgz 50817 BLAKE2B 7d4293e38be5283fba5d46cb162ee19d90c30ed63481cd94445a055fa0f80597fdacedd59e35ba4edfb53934ce339e967eb0c42d0ae72289ce7d39eb1f91cd50 SHA512 d15c5b0703bf8ca1f3979a8cad93fc33d87c1309367ad5117354c60112a5505d90e80d4bf9055d16b0eef2b892015c5f4886e6544178090b3550c3a8dbd86576
31
32 diff --git a/media-libs/libhdhomerun/files/20190621-use_shared_library.patch b/media-libs/libhdhomerun/files/20190621-use_shared_library.patch
33 new file mode 100644
34 index 00000000000..a25b33456cf
35 --- /dev/null
36 +++ b/media-libs/libhdhomerun/files/20190621-use_shared_library.patch
37 @@ -0,0 +1,16 @@
38 +--- /Makefile 2019-09-16 10:18:56.033121543 -0500
39 ++++ /Makefile 2019-09-16 10:14:00.110155153 -0500
40 +@@ -38,10 +38,10 @@
41 + endif
42 + endif
43 +
44 +-all : hdhomerun_config$(BINEXT) libhdhomerun$(LIBEXT)
45 ++all : libhdhomerun$(LIBEXT) hdhomerun_config$(BINEXT)
46 +
47 +-hdhomerun_config$(BINEXT) : hdhomerun_config.c $(LIBSRCS)
48 +- $(CC) $(CFLAGS) $+ $(LDFLAGS) -o $@
49 ++hdhomerun_config$(BINEXT) : hdhomerun_config.c libhdhomerun$(LIBEXT)
50 ++ $(CC) $(CFLAGS) $+ $(LDFLAGS) -L./ -lhdhomerun -o $@
51 + $(STRIP) $@
52 +
53 + libhdhomerun$(LIBEXT) : $(LIBSRCS)
54
55 diff --git a/media-libs/libhdhomerun/libhdhomerun-20190621.ebuild b/media-libs/libhdhomerun/libhdhomerun-20190621.ebuild
56 new file mode 100644
57 index 00000000000..6ce4dafdd0c
58 --- /dev/null
59 +++ b/media-libs/libhdhomerun/libhdhomerun-20190621.ebuild
60 @@ -0,0 +1,38 @@
61 +# Copyright 1999-2019 Gentoo Authors
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=7
65 +
66 +inherit toolchain-funcs
67 +
68 +DESCRIPTION="SiliconDust HDHomeRun Utilties"
69 +HOMEPAGE="https://www.silicondust.com/support/linux/"
70 +SRC_URI="https://download.silicondust.com/hdhomerun/${PN}_${PV}.tgz"
71 +
72 +LICENSE="LGPL-2.1+"
73 +SLOT="0"
74 +KEYWORDS="~amd64 ~x86"
75 +
76 +PATCHES=(
77 + "${FILESDIR}/${PV}-use_shared_library.patch"
78 +)
79 +
80 +S="${WORKDIR}/${PN}"
81 +
82 +src_prepare() {
83 + default
84 + #Remove forced optimization from Makefile
85 + sed -i 's:-O2::' Makefile || die "Was the Makefile changed?"
86 +}
87 +
88 +src_compile() {
89 + emake CC=$(tc-getCC) STRIP=:
90 +}
91 +
92 +src_install() {
93 + dobin hdhomerun_config
94 + dolib.so libhdhomerun.so
95 +
96 + insinto /usr/include/hdhomerun
97 + doins *.h
98 +}
99
100 diff --git a/media-libs/libhdhomerun/metadata.xml b/media-libs/libhdhomerun/metadata.xml
101 index 6f49eba8f49..4c0ca2be0ca 100644
102 --- a/media-libs/libhdhomerun/metadata.xml
103 +++ b/media-libs/libhdhomerun/metadata.xml
104 @@ -1,5 +1,12 @@
105 <?xml version="1.0" encoding="UTF-8"?>
106 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
107 <pkgmetadata>
108 -<!-- maintainer-needed -->
109 + <maintainer type="person">
110 + <email>thebitpit@×××××××××.net</email>
111 + <name>Wilson Michaels</name>
112 + </maintainer>
113 + <maintainer type="project">
114 + <email>proxy-maint@g.o</email>
115 + <name>Proxy Maintainers</name>
116 + </maintainer>
117 </pkgmetadata>