From 548bb65da4ba2cfbad69e09091b7e2bf61a9dec3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Mar 2023 20:00:44 +0900 Subject: [PATCH] Add MIT license Signed-off-by: Michele Calgaro --- licenses/CMakeLists.txt | 2 +- licenses/MIT | 17 +++++++++++++++++ licenses/Makefile.am | 2 +- tdecore/tdeaboutdata.cpp | 4 ++++ tdecore/tdeaboutdata.h | 3 ++- 5 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 licenses/MIT diff --git a/licenses/CMakeLists.txt b/licenses/CMakeLists.txt index 697fd6b8e..a48d3dbcc 100644 --- a/licenses/CMakeLists.txt +++ b/licenses/CMakeLists.txt @@ -12,5 +12,5 @@ ##### other data ################################ install( FILES - BSD GPL_V2 LGPL_V2 GPL_V3 LGPL_V3 QPL_V1.0 ARTISTIC + BSD GPL_V2 LGPL_V2 GPL_V3 LGPL_V3 QPL_V1.0 ARTISTIC MIT DESTINATION ${DATA_INSTALL_DIR}/LICENSES ) diff --git a/licenses/MIT b/licenses/MIT new file mode 100644 index 000000000..64b34e88c --- /dev/null +++ b/licenses/MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/licenses/Makefile.am b/licenses/Makefile.am index 2fd7abea3..0bf059e24 100644 --- a/licenses/Makefile.am +++ b/licenses/Makefile.am @@ -1,2 +1,2 @@ -licensesdata_DATA = BSD GPL_V2 LGPL_V2 QPL_V1.0 ARTISTIC +licensesdata_DATA = BSD GPL_V2 LGPL_V2 QPL_V1.0 ARTISTIC MIT licensesdatadir = $(kde_datadir)/LICENSES diff --git a/tdecore/tdeaboutdata.cpp b/tdecore/tdeaboutdata.cpp index 3a147842a..48f41645d 100644 --- a/tdecore/tdeaboutdata.cpp +++ b/tdecore/tdeaboutdata.cpp @@ -446,6 +446,10 @@ TDEAboutData::license() const l = "QPL v1.0"; f = locate("data", "LICENSES/QPL_V1.0"); break; + case License_MIT: + l = "MIT"; + f = locate("data", "LICENSES/MIT"); + break; case License_Custom: if (mLicenseText && *mLicenseText) return( i18n(mLicenseText) ); diff --git a/tdecore/tdeaboutdata.h b/tdecore/tdeaboutdata.h index 06f193f75..071da368b 100644 --- a/tdecore/tdeaboutdata.h +++ b/tdecore/tdeaboutdata.h @@ -199,7 +199,8 @@ class TDECORE_EXPORT TDEAboutData License_QPL = 5, License_QPL_V1_0 = 5, License_GPL_V3 = 6, - License_LGPL_V3 = 7 + License_LGPL_V3 = 7, + License_MIT = 8 }; public: