New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shards: new port, version 0.8.1-devel #2101
Conversation
www/shards/Portfile
Outdated
depends_lib port:crystal | ||
|
||
checksums rmd160 dc60ef24d2e9e812138e042659c6f1599c68a312 \ | ||
sha256 d4a56101262ae9a9ce4352f534d532941dc2a2429e67fc263460d682eba088ff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the size
parameter at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can add the size
. How is the size specified and can you explain the reasoning for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a new parameter that is not well documented yet. But it is being added to all ports as we move forward. Knowing the file size acts as a sanity check and also allows port to provide feedback while downloading such as telling the user how much data is left to download.
www/shards/Portfile
Outdated
PortGroup github 1.0 | ||
|
||
name shards | ||
version 0.8.1-devel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these two lines because the GitHub portgroup already sets them to these values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do and thanks for the clarification.
www/shards/Portfile
Outdated
|
||
github.setup crystal-lang shards 0.8.1-devel v | ||
|
||
epoch 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the epoch because it is only added if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do and thanks for the clarification.
www/shards/Portfile
Outdated
long_description Shards is a dependency manager for the Crystal Programming Language. | ||
|
||
homepage https://github.com/crystal-lang/shards | ||
master_sites https://github.com/conradwt/shards/archive/v${github.version} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines can also be removed.
www/shards/Portfile
Outdated
platforms darwin | ||
supported_archs noarch | ||
license Apache-2 | ||
maintainers {@conradwt gmail.com:conradwt} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can openmaintainer be added here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can add openmaintainer
. Can you explain the reasoning for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is normal practice for ports maintained by non-committers to be openmaintainer so that committers can make minor fixes without waiting for approval. Most often this means we can increase the revision as needed when a dependency gets updated and it affects your port.
I'm not sure why all of my comments didn't show up the first time. |
Travis Build #2773 Errored. Lint results
|
3d3dc0d
to
d31a165
Compare
@mf2k I have updated the Portfile with the requested changes and thanks for taking the time to review it. |
Travis Build #2775 Errored. Lint results
|
Travis Build #2776 Errored. Lint results
|
62f8391
to
3441736
Compare
@conradwt You might need to check that your new commit was rebased properly. It looks as if any MacPorts' commits from the past day got squashed into your commit, so now your commit is trying to update a bunch of unrelated files. |
Travis Build #2779 Errored. Lint results
|
Travis Build #2780 Errored. Lint results
|
Travis Build #2781 Errored. Lint results
|
0797d02
to
ecfdcc4
Compare
Travis Build #2782 Errored. Lint results
|
ecfdcc4
to
3d049cd
Compare
Travis Build #2783 Errored. Lint results
|
Your commit message format isn't per our standards. Try |
3d049cd
to
3470ddb
Compare
Travis Build #2792 Errored. Lint results
|
www/shards/Portfile
Outdated
|
||
categories www | ||
platforms darwin | ||
supported_archs noarch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it truly the case that this port installs no architecture specific files at all?
www/shards/Portfile
Outdated
supported_archs noarch | ||
license Apache-2 | ||
maintainers {@conradwt gmail.com:conradwt} \ | ||
openmaintainer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally these should be on the same line. It makes grepping easier.
www/shards/Portfile
Outdated
|
||
destroot.args PREFIX=${prefix} | ||
|
||
test.run no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you disabling tests for a specific reason?
Made a few more comments. Sorry this is taking so long, @conradwt, we'll try to merge it expeditiously once it's all clean. |
875d840
to
b7420f9
Compare
@pmetzger I have updated the Portfile based on you most recent comments. Thanks again for the feedback. |
Travis Build #2798 Errored. Lint results
|
Travis Build #2799 Errored. Lint results
|
b7420f9
to
664c813
Compare
Travis Build #2800 Errored. Lint results
|
Merged! Sorry for all the delays, @conradwt! |
|
||
github.setup crystal-lang shards 0.8.1-devel v | ||
|
||
categories www |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, I only just realized, is this actually www specific? If not, maybe it belongs in another category?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This port is applicable to Crystal Programming Language and its web development framework called Amber
. Next, this port would be in similar categories as the rb-bundler
port. Thus, it would it maybe should be something like crystal, www, devel
. Would this be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, yes, though we don't yet have a crystal
category. That said, if we get enough crystal code, one would be appropriate. Certainly devel
would be a good addition. You should feel free to request that in a PR.
This seems like it should belong solely in |
Yah, it does make some sense for it to just be |
@pmetzger Where would one find the instructions for crafting a PR for moving a port from one category to another? |
There's nothing to it. Just do a "git mv" on a branch, and also change the category line. It's that easy. |
Description
Shards is a dependency manager for the Crystal Programming Language.
Type(s)
Tested on
macOS 10.14 18A314h
Xcode 10.0 10L177m
Verification
port lint
?sudo port test
?sudo port -vst install
?