source: trunk/dports/devel/ossp-uuid/Portfile

Last change on this file was 154386, checked in by mojca@…, 21 months ago

ossp-uuid: remove the perl5_22 variant (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
RevLine 
[119056]1# -*- 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
[20286]2# $Id: Portfile 154386 2016-10-28 21:34:12Z mojca@macports.org $
[13093]3
[119056]4PortSystem              1.0
[143328]5PortGroup               muniversal 1.0
6PortGroup               perl5 1.0
[13093]7
[119056]8name                    ossp-uuid
9version                 1.6.2
[154386]10revision                8
[119056]11categories              devel
12license                 MIT
13platforms               darwin
14maintainers             nomaintainer
[13093]15
[119056]16description             ISO-C API and CLI for generating Universally Unique Identifiers
17long_description        OSSP uuid is a ISO-C:1999 application programming interface (API) \
18                        and corresponding command line interface (CLI) for the generation \
19                        of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally \
20                        Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of \
21                        version 1 (time and node based), version 3 (name based, MD5), \
22                        version 4 (random number based) and version 5 (name based, SHA-1). \
23                        Additional API bindings are provided for the languages ISO-C++:1998, \
24                        Perl:5 and PHP:4/5. Optional backward compatibility exists for the \
25                        ISO-C DCE-1.1 and Perl Data::UUID APIs.
[13093]26
[119056]27homepage                http://www.ossp.org/pkg/lib/uuid/
28master_sites            ftp://ftp.ossp.org/pkg/lib/uuid/ freebsd
29distname                uuid-${version}
[34581]30
[119056]31checksums               rmd160  f9cd513577557c4f1d7de869f80035b8844b56d7 \
32                        sha256  11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0
[41542]33
[119056]34patchfiles              patch-Makefile.in.diff
[119055]35
[119056]36configure.args          --without-perl \
37                        --without-php \
38                        --without-pgsql \
39                        --includedir=${prefix}/include/ossp
40
[49334]41if {[variant_isset universal]} {
[114328]42    if { ${os.arch} eq "i386" } {
[49334]43        if { ${os.major} >= 10 } {
44            set merger_configure_env(ppc) ac_cv_va_copy=yes
45        }
46        set merger_configure_env(ppc64)   ac_cv_va_copy=yes
47    } else {
48        set merger_configure_env(i386)    ac_cv_va_copy=yes
49        set merger_configure_env(x86_64)  ac_cv_va_copy=yes
50    }
51
52    post-configure {
53        set all_archs ""
54        foreach arch ${universal_archs_to_use} {
55            lappend all_archs -arch ${arch}
56        }
57
58        # When uuid-config is asked about cflags and ldflags, have all architectures give the same answer.
59        foreach arch ${universal_archs_to_use} {
60            reinplace "s|-arch \[a-z0-9_\]*|${all_archs}|"  ${worksrcpath}-${arch}/uuid-config
61            reinplace "s|-m32|${all_archs}|"                ${worksrcpath}-${arch}/uuid-config
62            reinplace "s|-m64|${all_archs}|"                ${worksrcpath}-${arch}/uuid-config
63        }
64    }
65}
66
[100997]67post-destroot {
68    file rename -force ${destroot}${prefix}/share/man/man3/uuid.3 ${destroot}${prefix}/share/man/man3/ossp-uuid.3
69    file rename -force ${destroot}${prefix}/share/man/man1/uuid.1 ${destroot}${prefix}/share/man/man1/ossp-uuid.1
70    file rename -force ${destroot}${prefix}/share/man/man1/uuid-config.1 ${destroot}${prefix}/share/man/man1/ossp-uuid-config.1
71}
72
[143328]73# use perl5 port group to create variants
[152018]74# set default variant to perl5_24 (#52081)
[143328]75# perl support is possibly required by dependents rpm5[234] (unverified)
76
77perl5.conflict_variants yes
[154386]78perl5.branches 5.24
[152015]79perl5.default_branch 5.24
[143328]80perl5.create_variants ${perl5.branches}
81
[154386]82if {[variant_isset perl5_24]} {
[143356]83    configure.perl          ${perl5.bin}
[119056]84    configure.args-delete   --without-perl
85    configure.args-append   --with-perl --with-perl-compat
[143328]86    patchfiles-append       patch-uuid-uuid.h.in.diff
[119055]87}
88
[119056]89test.run                yes
90test.target             check
[41542]91
[119056]92livecheck.type          regex
93livecheck.regex         "Stable Version:\[^\\d]*(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.