public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-misc/digitemp/
@ 2016-01-27 13:26 Wolfram Schlich
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfram Schlich @ 2016-01-27 13:26 UTC (permalink / raw
  To: gentoo-commits

commit:     57843db712e10b6d08cd22631b15b04097850c74
Author:     Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 13:26:11 2016 +0000
Commit:     Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
CommitDate: Wed Jan 27 13:26:11 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57843db7

app-misc/digitemp: version bump

Package-Manager: portage-2.2.27

 app-misc/digitemp/Manifest              |  1 +
 app-misc/digitemp/digitemp-3.7.1.ebuild | 76 +++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/app-misc/digitemp/Manifest b/app-misc/digitemp/Manifest
index 83c5ddf..8edef76 100644
--- a/app-misc/digitemp/Manifest
+++ b/app-misc/digitemp/Manifest
@@ -1 +1,2 @@
 DIST digitemp-3.5.0.tar.gz 267947 SHA256 e185ef9b84501b28568160eb5a5cc3b98b72c0791aff9c128ff6d0cd23b711e8 SHA512 59055a97ae35cdc86bb893a755975b688d3be9185e717f5da0024d664e6c93dd5a7f10f1230772c3bc1bc76a088392da083ba63d28e054727b9f68ce31de64d3 WHIRLPOOL d10bda164dee77a8f0c90330a2799a1f37d4c2f8b8c9709df1fa91939ccbc93f660c5184dadbb52f9d5cf80acf7fbd018e93d7f46283e5a5a6195bb257e4928f
+DIST digitemp-3.7.1.tar.gz 144870 SHA256 6fa4d965350d5501b6ca73ee8a09276ca4f65b6d85dae62f0a796239bae5000e SHA512 e5eaf576b544c61049a358dece7dc96d9793b751ef08645060f3b2c1a2006e2906c3aa3f97de3dab46818290d664d2e784a948b2495b538a200b6d71b03173d2 WHIRLPOOL 0448de6833a1b182ba1fc78f7aaa4fb1fde5dd6b10d027a66008aee3893e09c3ed82bc09ae4ab5efedf875cab0a537a0b78c277d43f93e4766d8d895678c38d5

diff --git a/app-misc/digitemp/digitemp-3.7.1.ebuild b/app-misc/digitemp/digitemp-3.7.1.ebuild
new file mode 100644
index 0000000..80024ae
--- /dev/null
+++ b/app-misc/digitemp/digitemp-3.7.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Temperature logging and reporting using Maxim's iButtons and 1-Wire protocol"
+HOMEPAGE="http://www.digitemp.com/ http://www.ibutton.com/"
+SRC_URI="https://github.com/bcl/digitemp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+IUSE="ds9097 ds9097u ds2490"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="ds2490? ( virtual/libusb:0 )"
+
+targets() {
+	# default is to compile to the ds9097u.
+	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
+		echo ds9097u
+	fi
+	for target in ds9097 ds9097u ds2490; do
+		if use ${target}; then
+			echo ${target}
+		fi
+	done
+}
+
+src_prepare() {
+	sed -i -e "/^CFLAGS/s:-O2:${CFLAGS}:" \
+		-e "/^LIBS/s:=:= ${LDFLAGS}:" Makefile
+	# default is to compile to the ds9097u.
+	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
+		ewarn "If you don't choose a component to install, we default to ds9097u"
+	fi
+}
+
+src_compile() {
+	local targets=$(targets)
+
+	for target in $targets; do
+		emake clean
+		emake CC="$(tc-getCC)" 	LOCK="no" ${target} || die "emake ${target} failed"
+	done
+}
+
+src_install() {
+	for target in $(echo $(targets) | tr '[:lower:]' '[:upper:]'); do
+		dobin digitemp_${target} && \
+		dosym digitemp_${target} /usr/bin/digitemp
+	done
+
+	if [[ $(targets|wc -l) -ge 1 ]]; then
+		echo
+		ewarn "/usr/bin/digitemp has been symlinked to /usr/bin/digitemp_${target}"
+		ewarn "If you want to access the others, they are available at /usr/bin/digitemp_*"
+		echo
+	fi
+
+	dodoc README FAQ TODO
+
+	for example in perl python rrdb; do
+		insinto "/usr/share/doc/${PF}/${example}_examples"
+		doins -r ${example}/*
+	done
+}
+
+pkg_postinst() {
+	echo
+	elog "Examples of using digitemp with python, perl, and rrdtool are"
+	elog "located in /usr/share/doc/${PF}/"
+	echo
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-misc/digitemp/
@ 2018-06-02 22:38 Aaron Bauman
  0 siblings, 0 replies; 6+ messages in thread
From: Aaron Bauman @ 2018-06-02 22:38 UTC (permalink / raw
  To: gentoo-commits

commit:     7b3a4eb5cc2090cb5b4dde7e21936eb9d723c3ee
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Jun  2 20:44:22 2018 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Sat Jun  2 22:37:46 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b3a4eb5

app-misc/digitemp: use HTTPs

Closes: https://github.com/gentoo/gentoo/pull/8695

 app-misc/digitemp/digitemp-3.5.0-r2.ebuild | 6 +++---
 app-misc/digitemp/digitemp-3.7.1.ebuild    | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app-misc/digitemp/digitemp-3.5.0-r2.ebuild b/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
index b53b52df73d..cd0f7c008a7 100644
--- a/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
+++ b/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -6,8 +6,8 @@ EAPI=5
 inherit toolchain-funcs
 
 DESCRIPTION="Temperature logging and reporting using Maxim's iButtons and 1-Wire protocol"
-HOMEPAGE="http://www.digitemp.com/ http://www.ibutton.com/"
-SRC_URI="http://www.digitemp.com/software/linux/${P}.tar.gz"
+HOMEPAGE="https://www.digitemp.com/ https://www.ibutton.com/"
+SRC_URI="https://www.digitemp.com/software/linux/${P}.tar.gz"
 
 IUSE="ds9097 ds9097u ds2490"
 SLOT="0"

diff --git a/app-misc/digitemp/digitemp-3.7.1.ebuild b/app-misc/digitemp/digitemp-3.7.1.ebuild
index 477651f361f..718f8d20bbf 100644
--- a/app-misc/digitemp/digitemp-3.7.1.ebuild
+++ b/app-misc/digitemp/digitemp-3.7.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -6,7 +6,7 @@ EAPI=5
 inherit toolchain-funcs
 
 DESCRIPTION="Temperature logging and reporting using Maxim's iButtons and 1-Wire protocol"
-HOMEPAGE="http://www.digitemp.com/ http://www.ibutton.com/"
+HOMEPAGE="https://www.digitemp.com/ https://www.ibutton.com/"
 SRC_URI="https://github.com/bcl/digitemp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 IUSE="ds9097 ds9097u ds2490"


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-misc/digitemp/
@ 2019-02-20 13:16 Mikle Kolyada
  0 siblings, 0 replies; 6+ messages in thread
From: Mikle Kolyada @ 2019-02-20 13:16 UTC (permalink / raw
  To: gentoo-commits

commit:     5c03cb314749daa7a18e9dacb9739866f61e1344
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 20 13:14:42 2019 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Wed Feb 20 13:14:42 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c03cb31

app-misc/digitemp: amd64 stable wrt bug #676412

Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
RepoMan-Options: --include-arches="amd64"

 app-misc/digitemp/digitemp-3.7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-misc/digitemp/digitemp-3.7.1.ebuild b/app-misc/digitemp/digitemp-3.7.1.ebuild
index 7ab742c6848..6fd05c71008 100644
--- a/app-misc/digitemp/digitemp-3.7.1.ebuild
+++ b/app-misc/digitemp/digitemp-3.7.1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/bcl/digitemp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 IUSE="ds9097 ds9097u ds2490"
 SLOT="0"
 LICENSE="GPL-2"
-KEYWORDS="~amd64 x86"
+KEYWORDS="amd64 x86"
 
 DEPEND="ds2490? ( virtual/libusb:0 )"
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-misc/digitemp/
@ 2019-02-20 21:40 Pacho Ramos
  0 siblings, 0 replies; 6+ messages in thread
From: Pacho Ramos @ 2019-02-20 21:40 UTC (permalink / raw
  To: gentoo-commits

commit:     c4e630f70e419f5ba3e3270f0f4d694f399e6c55
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 20 21:35:03 2019 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed Feb 20 21:35:03 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e630f7

app-misc/digitemp: Drop old

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 app-misc/digitemp/Manifest                 |  1 -
 app-misc/digitemp/digitemp-3.5.0-r2.ebuild | 75 ------------------------------
 2 files changed, 76 deletions(-)

diff --git a/app-misc/digitemp/Manifest b/app-misc/digitemp/Manifest
index 9518142baff..53e6100009d 100644
--- a/app-misc/digitemp/Manifest
+++ b/app-misc/digitemp/Manifest
@@ -1,2 +1 @@
-DIST digitemp-3.5.0.tar.gz 267947 BLAKE2B bdd5cd84160d4826205ac74676897b9caa296c203fcde738c99f89baaeb7637f3995afeb7741e1d1d3e6cb64776de2479fe7d54d1b499a400cbf7b59f8d46349 SHA512 59055a97ae35cdc86bb893a755975b688d3be9185e717f5da0024d664e6c93dd5a7f10f1230772c3bc1bc76a088392da083ba63d28e054727b9f68ce31de64d3
 DIST digitemp-3.7.1.tar.gz 144870 BLAKE2B 5d00197ba0122772d96c3185f430119961d214f50dc07dcd5881e1aa1135283680ff38b4d92736827f5c7644b11930b9418b8467f276e832e40f4228d08d1774 SHA512 e5eaf576b544c61049a358dece7dc96d9793b751ef08645060f3b2c1a2006e2906c3aa3f97de3dab46818290d664d2e784a948b2495b538a200b6d71b03173d2

diff --git a/app-misc/digitemp/digitemp-3.5.0-r2.ebuild b/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
deleted file mode 100644
index cd0f7c008a7..00000000000
--- a/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit toolchain-funcs
-
-DESCRIPTION="Temperature logging and reporting using Maxim's iButtons and 1-Wire protocol"
-HOMEPAGE="https://www.digitemp.com/ https://www.ibutton.com/"
-SRC_URI="https://www.digitemp.com/software/linux/${P}.tar.gz"
-
-IUSE="ds9097 ds9097u ds2490"
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="amd64 x86"
-
-DEPEND="ds2490? ( virtual/libusb:0 )"
-
-targets() {
-	# default is to compile to the ds9097u.
-	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
-		echo ds9097u
-	fi
-	for target in ds9097 ds9097u ds2490; do
-		if use ${target}; then
-			echo ${target}
-		fi
-	done
-}
-
-src_prepare() {
-	sed -i -e "/^CFLAGS/s:-O2:${CFLAGS}:" \
-		-e "/^LIBS/s:=:= ${LDFLAGS}:" Makefile
-	# default is to compile to the ds9097u.
-	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
-		ewarn "If you don't choose a component to install, we default to ds9097u"
-	fi
-}
-
-src_compile() {
-	local targets=$(targets)
-
-	for target in $targets; do
-		emake clean
-		emake CC="$(tc-getCC)" 	LOCK="no" ${target} || die "emake ${target} failed"
-	done
-}
-
-src_install() {
-	for target in $(echo $(targets) | tr '[:lower:]' '[:upper:]'); do
-		dobin digitemp_${target} && \
-		dosym digitemp_${target} /usr/bin/digitemp
-	done
-
-	if [[ $(targets|wc -l) -ge 1 ]]; then
-		echo
-		ewarn "/usr/bin/digitemp has been symlinked to /usr/bin/digitemp_${target}"
-		ewarn "If you want to access the others, they are available at /usr/bin/digitemp_*"
-		echo
-	fi
-
-	dodoc README FAQ TODO
-
-	for example in perl python rrdb; do
-		insinto "/usr/share/doc/${PF}/${example}_examples"
-		doins -r ${example}/*
-	done
-}
-
-pkg_postinst() {
-	echo
-	elog "Examples of using digitemp with python, perl, and rrdtool are"
-	elog "located in /usr/share/doc/${PF}/"
-	echo
-}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-misc/digitemp/
@ 2021-04-19  4:31 Sam James
  0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2021-04-19  4:31 UTC (permalink / raw
  To: gentoo-commits

commit:     6ec9dad231bd86a6febc4c318724c7b1920dcf63
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 19 04:29:28 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 19 04:30:59 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ec9dad2

app-misc/digitemp: port to EAPI 7

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/digitemp/digitemp-3.7.1.ebuild | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/app-misc/digitemp/digitemp-3.7.1.ebuild b/app-misc/digitemp/digitemp-3.7.1.ebuild
index 01e1ebe0ca3..65431c4aae4 100644
--- a/app-misc/digitemp/digitemp-3.7.1.ebuild
+++ b/app-misc/digitemp/digitemp-3.7.1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
 inherit toolchain-funcs
 
@@ -9,10 +9,10 @@ DESCRIPTION="Temperature logging and reporting using Maxim's iButtons and 1-Wire
 HOMEPAGE="https://www.digitemp.com/ https://www.ibutton.com/"
 SRC_URI="https://github.com/bcl/digitemp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
-IUSE="ds9097 ds9097u ds2490"
 SLOT="0"
 LICENSE="GPL-2"
 KEYWORDS="amd64 x86"
+IUSE="ds9097 ds9097u ds2490"
 
 DEPEND="ds2490? ( virtual/libusb:0 )"
 
@@ -21,6 +21,7 @@ targets() {
 	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
 		echo ds9097u
 	fi
+
 	for target in ds9097 ds9097u ds2490; do
 		if use ${target}; then
 			echo ${target}
@@ -29,8 +30,13 @@ targets() {
 }
 
 src_prepare() {
-	sed -i -e "/^CFLAGS/s:-O2:${CFLAGS}:" \
-		-e "/^LIBS/s:=:= ${LDFLAGS}:" Makefile
+	default
+
+	sed -i \
+		-e "/^CFLAGS/s:-O2:${CFLAGS}:" \
+		-e "/^LIBS/s:=:= ${LDFLAGS}:" \
+		Makefile || die
+
 	# default is to compile to the ds9097u.
 	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
 		ewarn "If you don't choose a component to install, we default to ds9097u"
@@ -40,9 +46,9 @@ src_prepare() {
 src_compile() {
 	local targets=$(targets)
 
-	for target in $targets; do
+	for target in ${targets}; do
 		emake clean
-		emake CC="$(tc-getCC)" 	LOCK="no" ${target}
+		emake CC="$(tc-getCC)" LOCK="no" ${target}
 	done
 }
 
@@ -53,23 +59,19 @@ src_install() {
 	done
 
 	if [[ $(targets|wc -l) -ge 1 ]]; then
-		echo
 		ewarn "/usr/bin/digitemp has been symlinked to /usr/bin/digitemp_${target}"
 		ewarn "If you want to access the others, they are available at /usr/bin/digitemp_*"
-		echo
 	fi
 
 	dodoc README FAQ TODO
 
 	for example in perl python rrdb; do
-		insinto "/usr/share/doc/${PF}/${example}_examples"
-		doins -r ${example}/*
+		docinto ${example}_examples
+		dodoc -r ${example}/*
 	done
 }
 
 pkg_postinst() {
-	echo
 	elog "Examples of using digitemp with python, perl, and rrdtool are"
 	elog "located in /usr/share/doc/${PF}/"
-	echo
 }


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-misc/digitemp/
@ 2022-01-12 14:48 Florian Schmaus
  0 siblings, 0 replies; 6+ messages in thread
From: Florian Schmaus @ 2022-01-12 14:48 UTC (permalink / raw
  To: gentoo-commits

commit:     b3772a88213a40e62759e55730d34336a29712cc
Author:     Dennis Eisele <kernlpanic <AT> dennis-eisele <DOT> de>
AuthorDate: Wed Jan 12 13:46:39 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Jan 12 14:48:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3772a88

app-misc/digitemp: add 3.7.2

Closes: https://bugs.gentoo.org/682916
Signed-off-by: Dennis Eisele <kernlpanic <AT> dennis-eisele.de>
Closes: https://github.com/gentoo/gentoo/pull/23752
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-misc/digitemp/Manifest              |  1 +
 app-misc/digitemp/digitemp-3.7.2.ebuild | 77 +++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/app-misc/digitemp/Manifest b/app-misc/digitemp/Manifest
index 53e6100009d2..c8bc36ce59fe 100644
--- a/app-misc/digitemp/Manifest
+++ b/app-misc/digitemp/Manifest
@@ -1 +1,2 @@
 DIST digitemp-3.7.1.tar.gz 144870 BLAKE2B 5d00197ba0122772d96c3185f430119961d214f50dc07dcd5881e1aa1135283680ff38b4d92736827f5c7644b11930b9418b8467f276e832e40f4228d08d1774 SHA512 e5eaf576b544c61049a358dece7dc96d9793b751ef08645060f3b2c1a2006e2906c3aa3f97de3dab46818290d664d2e784a948b2495b538a200b6d71b03173d2
+DIST digitemp-3.7.2.tar.gz 146166 BLAKE2B 9718e5d8a135e99cfd8893f5f4d2cc40a0bcdffa4e01c4ef460d654b38d9808c75ea1efced6211672033a67be8ba7f30f34320ef8e64d47d8a88be8bbac8c997 SHA512 807934ecc743df5ee69e9a8a0f5e90e469f03e577cc80b4510e6ac4ecc61ff9c79e05642602a4f50b4acda7e1f53e33016e6c201898ab0b44c76f3f7ac028820

diff --git a/app-misc/digitemp/digitemp-3.7.2.ebuild b/app-misc/digitemp/digitemp-3.7.2.ebuild
new file mode 100644
index 000000000000..c2fd1c941d08
--- /dev/null
+++ b/app-misc/digitemp/digitemp-3.7.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Temperature logging and reporting using Maxim's iButtons and 1-Wire protocol"
+HOMEPAGE="https://www.digitemp.com/ https://www.ibutton.com/"
+SRC_URI="https://github.com/bcl/digitemp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="ds9097 ds9097u ds2490"
+
+DEPEND="ds2490? ( virtual/libusb:0 )"
+
+targets() {
+	# default is to compile to the ds9097u.
+	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
+		echo ds9097u
+	fi
+
+	for target in ds9097 ds9097u ds2490; do
+		if use ${target}; then
+			echo ${target}
+		fi
+	done
+}
+
+src_prepare() {
+	default
+
+	sed -i \
+		-e "/^CFLAGS/s:-O2:${CFLAGS}:" \
+		-e "/^LIBS/s:=:= ${LDFLAGS}:" \
+		Makefile || die
+
+	# default is to compile to the ds9097u.
+	if ! ( use ds9097 || use ds9097u || use ds2490 ); then
+		ewarn "If you don't choose a component to install, we default to ds9097u"
+	fi
+}
+
+src_compile() {
+	local targets=$(targets)
+
+	for target in ${targets}; do
+		emake clean
+		emake CC="$(tc-getCC)" LOCK="no" ${target}
+	done
+}
+
+src_install() {
+	for target in $(echo $(targets) | tr '[:lower:]' '[:upper:]'); do
+		dobin digitemp_${target} && \
+		dosym digitemp_${target} /usr/bin/digitemp
+	done
+
+	if [[ $(targets|wc -l) -ge 1 ]]; then
+		ewarn "/usr/bin/digitemp has been symlinked to /usr/bin/digitemp_${target}"
+		ewarn "If you want to access the others, they are available at /usr/bin/digitemp_*"
+	fi
+
+	dodoc README FAQ TODO
+
+	for example in perl python rrdb; do
+		docinto ${example}_examples
+		dodoc -r ${example}/*
+	done
+}
+
+pkg_postinst() {
+	elog "Examples of using digitemp with python, perl, and rrdtool are"
+	elog "located in /usr/share/doc/${PF}/"
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-12 14:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-19  4:31 [gentoo-commits] repo/gentoo:master commit in: app-misc/digitemp/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2022-01-12 14:48 Florian Schmaus
2019-02-20 21:40 Pacho Ramos
2019-02-20 13:16 Mikle Kolyada
2018-06-02 22:38 Aaron Bauman
2016-01-27 13:26 Wolfram Schlich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox