# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
checksums rmd160 69e0885c90c732ff1147ddb2c59cf82034a8dc23 \
sha256 b663391a6876f19a3cd901d862423a16e2b5ceaa2f4a3b9bb681e64b9c7ba78d \
maintainers {mail.ru:nano103 @nano103} openmaintainer
description GUID partition table fdisk (gdisk)
long_description GPT fdisk (gdisk) is a disk partitioning tool loosely modeled on Linux fdisk, \
but used for modifying GUID Partition Table (GPT) disks. \
The related FixParts utility fixes some common problems \
on Master Boot Record (MBR) disks.
homepage http://www.rodsbooks.com/gdisk/
master_sites sourceforge:project/gptfdisk/gptfdisk/${version}
patchfiles patch-Makefile.mac.diff
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile.mac
depends_lib port:ncurses \
build.args -f Makefile.mac \
CC="${configure.cc} ${configure.cflags}" \
CXX="${configure.cxx} ${configure.cxxflags}" \
FATBINFLAGS="[get_canonical_archflags]"
xinstall -m 0755 -W ${worksrcpath} cgdisk fixparts gdisk sgdisk ${destroot}${prefix}/bin
xinstall -m 0755 -d ${destroot}${prefix}/share/man/man8
xinstall -m 0644 -W ${worksrcpath} cgdisk.8 fixparts.8 gdisk.8 sgdisk.8 ${destroot}${prefix}/share/man/man8