From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8B9A21382C5 for ; Sun, 25 Feb 2018 16:03:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E2C8E086D; Sun, 25 Feb 2018 16:03:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 67355E086D for ; Sun, 25 Feb 2018 16:03:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 34106335C09 for ; Sun, 25 Feb 2018 16:03:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2D6A238 for ; Sun, 25 Feb 2018 16:03:44 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1519574623.59147c1ee7b15c947f07bdc747d33da3900feb0f.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/duc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/duc/Manifest sys-apps/duc/duc-1.4.3.ebuild X-VCS-Directories: sys-apps/duc/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 59147c1ee7b15c947f07bdc747d33da3900feb0f X-VCS-Branch: master Date: Sun, 25 Feb 2018 16:03:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 593f195d-d23b-48a8-b3f6-c80ceff25091 X-Archives-Hash: 4364a19d87c7c3cff644c9088727722e commit: 59147c1ee7b15c947f07bdc747d33da3900feb0f Author: Jeroen Roovers gentoo org> AuthorDate: Sun Feb 25 16:03:14 2018 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sun Feb 25 16:03:43 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59147c1e sys-apps/duc: Version 1.4.3. Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-apps/duc/Manifest | 1 + sys-apps/duc/duc-1.4.3.ebuild | 89 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/sys-apps/duc/Manifest b/sys-apps/duc/Manifest index 7be699b6317..4beb1637a04 100644 --- a/sys-apps/duc/Manifest +++ b/sys-apps/duc/Manifest @@ -1 +1,2 @@ DIST duc-1.4.1.tar.gz 325689 BLAKE2B 1e23204b60d1dd67eb094c1152c5056d0abc1fc6037a3811df5be18cbc4d61ccd2077b175f8f75559f368e2633476990e0c453cf88cff03c8aa3fc1796a42440 SHA512 88aa8f51651adf019c3a91c83eca308b822ff7569d6f6d30cf91338740ec9b0bd21c4f5dd783cf46c8d67aad6b03ad908cd7ed472e5db6feaf66ee02582d9f88 +DIST duc-1.4.3.tar.gz 363507 BLAKE2B 8d4364d48c247d7a83c8c5dd900b1c36ec78c68fa7d090e178a0e3209583e433c2e459d192f65ac350038c7e0d5a57df2c5c0d649cc9f554d7af74ad960c8db5 SHA512 5eb3e862e7003838e012dd1faab507a9b58607b77bd2af70a662005b6e4008ac44d1fb2e17b99da8e42ddfadb1cede2a468144ace7a72c12d0825fc7df4d18cd diff --git a/sys-apps/duc/duc-1.4.3.ebuild b/sys-apps/duc/duc-1.4.3.ebuild new file mode 100644 index 00000000000..55fa313bfe3 --- /dev/null +++ b/sys-apps/duc/duc-1.4.3.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +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? ( >=media-libs/glfw-3.0 ) + ) + leveldb? ( dev-libs/leveldb ) + ncurses? ( sys-libs/ncurses:= ) + sqlite? ( dev-db/sqlite:3 ) + tokyocabinet? ( dev-db/tokyocabinet ) +" +RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}"/${PN}-1.4.1-tinfo.patch +) + +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 + + default + + eautoreconf +} + +src_configure() { + local myconf=( $(use_enable 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) --disable-x11 --disable-opengl ) + fi + + econf ${myconf[@]} +}