Opened 14 years ago
Closed 14 years ago
#28956 closed submission (fixed)
TortoiseHg Port Submission
Reported by: | guidolorenz@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | mercurial | Cc: | |
Port: | tortoisehg |
Description
This is a Portfile for TortoiseHg 2.0.2, a PyQt4-based GUI for Mercurial.
Attachments (8)
Change History (14)
Changed 14 years ago by guidolorenz@…
Changed 14 years ago by guidolorenz@…
Attachment: | patch-setup.py.diff added |
---|
comment:1 Changed 14 years ago by shiena.jp@…
Changed 14 years ago by shiena.jp@…
Attachment: | Portfile.2 added |
---|
Changed 14 years ago by shiena.jp@…
Changed 14 years ago by shiena.jp@…
Attachment: | patch-Makefile.diff added |
---|
comment:2 follow-up: 3 Changed 14 years ago by guidolorenz@…
Hi Shiena,
thanks for your input. I had a look at your changes and have a few questions and comments:
- Copying the license file and building the english documentation is a good idea.
- Also building czech and japanese documentation seems a bit too much to me. I'm not sure, though -- is there a MacPorts best practice for dealing with localized documentation?
- Why do you manually create a symlink for thg in ${prefix}/bin? For me, the python26 port group already created this symlink automatically.
- I'm not a big fan of patch files -- instead of patching doc/Makefile, what do you think of calling make like this:
make SPHINXBUILD=sphinx-build-2.6 html
- Why do we need config.py? To me it seemed like the auto-detection mechanisms worked fine. If we want to use a custom config.py, we must replace the hardcoded "/opt/local" by the value of ${prefix}.
Cheers, Guido
comment:3 Changed 14 years ago by shiena.jp@…
Hi Guido
Thank you for seeing my file.
- Copying the license file and building the english documentation is a good idea.
Thank you.
- Also building czech and japanese documentation seems a bit too much to me. I'm not sure, though -- is there a MacPorts best practice for dealing with localized documentation?
There is especially no intention though I did all documents in the build.
- Why do you manually create a symlink for thg in ${prefix}/bin? For me, the python26 port group already created this symlink automatically.
It is my mistake. I misunderstood it while a variety of trying. A symlink need not be made by manually.
- I'm not a big fan of patch files -- instead of patching doc/Makefile, what do you think of calling make like this:
make SPHINXBUILD=sphinx-build-2.6 html
I am this feeling. Your method is good. The method had been forgotten.
- Why do we need config.py? To me it seemed like the auto-detection mechanisms worked fine. If we want to use a custom config.py, we must replace the hardcoded "/opt/local" by the value of ${prefix}.
I explain the content of config.py respectively.
bin_path
This is added to PATH for the hg command. I set for the time being "/opt/local/bin". However, "${prefix}/bin" is better as you say.
license_path
This specifies the text displayed in the license dialog. When path is wrong, it becomes blank.
locale_path
If this passing is correct, it comes to be able to select UI Language of the TortoiseHG Setting dialog. I want to select the mother tongue (Japanese).
icon_path
This specifies passing icon as well as locale_path. However, the Qt library seems to detect the setting of default automatically.
nofork
This is the same as default.
I corrected Portfile and config.py from your questions.
Changed 14 years ago by shiena.jp@…
Attachment: | Portfile.3 added |
---|
Changed 14 years ago by shiena.jp@…
Attachment: | config.2.py added |
---|
comment:4 Changed 14 years ago by guidolorenz@…
Shiena, thanks for the updated Portfile. I changed the version number to 2.0.3, because it has been released in the meantime.
To me, the port seems ready to be committed now.
comment:5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Port: | tortoisehg added |
Status: | new → assigned |
comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Committed in r78450 with some changes:
- removed md5 checksum (we're gradually removing it from MacPorts)
- changed runtime dependencies to library dependencies (e.g. "sudo port build" failed without py26-pyqt4 installed)
- did patching in post-patch and copying extra files in post-extract, instead of both in pre-build
- added "supported_archs noarch" since this port doesn't seem to install any architecture-specific files; removed "universal_variant no" since "supported_archs noarch" implies it
I see 2.0.4 is already available; if you'd like to update to that version, please supply a diff in a new ticket.
I added the config for the locale, the icon, and the copyright. Because it cannot be displayed that it is a config of default. In addition, "/opt/local/bin/thg" and the html document are added.