app-admin/dio: fix build with sys-libs/ncurses[tinfo]
authorConrad Kostecki <conrad@kostecki.com>
Tue, 7 Aug 2018 16:58:06 +0000 (18:58 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 7 Aug 2018 17:13:01 +0000 (19:13 +0200)
Also bumped to EAPI=7

Closes: https://bugs.gentoo.org/646802
Package-Manager: Portage-2.3.44, Repoman-2.3.10

app-admin/dio/dio-1.5.2-r1.ebuild [new file with mode: 0644]
app-admin/dio/metadata.xml

diff --git a/app-admin/dio/dio-1.5.2-r1.ebuild b/app-admin/dio/dio-1.5.2-r1.ebuild
new file mode 100644 (file)
index 0000000..2a0d993
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs
+
+DESCRIPTION="A device I/O monitoring tool"
+HOMEPAGE="https://github.com/donaldmcintosh/dio"
+SRC_URI="https://github.com/donaldmcintosh/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}/src"
+
+DOCS=( "README" "../README.md" )
+HTML_DOCS=( "../site/www.diodio.org/." )
+
+src_prepare() {
+       # Include the 'tinfo' lib, if sys-libs/ncurses is compiled with USE="tinfo"
+       if has_version -d 'sys-libs/ncurses[tinfo]'; then
+               sed -e 's/lcurses/& -ltinfo/' -i Makefile || die
+       fi
+
+       default
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       dobin dio
+       doman dio.1
+       einstalldocs
+}
index ebf597f23ef3808c1b0ef71030e4979f937ec412..021428c4e44c10a7a450777ffd8cdaafe0b5eb19 100644 (file)
@@ -1,8 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <!-- maintainer-needed -->
-  <upstream>
-    <remote-id type="github">donaldmcintosh/dio</remote-id>
-  </upstream>
+       <maintainer type="person">
+               <email>ck+gentoo@bl4ckb0x.de</email>
+               <name>Conrad Kostecki</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription>
+               It samples kernel statistics at the specified time interval
+               and uses them to derive useful realtime and cumulative performance statistics.
+               The output is presented in a standard terminal window using the standard curses library,
+               which contains the output on visible terminal.
+               The approach offers a more intuitive visual presentation of the data.
+       </longdescription>
+       <upstream>
+               <bugs-to>https://github.com/donaldmcintosh/dio/issues</bugs-to>
+               <remote-id type="github">donaldmcintosh/dio</remote-id>
+       </upstream>
 </pkgmetadata>