Skip to content

Commit

Permalink
dev-libs/libfat16: new package, add 20191101
Browse files Browse the repository at this point in the history
Related: #183

Signed-off-by: Andrew Udvare <[email protected]>
  • Loading branch information
Tatsh committed Aug 21, 2023
1 parent 39f3136 commit 4523c8b
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-libs/libfat16/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DIST libfat16-14ec307.tar.gz 5574 BLAKE2B 5072ad0b0e09a71bfceb7051d5c51efcc9ee645cd6976d30f3317911e1b27b790c1a367c865f35d9d3d1655e91de167226a58cec7926100429dbcc3c4a1b4e86 SHA512 5ba1f1ab7a32ecb607e2574f2b23127c88dcce5e897a2c3b3f8e9d7f2e12a937270a660093508a529b766a058512830662758cd09c935289bf2d2cc529fcc0b9
EBUILD libfat16-20191101.ebuild 1094 BLAKE2B 429df1633864e6234d2faad146c4bccbca7f5c07cb2265085c38f1c335748e692e428e7f2ddf1f0bdf7c39281704666a0c2e2ef4450fe3fec60e4d2f3af34106 SHA512 02a478061633a04e69aee90cb0055d401596f7e7fd36f6a6b645068980f65435f225c23c893ed80cf983e64f205397a1b83d73767dac10a0374d9778aa5d9c14
MISC metadata.xml 326 BLAKE2B d992147c6497b8d4452b10f680077360e25cba416bc49ac06b1abe4cfaa03c0f846b9edff9ea52fc012939b83e6ba174abdf99ef981867d26669a4cc849deb52 SHA512 9f3c35c73fba938da64d1c27ce1b19118747422563515799a1d9968e46d5a9f5cb00e531607dd63b96a8f4cd8de97a09d943ef371a2f540628157b755d183c35
32 changes: 32 additions & 0 deletions dev-libs/libfat16/libfat16-20191101.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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="14ec3073358544c70b77702ff6394f09ce349c59"
SRC_URI="https://github.com/Vita3K/libfat16/archive/${SHA}.tar.gz -> ${PN}-${SHA:0:7}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

S="${WORKDIR}/${PN}-${SHA}"

src_prepare() {
echo 'include(GNUInstallDirs)' > new || die
cat CMakeLists.txt >> new || die
mv new CMakeLists.txt
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
}
11 changes: 11 additions & 0 deletions dev-libs/libfat16/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Andrew Udvare</name>
</maintainer>
<upstream>
<remote-id type="github">Vita3K/libfat16</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 4523c8b

Please sign in to comment.