request for port create command, to build a portfile from a URL
Ryan Schmidt
ryandesign at macports.org
Mon Mar 12 07:28:09 UTC 2018
On Mar 9, 2018, at 13:22, Enrico Maria Crisostomo wrote:
> I pushed to GitHub a skeleton of the idea:
>
> https://github.com/emcrisostomo/macports-utils
>
> I've moved what I'm using to a new script to see what the end result looked like. If you want to try it, just grab the release tarball here (if you don't have the Autotools installed):
>
> ./configure && make install
>
> otherwise just clone the repo, bootstrap it and use it:
>
> ./autogen.sh && ./configure && make install
>
> An example:
>
> $ port-gen --url https://github.com/emcrisostomo/semver-utils/releases/download/1.1.3/semver-utils-1.1.3.tar.gz
>
> outputs:
>
> # -*- 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 github 1.0
>
> github.setup emcrisostomo semver-utils 1.1.3
> github.tarball_from releases
>
> categories changeme
> platforms darwin
> license GPL-3
>
> maintainers obfuscated-maintainer-mail \
> openmaintainer
> description Add a short port description here.
> long_description Add a long port description here.
>
> homepage https://github.com/emcrisostomo/semver-utils
>
> checksums md5 e65be62dc9e25af8aa467aa99cde1e00 \
> rmd160 71cf46420315edd8019d6974062033480b5c79a0 \
> sha256 888a688feabc82ce59abc754c63fd2babff5747f0463fb1a3f8fffaf50d5d982 \
> size 514429
>
> livecheck.url ${github.homepage}/releases/latest
The github portgroup takes care of setting the homepage and livecheck for you.
More information about the macports-dev
mailing list