Opened 14 years ago

Closed 14 years ago

#25749 closed submission (fixed)

mdocml port submission

Reported by: alex_a_bordeaux@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: kristaps@…
Port: mdocml

Description

I currently use mldocml (the groff replacement currently used at OpenBSD, NetBSD, etc.) to generate man pages for some project and would love to see it added to macports.

some remarks wrt. the joined files

  • make install would normally include man pages for roff at it is really a groff-Replacement, but here I only want to install mdocml in addition to the installed GNU roff
  • I am not sure whether $(PREFIX)/share/examples/mandoc is the right place for the example css file
  • I set the PREFIX hard in the Makefile by the diff joined to this post; maybe it would be better to use an environment variable

Attachments (3)

Makefile.diff (900 bytes) - added by alex_a_bordeaux@… 14 years ago.
(quick and a little bit dirty makefile hack)
Portfile.2 (881 bytes) - added by alex_a_bordeaux@… 14 years ago.
Portfile (881 bytes) - added by alex_a_bordeaux@… 14 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

You should set the prefix to "@PREFIX@" in the patch, then in the post-patch phase, use reinplace to replace that with the current value of the ${prefix} variable. (The user might have MacPorts installed in a different place than /opt/local.)

comment:2 Changed 14 years ago by kristaps@…

Hi, a friend pushed me to look at this... First, 1.9.x is really old: please use the newest version unless you want bugs (another is coming out in a few days) (NB, I'm mandoc's author). Second, please ask around on the discuss@ list if you have questions, as all the other downstream maintainers and porters (OpenBSD, NetBSD, FreeBSD, etc.) hang out there. Ideally, I like to accomodate as much as I can for downstream people, so please notify us of any changes...

Thanks!

Changed 14 years ago by alex_a_bordeaux@…

Attachment: Makefile.diff added

(quick and a little bit dirty makefile hack)

Changed 14 years ago by alex_a_bordeaux@…

Attachment: Portfile.2 added

Changed 14 years ago by alex_a_bordeaux@…

Attachment: Portfile added

comment:3 in reply to:  2 Changed 14 years ago by alex_a_bordeaux@…

Replying to kristaps@…:

[...] First, 1.9.x is really old: please use the newest version unless you want bugs [...] ask around on the discuss@ list if you have questions, as all the other downstream maintainers and porters (OpenBSD, NetBSD, FreeBSD, etc.) hang out there.

1.9.x is the version of MacPorts not mldoc ;-) the new Portfile uses version 1.10.5 of mldoc...

thanks for your offer, i will certainly take a look at the solution of the other downstream maintainers asap.

comment:4 in reply to:  1 Changed 14 years ago by alex_a_bordeaux@…

Replying to ryandesign@…:

You should set the prefix to "@PREFIX@" in the patch, [...]

thanks, changed in the new version of the files.

comment:5 Changed 14 years ago by kristaps@…

Cc: kristaps@… added

Cc Me!

comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: mdocml port suggestionmdocml port submission

comment:7 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Thanks, added in r71227 with these changes:

  • reformatted and added modeline
  • "use_configure no" instead of "configure {}"
  • reused ${homepage} variable in master_sites definition
  • renamed patchfile
  • ensured we're UsingTheRightCompiler
  • added support for universal and non-default-build_arch builds
Note: See TracTickets for help on using tickets.