[macports-ports] branch master updated: pingus: new port submission

Lawrence Velázquez larryv at macports.org
Sat Dec 3 21:20:46 CET 2016


> On Dec 3, 2016, at 6:01 AM, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
> 
> tobypeterson pushed a commit to branch master
> in repository macports-ports.
> 
> https://github.com/macports/macports-ports/commit/d9673942b719a31aee1623f64d765e57de401dc5 <https://github.com/macports/macports-ports/commit/d9673942b719a31aee1623f64d765e57de401dc5>
> The following commit(s) were added to refs/heads/master by this push:
>      new d967394  pingus: new port submission
> d967394 is described below
> 
> commit d9673942b719a31aee1623f64d765e57de401dc5
> Author: Ken Cunningham <ken.cunningham.webuse at gmail.com>
> AuthorDate: Fri Dec 2 23:01:06 2016 -0800
> 
>     pingus: new port submission
>     
>     popular lemmings(tm)-like open source game
> ---
>  games/pingus/Portfile | 45 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
> 
> diff --git a/games/pingus/Portfile b/games/pingus/Portfile
> new file mode 100644
> index 0000000..0475eb2
> --- /dev/null
> +++ b/games/pingus/Portfile
> @@ -0,0 +1,45 @@
> +# -*- 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
> +
> +PortSystem          1.0
> +PortGroup           cmake 1.0
> +PortGroup           github 1.0
> +
> +github.setup        pingus pingus d34b61f414ed4f264c22e37c98e1a1185c96eda4
> +version             0.8.0-20161019
> +categories          games
> +platforms           darwin
> +maintainers         gmail.com:ken.cunningham.webuse openmaintainer
> +license             GPL-3
This should be "GPL-3+".

https://github.com/Pingus/pingus/blob/master/src/main.cpp#L4-L7 <https://github.com/Pingus/pingus/blob/master/src/main.cpp#L4-L7>
> +
> +description         A free Lemmings(tm) clone using SDL2.
> +long_description    ${description} It is a puzzle game where the player has to guide a group of penguins to safety.
> +
> +fetch.type          git
> +post-extract {
> +    system -W ${worksrcpath} "git submodule update --init"
> +}
> +
> +depends_lib         port:boost \
> +                    port:libiconv \
> +                    port:libsdl2 \
> +                    port:libsdl2_image \
> +                    port:libsdl2_mixer \
> +                    port:libpng \
> +                    port:jsoncpp
> +
> +configure.ldflags-append "-liconv -framework CoreFoundation"
> +cmake.out_of_source yes
> +
> +configure.args      -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Pingus.app/Contents/MacOS"
> +
> +pre-destroot {
> +    xinstall -d ${destroot}${applications_dir}/Pingus.app/Contents/Resources \
> +                ${destroot}${applications_dir}/Pingus.app/MacOS
> +    file copy ${worksrcpath}/data/images/icons/pingus-icon.icns ${destroot}${applications_dir}/Pingus.app/Contents/Resources/pingus.icns
> +    file copy ${worksrcpath}/Info.plist "${destroot}${applications_dir}/Pingus.app/Contents/Info.plist"
> +}
> +
> +post-destroot {
> +    file copy ${destroot}${applications_dir}/Pingus.app/Contents/MacOS/bin/pingus ${destroot}${applications_dir}/Pingus.app/Contents/MacOS/pingus
We generally prefer the MacPorts-specific "copy" over "file copy".
> +    reinplace "s|\"$@\"||g" ${destroot}${applications_dir}/Pingus.app/Contents/MacOS/pingus
> +}

This is…strange. What exactly are you replacing here?

vq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20161203/60b4e0a0/attachment-0001.html>


More information about the macports-dev mailing list