commit:     e77a70580614a35b280b9d352577dd34612ec59e
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri May  7 21:40:15 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri May  7 21:42:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e77a7058

app-admin/dio: switch to pkg-config

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-admin/dio/dio-1.5.2-r2.ebuild | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/app-admin/dio/dio-1.5.2-r2.ebuild 
b/app-admin/dio/dio-1.5.2-r2.ebuild
new file mode 100644
index 00000000000..3b303b3961b
--- /dev/null
+++ b/app-admin/dio/dio-1.5.2-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# 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"
+S="${WORKDIR}/${P}/src"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( "README" "../README.md" )
+HTML_DOCS=( "../site/www.diodio.org/." )
+
+src_prepare() {
+       default
+
+       # Include the 'tinfo' lib, if sys-libs/ncurses is compiled with 
USE="tinfo"
+       sed -e "s:-lcurses:$($(tc-getPKG_CONFIG) --libs ncurses):" -i Makefile 
|| die
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       dobin dio
+       doman dio.1
+       einstalldocs
+}

Reply via email to