1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 if [[ "${PV}" == "9999" ]]; then
10 EGIT_REPO_URI="https://github.com/zevv/duc.git"
13 KEYWORDS="~amd64 ~x86"
14 SRC_URI="https://github.com/zevv/${PN}/releases/download/${PV}/${P}.tar.gz"
17 DESCRIPTION="A library and suite of tools for inspecting disk usage"
18 HOMEPAGE="https://github.com/zevv/duc"
22 IUSE="cairo gui -leveldb ncurses -sqlite +tokyocabinet X"
25 ^^ ( tokyocabinet leveldb sqlite )
30 cairo? ( x11-libs/cairo x11-libs/pango )
37 !X? ( >=media-libs/glfw-3.0 )
39 leveldb? ( dev-libs/leveldb )
40 ncurses? ( sys-libs/ncurses:= )
41 sqlite? ( dev-db/sqlite:3 )
42 tokyocabinet? ( dev-db/tokyocabinet )
47 if [[ "${PV}" == "9999" ]]; then
55 sed -i -e "/ldconfig/d" -e "/install-exec-hook/d" Makefile.am || die
63 local myconf=( $(use_enable ncurses ui) )
65 if use tokyocabinet; then
66 myconf+=( --with-db-backend=tokyocabinet )
67 elif use leveldb; then
68 myconf+=( --with-db-backend=leveldb )
70 myconf+=( --with-db-backend=sqlite3 )
73 # Necessary logic for cairo
74 if use gui && use X; then
76 myconf+=( --enable-x11 --disable-opengl --enable-cairo )
79 myconf+=( --disable-x11 --enable-opengl $(use_enable cairo) )
82 myconf+=( $(use_enable cairo) --disable-x11 --disable-opengl )