Page MenuHomeFreeBSD

new port: x11/urxvt-font-size
ClosedPublic

Authored by dch on Sep 22 2017, 2:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 5:08 AM
Unknown Object (File)
Wed, May 8, 5:08 AM
Unknown Object (File)
Wed, May 8, 5:08 AM
Unknown Object (File)
Wed, May 8, 5:08 AM
Unknown Object (File)
Wed, May 8, 5:08 AM
Unknown Object (File)
Wed, May 8, 5:08 AM
Unknown Object (File)
Wed, May 8, 1:40 AM
Unknown Object (File)
Wed, May 8, 1:40 AM
Subscribers

Details

Summary

perl extension for rxvt-unicode terminal emulator to change font size on the fly

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

prune extraneous blank lines in pkg-message

x11/urxvt-font-size/Makefile
4 ↗(On Diff #33324)

git describe --tags b9a3c08 says v1.1-14-gb9a3c08, so I think you want

DISTVERSIONPREFIX=v
DISTVERSION= 1.1-14
DISTVERSIONSUFFIX= -gb9a3c08

and you can remove GH_TAGNAME below.

26–28 ↗(On Diff #33324)

Do you need to loop here? It's only installing one file.

x11/urxvt-font-size/Makefile
14 ↗(On Diff #33324)

NO_ARCH= yes as well

x11/urxvt-font-size/Makefile
12 ↗(On Diff #33324)
​RUN_DEPENDS= urxvt:x11/rxvt-unicode
18 ↗(On Diff #33324)

To use PORTDOCS, you need to add OPTIONS_DEFINE=DOCS.

22 ↗(On Diff #33324)

Why += ?

x11/urxvt-font-size/Makefile
22 ↗(On Diff #33324)

dch, you can verify the += isn't necessary with make -VPLIST_FILES.

dch marked 7 inline comments as done.Oct 6 2017, 6:04 PM
dch added inline comments.
x11/urxvt-font-size/Makefile
22 ↗(On Diff #33324)

no good reason - thanks Mat!

incorporate requested changes

  • use new upstream git tag
  • drop loop
  • use NO_ARCH
  • fix RUN_DEPENDS
  • fix PORTDOCS
  • pass portlint -AC brutal feedback
  • simplify plist
  • waiting on poudriere all the things
dch marked an inline comment as done.Oct 6 2017, 6:28 PM

I'd like to add a link in pkg-message to /usr/local/share/doc/urxvt-font-size/README can I use a substitution here too?

In D12463#261726, @dch wrote:

I'd like to add a link in pkg-message to /usr/local/share/doc/urxvt-font-size/README can I use a substitution here too?

Yes. You need to move pkg-message to files/pkg-message.in and add SUB_FILES=pkg-message. Then inside pkg_message.in, you can use something like

%%DOCSDIR%%/README

Section 8.5. of the Porter's Handbook has a good description.

x11/urxvt-font-size/Makefile
19 ↗(On Diff #33768)

Nit-picking: It looks like a tab is missing here. Do you want to add one?

template out pkg-message and clean up Makefile tabs

x11/urxvt-font-size/Makefile
4 ↗(On Diff #33768)

missing tab?

dch marked an inline comment as done.Oct 7 2017, 10:57 AM
dch added inline comments.
x11/urxvt-font-size/Makefile
19 ↗(On Diff #33768)

done - also one for DISTVERSIONPREFIX= too. Is there a rule along the lines of: use vim tabstop=8) and always 1 space even if it looks weird sometimes?

dch marked an inline comment as done.Oct 7 2017, 11:01 AM
dch added inline comments.
x11/urxvt-font-size/Makefile
19 ↗(On Diff #33768)

I see there's tabstop=4 for *.Mk files listed in the handbook but it doesn't seem to be consistent in the ports I've read so far.

jrm added inline comments.
x11/urxvt-font-size/files/pkg-message.in
11 ↗(On Diff #33790)

Maybe you could put %%DOCSDIR%%/README on a new line? The actual path is long.

This revision is now accepted and ready to land.Oct 7 2017, 11:01 AM
x11/urxvt-font-size/Makefile
19 ↗(On Diff #33768)

The rule is put at least one tab after the =, and tabs are 8 spaces wide.
For the "looks wierd", YMMV.

This revision was automatically updated to reflect the committed changes.