Commits

Dan Villiom Podlaski Christiansen committed b88568b

perforce: upgrade to 2014.1

Comments (0)

Files changed (3)

-perforce 427
-variants {server universal} portdir devel/perforce description {Fast source code management system} homepage http://www.perforce.com/ epoch 0 platforms darwin name perforce long_description {Perforce is a commercial revision control system that can be used gratis for developing free software. (see the WWW page for details).} license unknown maintainers gmail.com:rambiusparkisanius categories devel version 2010.1 revision 0
+perforce 419
+variants server portdir devel/perforce description {Fast source code management system} homepage http://www.perforce.com/ epoch 0 platforms darwin name perforce license Restrictive maintainers gmail.com:rambiusparkisanius long_description {Perforce is a commercial revision control system that can be used gratis for developing free software. (see the WWW page for details).} categories devel version 2014.1 revision 0
 py25-discover 513
 variants universal portdir python/py25-discover description {Test discovery for unittest backported from Python 2.7} homepage http://pypi.python.org/pypi/discover epoch 0 platforms darwin depends_lib port:python25 name py25-discover maintainers {openmaintainer danchr@gmail.com} license unknown long_description {The test discovery mechanism and load_tests protocol for unittest backported from Python 2.7 to work with Python 2.4 or later (including Python 3).} version 0.3.1 categories {python devel} revision 0
 py26-discover 513
 perforce 0
-py25-discover 440
-py26-discover 971
-py31-discover 1502
-python_select 2007
-synergy 2502
-mod_auth_pubtkt 3074
-mod_auth_tkt 3776
-mod_wsgi25 4871
-mod_wsgi26 5560
+py25-discover 432
+py26-discover 963
+py31-discover 1494
+python_select 1999
+synergy 2494
+mod_auth_pubtkt 3066
+mod_auth_tkt 3768
+mod_wsgi25 4863
+mod_wsgi26 5552

devel/perforce/Portfile

 PortSystem              1.0
 
 name                    perforce
-version                 2010.1
+version                 2014.1
 categories              devel
 platforms               darwin
 maintainers             gmail.com:rambiusparkisanius
                         that can be used gratis for developing free \
                         software. (see the WWW page for details).
 
+license                 Restrictive
+
+set dist_base           http://www.perforce.com/downloads/perforce
+set short_version       [string range ${version} 2 end]
+
 homepage                http://www.perforce.com/
-master_sites            http://www.perforce.com/downloads/perforce/r[string range ${version} 2 end]/bin.darwin80u/:prog \
-                        http://www.perforce.com/perforce/doc.052/man/:man
+master_sites            ${dist_base}/r01.1/doc/man/:man
 
 dist_subdir             ${name}/${version}
 worksrcdir              ${name}
 
-distfiles               p4:prog p4.1:man p4d:prog p4d.1:man
-
-checksums               p4      md5     4170d202a4bda079e334c7dc5c37c417 \
-                                sha1    c666bd19c6de7a1b7283c14c2f0cf8486c56c516 \
-                                rmd160  5b3fc0fa7cab9d4fcfd8a2e0675379d2a4cceb60 \
-                        p4.1    md5     e5cada2f402e1e016be7999fdc49035d \
-                                sha1    f0740627c5232e2eb72a278fd62d5764b7fcbdbb \
-                                rmd160  c32ac846dfa8110fadba131ca4c7a3782cf1c180 \
-                        p4d     md5     dd2f6de1b1a57a70838379d425606896 \
-                                sha1    f26b2b1d2ff1437b343c9bd590f72a0c00846567 \
-                                rmd160  7957d8db3b6a2ec5e85fc291a03f746a15ea6b60 \
-                        p4d.1   md5     1aa86f28ba0698266bf1dcaded3e4106 \
-                                sha1    0383e5eb515ff1a4ecd6fb148aa544a49e68eb59 \
-                                rmd160  913efbe9b299030a143e3c6a1fbf672ec526d7b7
+distfiles               p4:prog p4.1:man
 
 extract.mkdir           yes
 extract {
 
 destroot {
     xinstall -W ${worksrcpath} p4 ${destroot}${prefix}/bin
-    xinstall -W ${worksrcpath} p4d ${destroot}${prefix}/sbin
     xinstall -W ${worksrcpath} -m 644 p4.1 ${destroot}${prefix}/share/man/man1
-    xinstall -W ${worksrcpath} -m 644 p4d.1 ${destroot}${prefix}/share/man/man8
+
+    if {[variant_isset server]} {
+        xinstall -W ${worksrcpath} p4d ${destroot}${prefix}/sbin
+        xinstall -W ${worksrcpath} -m 644 p4d.1 ${destroot}${prefix}/share/man/man8
+    }
 }
 
 variant server {
+    distfiles-append p4d:prog p4d.1:man
+
     startupitem.create  yes
     startupitem.start   "su -c ${prefix}/sbin/p4d -d -r ${prefix}/share/perforce/depot -L ${prefix}/share/perforce/log"
-    
+
     post-destroot {
         addgroup perforce
         set gid [existsgroup perforce]
     }
 }
 
-supported_archs             i386 ppc x86_64
-configure.universal_archs   i386 ppc x86_64
-default_variants            +universal
-variant_set                 universal
-variant universal {}
+if {${build_arch} eq "x86_64" && ${os.platform} eq "darwin"} {
+    master_sites-append ${dist_base}/r${short_version}/bin.darwin90x86_64/:prog
+
+    checksums       p4 \
+                        rmd160  d4d63f03f71ac0edb8e5e8567c061d718b6948ca \
+                        sha256  3943211cdf05306e9939b0b4049e592cb2255be319e80462841446269c7dabc9 \
+                    p4.1 \
+                        rmd160  1887e6b3fd26d4e19710d315e77750a7c62c52b3 \
+                        sha256  b7f009ea72b6e9e716c59e377155b9016a918066ce0709502c9bf6e50f3fc39f \
+                    p4d \
+                        rmd160  0a6baf81d3a64cbac67df2cf75b73446c41917b5 \
+                        sha256  5568fb3425b2000f2b0e77508a05faa394d478c46f8279cddf14f3a7727f942d \
+                    p4d.1 \
+                        rmd160  fb65b22e4fa63b785dc0da5a0b8cd872895182c5 \
+                        sha256  dfc5eacb1c0402e6d0011b771af01df08b2372ed425aa559bb9e05f68fefb8a9
+
+} elseif {${build_arch} eq "i386" && ${os.platform} eq "darwin"} {
+    master_sites-append ${dist_base}/r${short_version}/bin.darwin90x86/:prog
+
+    checksums       p4 \
+                        rmd160  7ce4141fdfafeaa1cca900413f0da3c090871b5f \
+                        sha256  b450dc2b76d008dfa616dd995c0148ff9fd3c9b5ebe8a2778860e9029bdca7c9 \
+                    p4.1 \
+                        rmd160  1887e6b3fd26d4e19710d315e77750a7c62c52b3 \
+                        sha256  b7f009ea72b6e9e716c59e377155b9016a918066ce0709502c9bf6e50f3fc39f \
+                    p4d \
+                        rmd160  0a6baf81d3a64cbac67df2cf75b73446c41917b5 \
+                        sha256  5568fb3425b2000f2b0e77508a05faa394d478c46f8279cddf14f3a7727f942d \
+                    p4d.1 \
+                        rmd160  fb65b22e4fa63b785dc0da5a0b8cd872895182c5 \
+                        sha256  dfc5eacb1c0402e6d0011b771af01df08b2372ed425aa559bb9e05f68fefb8a9
+}
+
+supported_archs             i386 x86_64
+universal_variant           no
+
+livecheck.url               http://www.perforce.com/downloads/Perforce/Customer
+livecheck.regex             {\\/r([\d]*.[\d])\\/bin.darwin.[\w]*\\/p4\M}
+livecheck.version           ${short_version}