1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic toolchain-funcs
8 DESCRIPTION="GPT partition table manipulator for Linux"
9 HOMEPAGE="https://www.rodsbooks.com/gdisk/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ~ppc ppc64 sparc ~x86 ~amd64-linux ~x86-linux"
15 IUSE="kernel_linux ncurses static"
17 # libuuid from util-linux is required.
20 ncurses? ( >=sys-libs/ncurses-5.7-r7:0=[unicode] )
21 kernel_linux? ( sys-apps/util-linux )
26 dev-libs/popt[static-libs(+)]
27 ncurses? ( >=sys-libs/ncurses-5.7-r7:0=[unicode,static-libs(+)] )
28 kernel_linux? ( sys-apps/util-linux[static-libs(+)] )
36 tc-export CXX PKG_CONFIG
38 if ! use ncurses ; then
40 -e '/^all:/s:cgdisk::' \
46 -e 's:-lncursesw:$(shell $(PKG_CONFIG) --libs ncursesw):g' \
49 use static && append-ldflags -static
53 dosbin gdisk sgdisk $(usex ncurses cgdisk '') fixparts