summaryrefslogtreecommitdiff
path: root/app-misc/digitemp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/digitemp
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/digitemp')
-rw-r--r--app-misc/digitemp/Manifest7
-rw-r--r--app-misc/digitemp/digitemp-3.5.0-r2.ebuild75
-rw-r--r--app-misc/digitemp/digitemp-3.7.1.ebuild75
-rw-r--r--app-misc/digitemp/metadata.xml26
4 files changed, 183 insertions, 0 deletions
diff --git a/app-misc/digitemp/Manifest b/app-misc/digitemp/Manifest
new file mode 100644
index 000000000000..b94da554936e
--- /dev/null
+++ b/app-misc/digitemp/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD digitemp-3.5.0-r2.ebuild 1823 SHA256 6644e70677f4a23c972be5da168143358ad4beecf649d1f0670377144546a51e SHA512 bc45b25d1e34dbc2a822c5bc2e16dbbdab79935a5c6e37c0b629e3f62a834f0a17c7840468a2eed2ab9956f274b3cf3e8b1527ebc59c8722826d70d4a8cc50c3 WHIRLPOOL fd66a045b76b4f193105f0c549d39eae595d78a1fda8e8fb5572175c3d2a079af3f3b95effff82ee99450dce32f0ba5a516090939e15466b2bcd4d7ead29b7cd
+EBUILD digitemp-3.7.1.ebuild 1843 SHA256 95f968d49ae0aaa88c0d8fcae398a8dd2ae6820d29b2f33037aa93843b0b363b SHA512 1393cfc7cf65a4d694ec351e532e1414a0b58b71df6dda398a8abbb626735dfdc5575b36a2cfe09d3e21127e2809e9ea0d917872a842fd3cf9b71d6b6c0553c8 WHIRLPOOL 6d3646a6089867e605a48f23a4cca2058742cb6d3c7f0ee71e2e6b0f424312b62b0872f11b2ae49825b35361ed00812fb8bbd160f370a306fb848ae5fdcc9643
+MISC ChangeLog 2737 SHA256 743466ff5028a69c9c2d580e63404c622644ab2ec8e74921acd8508bd76e9d6e SHA512 c9bd9882603695b362be2d7cdc30495b96bdd617f3191d37699a37f16c0f1abccee026ba61b26a60a875123a92924a9060c58871b00cc286368b6da9371a2e18 WHIRLPOOL b426ad64824012d65a80eb58c68c13b8a114c795a99f624cda54764b7936ae07cc4b9537acf9b15da73370b8617d672edbd85e7f0573e2d4edca6ba5447525dd
+MISC ChangeLog-2015 3937 SHA256 90dfc8dbfc7ff05b3fae29230158aecd47555c925491c1e4f06aec992cd427e6 SHA512 bbd237fdd17629d37c116bf00809c81580f53a075e6978b2a20798de85899d967220464b2175017565835bb2c605963cb532f61e633fae9685ea58d152dc0e22 WHIRLPOOL 5caf0fab261832454e3e5c404edd042d16ce396027ec3217c4b01ed113e0212806a7fb685670989cb4de9ba0dbbb94b1bd120afc0e844f8ef793e98920929df9
+MISC metadata.xml 1112 SHA256 b61f2d28b132489ac17412f7e25603910ee4ac00e59f98a93e7c08b4e2aef9e7 SHA512 6a56d338898a9eb1dccc73bcf8155352bd8214287126fe9d3b0d71212f3fa315056299e15072c807d9976160781dabdba5bcaedd5207bf3df7784e77a7f44ff9 WHIRLPOOL c83c5cb4d4eb32cb1ee892edc2281d63cbf4d027b176c1416a25eac1915a82744af224d5445b79de6d0ef5d1e20f9a298db3249ddaa88633fa5afa1d5bbc6417
diff --git a/app-misc/digitemp/digitemp-3.5.0-r2.ebuild b/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
new file mode 100644
index 000000000000..b53b52df73d2
--- /dev/null
+++ b/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 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="http://www.digitemp.com/ http://www.ibutton.com/"
+SRC_URI="http://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
+}
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 000000000000..477651f361f4
--- /dev/null
+++ b/app-misc/digitemp/digitemp-3.7.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 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="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
+}
diff --git a/app-misc/digitemp/metadata.xml b/app-misc/digitemp/metadata.xml
new file mode 100644
index 000000000000..b6ca52ee6bae
--- /dev/null
+++ b/app-misc/digitemp/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+ </maintainer>
+ <longdescription>
+DigiTemp is a simple to use program for reading values from 1-wire devices. Its
+main use is for reading temperature sensors, but it also reads counters, and
+understands the 1-wire hubs with devices on different branches of the network.
+DigiTemp now supports the following 1-wire temperature sensors: DS18S20 (and
+DS1820), DS18B20, DS1822, the DS2438 Smart Battery Monitor, DS2422 and DS2423
+Counters, DS2409 MicroLAN Coupler (used in 1-wire hubs), and the AAG TAI-8540
+humidity sensor.
+ </longdescription>
+ <use>
+ <flag name="ds2490">Build support for the ds2490 sensor</flag>
+ <flag name="ds9097">Build support for the ds9097 sensor</flag>
+ <flag name="ds9097u">Build support for the ds9097u sensor</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">bcl/digitemp</remote-id>
+ </upstream>
+</pkgmetadata>