[146082] trunk/dports/audio

Ryan Schmidt ryandesign at macports.org
Wed Mar 1 05:59:47 UTC 2017


> On Feb 26, 2016, at 08:42, mojca at macports.org wrote:
> 
> Revision
> 146082
> Author
> mojca at macports.org
> Date
> 2016-02-26 06:42:27 -0800 (Fri, 26 Feb 2016)
> Log Message
> 
> audacity: new port (maintainer, closes #47189)
> Added Paths
> 
> 	• trunk/dports/audio/audacity/
> 	• trunk/dports/audio/audacity/Portfile
> 	• trunk/dports/audio/audacity/files/
> 	• trunk/dports/audio/audacity/files/FFmpeg_build_against_ffmpeg.diff
> 	• trunk/dports/audio/audacity/files/add_enGB_translation.diff
> 	• trunk/dports/audio/audacity/files/add_missing_newline.diff
> 	• trunk/dports/audio/audacity/files/buildinfo-clarify-no-gstreamer.diff
> 	• trunk/dports/audio/audacity/files/debian/
> 	• trunk/dports/audio/audacity/files/debian/patches/
> 	• trunk/dports/audio/audacity/files/debian/patches/fix-minsrc-autoreconf.patch
> 	• trunk/dports/audio/audacity/files/debian/patches/workaround-wxwidgets-fit-recovery.patch
> 	• trunk/dports/audio/audacity/files/libvamp-Makefile-for-osx.diff
> 	• trunk/dports/audio/audacity/files/patch-avoid-clang-choke-on-confbase.diff
> 	• trunk/dports/audio/audacity/files/patch-fix-audiounits.diff
> 	• trunk/dports/audio/audacity/files/patch-libnyquist-symbol-visibility.diff
> 	• trunk/dports/audio/audacity/files/patch-more-decent-font-sizes.diff
> 	• trunk/dports/audio/audacity/files/patch-no-rtld_deepbind.diff
> 	• trunk/dports/audio/audacity/files/patch-python.diff
> 	• trunk/dports/audio/audacity/files/patch-vstcontrolosx.diff
> 	• trunk/dports/audio/audacity/files/portaudio-no-universal-build.diff
> 	• trunk/dports/audio/audacity/files/src-Makefile-for-osx.diff
> Diff
> 
> Added: trunk/dports/audio/audacity/Portfile (0 => 146082)
> 
> --- trunk/dports/audio/audacity/Portfile	                        (rev 0)
> +++ trunk/dports/audio/audacity/Portfile	2016-02-26 14:42:27 UTC (rev 146082)
> 
> @@ -0,0 +1,193 @@
> 
> +# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
> +# kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;
> +
> +PortSystem          1.0
> +PortGroup           wxWidgets 1.0
> +
> +name                audacity
> +version             2.1.2
> +
> +# use the release tarball from github because it contains all required external libs
> +# incl. those not in MacPorts.
> +PortGroup           github 1.0
> +github.setup        audacity audacity ${version} Audacity-
> +github.tarball_from releases
> +master_sites        https://github.com/audacity/audacity/archive/
> 
> +distname            Audacity-${version}
> +checksums           rmd160  4e0c508b8edd24935a235c0b1a636c4ef1ae59a9 \
> +                    sha256  90007b50cdc3885607b1afef2f158777a61c1658e869a88ec4d98c59c133f9bd
> +
> +post-extract {
> +    file rename ${workpath}/audacity-Audacity-${version} ${workpath}/${distname}
> +}

But you're not using a release tarball. You're telling MacPorts to use a release tarball ("github.tarball_from releases"), then on the next line telling MacPorts not to do that by overriding the master_sites. You shouldn't need to do that, nor should you need to rename a directory in post-extract. Consult the documentation in the comments at the top of the github portgroup for proper usage of this portgroup.




More information about the macports-dev mailing list