PORTNAME=	cobalt
DISTVERSIONPREFIX=	v
DISTVERSION=	0.19.8
CATEGORIES=	www
PKGNAMESUFFIX=	-site-generator

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Static site generator written in Rust
WWW=		https://cobalt-org.github.io/ \
		https://github.com/cobalt-org/cobalt.rs

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE-MIT

BUILD_DEPENDS=	rust-nightly>0:lang/rust-nightly # because feature `edition2024` is required
BUILD_DEPENDS+=	gmake:devel/gmake

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	cobalt-org
GH_PROJECT=	cobalt.rs

CARGO_BUILDDEP=	no
CARGO_CRATES=	addr2line-0.24.2 \
		adler2-2.0.0 \
		aho-corasick-1.1.3 \
		android-tzdata-0.1.1 \
		android_system_properties-0.1.5 \
		anstream-0.6.18 \
		anstyle-1.0.10 \
		anstyle-parse-0.2.6 \
		anstyle-query-1.1.2 \
		anstyle-wincon-3.0.7 \
		anyhow-1.0.97 \
		anymap2-0.13.0 \
		ascii-1.1.0 \
		atom_syndication-0.12.6 \
		autocfg-1.4.0 \
		automod-1.0.14 \
		backtrace-0.3.74 \
		bincode-1.3.3 \
		bit-set-0.5.3 \
		bit-vec-0.6.3 \
		bitflags-1.3.2 \
		bitflags-2.8.0 \
		block-buffer-0.10.4 \
		bstr-1.11.3 \
		bumpalo-3.17.0 \
		cc-1.2.16 \
		cfg-if-1.0.0 \
		chrono-0.4.40 \
		chrono_utils-0.1.3 \
		chunked_transfer-1.5.0 \
		clap-4.5.31 \
		clap-verbosity-flag-3.0.2 \
		clap_builder-4.5.31 \
		clap_derive-4.5.28 \
		clap_lex-0.7.4 \
		colorchoice-1.0.3 \
		colorchoice-clap-1.0.6 \
		content_inspector-0.2.4 \
		core-foundation-sys-0.8.7 \
		cow-utils-0.1.3 \
		cpufeatures-0.2.17 \
		crc32fast-1.4.2 \
		crossbeam-deque-0.8.6 \
		crossbeam-epoch-0.9.18 \
		crossbeam-utils-0.8.21 \
		crypto-common-0.1.6 \
		darling-0.20.10 \
		darling_core-0.20.10 \
		darling_macro-0.20.10 \
		deranged-0.3.11 \
		derive_builder-0.20.2 \
		derive_builder_core-0.20.2 \
		derive_builder_macro-0.20.2 \
		deunicode-1.6.0 \
		digest-0.10.7 \
		diligent-date-parser-0.1.5 \
		displaydoc-0.2.5 \
		doc-comment-0.3.3 \
		dunce-1.0.5 \
		educe-0.6.0 \
		either-1.14.0 \
		encoding_rs-0.8.35 \
		enum-ordinalize-4.3.0 \
		enum-ordinalize-derive-4.3.1 \
		env_filter-0.1.3 \
		env_logger-0.11.6 \
		equivalent-1.0.2 \
		errno-0.3.10 \
		error-chain-0.10.0 \
		fancy-regex-0.11.0 \
		fastrand-2.3.0 \
		filetime-0.2.25 \
		flate2-1.0.35 \
		fnv-1.0.7 \
		form_urlencoded-1.2.1 \
		fsevent-sys-4.1.0 \
		generic-array-0.14.7 \
		getrandom-0.3.1 \
		gimli-0.31.1 \
		glob-0.3.2 \
		globset-0.4.16 \
		hashbrown-0.12.3 \
		hashbrown-0.15.2 \
		heck-0.5.0 \
		hermit-abi-0.3.9 \
		html-escape-0.2.13 \
		html-minifier-5.0.0 \
		httpdate-1.0.3 \
		human-panic-2.0.2 \
		humantime-2.1.0 \
		humantime-serde-1.1.1 \
		iana-time-zone-0.1.61 \
		iana-time-zone-haiku-0.1.2 \
		icu_collections-1.5.0 \
		icu_locid-1.5.0 \
		icu_locid_transform-1.5.0 \
		icu_locid_transform_data-1.5.0 \
		icu_normalizer-1.5.0 \
		icu_normalizer_data-1.5.0 \
		icu_properties-1.5.1 \
		icu_properties_data-1.5.0 \
		icu_provider-1.5.0 \
		icu_provider_macros-1.5.0 \
		ident_case-1.0.1 \
		idna-1.0.3 \
		idna_adapter-1.2.0 \
		ignore-0.4.23 \
		indexmap-1.9.3 \
		indexmap-2.7.1 \
		inotify-0.11.0 \
		inotify-sys-0.1.5 \
		is-docker-0.2.0 \
		is-wsl-0.4.0 \
		is_terminal_polyfill-1.70.1 \
		itertools-0.13.0 \
		itertools-0.14.0 \
		itoa-1.0.14 \
		js-sys-0.3.77 \
		jsonfeed-0.2.0 \
		kqueue-1.0.8 \
		kqueue-sys-1.0.4 \
		kstring-2.0.2 \
		libc-0.2.170 \
		libredox-0.1.3 \
		linked-hash-map-0.5.6 \
		linux-raw-sys-0.4.15 \
		liquid-0.26.9 \
		liquid-core-0.26.9 \
		liquid-derive-0.26.8 \
		liquid-lib-0.26.9 \
		litemap-0.7.5 \
		log-0.4.26 \
		memchr-2.7.4 \
		mime-0.3.17 \
		mime_guess-2.0.5 \
		minifier-0.3.5 \
		miniz_oxide-0.8.5 \
		mio-1.0.3 \
		never-0.1.0 \
		normalize-line-endings-0.3.0 \
		notify-8.0.0 \
		notify-types-2.0.0 \
		num-conv-0.1.0 \
		num-traits-0.2.19 \
		num_cpus-1.16.0 \
		object-0.36.7 \
		once_cell-1.20.3 \
		open-5.3.2 \
		os_info-3.10.0 \
		os_pipe-1.2.1 \
		pathdiff-0.2.3 \
		percent-encoding-2.3.1 \
		pest-2.7.15 \
		pest_derive-2.7.15 \
		pest_generator-2.7.15 \
		pest_meta-2.7.15 \
		pkg-config-0.3.31 \
		powerfmt-0.2.0 \
		proc-exit-2.0.2 \
		proc-macro2-1.0.93 \
		pulldown-cmark-0.13.0 \
		pulldown-cmark-escape-0.11.0 \
		quick-xml-0.37.2 \
		quote-1.0.38 \
		rayon-1.10.0 \
		rayon-core-1.12.1 \
		redox_syscall-0.5.9 \
		regex-1.11.1 \
		regex-automata-0.4.9 \
		regex-syntax-0.8.5 \
		relative-path-1.9.3 \
		rss-2.0.12 \
		rustc-demangle-0.1.24 \
		rustix-0.38.44 \
		rustversion-1.0.19 \
		ryu-1.0.19 \
		same-file-1.0.6 \
		sass-rs-0.2.2 \
		sass-sys-0.4.22 \
		scrawl-2.0.0 \
		serde-1.0.218 \
		serde_derive-1.0.218 \
		serde_json-1.0.140 \
		serde_spanned-0.6.8 \
		serde_yaml-0.9.34+deprecated \
		sha2-0.10.8 \
		shlex-1.3.0 \
		similar-2.7.0 \
		sitemap-0.4.1 \
		smallvec-1.14.0 \
		snapbox-0.6.21 \
		snapbox-macros-0.3.10 \
		stable_deref_trait-1.2.0 \
		static_assertions-1.1.0 \
		status-0.0.10 \
		strsim-0.11.1 \
		syn-2.0.98 \
		synstructure-0.13.1 \
		syntect-5.2.0 \
		tempfile-3.17.1 \
		terminal_size-0.4.1 \
		thiserror-1.0.69 \
		thiserror-2.0.12 \
		thiserror-impl-1.0.69 \
		thiserror-impl-2.0.12 \
		time-0.3.37 \
		time-core-0.1.2 \
		time-macros-0.2.19 \
		tiny_http-0.12.0 \
		tinystr-0.7.6 \
		toml-0.8.20 \
		toml_datetime-0.6.8 \
		toml_edit-0.22.24 \
		trycmd-0.15.9 \
		typenum-1.18.0 \
		ucd-trie-0.1.7 \
		unicase-2.8.1 \
		unicode-ident-1.0.17 \
		unicode-segmentation-1.12.0 \
		unsafe-libyaml-0.2.11 \
		url-2.5.4 \
		utf16_iter-1.0.5 \
		utf8-width-0.1.7 \
		utf8_iter-1.0.4 \
		utf8parse-0.2.2 \
		uuid-1.13.2 \
		version_check-0.9.5 \
		wait-timeout-0.2.1 \
		walkdir-2.5.0 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasi-0.13.3+wasi-0.2.2 \
		wasm-bindgen-0.2.100 \
		wasm-bindgen-backend-0.2.100 \
		wasm-bindgen-macro-0.2.100 \
		wasm-bindgen-macro-support-0.2.100 \
		wasm-bindgen-shared-0.2.100 \
		winapi-util-0.1.9 \
		windows-core-0.52.0 \
		windows-link-0.1.0 \
		windows-sys-0.52.0 \
		windows-sys-0.59.0 \
		windows-targets-0.52.6 \
		windows_aarch64_gnullvm-0.52.6 \
		windows_aarch64_msvc-0.52.6 \
		windows_i686_gnu-0.52.6 \
		windows_i686_gnullvm-0.52.6 \
		windows_i686_msvc-0.52.6 \
		windows_x86_64_gnu-0.52.6 \
		windows_x86_64_gnullvm-0.52.6 \
		windows_x86_64_msvc-0.52.6 \
		winnow-0.7.3 \
		wit-bindgen-rt-0.33.0 \
		write16-1.0.0 \
		writeable-0.5.5 \
		xml-rs-0.8.25 \
		yaml-rust-0.4.5 \
		yoke-0.7.5 \
		yoke-derive-0.7.5 \
		zerofrom-0.1.6 \
		zerofrom-derive-0.1.6 \
		zerovec-0.10.4 \
		zerovec-derive-0.10.3

PLIST_FILES=	bin/${PORTNAME}

.include <bsd.port.mk>
