Changeset 98328


Ignore:
Timestamp:
Oct 3, 2012, 1:31:44 AM (12 years ago)
Author:
ryandesign@…
Message:

cgit: update to 0.9.0.3 using git to 1.7.4; ensure we're UsingTheRightCompiler and -arch flags; add universal variant; use the right web user on Leopard and up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/cgit/Portfile

    r98323 r98328  
    55
    66name            cgit
    7 version         0.8.2.1
    8 revision        1
    9 set git-version 1.6.3
     7version         0.9.0.3
     8set git_version 1.7.4
    109categories      www devel
    1110maintainers     sfiera openmaintainer
     
    2120
    2221use_bzip2       yes
    23 set cgit-dist   ${distfiles}
    24 set git-dist    [suffix git-${git-version}]
    25 distfiles       ${cgit-dist}:cgit ${git-dist}:git
     22set cgit_distfile   ${distfiles}
     23set git_distname    git-${git_version}
     24set git_distfile    [suffix ${git_distname}]
     25distfiles       ${cgit_distfile}:cgit ${git_distfile}:git
    2626master_sites    ${homepage}snapshot:cgit \
    2727                http://www.kernel.org/pub/software/scm/git:git
    28 checksums       ${cgit-dist} \
    29                     md5     33e56f0621e53327f89233c7ccb7d8be \
    30                     sha1    1c40de81530a3c0513bc963cc81f14685448f6f9 \
    31                     rmd160  2e83250130aa1d4f087c853567c794b58a24368c \
    32                 ${git-dist} \
    33                     md5     a5e6165506cddd94954277cf81f44b14 \
    34                     sha1    1dab1068d1886828bdb512e9b809bc779de35609 \
    35                     rmd160  b496878b113ae8d13d2eaa1b65e4dd2d8e72834d
     28checksums       ${cgit_distfile} \
     29                    rmd160  a426468889aff48a19849acd01c9660b37cb0c0f \
     30                    sha256  53ccf0c826f91c2184ec29b1b9ab8a6f42e0ef2e6fa9042c3759e2a2dc81baa5 \
     31                ${git_distfile} \
     32                    rmd160  a064d7a5b2d3fae6171ca91a03082eb46d7bb9b7 \
     33                    sha256  8e260b9e5dfb46a35f26e3db450c2dabb4d1df254bfb2820779945a1ecbcef51
    3634
    3735depends_lib     port:git-core \
     
    4139
    4240post-extract {
    43     file delete ${worksrcpath}/git
    44     file rename ${worksrcpath}/../git-${git-version} ${worksrcpath}/git
     41    delete ${worksrcpath}/git
     42    move ${workpath}/${git_distname} ${worksrcpath}/git
    4543}
    4644
     
    4846    file copy ${filespath}/cgit.conf ${worksrcpath}/cgit.conf
    4947    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/cgit.conf
    50     reinplace "s|@GIT_VER@|${git-version}|g" ${worksrcpath}/cgit.conf
     48    reinplace "s|@GIT_VER@|${git_version}|g" ${worksrcpath}/cgit.conf
     49}
     50
     51set user _www
     52set group _www
     53
     54if {${os.platform} == "darwin" && ${os.major} <= 8} {
     55    set user www
     56    set group www
    5157}
    5258
    5359post-destroot {
    5460    xinstall -m 444 ${worksrcpath}/cgitrc.5.txt ${destroot}${prefix}/etc/cgitrc.sample
    55     xinstall -m 700 -o www -g www -d ${destroot}${prefix}/var/cache/cgit
     61    xinstall -m 700 -o ${user} -g ${group} -d ${destroot}${prefix}/var/cache/cgit
    5662    destroot.keepdirs ${destroot}${prefix}/var/cache/cgit
    5763}
    5864
    5965use_configure   no
     66variant universal {}
    6067configure.ldflags-append -liconv
    61 build.env       CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"
    62 destroot.env    CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"
     68
     69build.args      CC="${configure.cc} [get_canonical_archflags cc]"
     70build.env       CFLAGS="${configure.cflags}" \
     71                LDFLAGS="${configure.ldflags}"
     72
     73eval destroot.args ${build.args}
     74eval destroot.env ${build.env}
    6375
    6476livecheck.type  regex
Note: See TracChangeset for help on using the changeset viewer.