public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "NP Hardass" <np-hardass@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/duc/
Date: Sat, 19 Mar 2016 19:05:57 +0000 (UTC)	[thread overview]
Message-ID: <1458414307.17caa37b6e7a5ba576e5068334ce40ef28060884.np-hardass@gentoo> (raw)

commit:     17caa37b6e7a5ba576e5068334ce40ef28060884
Author:     NP-Hardass <NP-Hardass <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 19 19:04:06 2016 +0000
Commit:     NP Hardass <np-hardass <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 19:05:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17caa37b

sys-apps/duc: Initial commit; disk usage analyzer

Package-Manager: portage-2.2.26

 sys-apps/duc/Manifest         |  1 +
 sys-apps/duc/duc-1.4.1.ebuild | 90 +++++++++++++++++++++++++++++++++++++++++++
 sys-apps/duc/duc-9999.ebuild  | 90 +++++++++++++++++++++++++++++++++++++++++++
 sys-apps/duc/metadata.xml     | 24 ++++++++++++
 4 files changed, 205 insertions(+)

diff --git a/sys-apps/duc/Manifest b/sys-apps/duc/Manifest
new file mode 100644
index 0000000..e3456dd
--- /dev/null
+++ b/sys-apps/duc/Manifest
@@ -0,0 +1 @@
+DIST duc-1.4.1.tar.gz 325689 SHA256 04c75ea1cb3ce2d66c5628d999eae2accf66f56b74a9a6879dc8ffb8c9d66bf3 SHA512 88aa8f51651adf019c3a91c83eca308b822ff7569d6f6d30cf91338740ec9b0bd21c4f5dd783cf46c8d67aad6b03ad908cd7ed472e5db6feaf66ee02582d9f88 WHIRLPOOL da7311bdbec547569c08d976e508bde23969a0a387ec9c9baf345c004a03afd27ec8bb8fbf09c366bc06647cb750e93d51c583bcf84b6f5d706601192aa9bb4c

diff --git a/sys-apps/duc/duc-1.4.1.ebuild b/sys-apps/duc/duc-1.4.1.ebuild
new file mode 100644
index 0000000..3c2974e
--- /dev/null
+++ b/sys-apps/duc/duc-1.4.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF="true"
+AUTOTOOLS_IN_SOURCE_BUILD="true"
+inherit autotools-utils
+
+if [[ "${PV}" == "9999" ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/zevv/duc.git"
+	KEYWORDS=""
+else
+	KEYWORDS="~amd64 ~x86"
+	SRC_URI="https://github.com/zevv/${PN}/releases/download/${PV}/${P}.tar.gz"
+fi
+
+DESCRIPTION="A library and suite of tools for inspecting disk usage"
+HOMEPAGE="https://github.com/zevv/duc"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="cairo gui -leveldb ncurses -sqlite +tokyocabinet X"
+
+REQUIRED_USE="
+	^^ ( tokyocabinet leveldb sqlite )
+	X? ( cairo gui )
+"
+
+DEPEND="
+	cairo? ( x11-libs/cairo x11-libs/pango )
+	gui? (
+		X? (
+			x11-libs/cairo[X]
+			x11-libs/libX11
+			x11-libs/pango[X]
+		)
+		!X? ( virtual/opengl )
+	)
+	leveldb? ( dev-libs/leveldb )
+	ncurses? ( sys-libs/ncurses:= )
+	sqlite? ( dev-db/sqlite:3 )
+	tokyocabinet? ( dev-db/tokyocabinet )
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+	if [[ "${PV}" == "9999" ]]; then
+		git-r3_src_unpack
+	else
+		unpack ${A}
+	fi
+}
+
+src_prepare() {
+	sed -i -e "/ldconfig/d" -e "/install-exec-hook/d" Makefile.am || die
+
+	autotools-utils_src_prepare
+}
+
+src_configure() {
+	local myconf=(
+		--disable-static
+		$(use_with ncurses ui)
+	)
+
+	if use tokyocabinet; then
+		myconf+=( --with-db-backend=tokyocabinet )
+	elif	use leveldb; then
+		myconf+=( --with-db-backend=leveldb )
+	else
+		myconf+=( --with-db-backend=sqlite3 )
+	fi
+
+	# Necessary logic for cairo
+	if use gui && use X; then
+		# X backend GUI
+		myconf+=( --enable-x11 --disable-opengl --enable-cairo )
+	elif use gui; then
+		# OpenGL backend GUI
+		myconf+=( --disable-x11 --enable-opengl $(use_enable cairo) )
+	else
+		# No GUI
+		myconf+=( $(use_enable cairo) )
+	fi
+
+	autotools-utils_src_configure
+}

diff --git a/sys-apps/duc/duc-9999.ebuild b/sys-apps/duc/duc-9999.ebuild
new file mode 100644
index 0000000..3c2974e
--- /dev/null
+++ b/sys-apps/duc/duc-9999.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF="true"
+AUTOTOOLS_IN_SOURCE_BUILD="true"
+inherit autotools-utils
+
+if [[ "${PV}" == "9999" ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/zevv/duc.git"
+	KEYWORDS=""
+else
+	KEYWORDS="~amd64 ~x86"
+	SRC_URI="https://github.com/zevv/${PN}/releases/download/${PV}/${P}.tar.gz"
+fi
+
+DESCRIPTION="A library and suite of tools for inspecting disk usage"
+HOMEPAGE="https://github.com/zevv/duc"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="cairo gui -leveldb ncurses -sqlite +tokyocabinet X"
+
+REQUIRED_USE="
+	^^ ( tokyocabinet leveldb sqlite )
+	X? ( cairo gui )
+"
+
+DEPEND="
+	cairo? ( x11-libs/cairo x11-libs/pango )
+	gui? (
+		X? (
+			x11-libs/cairo[X]
+			x11-libs/libX11
+			x11-libs/pango[X]
+		)
+		!X? ( virtual/opengl )
+	)
+	leveldb? ( dev-libs/leveldb )
+	ncurses? ( sys-libs/ncurses:= )
+	sqlite? ( dev-db/sqlite:3 )
+	tokyocabinet? ( dev-db/tokyocabinet )
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+	if [[ "${PV}" == "9999" ]]; then
+		git-r3_src_unpack
+	else
+		unpack ${A}
+	fi
+}
+
+src_prepare() {
+	sed -i -e "/ldconfig/d" -e "/install-exec-hook/d" Makefile.am || die
+
+	autotools-utils_src_prepare
+}
+
+src_configure() {
+	local myconf=(
+		--disable-static
+		$(use_with ncurses ui)
+	)
+
+	if use tokyocabinet; then
+		myconf+=( --with-db-backend=tokyocabinet )
+	elif	use leveldb; then
+		myconf+=( --with-db-backend=leveldb )
+	else
+		myconf+=( --with-db-backend=sqlite3 )
+	fi
+
+	# Necessary logic for cairo
+	if use gui && use X; then
+		# X backend GUI
+		myconf+=( --enable-x11 --disable-opengl --enable-cairo )
+	elif use gui; then
+		# OpenGL backend GUI
+		myconf+=( --disable-x11 --enable-opengl $(use_enable cairo) )
+	else
+		# No GUI
+		myconf+=( $(use_enable cairo) )
+	fi
+
+	autotools-utils_src_configure
+}

diff --git a/sys-apps/duc/metadata.xml b/sys-apps/duc/metadata.xml
new file mode 100644
index 0000000..cafbe01
--- /dev/null
+++ b/sys-apps/duc/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>NP-Hardass@gentoo.org</email>
+		<name>NP-Hardass</name>
+	</maintainer>
+	<maintainer type="person">
+		<email>duc@zevv.nl</email>
+		<name>Ico Doornekamp</name>
+	</maintainer>
+	<use>
+		<flag name="cairo">Build support for exporting to PNG and PDF with <pkg>x11-libs/cairo</pkg></flag>
+		<flag name="gui">Build support for a graphical client</flag>
+		<flag name="leveldb">Use <pkg>dev-libs/leveldb</pkg> as the backend</flag>
+		<flag name="ncurses">Build support for the ncurses client</flag>
+		<flag name="sqlite">Use <pkg>dev-db/sqlite</pkg>:3 as the backend</flag>
+		<flag name="tokyocabinet">Use <pkg>dev-db/tokyocabinet</pkg> as the backend</flag>
+		<flag name="X">Use X11 for the GUI instead of OpenGL.  This is the recommended option</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">zevv/duc</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2016-03-19 19:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-19 19:05 NP Hardass [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-24 12:13 [gentoo-commits] repo/gentoo:master commit in: sys-apps/duc/ NP Hardass
2017-08-05 19:01 Amy Liffey
2018-02-25 16:03 Jeroen Roovers
2018-06-17 20:34 David Seifert
2020-01-12 11:14 David Seifert
2021-02-15  0:32 Sam James
2021-06-03 19:15 Sam James
2023-11-19 10:19 Ulrich Müller
2023-11-19 10:19 Ulrich Müller
2023-12-01 11:51 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1458414307.17caa37b6e7a5ba576e5068334ce40ef28060884.np-hardass@gentoo \
    --to=np-hardass@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox