Ticket #43462: luasocket-github-PortGroup.diff

File luasocket-github-PortGroup.diff, 2.3 KB (added by Ionic (Mihai Moldovan), 10 years ago)

Use the github PortGroup for luasocket. Don't forget to delete the distfile from the distfiles server/mirror, as the name has changed. Additionally, I've rev-bumped the port, so that users get the new version number.

  • Portfile

    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22# $Id: Portfile 119354 2014-04-23 15:45:48Z snc@macports.org $
    33
    4 PortSystem 1.0
     4PortSystem          1.0
     5PortGroup           github 1.0
    56
     7github.setup        diegonehab luasocket 3.0-rc1 v
    68name                lua-luasocket
    7 version             3.0_rc1
    8 revision            0
     9revision            1
    910categories          devel
    1011license             MIT
    1112platforms           darwin
    1213maintainers         gmail.com:emmett.shear
    1314
    14 description         The luasocket library extends lua with tcp, udp, and dns
     15description         The luasocket library extends lua with TCP, UDP, and DNS support
    1516long_description    LuaSocket is a Lua extension library that is composed by two parts: \
    1617                    a C core that provides support for the TCP and UDP transport layers, \
    1718                    and a set of Lua modules that add support for functionality commonly \
     
    1920
    2021homepage            http://www.cs.princeton.edu/~diego/professional/luasocket/
    2122
    22 master_sites        https://github.com/diegonehab/luasocket/archive/
    23 checksums           md5     08bd2f265b244eb4bf5c2c36bf89b759 \
    24                     sha1    aff9122b26c01487c06a32133df78c1506af350f \
    25                     rmd160  27357eee7e52f091609f45a0b0fb7e04e9ea2bd8
    26 distname            "v[regsub {_} $version {-}]"
    27 worksrcdir          "luasocket-[regsub {_} $version {-}]"
     23checksums           md5     24b3532037c30ba3372578d9dbe23d0e \
     24                    sha1    2549ccfa6c4f90e78b3f2db9b99558232f902987 \
     25                    rmd160  4001930542a2eb7a4b3ba5bf90f73346b2a23a71
    2826
    2927depends_lib         port:lua
    3028depends_build       path:bin/pkg-config:pkgconfig
    3129
    32 livecheck.type      regex
    33 livecheck.url       http://luaforge.net/frs/?group_id=23
    34 livecheck.regex     {luasocket-([0-9.]+)\.tar\.gz}
     30# Old luaforge livecheck. For now, use github-livecheck, but maybe luaforge
     31# will be more up to date some day or other.
     32#livecheck.type      regex
     33#livecheck.url       http://luaforge.net/frs/?group_id=23
     34#livecheck.regex     {luasocket-([0-9.]+)\.tar\.gz}
    3535
    3636patchfiles          patch-Makefiles.diff
    3737