# -*- 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 PortSystem 1.0 PortGroup perl5 1.0 name guestfs-tools version 1.52.3 revision 2 categories sysutils license LGPL-2+ GPL-2+ maintainers {makr @mohd-akram} openmaintainer description tools for accessing and modifying VM disk images long_description libguestfs is a set of tools for accessing and modifying \ virtual machine (VM) disk images. You can use this for \ viewing and editing files inside guests, scripting changes \ to VMs, monitoring disk used/free statistics, creating \ guests, P2V, V2V, performing backups, cloning VMs, building \ VMs, formatting disks, resizing disks, and much more. homepage https://libguestfs.org set branch [join [lrange [split ${version} .] 0 1] .] master_sites https://download.libguestfs.org/guestfs-tools/${branch}-stable checksums rmd160 803e029e388bbe034c7ac6d6891172702ef6d8eb \ sha256 d312c2c23e935d4e5bfad51ec21284f57d04f853743295faf95f961c5c668847 \ size 16237597 depends_build path:bin/pkg-config:pkgconfig \ port:bash-completion \ port:gettext \ port:ocaml \ port:ocaml-findlib \ port:xorriso \ port:coreutils depends_lib port:gettext-runtime \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:hivex \ port:jansson \ port:libguestfs \ port:libosinfo \ port:libvirt \ port:libxml2 \ port:ncurses \ port:p${perl5.major}-libintl-perl \ port:pcre2 \ port:xz depends_run port:hwdata patchfiles patch-ocaml-link.diff \ patch-bash-makefile.diff # Update config.guess to recognize aarch64 # Remove when tarball is updated # https://github.com/libguestfs/guestfs-tools/issues/16 depends_patch-append port:autoconf port:automake pre-patch { system -W ${worksrcpath} "automake -af" } post-patch { reinplace "s|#!/usr/bin/env perl|#!${perl5.bin}|" \ ${worksrcpath}/win-reg/virt-win-reg.in reinplace "s|\"/etc\"|\"${prefix}/etc\"|" ${worksrcpath}/builder/paths.ml reinplace "s|\"/usr/share/osinfo\"|\"${prefix}/share/osinfo\"|" \ ${worksrcpath}/builder/osinfo.ml } configure.perl ${perl5.bin}