[MacPorts] #33325: Port request- shairport
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 2.0.3 Keywords: shairport | Port: --------------------------------+------------------------------------------- I would like to request a port of Shairport, the Airport Express RAOP server clone. A C-language version which appears to use Bonjour services of Mac OS X and the MacPorts port of libao is available at https://github.com/albertz/shairport I would attempt a port myself, but am not clear how to handle the sources coming from github. -- Ticket URL: <https://trac.macports.org/ticket/33325> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * keywords: shairport => * version: 2.0.3 => * port: => shairport * milestone: MacPorts Future => -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by ryandesign@…): The github portgroup takes care of most/all of the details of that for you. The github-1.0.tcl portgroup file itself is its only documentation, at this point. -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by jruschme@…): Attaching a first cut at portfile and makefile patch. -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by mk@…): Hardcoding the prefix is not recommended since users might have a different prefix. Please be aware that users might have different prefixes then /opt/local for their installations. Therefore you should use the "reinplace" command {{{ reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile }}} in your portfile to manipulate the path properly. See section "5.6 Tcl extensions" for more details. -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by mk@…): BTW, the line ".PTHONY: all clean install" in that Makefile looks a little phony to me! ;-) -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by mk@…): I see, has been fixed in [https://github.com/albertz/shairport/commit/be145fa704b628c990bc4aa19800816f00512ccc]! -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by mk@…): Did you successfully test your port file from above, or is it just 1st try? I can't even download the tarball using it... -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by jruschme@…): Odd, I actually did test it on a Pismo running 2.0.3 under Tiger. And it did install successfully. (Don't ask about the first test run... not a pretty sight.) I'll have to look at the 'reinplace' change. This is my first port, so I still have a lot of learning to do. -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by deric@…): Attached my stab at this, was some time since I made a Portfile from scratch but it works and passes lint. I had to recompile perl5.12 (sudo port -n upgrade --force perl5.12) because the compiler path changed with Xcode 4.3 and that seems to have been hard coded somewhere for perl. Two points I'm uncertain on: 1. Do we want to depend on avahi as well? "Can't exec "avahi-publish- service": No such file or directory at /opt/local/bin/shairport.pl line 274." but on Macs it falls back to the system supplied Bonjour and that works fine. 2. p5-libwww-perl is kind of heavyweight but I couldn't find a separate port for HTTP::Request. I'm not that well versed in CPAN modules but there might be an more lightweight approach. INSTALL.md lists: - HTTP::Request - HTTP::Message - Crypt::OpenSSL::RSA - IO::Socket::INET6 ... as CPAN dependencies -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by mk@…): '''Deric, your portfile worked for me now!''' I saw you removed this line from j's original: {{{ github.tarball_from downloads }}} ... which actually made it work on my end. :-) Deric, I see that you added dependencies... Looks like you've got more interest in this port, so I am not going to test this port any further, especially because I am not that into iTunes streaming... -- Ticket URL: <https://trac.macports.org/ticket/33325#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33325: Port request- shairport --------------------------------+------------------------------------------- Reporter: jruschme@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: shairport --------------------------------+------------------------------------------- Comment(by mk@…): Replying to [comment:9 jruschme@…]:
... And it did install successfully. (Don't ask about the first test run... not a pretty sight.)
I see. Might be working for you, but in my case it wouldn't if I wanted to install your port on one of my parallel macports installations, which have different prefixes like /opt/macports-test or /opt/clean-slate... :-)
I'll have to look at the 'reinplace' change. This is my first port, so I still have a lot of learning to do. Deric's update implements that change now. :-)
-- Ticket URL: <https://trac.macports.org/ticket/33325#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts