Memnarch / Delphinus

An alternative Packagemanager for the Delphi-IDE
Mozilla Public License 2.0
235 stars 63 forks source link

Allow several licenses to be specified #30

Closed micha137 closed 6 years ago

micha137 commented 8 years ago

Maybe this is even possible, but not documented in https://github.com/Memnarch/Delphinus/wiki/Delphinus.Info.json. My use case is https://github.com/graphics32/graphics32/blob/master/Source/License.txt, which states MPL-1.1 and LGPL-2.1,

Memnarch commented 8 years ago

Thanks for the tip. I'll look into it!

rlebeau commented 6 years ago

Yes, please. I'm thinking of adding Indy to Delphinus, but Indy uses a dual license - a modified BSD license (how would I specify that in the Delphinus.Info.json file?), in addition to MPL v1.1.

So, either the license_... fields would have to be to updated to support semicolons, eg:

"license_type": "BSD-Custom;MPL-1.1",
"license_file": "License-BSD.txt;License-MPL.txt"

Or, create a new licenses array (and fall back to license_... if not present), eg:

"licenses":
[
  {
    "license_type": "BSD-Custom",
    "license_file": "License-BSD.txt"
  },
  {
    "license_type": "MPL-1.1",
    "license_file": "License-MPL.txt"
  },
]
Memnarch commented 6 years ago

Will prioritize this to get you started :)

Memnarch commented 6 years ago

did some quick changes in a branch that should do(will use the suggestion with the license array now). Commandline has been extended to support displaying a specific license of a given package, too. However it's quite late so i'll merge tomorrow.

Memnarch commented 6 years ago

changes have been merged to master