Summary: | [MAINTAINER] textproc/asciidoc: update to 8.3.3 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Peter Schuller <peter.schuller> | ||||||
Component: | Individual Port(s) | Assignee: | Dmitry Marakasov <amdmi3> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | ||||||||
Priority: | Normal | ||||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Peter Schuller
2009-01-15 17:20:03 UTC
Responsible Changed From-To: freebsd-ports-bugs->amdmi3 I'll take it. > Synopsis: [MAINTAINER] textproc/asciidoc: update to 8.3.3 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=130589 I've optimized it a bit, what do you think? - INSTALL_* macros may be passed to gmake via environment, no need to use %%FOOBAR%% in the patch and then reinplace. Also name a patch after the file that is actually patched. - Simplify pre-patch. - /usr/bin/env python is pretty legal python shebang, no reason to change it to full python path (or is there?) - no need to fix config directory path in a2x and asciidoc.py, Makefile already does this for us. Please test those changes. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru State Changed From-To: open->feedback Awaiting submitters feedback. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=130589 > > I've optimized it a bit, what do you think? > > - INSTALL_* macros may be passed to gmake via environment, no need to > use %%FOOBAR%% in the patch and then reinplace. Much better, thanks :) > Also name a patch after the file that is actually patched. Thanks, I intended to do this but somehow got the name mixed up. > - Simplify pre-patch. > - /usr/bin/env python is pretty legal python shebang, no reason to > change it to full python path (or is there?) > - no need to fix config directory path in a2x and asciidoc.py, > Makefile already does this for us. Roger. With respect to changing /usr/bin/env python I wasn't sure what would be the preferred way to deal with it. I figured changing it was the safer route since we "control" the Python dependency (i.e., I was not sure whether it was intended that port install Python scripts should pick up Python's that a user may have in this PATH). I'll leave /usr/bin/env:s in the future. In cases where it is hard-coded (such as /bin/bash), should I, when changing by necessity, even *prefer* /usr/bin/env python to ${LOCALBASE}/bin/python? (I now realized PREFIX was wrong anyway and that it should have been LOCALBASE.) > Please test those changes. Tested - works and look good to me. -- / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org * Peter Schuller (peter.schuller@infidyne.com) wrote: > > - Simplify pre-patch. > > - /usr/bin/env python is pretty legal python shebang, no reason to > > change it to full python path (or is there?) > > - no need to fix config directory path in a2x and asciidoc.py, > > Makefile already does this for us. > > Roger. With respect to changing /usr/bin/env python I wasn't sure what > would be the preferred way to deal with it. I figured changing it was > the safer route since we "control" the Python dependency (i.e., I was > not sure whether it was intended that port install Python scripts > should pick up Python's that a user may have in this PATH). > > I'll leave /usr/bin/env:s in the future. In cases where it is > hard-coded (such as /bin/bash), should I, when changing by necessity, > even *prefer* /usr/bin/env python to ${LOCALBASE}/bin/python? Seems like it is actually safer to use full python path, but for some reason /usr/bin/env python is much more common. Neither way is `preferred', the rule of thumb is just to leave it as is and not do unnecessary changes. > (I now realized PREFIX was wrong anyway and that it should have been > LOCALBASE.) Yes, I forgot to mention that. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru State Changed From-To: feedback->open Feedback received State Changed From-To: open->closed Committed, with minor changes. Thanks! amdmi3 2009-01-18 02:20:02 UTC FreeBSD ports repository Modified files: textproc/asciidoc Makefile distinfo pkg-plist Added files: textproc/asciidoc/files patch-Makefile.in Log: - Update to 8.3.3 PR: 130589 Submitted by: Peter Schuller <peter dot schuller at infidyne dot com> (maintainer) Revision Changes Path 1.9 +13 -47 ports/textproc/asciidoc/Makefile 1.8 +3 -3 ports/textproc/asciidoc/distinfo 1.1 +30 -0 ports/textproc/asciidoc/files/patch-Makefile.in (new) 1.5 +12 -2 ports/textproc/asciidoc/pkg-plist _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" |