Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added license and ASDF system.

  • Loading branch information...
commit 5b3fe3f495c091b1304ba9c1f45a78b461e89ce4 1 parent a9d08b5
Krzysztof Drewniak authored June 14, 2011
1  .gitignore
... ...
@@ -0,0 +1 @@
  1
+.project
569  COPYING
... ...
@@ -0,0 +1,569 @@
  1
+Copyright (c) 2000 Franz Incorporated, Berkeley, CA 94704
  2
+
  3
+The concept of the GNU Lesser General Public License version 2.1
  4
+("LGPL") has been adopted to govern the use and distribution of
  5
+above-mentioned application. However, the LGPL uses terminology that
  6
+is more appropriate for a program written in C than one written in
  7
+Lisp. Nevertheless, the LGPL can still be applied to a Lisp program if
  8
+certain clarifications are made. This document details those
  9
+clarifications. Accordingly, the license for the open-source Lisp
  10
+applications consists of this document plus the LGPL. Wherever there
  11
+is a conflict between this document and the LGPL, this document takes
  12
+precedence over the LGPL.
  13
+
  14
+A "Library" in Lisp is a collection of Lisp functions, data and
  15
+foreign modules. The form of the Library can be Lisp source code (for
  16
+processing by an interpreter) or object code (usually the result of
  17
+compilation of source code or built with some other mechanisms).
  18
+Foreign modules are object code in a form that can be linked into a
  19
+Lisp executable. When we speak of functions we do so in the most
  20
+general way to include, in addition, methods and unnamed functions.
  21
+Lisp "data" is also a general term that includes the data structures
  22
+resulting from defining Lisp classes. A Lisp application may include
  23
+the same set of Lisp objects as does a Library, but this does not mean
  24
+that the application is necessarily a "work based on the Library" it
  25
+contains.
  26
+
  27
+The Library consists of everything in the distribution file set before
  28
+any modifications are made to the files. If any of the functions or
  29
+classes in the Library are redefined in other files, then those
  30
+redefinitions ARE considered a work based on the Library. If
  31
+additional methods are added to generic functions in the Library,
  32
+those additional methods are NOT considered a work based on the
  33
+Library. If Library classes are subclassed, these subclasses are NOT
  34
+considered a work based on the Library. If the Library is modified to
  35
+explicitly call other functions that are neither part of Lisp itself
  36
+nor an available add-on module to Lisp, then the functions called by
  37
+the modified Library ARE considered a work based on the Library. The
  38
+goal is to ensure that the Library will compile and run without
  39
+getting undefined function errors.
  40
+
  41
+It is permitted to add proprietary source code to the Library, but it
  42
+must be done in a way such that the Library will still run without
  43
+that proprietary code present. Section 5 of the LGPL distinguishes
  44
+between the case of a library being dynamically linked at runtime and
  45
+one being statically linked at build time. Section 5 of the LGPL
  46
+states that the former results in an executable that is a "work that
  47
+uses the Library." Section 5 of the LGPL states that the latter
  48
+results in one that is a "derivative of the Library", which is
  49
+therefore covered by the LGPL. Since Lisp only offers one choice,
  50
+which is to link the Library into an executable at build time, we
  51
+declare that, for the purpose applying the LGPL to the Library, an
  52
+executable that results from linking a "work that uses the Library"
  53
+with the Library is considered a "work that uses the Library" and is
  54
+therefore NOT covered by the LGPL.
  55
+
  56
+Because of this declaration, section 6 of LGPL is not applicable to
  57
+the Library. However, in connection with each distribution of this
  58
+executable, you must also deliver, in accordance with the terms and
  59
+conditions of the LGPL, the source code of Library (or your derivative
  60
+thereof) that is incorporated into this executable.
  61
+
  62
+
  63
+                  GNU LESSER GENERAL PUBLIC LICENSE Version 2.1,
  64
+                       February 1999
  65
+
  66
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin
  67
+ Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted
  68
+ to copy and distribute verbatim copies of this license document, but
  69
+ changing it is not allowed.
  70
+
  71
+[This is the first released version of the Lesser GPL. It also counts
  72
+ as the successor of the GNU Library Public License, version 2, hence
  73
+ the version number 2.1.]
  74
+
  75
+                            Preamble
  76
+
  77
+  The licenses for most software are designed to take away your
  78
+freedom to share and change it. By contrast, the GNU General Public
  79
+Licenses are intended to guarantee your freedom to share and change
  80
+free software--to make sure the software is free for all its users.
  81
+
  82
+  This license, the Lesser General Public License, applies to some
  83
+specially designated software packages--typically libraries--of the
  84
+Free Software Foundation and other authors who decide to use it. You
  85
+can use it too, but we suggest you first think carefully about whether
  86
+this license or the ordinary General Public License is the better
  87
+strategy to use in any particular case, based on the explanations
  88
+below.
  89
+
  90
+  When we speak of free software, we are referring to freedom of use,
  91
+not price. Our General Public Licenses are designed to make sure that
  92
+you have the freedom to distribute copies of free software (and charge
  93
+for this service if you wish); that you receive source code or can get
  94
+it if you want it; that you can change the software and use pieces of
  95
+it in new free programs; and that you are informed that you can do
  96
+these things.
  97
+
  98
+  To protect your rights, we need to make restrictions that forbid
  99
+distributors to deny you these rights or to ask you to surrender these
  100
+rights. These restrictions translate to certain responsibilities for
  101
+you if you distribute copies of the library or if you modify it.
  102
+
  103
+  For example, if you distribute copies of the library, whether gratis
  104
+or for a fee, you must give the recipients all the rights that we gave
  105
+you. You must make sure that they, too, receive or can get the source
  106
+code. If you link other code with the library, you must provide
  107
+complete object files to the recipients, so that they can relink them
  108
+with the library after making changes to the library and recompiling
  109
+it. And you must show them these terms so they know their rights.
  110
+
  111
+  We protect your rights with a two-step method: (1) we copyright the
  112
+library, and (2) we offer you this license, which gives you legal
  113
+permission to copy, distribute and/or modify the library.
  114
+
  115
+  To protect each distributor, we want to make it very clear that
  116
+there is no warranty for the free library. Also, if the library is
  117
+modified by someone else and passed on, the recipients should know
  118
+that what they have is not the original version, so that the original
  119
+author's reputation will not be affected by problems that might be
  120
+introduced by others.
  121
+
  122
+  Finally, software patents pose a constant threat to the existence of
  123
+any free program. We wish to make sure that a company cannot
  124
+effectively restrict the users of a free program by obtaining a
  125
+restrictive license from a patent holder. Therefore, we insist that
  126
+any patent license obtained for a version of the library must be
  127
+consistent with the full freedom of use specified in this license.
  128
+
  129
+  Most GNU software, including some libraries, is covered by the
  130
+ordinary GNU General Public License. This license, the GNU Lesser
  131
+General Public License, applies to certain designated libraries, and
  132
+is quite different from the ordinary General Public License. We use
  133
+this license for certain libraries in order to permit linking those
  134
+libraries into non-free programs.
  135
+
  136
+  When a program is linked with a library, whether statically or using
  137
+a shared library, the combination of the two is legally speaking a
  138
+combined work, a derivative of the original library. The ordinary
  139
+General Public License therefore permits such linking only if the
  140
+entire combination fits its criteria of freedom. The Lesser General
  141
+Public License permits more lax criteria for linking other code with
  142
+the library.
  143
+
  144
+  We call this license the "Lesser" General Public License because it
  145
+does Less to protect the user's freedom than the ordinary General
  146
+Public License. It also provides other free software developers Less
  147
+of an advantage over competing non-free programs. These disadvantages
  148
+are the reason we use the ordinary General Public License for many
  149
+libraries. However, the Lesser license provides advantages in certain
  150
+special circumstances.
  151
+
  152
+  For example, on rare occasions, there may be a special need to
  153
+encourage the widest possible use of a certain library, so that it
  154
+becomes a de-facto standard. To achieve this, non-free programs must
  155
+be allowed to use the library. A more frequent case is that a free
  156
+library does the same job as widely used non-free libraries. In this
  157
+case, there is little to gain by limiting the free library to free
  158
+software only, so we use the Lesser General Public License.
  159
+
  160
+  In other cases, permission to use a particular library in non-free
  161
+programs enables a greater number of people to use a large body of
  162
+free software. For example, permission to use the GNU C Library in
  163
+non-free programs enables many more people to use the whole GNU
  164
+operating system, as well as its variant, the GNU/Linux operating
  165
+system.
  166
+
  167
+  Although the Lesser General Public License is Less protective of the
  168
+users' freedom, it does ensure that the user of a program that is
  169
+linked with the Library has the freedom and the wherewithal to run
  170
+that program using a modified version of the Library.
  171
+
  172
+  The precise terms and conditions for copying, distribution and
  173
+modification follow. Pay close attention to the difference between a
  174
+"work based on the library" and a "work that uses the library". The
  175
+former contains code derived from the library, whereas the latter must
  176
+be combined with the library in order to run.
  177
+
  178
+                  GNU LESSER GENERAL PUBLIC LICENSE TERMS AND
  179
+   CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  180
+
  181
+  0. This License Agreement applies to any software library or other
  182
+program which contains a notice placed by the copyright holder or
  183
+other authorized party saying it may be distributed under the terms of
  184
+this Lesser General Public License (also called "this License"). Each
  185
+licensee is addressed as "you".
  186
+
  187
+  A "library" means a collection of software functions and/or data
  188
+prepared so as to be conveniently linked with application programs
  189
+(which use some of those functions and data) to form executables.
  190
+
  191
+  The "Library", below, refers to any such software library or work
  192
+which has been distributed under these terms. A "work based on the
  193
+Library" means either the Library or any derivative work under
  194
+copyright law: that is to say, a work containing the Library or a
  195
+portion of it, either verbatim or with modifications and/or translated
  196
+straightforwardly into another language. (Hereinafter, translation is
  197
+included without limitation in the term "modification".)
  198
+
  199
+  "Source code" for a work means the preferred form of the work for
  200
+making modifications to it. For a library, complete source code means
  201
+all the source code for all modules it contains, plus any associated
  202
+interface definition files, plus the scripts used to control
  203
+compilation and installation of the library.
  204
+
  205
+  Activities other than copying, distribution and modification are not
  206
+covered by this License; they are outside its scope. The act of
  207
+running a program using the Library is not restricted, and output from
  208
+such a program is covered only if its contents constitute a work based
  209
+on the Library (independent of the use of the Library in a tool for
  210
+writing it). Whether that is true depends on what the Library does and
  211
+what the program that uses the Library does.
  212
+
  213
+  1. You may copy and distribute verbatim copies of the Library's
  214
+complete source code as you receive it, in any medium, provided that
  215
+you conspicuously and appropriately publish on each copy an
  216
+appropriate copyright notice and disclaimer of warranty; keep intact
  217
+all the notices that refer to this License and to the absence of any
  218
+warranty; and distribute a copy of this License along with the
  219
+Library.
  220
+
  221
+  You may charge a fee for the physical act of transferring a copy,
  222
+and you may at your option offer warranty protection in exchange for a
  223
+fee.
  224
+
  225
+  2. You may modify your copy or copies of the Library or any portion
  226
+of it, thus forming a work based on the Library, and copy and
  227
+distribute such modifications or work under the terms of Section 1
  228
+above, provided that you also meet all of these conditions:
  229
+
  230
+    a) The modified work must itself be a software library.
  231
+
  232
+    b) You must cause the files modified to carry prominent notices
  233
+    stating that you changed the files and the date of any change.
  234
+
  235
+    c) You must cause the whole of the work to be licensed at no
  236
+    charge to all third parties under the terms of this License.
  237
+
  238
+    d) If a facility in the modified Library refers to a function or a
  239
+    table of data to be supplied by an application program that uses
  240
+    the facility, other than as an argument passed when the facility
  241
+    is invoked, then you must make a good faith effort to ensure that,
  242
+    in the event an application does not supply such function or
  243
+    table, the facility still operates, and performs whatever part of
  244
+    its purpose remains meaningful.
  245
+
  246
+    (For example, a function in a library to compute square roots has
  247
+    a purpose that is entirely well-defined independent of the
  248
+    application. Therefore, Subsection 2d requires that any
  249
+    application-supplied function or table used by this function must
  250
+    be optional: if the application does not supply it, the square
  251
+    root function must still compute square roots.)
  252
+
  253
+These requirements apply to the modified work as a whole. If
  254
+identifiable sections of that work are not derived from the Library,
  255
+and can be reasonably considered independent and separate works in
  256
+themselves, then this License, and its terms, do not apply to those
  257
+sections when you distribute them as separate works. But when you
  258
+distribute the same sections as part of a whole which is a work based
  259
+on the Library, the distribution of the whole must be on the terms of
  260
+this License, whose permissions for other licensees extend to the
  261
+entire whole, and thus to each and every part regardless of who wrote
  262
+it.
  263
+
  264
+Thus, it is not the intent of this section to claim rights or contest
  265
+your rights to work written entirely by you; rather, the intent is to
  266
+exercise the right to control the distribution of derivative or
  267
+collective works based on the Library.
  268
+
  269
+In addition, mere aggregation of another work not based on the Library
  270
+with the Library (or with a work based on the Library) on a volume of
  271
+a storage or distribution medium does not bring the other work under
  272
+the scope of this License.
  273
+
  274
+  3. You may opt to apply the terms of the ordinary GNU General Public
  275
+License instead of this License to a given copy of the Library. To do
  276
+this, you must alter all the notices that refer to this License, so
  277
+that they refer to the ordinary GNU General Public License, version 2,
  278
+instead of to this License. (If a newer version than version 2 of the
  279
+ordinary GNU General Public License has appeared, then you can specify
  280
+that version instead if you wish.) Do not make any other change in
  281
+these notices.
  282
+
  283
+  Once this change is made in a given copy, it is irreversible for
  284
+that copy, so the ordinary GNU General Public License applies to all
  285
+subsequent copies and derivative works made from that copy.
  286
+
  287
+  This option is useful when you wish to copy part of the code of the
  288
+Library into a program that is not a library.
  289
+
  290
+  4. You may copy and distribute the Library (or a portion or
  291
+derivative of it, under Section 2) in object code or executable form
  292
+under the terms of Sections 1 and 2 above provided that you accompany
  293
+it with the complete corresponding machine-readable source code, which
  294
+must be distributed under the terms of Sections 1 and 2 above on a
  295
+medium customarily used for software interchange.
  296
+
  297
+  If distribution of object code is made by offering access to copy
  298
+from a designated place, then offering equivalent access to copy the
  299
+source code from the same place satisfies the requirement to
  300
+distribute the source code, even though third parties are not
  301
+compelled to copy the source along with the object code.
  302
+
  303
+  5. A program that contains no derivative of any portion of the
  304
+Library, but is designed to work with the Library by being compiled or
  305
+linked with it, is called a "work that uses the Library". Such a work,
  306
+in isolation, is not a derivative work of the Library, and therefore
  307
+falls outside the scope of this License.
  308
+
  309
+  However, linking a "work that uses the Library" with the Library
  310
+creates an executable that is a derivative of the Library (because it
  311
+contains portions of the Library), rather than a "work that uses the
  312
+library". The executable is therefore covered by this License. Section
  313
+6 states terms for distribution of such executables.
  314
+
  315
+  When a "work that uses the Library" uses material from a header file
  316
+that is part of the Library, the object code for the work may be a
  317
+derivative work of the Library even though the source code is not.
  318
+Whether this is true is especially significant if the work can be
  319
+linked without the Library, or if the work is itself a library. The
  320
+threshold for this to be true is not precisely defined by law.
  321
+
  322
+  If such an object file uses only numerical parameters, data
  323
+structure layouts and accessors, and small macros and small inline
  324
+functions (ten lines or less in length), then the use of the object
  325
+file is unrestricted, regardless of whether it is legally a derivative
  326
+work. (Executables containing this object code plus portions of the
  327
+Library will still fall under Section 6.)
  328
+
  329
+  Otherwise, if the work is a derivative of the Library, you may
  330
+distribute the object code for the work under the terms of Section 6.
  331
+Any executables containing that work also fall under Section 6,
  332
+whether or not they are linked directly with the Library itself.
  333
+
  334
+  6. As an exception to the Sections above, you may also combine or
  335
+link a "work that uses the Library" with the Library to produce a work
  336
+containing portions of the Library, and distribute that work under
  337
+terms of your choice, provided that the terms permit modification of
  338
+the work for the customer's own use and reverse engineering for
  339
+debugging such modifications.
  340
+
  341
+  You must give prominent notice with each copy of the work that the
  342
+Library is used in it and that the Library and its use are covered by
  343
+this License. You must supply a copy of this License. If the work
  344
+during execution displays copyright notices, you must include the
  345
+copyright notice for the Library among them, as well as a reference
  346
+directing the user to the copy of this License. Also, you must do one
  347
+of these things:
  348
+
  349
+    a) Accompany the work with the complete corresponding
  350
+    machine-readable source code for the Library including whatever
  351
+    changes were used in the work (which must be distributed under
  352
+    Sections 1 and 2 above); and, if the work is an executable linked
  353
+    with the Library, with the complete machine-readable "work that
  354
+    uses the Library", as object code and/or source code, so that the
  355
+    user can modify the Library and then relink to produce a modified
  356
+    executable containing the modified Library. (It is understood that
  357
+    the user who changes the contents of definitions files in the
  358
+    Library will not necessarily be able to recompile the application
  359
+    to use the modified definitions.)
  360
+
  361
+    b) Use a suitable shared library mechanism for linking with the
  362
+    Library. A suitable mechanism is one that (1) uses at run time a
  363
+    copy of the library already present on the user's computer system,
  364
+    rather than copying library functions into the executable, and (2)
  365
+    will operate properly with a modified version of the library, if
  366
+    the user installs one, as long as the modified version is
  367
+    interface-compatible with the version that the work was made with.
  368
+
  369
+    c) Accompany the work with a written offer, valid for at least
  370
+    three years, to give the same user the materials specified in
  371
+    Subsection 6a, above, for a charge no more than the cost of
  372
+    performing this distribution.
  373
+
  374
+    d) If distribution of the work is made by offering access to copy
  375
+    from a designated place, offer equivalent access to copy the above
  376
+    specified materials from the same place.
  377
+
  378
+    e) Verify that the user has already received a copy of these
  379
+    materials or that you have already sent this user a copy.
  380
+
  381
+  For an executable, the required form of the "work that uses the
  382
+Library" must include any data and utility programs needed for
  383
+reproducing the executable from it. However, as a special exception,
  384
+the materials to be distributed need not include anything that is
  385
+normally distributed (in either source or binary form) with the major
  386
+components (compiler, kernel, and so on) of the operating system on
  387
+which the executable runs, unless that component itself accompanies
  388
+the executable.
  389
+
  390
+  It may happen that this requirement contradicts the license
  391
+restrictions of other proprietary libraries that do not normally
  392
+accompany the operating system. Such a contradiction means you cannot
  393
+use both them and the Library together in an executable that you
  394
+distribute.
  395
+
  396
+  7. You may place library facilities that are a work based on the
  397
+Library side-by-side in a single library together with other library
  398
+facilities not covered by this License, and distribute such a combined
  399
+library, provided that the separate distribution of the work based on
  400
+the Library and of the other library facilities is otherwise
  401
+permitted, and provided that you do these two things:
  402
+
  403
+    a) Accompany the combined library with a copy of the same work
  404
+    based on the Library, uncombined with any other library
  405
+    facilities. This must be distributed under the terms of the
  406
+    Sections above.
  407
+
  408
+    b) Give prominent notice with the combined library of the fact
  409
+    that part of it is a work based on the Library, and explaining
  410
+    where to find the accompanying uncombined form of the same work.
  411
+
  412
+  8. You may not copy, modify, sublicense, link with, or distribute
  413
+the Library except as expressly provided under this License. Any
  414
+attempt otherwise to copy, modify, sublicense, link with, or
  415
+distribute the Library is void, and will automatically terminate your
  416
+rights under this License. However, parties who have received copies,
  417
+or rights, from you under this License will not have their licenses
  418
+terminated so long as such parties remain in full compliance.
  419
+
  420
+  9. You are not required to accept this License, since you have not
  421
+signed it. However, nothing else grants you permission to modify or
  422
+distribute the Library or its derivative works. These actions are
  423
+prohibited by law if you do not accept this License. Therefore, by
  424
+modifying or distributing the Library (or any work based on the
  425
+Library), you indicate your acceptance of this License to do so, and
  426
+all its terms and conditions for copying, distributing or modifying
  427
+the Library or works based on it.
  428
+
  429
+  10. Each time you redistribute the Library (or any work based on the
  430
+Library), the recipient automatically receives a license from the
  431
+original licensor to copy, distribute, link with or modify the Library
  432
+subject to these terms and conditions. You may not impose any further
  433
+restrictions on the recipients' exercise of the rights granted herein.
  434
+You are not responsible for enforcing compliance by third parties with
  435
+this License.
  436
+
  437
+  11. If, as a consequence of a court judgment or allegation of patent
  438
+infringement or for any other reason (not limited to patent issues),
  439
+conditions are imposed on you (whether by court order, agreement or
  440
+otherwise) that contradict the conditions of this License, they do not
  441
+excuse you from the conditions of this License. If you cannot
  442
+distribute so as to satisfy simultaneously your obligations under this
  443
+License and any other pertinent obligations, then as a consequence you
  444
+may not distribute the Library at all. For example, if a patent
  445
+license would not permit royalty-free redistribution of the Library by
  446
+all those who receive copies directly or indirectly through you, then
  447
+the only way you could satisfy both it and this License would be to
  448
+refrain entirely from distribution of the Library.
  449
+
  450
+If any portion of this section is held invalid or unenforceable under
  451
+any particular circumstance, the balance of the section is intended to
  452
+apply, and the section as a whole is intended to apply in other
  453
+circumstances.
  454
+
  455
+It is not the purpose of this section to induce you to infringe any
  456
+patents or other property right claims or to contest validity of any
  457
+such claims; this section has the sole purpose of protecting the
  458
+integrity of the free software distribution system which is
  459
+implemented by public license practices. Many people have made
  460
+generous contributions to the wide range of software distributed
  461
+through that system in reliance on consistent application of that
  462
+system; it is up to the author/donor to decide if he or she is willing
  463
+to distribute software through any other system and a licensee cannot
  464
+impose that choice.
  465
+
  466
+This section is intended to make thoroughly clear what is believed to
  467
+be a consequence of the rest of this License.
  468
+
  469
+  12. If the distribution and/or use of the Library is restricted in
  470
+certain countries either by patents or by copyrighted interfaces, the
  471
+original copyright holder who places the Library under this License
  472
+may add an explicit geographical distribution limitation excluding
  473
+those countries, so that distribution is permitted only in or among
  474
+countries not thus excluded. In such case, this License incorporates
  475
+the limitation as if written in the body of this License.
  476
+
  477
+  13. The Free Software Foundation may publish revised and/or new
  478
+versions of the Lesser General Public License from time to time. Such
  479
+new versions will be similar in spirit to the present version, but may
  480
+differ in detail to address new problems or concerns.
  481
+
  482
+Each version is given a distinguishing version number. If the Library
  483
+specifies a version number of this License which applies to it and
  484
+"any later version", you have the option of following the terms and
  485
+conditions either of that version or of any later version published by
  486
+the Free Software Foundation. If the Library does not specify a
  487
+license version number, you may choose any version ever published by
  488
+the Free Software Foundation.
  489
+
  490
+  14. If you wish to incorporate parts of the Library into other free
  491
+programs whose distribution conditions are incompatible with these,
  492
+write to the author to ask for permission. For software which is
  493
+copyrighted by the Free Software Foundation, write to the Free
  494
+Software Foundation; we sometimes make exceptions for this. Our
  495
+decision will be guided by the two goals of preserving the free status
  496
+of all derivatives of our free software and of promoting the sharing
  497
+and reuse of software generally.
  498
+
  499
+                            NO WARRANTY
  500
+
  501
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
  502
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
  503
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
  504
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
  505
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
  506
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  507
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
  508
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
  509
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  510
+
  511
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  512
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
  513
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
  514
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  515
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
  516
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
  517
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
  518
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
  519
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
  520
+DAMAGES.
  521
+
  522
+                     END OF TERMS AND CONDITIONS
  523
+
  524
+           How to Apply These Terms to Your New Libraries
  525
+
  526
+  If you develop a new library, and you want it to be of the greatest
  527
+possible use to the public, we recommend making it free software that
  528
+everyone can redistribute and change. You can do so by permitting
  529
+redistribution under these terms (or, alternatively, under the terms
  530
+of the ordinary General Public License).
  531
+
  532
+  To apply these terms, attach the following notices to the library.
  533
+It is safest to attach them to the start of each source file to most
  534
+effectively convey the exclusion of warranty; and each file should
  535
+have at least the "copyright" line and a pointer to where the full
  536
+notice is found.
  537
+
  538
+    <one line to give the library's name and a brief idea of what it
  539
+    does.> Copyright (C) <year> <name of author>
  540
+
  541
+    This library is free software; you can redistribute it and/or
  542
+    modify it under the terms of the GNU Lesser General Public License
  543
+    as published by the Free Software Foundation; either version 2.1
  544
+    of the License, or (at your option) any later version.
  545
+
  546
+    This library is distributed in the hope that it will be useful,
  547
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
  548
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  549
+    Lesser General Public License for more details.
  550
+
  551
+    You should have received a copy of the GNU Lesser General Public
  552
+    License along with this library; if not, write to the Free
  553
+    Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  554
+    Boston, MA 02110-1301 USA
  555
+
  556
+Also add information on how to contact you by electronic and paper
  557
+mail.
  558
+
  559
+You should also get your employer (if you work as a programmer) or
  560
+your school, if any, to sign a "copyright disclaimer" for the library,
  561
+if necessary. Here is a sample; alter the names:
  562
+
  563
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
  564
+  library `Frob' (a library for tweaking knobs) written by James
  565
+  Random Hacker.
  566
+
  567
+  <signature of Ty Coon>, 1 April 1990 Ty Coon, President of Vice
  568
+
  569
+That's all there is to it!
3  README
... ...
@@ -1 +1,2 @@
1  
-cl-gettext is a Common Lisp binding to GNU gettext.
  1
+cl-gettext is a Common Lisp binding to GNU gettext. It is licensed
  2
+under the LLGPL, which is in the file COPYING.
33  cl-gettext.asd
... ...
@@ -0,0 +1,33 @@
  1
+#|
  2
+cl-gettext - Common Lisp binding to GNU gettext
  3
+Copyright (C) 2011  Krzysztof Drewniak <krzysdrewniak <AT> gmail <DOT> com>
  4
+
  5
+This library is free software; you can redistribute it and/or
  6
+modify it under the terms of the Lisp Lesser General Public
  7
+License, as published by the Free Software Foundation and Franz Inc.; either
  8
+version 2.1 of the License, or (at your option) any later version.
  9
+
  10
+This library is distributed in the hope that it will be useful,
  11
+but WITHOUT ANY WARRANTY; without even the implied warranty of
  12
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the Lisp
  13
+Lesser General Public License for more details.
  14
+
  15
+You should have received a copy of the Lisp Lesser General Public
  16
+License along with this library (in the file COPYING); if not, write to the Free Software
  17
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  18
+|#
  19
+
  20
+(defpackage #:cl-gettext-asd
  21
+  (:use :cl :asdf))
  22
+
  23
+(in-package :cl-gettext-asd)
  24
+
  25
+(defsystem cl-gettext
  26
+  :name "cl-gettext"
  27
+  :version "none"
  28
+  :serial t
  29
+  :components ((:file "defpackage")
  30
+               (:file "gettext-cffi")
  31
+               
  32
+               )
  33
+  :depends-on (:cffi))
36  defpackage.lisp
... ...
@@ -0,0 +1,36 @@
  1
+#|
  2
+cl-gettext - Common Lisp binding to GNU gettext
  3
+Copyright (C) 2011  Krzysztof Drewniak <krzysdrewniak <AT> gmail <DOT> com>
  4
+
  5
+This library is free software; you can redistribute it and/or
  6
+modify it under the terms of the Lisp Lesser General Public
  7
+License, as published by the Free Software Foundation and Franz Inc.; either
  8
+version 2.1 of the License, or (at your option) any later version.
  9
+
  10
+This library is distributed in the hope that it will be useful,
  11
+but WITHOUT ANY WARRANTY; without even the implied warranty of
  12
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the Lisp
  13
+Lesser General Public License for more details.
  14
+
  15
+You should have received a copy of the Lisp Lesser General Public
  16
+License along with this library (in the file COPYING); if not, write to the Free Software
  17
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  18
+|#
  19
+
  20
+(in-package :common-lisp-user)
  21
+
  22
+(defpackage :cl-gettext
  23
+  (:nicknames :cl-gettext)
  24
+  (:use :cl
  25
+   ;; Packages you want to import go here
  26
+   )
  27
+  (:export
  28
+    :gettext
  29
+    :ngettext
  30
+    :textdomain
  31
+    :bindtextbomain
  32
+    :bind_textdomain_codeset
  33
+    :setlocale
  34
+    :localeconv
  35
+   ))
  36
+
137  gettext-cffi.isp
... ...
@@ -1,137 +0,0 @@
1  
-;;; This file was automatically generated by SWIG (http://www.swig.org).
2  
-;;; Version 1.3.40
3  
-;;;
4  
-;;; Do not make changes to this file unless you know what you are doing--modify
5  
-;;; the SWIG interface file instead.
6  
-
7  
-
8  
-;;;SWIG wrapper code starts here
9  
-
10  
-(cl:defmacro defanonenum (&body enums)
11  
-   "Converts anonymous enums to defconstants."
12  
-  `(cl:progn ,@(cl:loop for value in enums
13  
-                        for index = 0 then (cl:1+ index)
14  
-                        when (cl:listp value) do (cl:setf index (cl:second value)
15  
-                                                          value (cl:first value))
16  
-                        collect `(cl:defconstant ,value ,index))))
17  
-
18  
-(cl:eval-when (:compile-toplevel :load-toplevel)
19  
-  (cl:unless (cl:fboundp 'swig-lispify)
20  
-    (cl:defun swig-lispify (name flag cl:&optional (package cl:*package*))
21  
-      (cl:labels ((helper (lst last rest cl:&aux (c (cl:car lst)))
22  
-                    (cl:cond
23  
-                      ((cl:null lst)
24  
-                       rest)
25  
-                      ((cl:upper-case-p c)
26  
-                       (helper (cl:cdr lst) 'upper
27  
-                               (cl:case last
28  
-                                 ((lower digit) (cl:list* c #\- rest))
29  
-                                 (cl:t (cl:cons c rest)))))
30  
-                      ((cl:lower-case-p c)
31  
-                       (helper (cl:cdr lst) 'lower (cl:cons (cl:char-upcase c) rest)))
32  
-                      ((cl:digit-char-p c)
33  
-                       (helper (cl:cdr lst) 'digit 
34  
-                               (cl:case last
35  
-                                 ((upper lower) (cl:list* c #\- rest))
36  
-                                 (cl:t (cl:cons c rest)))))
37  
-                      ((cl:char-equal c #\_)
38  
-                       (helper (cl:cdr lst) '_ (cl:cons #\- rest)))
39  
-                      (cl:t
40  
-                       (cl:error "Invalid character: ~A" c)))))
41  
-        (cl:let ((fix (cl:case flag
42  
-                        ((constant enumvalue) "+")
43  
-                        (variable "*")
44  
-                        (cl:t ""))))
45  
-          (cl:intern
46  
-           (cl:concatenate
47  
-            'cl:string
48  
-            fix
49  
-            (cl:nreverse (helper (cl:concatenate 'cl:list name) cl:nil cl:nil))
50  
-            fix)
51  
-           package))))))
52  
-
53  
-;;;SWIG wrapper code ends here
54  
-
55  
-
56  
-(cffi:defcfun ("gettext" gettext) :string
57  
-  (__msgid :string))
58  
-
59  
-(cffi:defcfun ("dgettext" dgettext) :string
60  
-  (__domainname :string)
61  
-  (__msgid :string))
62  
-
63  
-(cffi:defcfun ("dcgettext" dcgettext) :string
64  
-  (__domainname :string)
65  
-  (__msgid :string)
66  
-  (__category :int))
67  
-
68  
-(cffi:defcfun ("ngettext" ngettext) :string
69  
-  (__msgid1 :string)
70  
-  (__msgid2 :string)
71  
-  (__n :unsigned-long))
72  
-
73  
-(cffi:defcfun ("dngettext" dngettext) :string
74  
-  (__domainname :string)
75  
-  (__msgid1 :string)
76  
-  (__msgid2 :string)
77  
-  (__n :unsigned-long))
78  
-
79  
-(cffi:defcfun ("textdomain" textdomain) :string
80  
-  (__domainname :string))
81  
-
82  
-(cffi:defcfun ("bindtextdomain" bindtextdomain) :string
83  
-  (__domainname :string)
84  
-  (__dirname :string))
85  
-
86  
-(cffi:defcfun ("bind_textdomain_codeset" bind_textdomain_codeset) :string
87  
-  (__domainname :string)
88  
-  (__codeset :string))
89  
-
90  
-(defanonenum 
91  
-	(__LC_CTYPE #.0)
92  
-	(__LC_NUMERIC #.1)
93  
-	(__LC_TIME #.2)
94  
-	(__LC_COLLATE #.3)
95  
-	(__LC_MONETARY #.4)
96  
-	(__LC_MESSAGES #.5)
97  
-	(__LC_ALL #.6)
98  
-	(__LC_PAPER #.7)
99  
-	(__LC_NAME #.8)
100  
-	(__LC_ADDRESS #.9)
101  
-	(__LC_TELEPHONE #.10)
102  
-	(__LC_MEASUREMENT #.11)
103  
-	(__LC_IDENTIFICATION #.12))
104  
-
105  
-(cffi:defcstruct lconv
106  
-	(decimal_point :string)
107  
-	(thousands_sep :string)
108  
-	(grouping :string)
109  
-	(int_curr_symbol :string)
110  
-	(currency_symbol :string)
111  
-	(mon_decimal_point :string)
112  
-	(mon_thousands_sep :string)
113  
-	(mon_grouping :string)
114  
-	(positive_sign :string)
115  
-	(negative_sign :string)
116  
-	(int_frac_digits :char)
117  
-	(frac_digits :char)
118  
-	(p_cs_precedes :char)
119  
-	(p_sep_by_space :char)
120  
-	(n_cs_precedes :char)
121  
-	(n_sep_by_space :char)
122  
-	(p_sign_posn :char)
123  
-	(n_sign_posn :char)
124  
-	(__int_p_cs_precedes :char)
125  
-	(__int_p_sep_by_space :char)
126  
-	(__int_n_cs_precedes :char)
127  
-	(__int_n_sep_by_space :char)
128  
-	(__int_p_sign_posn :char)
129  
-	(__int_n_sign_posn :char))
130  
-
131  
-(cffi:defcfun ("setlocale" setlocale) :string
132  
-  (__category :int)
133  
-  (__locale :string))
134  
-
135  
-(cffi:defcfun ("localeconv" localeconv) :pointer)
136  
-
137  
-
21  gettext-cffi.lisp
... ...
@@ -1,3 +1,22 @@
  1
+#|
  2
+cl-gettext - Common Lisp binding to GNU gettext
  3
+Copyright (C) 2011  Krzysztof Drewniak <krzysdrewniak <AT> gmail <DOT> com>
  4
+
  5
+This library is free software; you can redistribute it and/or
  6
+modify it under the terms of the Lisp Lesser General Public
  7
+License, as published by the Free Software Foundation and Franz Inc.; either
  8
+version 2.1 of the License, or (at your option) any later version.
  9
+
  10
+This library is distributed in the hope that it will be useful,
  11
+but WITHOUT ANY WARRANTY; without even the implied warranty of
  12
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the Lisp
  13
+Lesser General Public License for more details.
  14
+
  15
+You should have received a copy of the Lisp Lesser General Public
  16
+License along with this library (in the file COPYING); if not, write to the Free Software
  17
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  18
+|#
  19
+
1 20
 ;;; This file was automatically generated by SWIG (http://www.swig.org).
2 21
 ;;; Version 1.3.40
3 22
 ;;;
@@ -7,6 +26,8 @@
7 26
 
8 27
 ;;;SWIG wrapper code starts here
9 28
 
  29
+(cl:in-package :cl-gettext)
  30
+
10 31
 (cl:defmacro defanonenum (&body enums)
11 32
    "Converts anonymous enums to defconstants."
12 33
   `(cl:progn ,@(cl:loop for value in enums

0 notes on commit 5b3fe3f

Please sign in to comment.
Something went wrong with that request. Please try again.