Ticket #43010: patch-ossp-uuid-Portfile.diff

File patch-ossp-uuid-Portfile.diff, 2.4 KB (added by jul_bsd@…, 10 years ago)
  • devel/ossp-uuid/Portfile

    diff -urN _orig/devel/ossp-uuid/Portfile devel/ossp-uuid/Portfile
    old new  
    55
    66name                    ossp-uuid
    77version                 1.6.2
    8 revision                1
     8revision                2
    99categories              devel
    1010license                 MIT
    1111platforms               darwin
     
    2727                --without-pgsql \
    2828                --includedir=${prefix}/include/ossp
    2929
     30default_variants +perl5_16
     31
    3032if {[variant_isset universal]} {
    3133    if { ${os.arch} eq "i386" } {
    3234        if { ${os.major} >= 10 } {
     
    6062    file rename -force ${destroot}${prefix}/share/man/man1/uuid-config.1 ${destroot}${prefix}/share/man/man1/ossp-uuid-config.1
    6163}
    6264
     65variant perl5_12 {
     66        depends_build-append   port:perl5.12
     67        configure.args-delete   --without-perl
     68        configure.args-append   --with-perl --with-perl-compat
     69        configure.env-append   PERL=${prefix}/bin/perl5.12
     70        patchfiles-append      patch-uuid-uuid.h.in.diff
     71}
     72
     73variant perl5_14 {
     74        depends_build-append   port:perl5.14
     75        configure.args-delete   --without-perl
     76        configure.args-append   --with-perl --with-perl-compat
     77        configure.env-append   PERL=${prefix}/bin/perl5.14
     78        patchfiles-append      patch-uuid-uuid.h.in.diff
     79}
     80
     81variant perl5_16 {
     82        depends_build-append   port:perl5.16
     83        configure.args-delete   --without-perl
     84        configure.args-append   --with-perl --with-perl-compat
     85        configure.env-append   PERL=${prefix}/bin/perl5.16
     86        patchfiles-append      patch-uuid-uuid.h.in.diff
     87}
     88
     89variant perl5_18 {
     90        depends_build-append   port:perl5.18
     91        configure.args-delete   --without-perl
     92        configure.args-append   --with-perl --with-perl-compat
     93        configure.env-append   PERL=${prefix}/bin/perl5.18
     94        patchfiles-append      patch-uuid-uuid.h.in.diff
     95}
     96
    6397test.run                yes
    6498test.target             check
    6599
  • devel/ossp-uuid/files/patch-uuid-uuid.h.in.diff

    diff -urN _orig/devel/ossp-uuid/files/patch-uuid-uuid.h.in.diff devel/ossp-uuid/files/patch-uuid-uuid.h.in.diff
    old new  
     1--- uuid.h.in.orig      2014-03-18 10:48:05.000000000 -0400
     2+++ uuid.h.in   2014-03-18 10:48:18.000000000 -0400
     3@@ -29,6 +29,8 @@
     4 
     5 #ifndef __UUID_H__
     6 #define __UUID_H__
     7+#define _UUID_UUID_H
     8+#define _XOPEN_SOURCE
     9 
     10 /* workaround conflicts with system headers */
     11 #define uuid_t       __vendor_uuid_t