Ticket #43150: perl5.16.3.diff
File perl5.16.3.diff, 2.2 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name perl5.16 7 version 5.16.1 8 revision 3 7 version 5.16.3 9 8 set branch [join [lrange [split ${version} .] 0 1] .] 10 9 categories lang 11 10 license {Artistic-1 GPL} … … 23 22 homepage http://www.perl.org/ 24 23 master_sites http://www.cpan.org/src/5.0/ 25 24 26 checksums rmd160 90effd1105fb0595673b24824c760f2c79c4b317\27 sha256 0704b1421fe50015becd32c8b7ed05843e8b6c188a8c16cb0c11d76986375fd025 checksums rmd160 f25fdd72449156a7cbe989e8bd339fdba1afabc0 \ 26 sha256 bb7bc735e6813b177dcfccd480defcde7eddefa173b5967eac11babd1bfa98e8 28 27 29 28 depends_lib-append port:gdbm 30 29 31 30 patchfiles patch-Configure.diff \ 32 patch-handy.h.stdbool.diff 31 patch-handy.h.stdbool.diff \ 32 patch-perl.h.diff 33 33 34 34 platform darwin { 35 35 patchfiles-append patch-hints_darwin.sh.diff … … 84 84 if {${os.platform} eq "darwin"} { 85 85 set platsuffix "-2level" 86 86 } 87 configure.args-append "-D inc_version_list=\"5.16. 0/${os.platform}-thread-multi${platsuffix} 5.16.0\""87 configure.args-append "-D inc_version_list=\"5.16.1/${os.platform}-thread-multi${platsuffix} 5.16.1 5.16.0/${os.platform}-thread-multi${platsuffix} 5.16.0\"" 88 88 89 89 if {[variant_isset universal]} { 90 90 post-configure { -
files/patch-perl.h.diff
1 --- perl.h.orig 2 +++ perl.h 3 @@ -359,7 +359,11 @@ 4 /* Rats: if dTHR is just blank then the subsequent ";" throws an error */ 5 /* Declaring a *function*, instead of a variable, ensures that we don't rely 6 on being able to suppress "unused" warnings. */ 7 +#ifdef __cplusplus 8 +#define dNOOP (void)0 9 +#else 10 #define dNOOP extern int Perl___notused(void) 11 +#endif 12 13 #ifndef pTHX 14 /* Don't bother defining tTHX and sTHX; using them outside