Ticket #20681: Portfile2.diff

File Portfile2.diff, 2.9 KB (added by Markus.Ueberall@…, 15 years ago)

alternate, much cleaner Portfile/patches diff which realises the suggestion to always use "patch.pre_args -p1"

  • lang/php5/Portfile

    old new  
    1313maintainers             ryandesign jwa
    1414homepage                http://www.php.net/
    15 master_sites            php
     15##Currently, the group definition introduced w/ changeset #55557 fails,
     16## because only 'www.php.net/' will work while '<lang-code>.php.net/' will
     17## retrieve an error message in html format
     18#master_sites            php
     19master_sites            http://www.php.net/distributions/
    1620distname                php-${version}
    1721use_bzip2               yes
    1822platforms               darwin freebsd
    1923use_parallel_build      yes
     24set suhosin_patch_ver   ${version}-0.9.8-BETA-1
    2025
    2126description \
     
    2833
    2934checksums \
    30     md5     846760cd655c98dfd86d6d97c3d964b0 \
    31     sha1    934700941d216c453376e3bf24347041cf12c6dc \
    32     rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
     35    ${distname}.tar.bz2 md5     846760cd655c98dfd86d6d97c3d964b0 \
     36    ${distname}.tar.bz2 sha1    934700941d216c453376e3bf24347041cf12c6dc \
     37    ${distname}.tar.bz2 rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44
    3338
    3439depends_build \
     
    4954    port:pcre
    5055
     56patch.pre_args  -p1
    5157patchfiles \
    5258    patch-bind.diff
     
    435441}
    436442
     443variant suhosin description {Add suhosin patch} {
     444    patch_sites-append \
     445        http://download.suhosin.org/
     446    checksums-append \
     447        suhosin-patch-${suhosin_patch_ver}.patch.gz     sha1 8bad461c7b16febc1d2f6bcbf4c8e10428569591 \
     448        suhosin-patch-${suhosin_patch_ver}.patch.gz     md5  62dc36545b86bf86e44ada1fccc17d0a
     449    patchfiles-append \
     450        suhosin-patch-${suhosin_patch_ver}.patch.gz
     451}
     452
    437453test.run                yes
    438454
  • lang/php5/files/patch-bind.diff

    old new  
    1 --- ext/standard/config.m4.orig 2009-01-31 18:05:14.000000000 +0200
    2 +++ ext/standard/config.m4      2009-01-31 18:06:03.000000000 +0200
     1--- dummy-prefix/ext/standard/config.m4.orig    2009-01-31 18:05:14.000000000 +0200
     2+++ dummy-prefix/ext/standard/config.m4 2009-01-31 18:06:03.000000000 +0200
    33@@ -249,10 +249,10 @@
    44 dnl Detect library functions needed by php dns_xxx functions
  • lang/php5/files/patch-ext-pdo_oci-config.m4.diff

    old new  
    11See http://bugs.php.net/bug.php?id=39312.
    22
    3 --- ext/pdo_oci/config.m4.orig  2008-10-22 14:29:24.000000000 -0500
    4 +++ ext/pdo_oci/config.m4       2009-06-13 09:00:04.000000000 -0500
     3--- dummy-prefix/ext/pdo_oci/config.m4.orig     2008-10-22 14:29:24.000000000 -0500
     4+++ dummy-prefix/ext/pdo_oci/config.m4  2009-06-13 09:00:04.000000000 -0500
    55@@ -89,11 +89,11 @@
    66     else