Opened 8 years ago

Closed 8 years ago

#52870 closed submission (fixed)

shairport-sync @2.8.6_0: submission

Reported by: ale275 (Alessandro Gritti) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: shairport-sync

Description

Submission of shairport-sync Portfile

Attachments (1)

Portfile (1.5 KB) - added by ale275 (Alessandro Gritti) 8 years ago.
v3 - more fixes

Download all attachments as: .zip

Change History (8)

comment:1 Changed 8 years ago by neverpanic (Clemens Lang)

A couple of comments:

  • For ports from GitHub, use PortGroup github 1.0 and call github.setup. In your case, the correct line would be github.setup mikebrady shairport-sync 2.8.6. That automatically sets version, homepage, fetch.type, git.url and git.branch properly, so you should remove those. It also automatically uses a tarball download, which allows better caching on our mirror infrastructure.
  • The maintainer field does not (yet) accept GitHub usernames, so make this an email address of yours in the obfuscated domain.tld:localpart format. Putting ale275 there will make MacPorts think your email address is ale275@macports.org.
  • Please decide whether you want to mark the port with the openmaintainer policy; see https://guide.macports.org/#project.update-policies.nonmaintainer for an explanation. We don't mind either way, but want it to be a conscious decision, not a silent default.
  • Dependencies on openssl should be written path:lib/libssl.dylib:openssl so that libressl can satisfy them, unless you know the port won't build with libressl.
  • configure.pre_args already contains --prefix=${prefix}, so can just remove it from configure.args.
  • We are trying to get rid of no_* variants and instead prefer positive variants that are enabled by default, e.g.
    variant metadata description {Enable metadata output} {
      configure.args-append --with-metadata
    }
    default_variants +metadata
    

comment:2 Changed 8 years ago by ctreleaven (Craig Treleaven)

Also, typically, pkgconfig, autoconf, and automake are only needed at build time and therefore specified with depends_build rather than depends_lib.

comment:3 Changed 8 years ago by ale275 (Alessandro Gritti)

Thank you for the suggestions neverpanic this is my first macport. It should be ok now

comment:4 Changed 8 years ago by neverpanic (Clemens Lang)

You can remove the name and version fields, github.setup sets them for you.

Your current +metadata variant does not change how the port is built, because --with-metadata is already in the default configure.args.

comment:5 Changed 8 years ago by neverpanic (Clemens Lang)

The license field is wrong, too. Looking through the source code, it should be license MIT BSD ISC.

Changed 8 years ago by ale275 (Alessandro Gritti)

Attachment: Portfile added

v3 - more fixes

comment:6 Changed 8 years ago by ale275 (Alessandro Gritti)

done, sorry for the stupid mistakes

comment:7 Changed 8 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

In 62fd8da4/macports-ports:

shairport-sync: new port

An AirPlay audio player for multi-room audio.

Submission by maintainer, commited with the following changes:

  • Removed $Id$ line, added standard modeline
  • Removed configuration file and added a post-activate block to create it if it does not exist to avoid overriding users' configurations on update.

Closes: #52870

Note: See TracTickets for help on using tickets.