Skip to content

Commit

Permalink
fix: missing license for dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
WyvernIXTL committed Oct 27, 2024
1 parent 574df34 commit d39f947
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 25 deletions.
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.8] - 2024-10-11

### Fixed

* Missing MIT license for dictionary.

### Changed

* Upgraded to `license-fetcher == 0.5.0`.


## [0.1.7] - 2024-10-11

### Changed
Expand Down Expand Up @@ -130,8 +141,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[cargo about]: https://github.com/EmbarkStudios/cargo-about

[Unreleased]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.9...HEAD
[0.1.9]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.6...v0.1.9
[Unreleased]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.8...HEAD
[0.1.8]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.7...v0.1.8
[0.1.7]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.6...v0.1.7
[0.1.6]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.5...v0.1.6
[0.1.5]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.1.3...v0.1.4
Expand Down
17 changes: 4 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ubilerntui"
version = "0.1.7"
version = "0.1.8"
edition = "2021"
authors = ["Adam McKellar"]
description = "This is a terminal UI for learning for the UKW-Sprechfunkzeugnis für den Binnenschiffahrtsfunk."
Expand Down Expand Up @@ -29,13 +29,13 @@ once_cell = "1.19.0"
colored = "2.1.0"
textwrap = {version = "0.16.1", features = ["hyphenation"]}
hyphenation = "0.8.4"
license-fetcher = "0.4.0"
license-fetcher = "0.5.0"

[dev-dependencies]
pretty_assertions = "1.4.1"

[build-dependencies]
license-fetcher = { version = "0.4.0", features = ["build"] }
license-fetcher = { version = "0.5.0", features = ["build"] }

[package.metadata.deb]
maintainer = "Adam McKellar <[email protected]>"
Expand Down
31 changes: 28 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
use license_fetcher::build_script::generate_package_list_with_licenses;
use std::concat;
use std::fs::read_to_string;

use license_fetcher::{build_script::generate_package_list_with_licenses, Package};

fn main() {
generate_package_list_with_licenses();
let mut packages = generate_package_list_with_licenses();

packages.push(Package {
name: "hyph-de-1996".to_owned(),
version: "CTAN-2021.03.21".to_owned(),
authors: vec!["Deutschsprachige Trennmustermannschaft <[email protected]>".to_owned()],
description: Some(
"TeX-Trennmuster für die reformierte (2006) deutsche Rechtschreibung".to_owned(),
),
homepage: None,
repository: Some("https://github.com/hyphenation/tex-hyphen".to_owned()),
license_identifier: Some("MIT".to_owned()),
license_text: Some(
read_to_string(concat!(
env!("CARGO_MANIFEST_DIR"),
"/dictionary/LICENSE-DICTIONARY.txt"
))
.expect("Failed reading license of hyph-de-1996"),
),
});

packages.write();

println!("cargo::rerun-if-changed=build.rs");
println!("cargo::rerun-if-changed=Cargo.lock");
println!("cargo::rerun-if-changed=Cargo.toml");
}
}
4 changes: 0 additions & 4 deletions dictionary/LICENSE-DICTIONARY.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
================================================================================
de-1996.standard.bincode LICENCE
================================================================================

de-1996.standard.bincode is part of the hyphenation crate <https://github.com/tapeinosyne/hyphenation>.
Generated from <https://github.com/hyphenation/tex-hyphen/blob/49706f9cfa97f6ead26b473ec10d23d5a651318a/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-de-1996.tex>.
Following is it's copyright notice:
Expand Down

0 comments on commit d39f947

Please sign in to comment.