#54180 closed enhancement (wontfix)

documentation for new portfile with git HEAD no tarball

Reported by: gaming-hacker (G Alexander) Owned by:
Priority: Normal Milestone:
Component: guide Version:
Keywords: Cc:
Port:

Description (last modified by mf2k (Frank Schima))

the documentation https://guide.macports.org/#development.creating-portfile

is lacking a decent example of how to create a new portfile from a git repo, HEAD, not a released/stable tarball

  1. there is no indication of how to create a sha256 checksum/hash
  2. there is no indication of how to pass CMAKE macro definitions when there is no configure

Change History (4)

comment:1 Changed 22 months ago by gaming-hacker (G Alexander)

forgot to add for item 1. especially if i need to use multiple git commands to pull source from main repo and cherry-pick fromm others or include PRs not merged in master

comment:2 Changed 22 months ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: documentation removed
Type: updateenhancement
Version: 2.4.1

comment:3 Changed 22 months ago by ryandesign (Ryan Schmidt)

We never create ports that fetch from the HEAD of a repository. They should always fetch from a specific repeatable commit. Ports for software that is hosted on github usually want to use the github portgroup. Read the documentation in the comments at the top of that portgroup file.

The guide shows a method for computing checksums.

Ports for software that uses cmake usually want to use the cmake portgroup. You can look at other ports that use that portgroup for help on how to pass "configure flags" to cmake.

Please ask on the macports-dev mailing list if you need help with this or other portfile development topics.

comment:4 Changed 21 months ago by raimue (Rainer Müller)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.