# -*- 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 # $Id$ PortSystem 1.0 name libpwquality version 1.2.4 license LGPL-2.1+ categories devel maintainers nomaintainer description A library for password quality checking and \ the generation of random passwords that \ pass the checks. long_description ${description} platforms darwin homepage https://fedorahosted.org/${name}/ master_sites https://fedorahosted.org/releases/l/i/${name}/ use_bzip2 yes checksums rmd160 be197dccb5b1ea4592a7498c9198d65f65999581 \ sha256 9ad67be364a66dc8b334a473c77d9f531137ee0e9d85d81f567f410a375857c7 depends_build port:pkgconfig depends_lib port:gettext \ port:libiconv \ port:cracklib patchfiles patch-src-pam_pwquality.c.diff configure.ldflags-append \ -lintl configure.args --with-securedir=/usr/lib/pam \ --with-sconfigdir=/etc/security # installs PAM modules in /usr/lib/pam destroot.violate_mtree yes variant python26 conflicts python27 description {Use python 2.6} { set python_ver 2.6 depends_lib-append port:python26 configure.python ${prefix}/bin/python${python_ver} set python_prefix ${frameworks_dir}/Python.framework/Versions/${python_ver} set python_site_path ${python_prefix}/lib/python${python_ver}/site-packages configure.args-append --with-python-rev=${python_ver} \ --with-pythonsitedir=${python_site_path} } variant python27 conflicts python26 description {Use python 2.7} { set python_ver 2.7 depends_lib-append port:python27 configure.python ${prefix}/bin/python${python_ver} set python_prefix ${frameworks_dir}/Python.framework/Versions/${python_ver} set python_site_path ${python_prefix}/lib/python${python_ver}/site-packages configure.args-append --with-python-rev=${python_ver} \ --with-pythonsitedir=${python_site_path} } if {![variant_isset python26]} { default_variants +python27 } post-patch { reinplace "s|python setup.py|${configure.python} setup.py|g" \ ${worksrcpath}/python/Makefile.am \ ${worksrcpath}/python/Makefile.in } platform darwin { if {${os.major} < 10} { configure.args-append --disable-pam } } livecheck.type regex livecheck.url ${master_sites} livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"