# -*- 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 hivex version 1.3.23 revision 2 categories devel license LGPL-2.1 maintainers {makr @mohd-akram} openmaintainer description A self-contained library for reading and writing Windows \ Registry \"hive\" binary files. long_description {*}${description} homepage https://github.com/libguestfs/hivex master_sites https://download.libguestfs.org/hivex checksums rmd160 ed4041d779dd4d31ebab7d42f85fb6a59aadc84e \ sha256 40cf5484f15c94672259fb3b99a90bef6f390e63f37a52a1c06808a2016a6bbd \ size 738076 perl5.default_branch 5.34 perl5.branches ${perl5.default_branch} perl5.create_variants ${perl5.branches} depends_build-append port:pkgconfig depends_lib-append port:libxml2 \ port:readline platform darwin { patchfiles-append patch-lib-makefile.diff } post-patch { if {${perl5.variant} ne {}} { reinplace "s|perl Makefile.PL|${perl5.bin} Makefile.PL|" \ ${worksrcpath}/perl/Makefile.in reinplace "s|#!/usr/bin/env perl|#!${perl5.bin}|" \ ${worksrcpath}/regedit/hivexregedit } } configure.args --disable-silent-rules \ --disable-ocaml \ --disable-python \ --disable-ruby \ --disable-perl if {${perl5.variant} ne {}} { configure.args-replace --disable-perl --enable-perl } # For the perl build # https://github.com/libguestfs/hivex/issues/26 build.args INSTALLDIRS=vendor \ CC=${configure.cc} \ LD=${configure.cc} post-destroot { if {${perl5.variant} ne {}} { delete ${destroot}[perl5.extract_config privlib]/${perl5.arch}/perllocal.pod delete ${destroot}${perl5.archlib}/auto/Win/Hivex/.packlist } }