1 |
commit: 57843db712e10b6d08cd22631b15b04097850c74 |
2 |
Author: Wolfram Schlich <wschlich <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 27 13:26:11 2016 +0000 |
4 |
Commit: Wolfram Schlich <wschlich <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 27 13:26:11 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57843db7 |
7 |
|
8 |
app-misc/digitemp: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
app-misc/digitemp/Manifest | 1 + |
13 |
app-misc/digitemp/digitemp-3.7.1.ebuild | 76 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 77 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/digitemp/Manifest b/app-misc/digitemp/Manifest |
17 |
index 83c5ddf..8edef76 100644 |
18 |
--- a/app-misc/digitemp/Manifest |
19 |
+++ b/app-misc/digitemp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST digitemp-3.5.0.tar.gz 267947 SHA256 e185ef9b84501b28568160eb5a5cc3b98b72c0791aff9c128ff6d0cd23b711e8 SHA512 59055a97ae35cdc86bb893a755975b688d3be9185e717f5da0024d664e6c93dd5a7f10f1230772c3bc1bc76a088392da083ba63d28e054727b9f68ce31de64d3 WHIRLPOOL d10bda164dee77a8f0c90330a2799a1f37d4c2f8b8c9709df1fa91939ccbc93f660c5184dadbb52f9d5cf80acf7fbd018e93d7f46283e5a5a6195bb257e4928f |
22 |
+DIST digitemp-3.7.1.tar.gz 144870 SHA256 6fa4d965350d5501b6ca73ee8a09276ca4f65b6d85dae62f0a796239bae5000e SHA512 e5eaf576b544c61049a358dece7dc96d9793b751ef08645060f3b2c1a2006e2906c3aa3f97de3dab46818290d664d2e784a948b2495b538a200b6d71b03173d2 WHIRLPOOL 0448de6833a1b182ba1fc78f7aaa4fb1fde5dd6b10d027a66008aee3893e09c3ed82bc09ae4ab5efedf875cab0a537a0b78c277d43f93e4766d8d895678c38d5 |
23 |
|
24 |
diff --git a/app-misc/digitemp/digitemp-3.7.1.ebuild b/app-misc/digitemp/digitemp-3.7.1.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..80024ae |
27 |
--- /dev/null |
28 |
+++ b/app-misc/digitemp/digitemp-3.7.1.ebuild |
29 |
@@ -0,0 +1,76 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Temperature logging and reporting using Maxim's iButtons and 1-Wire protocol" |
39 |
+HOMEPAGE="http://www.digitemp.com/ http://www.ibutton.com/" |
40 |
+SRC_URI="https://github.com/bcl/digitemp/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+IUSE="ds9097 ds9097u ds2490" |
43 |
+SLOT="0" |
44 |
+LICENSE="GPL-2" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+DEPEND="ds2490? ( virtual/libusb:0 )" |
48 |
+ |
49 |
+targets() { |
50 |
+ # default is to compile to the ds9097u. |
51 |
+ if ! ( use ds9097 || use ds9097u || use ds2490 ); then |
52 |
+ echo ds9097u |
53 |
+ fi |
54 |
+ for target in ds9097 ds9097u ds2490; do |
55 |
+ if use ${target}; then |
56 |
+ echo ${target} |
57 |
+ fi |
58 |
+ done |
59 |
+} |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ sed -i -e "/^CFLAGS/s:-O2:${CFLAGS}:" \ |
63 |
+ -e "/^LIBS/s:=:= ${LDFLAGS}:" Makefile |
64 |
+ # default is to compile to the ds9097u. |
65 |
+ if ! ( use ds9097 || use ds9097u || use ds2490 ); then |
66 |
+ ewarn "If you don't choose a component to install, we default to ds9097u" |
67 |
+ fi |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ local targets=$(targets) |
72 |
+ |
73 |
+ for target in $targets; do |
74 |
+ emake clean |
75 |
+ emake CC="$(tc-getCC)" LOCK="no" ${target} || die "emake ${target} failed" |
76 |
+ done |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ for target in $(echo $(targets) | tr '[:lower:]' '[:upper:]'); do |
81 |
+ dobin digitemp_${target} && \ |
82 |
+ dosym digitemp_${target} /usr/bin/digitemp |
83 |
+ done |
84 |
+ |
85 |
+ if [[ $(targets|wc -l) -ge 1 ]]; then |
86 |
+ echo |
87 |
+ ewarn "/usr/bin/digitemp has been symlinked to /usr/bin/digitemp_${target}" |
88 |
+ ewarn "If you want to access the others, they are available at /usr/bin/digitemp_*" |
89 |
+ echo |
90 |
+ fi |
91 |
+ |
92 |
+ dodoc README FAQ TODO |
93 |
+ |
94 |
+ for example in perl python rrdb; do |
95 |
+ insinto "/usr/share/doc/${PF}/${example}_examples" |
96 |
+ doins -r ${example}/* |
97 |
+ done |
98 |
+} |
99 |
+ |
100 |
+pkg_postinst() { |
101 |
+ echo |
102 |
+ elog "Examples of using digitemp with python, perl, and rrdtool are" |
103 |
+ elog "located in /usr/share/doc/${PF}/" |
104 |
+ echo |
105 |
+} |