Commit graph

20 commits

Author SHA1 Message Date
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
wiz
c595076396 All supported python versions in pkgsrc support eggs, so remove
${PLIST.eggfile} from PLISTs and support code from lang/python.
2012-04-08 20:21:41 +00:00
obache
8cee2dcddf * any of compiler languages are not required to build.
* distutils pkg, register egg-info.

Bump PKGREVISION.
2012-01-27 08:30:40 +00:00
obache
e82026dab0 Update py-Optik to 1.5.3.
Based on PR#41674 by Kamel Derouiche.

1.5.3 (23 Jul 2006)
-------------------

  * Port r47026 from Python svn repository: fix unit test so
    it doesn't screw up other tests in the Python test suite.

1.5.2 (22 Jul 2006)
-------------------

  * Minor documentation tweaks.

  * SF bug #1498146: handle Unicode help strings (affects option help,
    description, and epilog).

1.5.1 (19 Apr 2006)
-------------------

  * Fix so the 'merge' script works again (bugs spotted, and mostly
    fixed, by Andrea 'fwyzard' Bocci).

  * SF bug #1145594: add 'destroy()' method to OptionParser so
    applications can explicitly break reference cycles, making life
    easier for Python's garbage collector.

  * SF feature #988126: add 'epilog' attribute to OptionParser
    (and constructor arg): paragraph of text to print after the
    main option help.

  * Corrected French translation (po/optik/fr.po) (Laurent Laporte).

  * Beefed up reference guide.

  * Backported to Python 2.0/2.1 (Giovanni Bajo).

1.5 (6 Dec 2004)
----------------

(All changes first released in Optik 1.5a1 except as noted.)

  * Optik now requires Python 2.2 or later.

  * Add expansion of default values in help text: the string
    "%default" in an option's help string is expanded to str() of
    that option's default value, or "none" if no default value.

  * SF bug #955889: option default values that happen to be strings are
    now processed in the same way as values from the command line; this
    allows generation of nicer help when using custom types.  Can
    be disabled with parser.set_process_default_values(False).

  * SF bug #960515: don't crash when generating help for callback
    options that specify 'type', but not 'dest' or 'metavar'.

  * SF feature #815264: change the default help format for short options
    that take an argument from e.g. "-oARG" to "-o ARG"; add
    set_short_opt_delimiter() and set_long_opt_delimiter() methods to
    HelpFormatter to allow (slight) customization of the formatting.

  * SF patch #736940: internationalize Optik: all built-in user-
    targeted literal strings are passed through gettext.gettext().  Also
    added po/ directory for message catalog and translations, so that
    Optik-based applications have a single place to go for translations
    of Optik's built-in messags.  Include translations for Danish and
    German (thanks to Frederik S. Olesen and Martin v. L
    respectively), and partial translations for French (by me).

  * SF bug #878453 (Python): respect $COLUMNS environment variable for
    wrapping help output.

  * SF feature #964317: allow type objects to specify option types;
    allow "str" as an alias for "string".

  * SF feature #988122: expand "%prog" in the 'description' passed
    to OptionParser, just like in the 'usage' and 'version' strings.
    (This is *not* done in the 'description' passed to OptionGroup.)

  * Added HTML-formatted docs to the source distribution (in addition
    to the reStructuredText source files).

  * Added three new examples: custom_source.py, custom_type.py, and
    no_help.py.

  * Remove the old, broken "ignore" option conflict handler -- was
    only needed for compatibility with Optik 1.1.

  * Move documentation into docs/ directory, and write a script
    (mkpydoc) to automatically convert it to LaTeX for the Python
    standard library manual.  Many documentation improvements.
    (1.5a2)

  * SF #997100: attempt to avoid triggering a FutureWarning in
    __repr__() when using id() with "%x" (1.5a2).

  * SF #1048725: fix typo in Values.__eq__() introduced in 1.5a1.

  * Fix test script so it plays nice when being run with other test
    scripts (as in the Python test suite) (1.5a2).

  * SF patch #870807: allow users to specify integer option arguments
    in hexadecimal, octal, or binary with leading "0x", "0", or "0b"
    (1.5 final).

  * SF feature #1050184: add 'append_const' action (patch by
    Andrea 'fwyzard' Bocci) (1.5 final).

  * Keep going if importing gettext fails (so optparse can be used
    in the Python build process) (1.5 final).


Python 2.3 (29 July 2003)
-------------------------

(A couple of fixes were made in Optik in time for its inclusion in
Python 2.3 as optparse, but I never got around to making a corresponding
bug-fix release of Optik.)

  * Add __all__ to optik package and optparse module (fixes
    SF bug #728563).

  * Fix so the 'prog' attribute of OptionParser (which was
    surreptitiously added in 1.4.1, but undocumented, untested,
    and not working) actually works.


1.4.1 (20 Apr 2003)
-------------------

  * Changed to use the new textwrap module included with Python 2.3.
    Includes a copy of textwrap.py for use with older Python versions.

  * Set __all__ in each of the optik.* modules, to make life easier for
    optik/__init__.py.

  * Rewrote the test suite to use PyUnit, and added some new tests
    that revealed some long-hidden bugs.  Fixed those bugs.
    (Thanks to Johannes Gijsbers for doing all the work!)

  * For versions of Python with builtin True and False values (ie.
    Python 2.2.1 and later), make store_true/store_false use them.

  * Add forwards-compatibility 'optparse' module, so scripts can
    import from 'optparse' and work under base Python 2.3, or
    under older Pythons with Optik 1.4.1 or later installed.
2010-02-04 10:35:28 +00:00
joerg
bacea7cad5 Remove @dirrm entries from PLISTs 2009-06-14 17:48:39 +00:00
joerg
ba171a91fa Add DESTDIR support. 2008-06-12 02:14:13 +00:00
wiz
2f2166a0fb Reset maintainer -- shell@ is inactive. 2007-09-30 17:45:23 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
4a3d2f7ce2 Add RMD160 digests. 2005-02-23 22:24:08 +00:00
recht
4150812b27 add python as category
ok'd a while back at pkgsrcCon by agc and wiz
2004-07-22 09:15:59 +00:00
snj
1f8f80ecff Convert to buildlink3. 2004-04-22 04:34:52 +00:00
jmc
51812310e9 Add USE_BUILDLINK2 so this picks up a proper depend 2003-09-21 09:39:21 +00:00
recht
e914ab3288 hange extension.mk to also install optimized files for distutils packages.
Inspired by FreeBSD "ports".

Fix the PLISTs accordingly.
Also, while at it, remove now obsolete compileall.py calls in post-install
targets and insure that extension.mk is in included before builinlinks of
other Python modules.

Discussed with/ok'ed by drochner@.
2003-09-14 16:43:45 +00:00
martti
e69ab8c365 COMMENT should start with a capital letter. 2003-07-21 16:35:12 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
shell
1a51c0a6e1 Updated to py-Optik-1.4
Changes :
* Factored the help-formatting code out of OptionParser into
  some new classes (HelpFormatter and subclasses) in help.py.  This
  should make it a lot easier to customize how help is formatted.
* Added the notion of "option groups": an OptionParser can now
  contain several option groups, each which contains several options.
  The main purpose of this is to enable sensibly-grouped help output,
  but it opens up all sorts of interesting (and largely untested)
  possibilities for code to throw whole option groups around instead
  of individual options.  Added two new classes: OptionGroup, and
  OptionContainer for code common to OptionParser and OptionGroup.
  (OptionContainer should be invisible to programmers using Optik).
* Added the 'description' attribute and set_description() method to
  both OptionParser and OptionGroup (actually OptionContainer).
  Again, this is to make help output more useful.
* Made it easier for OptionParser subclasses to decide whether
  they should have the standard "help" option, by moving the logic
  from class level to the _populate_option_list() method.
* Added the "choice" option type, which is just a string type
  constrained to a fixed set of values.
* Added method get_default_values() to OptionParser.
* Rewrote how OptionParser recognizes abbreviated long
  options; removed a redundant internal instance attribute.
* Simplify parsing logic in OptionParser a tad by relocating a loop
  and renaming _process_arg() to _process_args().
2002-12-26 15:11:50 +00:00
jlam
e44bf515dc Strip the ".buildlink" from the names of the python application and
extension Makefile fragments, because they really don't have anything to
do with the buildlink[12] frameworks.  Change all the Makefiles that use
application.buildlink.mk and extension.buildlink.mk to use application.mk
and extension.mk instead.
2002-09-21 23:46:45 +00:00
shell
8f2e9fb11d Updated to py-Optik-1.3
- Updated my email address

Changes since Optik-1.2 :

  * Fixed a couple of lurking bugs found by PyChecker.
  * You can now get away with not supplying an option's type,
    no matter the action: Optik now assumes a default type of "string".
  * You can now get away with not supplying an option's destination:
    Optik now derives a default destination from the first long option,
    or the first short option if no long options were given.  Eg. an
    option string "--foo-bar" has the default destination 'foo_bar'.
  * Refactored both Option's and OptionParser's constructors to
    make life easier for people extending Optik.
  * Added the "examples/" subdirectory -- this is a repository of
    examples of extending and using Optik; the goal is to provide
    canonical implementations of various features that I don't want to
    add to Optik proper, but that are occasionally requested.  (Also,
    this gives me a good place to test how Optik's extensibility.)
  * Added support for long and complex option types, mainly for
    completeness (patch by Matthew Mueller).
  * Added make_option() as an alias for the Option constructor, because
    someday there might be many Option classes (in which case
    make_option() will become a factory function).
  * Added the examples/ directory to the source distribution -- this
    demonstrates various ways to extend Optik.
2002-06-10 02:29:35 +00:00
drochner
0dd0a5d492 initial import of py-Optik-1.2, a command line parsing library for Python,
submitted by Shell Hung per PR pkg/14786
2002-01-29 16:17:34 +00:00