diff options
-rw-r--r-- | dev-libs/libowfat/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libowfat/libowfat-0.32.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/libowfat/Manifest b/dev-libs/libowfat/Manifest index 816155149182..dbed130e1f44 100644 --- a/dev-libs/libowfat/Manifest +++ b/dev-libs/libowfat/Manifest @@ -1 +1,2 @@ DIST libowfat-0.31.tar.xz 183684 BLAKE2B 67c60ebba10463f28196e3d9ed5f20fdbe79db8b499b226fb02d4f38833747e5e709054473267a1e139e1bef29222220e7f60cf2f472ac58ca67b52dca2c5661 SHA512 b3ce973d6edc501ddaa6caa84dc3b74e3e31ced92e4f707038858cd36c977863251a7eaeababdad34ffe6b8ad13c9702118464f6f9fd827e05f6fbc5004408b5 +DIST libowfat-0.32.tar.xz 195820 BLAKE2B 6dc19b947867a9b08eece785378be2493fb7185d1cc334de080ab1c288884fe0b670ece6f3785f051c707cc98afc4d843a262b9761fc9cc68fdf1f1ac8df1eb8 SHA512 c762a1aa27dfb30e2f6da67d1ad16da03d301b2e3cce33c83b69103183a6689a494c8cf8d7d4e26ad5b22130e4e0560d5f3ef6f44b14d706f10e2300ce11ff3b diff --git a/dev-libs/libowfat/libowfat-0.32.ebuild b/dev-libs/libowfat/libowfat-0.32.ebuild new file mode 100644 index 000000000000..daee3d504455 --- /dev/null +++ b/dev-libs/libowfat/libowfat-0.32.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="reimplement libdjb - excellent libraries from Dan Bernstein" +SRC_URI="https://www.fefe.de/${PN}/${P}.tar.xz" +HOMEPAGE="https://www.fefe.de/libowfat/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="diet" + +RDEPEND="diet? ( >=dev-libs/dietlibc-0.33_pre20090721 )" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +pkg_setup() { + # Required for mult/umult64.c to be usable + append-flags -fomit-frame-pointer +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CFLAGS="-I. ${CFLAGS}" \ + DIET="/usr/bin/diet -Os" \ + prefix=/usr \ + INCLUDEDIR=/usr/include/libowfat \ + $( use diet || echo 'DIET=' ) +} + +src_install() { + emake \ + DESTDIR="${D}" \ + LIBDIR="/usr/$(get_libdir)" \ + MAN3DIR="/usr/share/man/man3" \ + INCLUDEDIR="/usr/include/libowfat" \ + install + + cd "${D}"/usr/share/man + mv man3/buffer.3 man3/owfat-buffer.3 +} |