|
| 1 | +# -*- 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 |
| 2 | + |
| 3 | +PortSystem 1.0 |
| 4 | +PortGroup python 1.0 |
| 5 | + |
| 6 | +name isrcsubmit |
| 7 | +version 2.1.0 |
| 8 | +revision 0 |
| 9 | + |
| 10 | +categories-prepend audio devel |
| 11 | +license GPL-3+ |
| 12 | +platforms {darwin any} |
| 13 | +supported_archs noarch |
| 14 | + |
| 15 | +description Utility to extract ISRCs from audio CDs and submit them to MusicBrainz |
| 16 | +long_description isrcsubmit is a Python script to extract ISRCs from audio CDs \ |
| 17 | + and submit them to MusicBrainz. |
| 18 | + |
| 19 | +homepage http://jonnyjd.github.io/musicbrainz-isrcsubmit/ |
| 20 | +master_sites http://isrcsubmit.jonnyjd.net/downloads/ |
| 21 | + |
| 22 | +maintainers nomaintainer |
| 23 | + |
| 24 | +checksums rmd160 5b7b7e3a8bfd4ff481a5da28fcbb7a8bcd6b8402 \ |
| 25 | + sha256 fe1078e332b09d259b87fb15959a143916bd31b09a37a54917a35cfb0fe6b3d6 \ |
| 26 | + size 50430 |
| 27 | + |
| 28 | +patchfiles-append setup-no-packages.patch \ |
| 29 | + get_real_mac_device-bytes.patch |
| 30 | + |
| 31 | +python.versions 39 310 311 |
| 32 | +python.pep517 no |
| 33 | + |
| 34 | +depends_build-append \ |
| 35 | + port:py${python.version}-setuptools |
| 36 | + |
| 37 | +depends_lib-append port:py${python.version}-discid \ |
| 38 | + port:py${python.version}-musicbrainzngs \ |
| 39 | + port:py${python.version}-keyring |
| 40 | + |
| 41 | +post-destroot { |
| 42 | + # fix shebang |
| 43 | + system -W ${destroot} \ |
| 44 | + "sed -i '' -e '1s;^#!.*;#!${python.bin};' .${python.prefix}/bin/isrcsubmit.py" |
| 45 | + |
| 46 | + # remove .py suffix from installed executable |
| 47 | + move ${destroot}${prefix}/bin/isrcsubmit.py ${destroot}${prefix}/bin/isrcsubmit |
| 48 | + |
| 49 | + set dest_doc ${destroot}${prefix}/share/doc/${subport} |
| 50 | + xinstall -d ${dest_doc} |
| 51 | + xinstall -m 0644 -W ${worksrcpath} \ |
| 52 | + AUTHORS COPYING README.rst \ |
| 53 | + ${dest_doc} |
| 54 | +} |
| 55 | + |
| 56 | +test.run yes |
| 57 | + |
| 58 | +livecheck.url https://jonnyjd.github.io/musicbrainz-isrcsubmit/changes |
| 59 | +livecheck.type regex |
| 60 | +livecheck.regex "Changes in (\[0-9.\]+)" |
0 commit comments