Install this version:
emerge -a =dev-libs/libfat16-20250103
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/libfat16-20250103
Or alternatively:
emerge --autounmask-write -a =dev-libs/libfat16-20250103
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 20250103 | 8 | ~amd64 | 0 |
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++ FAT16 read library."
HOMEPAGE="https://github.com/Vita3K/libfat16"
SHA="d9a890b712dcdb46d3d33230997efc59f5ad8d62"
SRC_URI="https://github.com/Vita3K/libfat16/archive/${SHA}.tar.gz -> ${PN}-${SHA:0:7}.tar.gz"
S="${WORKDIR}/${PN}-${SHA}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
src_prepare() {
echo 'include(GNUInstallDirs)' > new || die
cat CMakeLists.txt >> new || die
mv new CMakeLists.txt
# shellcheck disable=SC2016
sed -re '/include\/fat16\/.*/d' \
-e 's|target_include_directories\(.*|target_include_directories(FAT16 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)|' \
-i CMakeLists.txt || die
cat >>CMakeLists.txt <<EOF
install(DIRECTORY "\${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION \${CMAKE_INSTALL_INCLUDEDIR})
install(TARGETS FAT16 EXPORT FAT16Config INCLUDES DESTINATION \${CMAKE_INSTALL_INCLUDEDIR})
install(EXPORT FAT16Config DESTINATION "share/cmake/FAT16")
EOF
cmake_src_prepare
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libfat16-d9a890b.tar.gz | 5573 bytes | https://github.com/Vita3K/libfat16/archive/d9a890b712dcdb46d3d33230997efc59f5ad8d62.tar.gz |